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

Kendo UI PDF Export

1 Answer 38 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Thomas
Top achievements
Rank 1
Thomas asked on 19 Dec 2018, 10:51 AM

Hey There,

I am looking for a way to export several elements of a page. This PDF should be in A4 format and the individual elements should be arranged on it. Is this possible with Kendo UI?

1 Answer, 1 is accepted

Sort by
0
Marin Bratanov
Telerik team
answered on 19 Dec 2018, 02:25 PM
Hello Thomas,

You can see how to do that in the following demos:

and you can read more about configuring the PDF drawing API in the following article: https://docs.telerik.com/kendo-ui/framework/drawing/drawing-dom.

Here's a modification I made on the first demo that shows how you can set the A4 page size (you will notice that the content is clipped because its layout is not designed to fit an A4 page, you need to define the desired layout): https://dojo.telerik.com/@bratanov/oVEVEVAr. Here is another way that sets the size of the container like in the second demo and leaves the page size to auto (if you set it to A4 the margins will take up some space and cause clipping again, so you can combine both but you must decide how and where to set the sizes): https://dojo.telerik.com/@bratanov/iFeMoGEM.


Regards,
Marin Bratanov
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Tags
General Discussions
Asked by
Thomas
Top achievements
Rank 1
Answers by
Marin Bratanov
Telerik team
Share this question
or