PDF export from Grid

1 Answer 96 Views
Grid PDF Processing
Lucien
Top achievements
Rank 1
Iron
Lucien asked on 22 Apr 2022, 10:54 AM

Hi all, 

 

I got two questions actually.

 

I want to know if there's a way to add paragraphs, titles, and images while exporting PDFs from Grid ?

Besides, I don't know why the PDF output of Chinese characters all became garbled and I just can't figure it out. 

 

Any help will be appreciated.

Thanks!

 

 

 

1 Answer, 1 is accepted

Sort by
0
Konstantin Dikov
Telerik team
answered on 22 Apr 2022, 12:39 PM

Hi Lucien,

Thank you for contacting us.

If you want to export additional content along with the Grid, you should use the PDFExport as shown in the following example:

As for the Chinese characters, by default, the PDF export supports the basic ASCII character set and if you want to export different characters, you need to define custom font that supports them. More information on this matter can be found in the following help article:

Hope this helps.

 

Regards,
Konstantin Dikov
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

Lucien
Top achievements
Rank 1
Iron
commented on 25 Apr 2022, 11:02 AM

Hi Konstantin, 

I finally settled the Chinese characters problem thanks to your tips !

 

However, the PDF export problem remains unsolved.

I followed the guide : 
https://www.telerik.com/kendo-react-ui/components/pdfprocessing/content-styling/ 
but still can't export PDF with logos or customized column width. 

I wondered if it was because I'm using { GridPDFExport } instead of { PDFExport}.

But nothing happened after I changed to it. 
What do I miss here ?

Thanks for any possible solutions.

Konstantin Dikov
Telerik team
commented on 25 Apr 2022, 04:22 PM

Hello Lucien,

Could you please try to replicate the issue that you are facing in a stackblitz example that we can test and debug locally? You can use the following examples as a starting point and change them so they can better represent your scenario and the issue in particular:

Looking forward to your reply.

Tags
Grid PDF Processing
Asked by
Lucien
Top achievements
Rank 1
Iron
Answers by
Konstantin Dikov
Telerik team
Share this question
or