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

PDF Export overlapping pages

4 Answers 268 Views
Grid
This is a migrated thread and some comments may be shown as answers.
carlos
Top achievements
Rank 1
carlos asked on 10 Jun 2016, 10:03 AM

Hi,

I'm trying to export a Grid to PDF as shown in this example:

http://demos.telerik.com/kendo-ui/grid/pdf-export

 

The problem is that I need to use a bigger pageSize and I just want to export the current page.

If I just modify those options on the given example (setting allPages: false and pageSize:50 ) the resulting PDF splits the current page on 6 chunks, but prints all six of them on the same page, overlapping the output as can be seen on the attached file.

Am I doing something wrong?

Is there any way of achieving the desired behavior?

 

Thanks,

Carlos

4 Answers, 1 is accepted

Sort by
0
Alexander Popov
Telerik team
answered on 14 Jun 2016, 08:03 AM
Hi Carlos,

I would recommend setting the paperSize to auto and using portrait orientation, as shown here.

Regards,
Alexander Popov
Telerik
 
Get started with Kendo UI in days. Online training courses help you quickly implement components into your apps.
 
0
carlos
Top achievements
Rank 1
answered on 14 Jun 2016, 11:09 AM

Hi Alexander,

 

Thank you for your answer, but the proposed solution will create a single page PDF file with huge dimensions, that is not easily printable.

Is there a way of creating an "A4" PDF from one single Grid page, that outputs as many A4 pages as needed to fit the content?

Thanks again,

 

Carlos

0
Alexander Popov
Telerik team
answered on 16 Jun 2016, 08:37 AM
Hello Carlos,

I apologize for the misunderstanding. The behavior you are after is supported, however there seems to be a regression in recent versions, hence the unexpected results. I have logged this issue in our public GitHub repository, where its status can be tracked. 

As a small sign of our appreciation for bringing this to our attention I have updated your Telerik points.

Regards,
Alexander Popov
Telerik
 
Get started with Kendo UI in days. Online training courses help you quickly implement components into your apps.
 
0
carlos
Top achievements
Rank 1
answered on 16 Jun 2016, 09:46 AM

Hi Alexander,

Thanks for your support, and raising the issue. I hope it gets fixed soon!

 

Regards,

Carlos

 

Tags
Grid
Asked by
carlos
Top achievements
Rank 1
Answers by
Alexander Popov
Telerik team
carlos
Top achievements
Rank 1
Share this question
or