Kendo Grid : Default PDF export sets extra characters in metadata of the exported PDF file.

2 Answers 14 Views
General Discussions Grid PDFViewer
Trusha
Top achievements
Rank 1
Iron
Trusha asked on 04 Apr 2024, 11:21 AM

Hi,

I am doing default PDF export functionality of Kendo Grid. But exported PDF file has extra characters in meta data. That results weird title of the PDF in Chrome browser. I have attached screen shot of the exported pdf and also a meta data of the file.  

I found few solutions (https://www.telerik.com/forums/saving-grids-or-charts-as-pdf-and-getting-strange-characters-in-the-metadata) that mentioned that I need to have <meta Charset='UTF-8'> in my code, where grid has been initialized. But I have set UTF-8 charset only in my entire code, still facing same issue.

I have few questions:

1) Which charset value is getting used to export the grid in PDF? (i) <meta Charset='UTF-8'> written in my code or (ii) default export functionality has its own charset value

2)  I am using Telerik.UI.for.AspNet.Core 2020.3.1021 version for kendo UI. Which specific library is being used for PDF generation in Telerik.UI.for.AspNet.Core  2020.3.1021 ? 

3) Is there anything else to try to resolve this issue?

2 Answers, 1 is accepted

Sort by
0
Angel Petrov
Telerik team
answered on 09 Apr 2024, 07:07 AM

Hi,

The problem seems related to fonts not being defined for the pdf. The solution provided in this answer should also resolve the issue being observed in your case. Note however that you should register the correct font that the problematic web page is using.

As for the questions on hand:

1. The export library tries to visualize the HTML on the page in a PDF format. It does not use some defaulting mechanism. If some symbol can not be interpreted correctly problems like the described occur.

2. We have internal logic related to the PDF export that is located in the script files.

3. I think that an alternative solution would not be necessary. Please go through the following article in detail which covers font handling.

Regards,
Angel Petrov
Progress Telerik

Stay tuned by visiting our public roadmap and feedback portal pages! Or perhaps, if you are new to our Kendo family, check out our getting started resources
Trusha
Top achievements
Rank 1
Iron
commented on 12 Apr 2024, 08:08 AM

Thanks Angel Petrov for your reply.

I have tried to add fonts to my code as shown in the screenshot, but no luck.

 

0
Angel Petrov
Telerik team
answered on 17 Apr 2024, 07:52 AM

Hi,

Could you please isolate the problem in a Dojo which we can inspect? Additionally can you please ensure that the font that is loaded is the same added to the defineFont method.

Regards,
Angel Petrov
Progress Telerik

Stay tuned by visiting our public roadmap and feedback portal pages! Or perhaps, if you are new to our Kendo family, check out our getting started resources
Tags
General Discussions Grid PDFViewer
Asked by
Trusha
Top achievements
Rank 1
Iron
Answers by
Angel Petrov
Telerik team
Share this question
or