This is a migrated thread and some comments may be shown as answers.

Custom PDF export templates?

2 Answers 301 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
James
Top achievements
Rank 1
James asked on 30 May 2019, 06:19 PM

When using the PDF export function is there a way to customize the export? 

For example, in my scheduler component I currently specify a kendoSchedulerEventTemplate to render my events.  I have use cases where when I export, I may want to have additional information rendered for each event. 

So I was thinking if there was something like an export template kendoSchedulerExportEventTemplate (for example) so when I use the export function it uses that template for rendering instead.

 

Does that functionality currently exist?

2 Answers, 1 is accepted

Sort by
0
Accepted
Dimiter Topalov
Telerik team
answered on 03 Jun 2019, 09:03 AM
Hi James,

If I understand correctly, the desired functionality involves displaying some information in the generated PDF output only (that should not be visible in the Scheduler event template, rendered in the browser). To achieve this, you can utilize the approach, demonstrated in the following section of our PDF Export documentation:

https://www.telerik.com/kendo-angular-ui/components/pdfexport/content-styling/

https://www.telerik.com/kendo-angular-ui/components/pdfexport/content-styling/#toc-using-the-pdf-document-element

Add the desired PDF-only elements in the Scheduler template in a wrapper styled such that it is not visible on the web page, but is visible in the PDF document, e.g.:

https://stackblitz.com/edit/angular-xpyr8n-evr3cm?file=app/app.component.ts

I hope this helps, but if I am missing something, please describe the desired functionality/layout in further details, so I can try providing a solution that is best suitable to the specific use case. Thank you in advance.

Regards,
Dimiter Topalov
Progress Telerik
Get quickly onboarded and successful with your Telerik and Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
0
James
Top achievements
Rank 1
answered on 03 Jun 2019, 06:05 PM
Perfect thank you.
Tags
Scheduler
Asked by
James
Top achievements
Rank 1
Answers by
Dimiter Topalov
Telerik team
James
Top achievements
Rank 1
Share this question
or