[Html2PdfConverter] HTML to PDF width HTML5 charts 

[Html2PdfConverter] HTML to PDF width HTML5 charts 

  
Forge Component
(38)
Published on 24 Mar by Guilherme Pereira
38 votes
Published on 24 Mar by Guilherme Pereira
Hello everyone. 
Platform Charts (HTML 5) are not displayed in the PDF generated by extension. 
Anyone know how to solve this situation?

Hi.

Same problem. 

Generating charts with highcharts module, trying to export whole page to pdf with extension, but the charts aren't shown in the generated pdf file.

Would appreciate some help on the matter.


Thanks.

 

Hello Bruno,

Html2Pdf uses wkhtmltopdf to render the PDFs and it doesn't work very well with SVG formats (created by HighCharts graphics).

Have you tried other options? PhantomJS perhaps?

Hi,


Tried to convert the svg to other format, e.g. png, and add it to the html, using Javascript, but to no avail. 

Can't use the external phantom js on this project either. 


Thanks anyway. 

João Heleno wrote:

Hello Bruno,

Html2Pdf uses wkhtmltopdf to render the PDFs and it doesn't work very well with SVG formats (created by HighCharts graphics).

Have you tried other options? PhantomJS perhaps?

Got it to work with the example in this thread:

http://www.outsystems.com/forums/discussion/10938/export-charts-8-0-to-pdf-with-sample/


Thanks.