Div to pdf

4 posts, 0 answers
  1. Troy Clemons
    Troy Clemons avatar
    69 posts
    Member since:
    Apr 2010

    Posted 11 May 2015 Link to this post

    is there a way to convert a div and all its inner html to a pdf.
  2. Petya
    Petya avatar
    990 posts

    Posted 13 May 2015 Link to this post

    Hi Troy,

    There are a couple of options that you can try in order to achieve this result.

    One is the Telerik ASP.NET ClientExportManager that was recently introduced. Take a look at this demo and see how it fits your needs.

    The alternative is to use the WordsProcessing library to convert the document. You can use the HtmlFormatProvider class to import HTML content and then export it with PdfFormatProvider. I suggest you take a look at this demo and try the library out in your scenario. 

    You should be aware that the latter approach would convert the HTML you pass to the document model of the library with base class RadFlowDocument. This means that if there is an element on the HTML page that cannot be converted, it will be skipped, so there may be some differences between the original page and the exported PDF. Additionally, you might want to take a look at the settings of the HtmlFormatProvider to learn about the available customization options.

    I hope this is useful.

  3. R
    R avatar
    4 posts
    Member since:
    Feb 2016

    Posted 21 Aug 2018 in reply to Petya Link to this post

    Hi Petya, 

    I am showing radchart,html table,radgrid  in radwindow i need to export to pdf so am using radexportmanger to generate pdf but here 

    it is not working for radchart and  is converting into pdf  only visible content not showing scrolling data in pdf.Can u help on this.


  4. Peter Milchev
    Peter Milchev avatar
    467 posts

    Posted 23 Aug 2018 Link to this post

    Hello R,

    Currently, exporting RadHtmlChart controls with page breaks is a limitation caused by a bug in the underlying Kendo Drawing API that is fixed in the R1 2017 SP1 release of Kendo but this version is not yet available in the UI For ASP.NET AJAX suite. More information can be found here: https://docs.telerik.com/devtools/aspnet-ajax/controls/clientexportmanager/troubleshooting/known-limitations

    We are planning to update the Kendo version available in the AJAX suite for the next official release - R3 2018 which should be released mid-September 2018. That means this limitation would be fixed with just upgrading to R3 2018.

    Peter Milchev
    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.
Back to Top