[ kendo scheduler ] pdf export disorder code

1 Answer 37 Views
Scheduler
sun
Top achievements
Rank 2
Iron
Iron
Iron
sun asked on 24 May 2022, 03:13 PM

Hi,

     When the browser side page contains Chinese characters, the display is normal(kendo.culture.zh-CN.min.js and kendo.messages.zh-CN.min.js).

     However, after exporting PDF, Chinese characters cannot be displayed normally.

     The code I use is:  var scheduler = $("#scheduler").data("kendoScheduler"); scheduler.saveAsPDF();

     How can I solve this problem?

 

     Thank you for your help!

1 Answer, 1 is accepted

Sort by
0
Accepted
Dimitar
Telerik team
answered on 27 May 2022, 10:19 AM

Hi,

For proper export of Chinese font, it should be defined through pdf.defineFont method. This approach is shown on the Scheduler PDF Export demo - see the View Source section of the demo. Also this forum post provides information about Chinese fonts and an example with Korean fonts.

Regards,
Dimitar
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

sun
Top achievements
Rank 2
Iron
Iron
Iron
commented on 27 May 2022, 03:15 PM

Hi Dimitar,

Thanks it works perfectly. Thank you very much for your help.


Tags
Scheduler
Asked by
sun
Top achievements
Rank 2
Iron
Iron
Iron
Answers by
Dimitar
Telerik team
Share this question
or