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

Div to pdf

3 Answers 112 Views
PdfProcessing
This is a migrated thread and some comments may be shown as answers.
Troy Clemons
Top achievements
Rank 1
Troy Clemons asked on 11 May 2015, 01:00 PM
is there a way to convert a div and all its inner html to a pdf.

3 Answers, 1 is accepted

Sort by
0
Petya
Telerik team
answered on 13 May 2015, 03:12 PM
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.

Regards,
Petya
Telerik
0
R
Top achievements
Rank 1
answered on 21 Aug 2018, 07:15 AM

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.

 

0
Peter Milchev
Telerik team
answered on 23 Aug 2018, 09:07 AM
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.

Regards,
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.
Tags
PdfProcessing
Asked by
Troy Clemons
Top achievements
Rank 1
Answers by
Petya
Telerik team
R
Top achievements
Rank 1
Peter Milchev
Telerik team
Share this question
or