Exported pdf file exceeds maximum default length?

3 posts, 0 answers
  1. Linh Hoang
    Linh Hoang avatar
    22 posts
    Member since:
    Dec 2009

    Posted 24 Jun 2015 Link to this post


    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. Ivan Danchev
    Ivan Danchev avatar
    837 posts

    Posted 29 Jun 2015 Link to this post


    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.

    Ivan Danchev
    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
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Linh Hoang
    Linh Hoang avatar
    22 posts
    Member since:
    Dec 2009

    Posted 29 Jun 2015 in reply to Ivan Danchev Link to this post

    Hi Ivan,

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

Back to Top