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

Exported pdf file exceeds maximum default length?

2 Answers 41 Views
ClientExportManager
This is a migrated thread and some comments may be shown as answers.
Linh Hoang
Top achievements
Rank 1
Linh Hoang asked on 25 Jun 2015, 03:57 AM

Hello,

I wonder if a single exported pdf file have its maximum length? I have been troubleshooting an issue of exporting a list of html charts to pdf. It turned out that if I exported too many charts ( > 30 charts) to a single pdf file, I would failed to generate the output (blank pdf); If I reduced the number of charts to export, I could export all charts to a single pdf file.

That's why I think that an exported pdf file might have its maximum default length. If so, how could we deal with exporting a longer pages?

2 Answers, 1 is accepted

Sort by
0
Ivan Danchev
Telerik team
answered on 29 Jun 2015, 02:20 PM
Hello,

If you have a large number of HtmlCharts you can export each one to a separate page within the same PDF document. This RadCleintExportManager feature is demonstrated in the PDF Multi Page Export demo. To achieve the same in your scenario you could set a CssClass, for example "pageBreak", to all HtmlCharts:
<telerik:RadHtmlChart runat="server" ID="RadHtmlChart1" CssClass="pageBreak" Width="800px" Height="500px">

or wrap every chart in a div element with class "pageBreak". Set the properties in the RadClientExportManager's PdfSettings tag, passing the above-mentioned class to the PageBreakSelector property. The page will break before every exported element matching that selector.

Regards,
Ivan Danchev
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
Linh Hoang
Top achievements
Rank 1
answered on 29 Jun 2015, 11:01 PM

Hi Ivan,

The new feature comes at the right time. This works perfectly. Thank you for your help.

Tags
ClientExportManager
Asked by
Linh Hoang
Top achievements
Rank 1
Answers by
Ivan Danchev
Telerik team
Linh Hoang
Top achievements
Rank 1
Share this question
or