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

cannot export pdf with custom style in kendo scheduler

1 Answer 114 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
maaloul
Top achievements
Rank 1
maaloul asked on 06 Apr 2020, 05:05 PM

Hi i have to export my scheduler into pdf but when i export the style content in the file is not the same with the component 

 

1 Answer, 1 is accepted

Sort by
0
Accepted
Martin
Telerik team
answered on 08 Apr 2020, 02:36 PM

Hi Мaaloul,

Thank you for the provided screenshots.

In general, the PDF Export creates a document from what is currently visible on the page. I tested the Scheduler export component by changing the .k-event background color, but the style is exported as expected:

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

If a special font is used and correctly displayed in the browser but not in the exported PDF, then it needs to be loaded manually as demonstrated in this article from our documentation:

https://www.telerik.com/kendo-angular-ui/components/pdfexport/embedded-fonts/

Also please check our dedicated page regarding the styling of content when exporting to pdf explaining how to customize the exported document. Apply the same CSS styles to the exported document like these ones that are already applied to the Scheduler.

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

I hope this helps.

Regards,
Martin
Progress Telerik

Progress is here for your business, like always. Read more about the measures we are taking to ensure business continuity and help fight the COVID-19 pandemic.
Our thoughts here at Progress are with those affected by the outbreak.
Tags
Scheduler
Asked by
maaloul
Top achievements
Rank 1
Answers by
Martin
Telerik team
Share this question
or