[Html2PdfConverter] HTML To pdf - Fails to convert from svg to pdf

Forge Component
(58)
Published on 2018-10-30 by Guilherme Pereira
58 votes
Published on 2018-10-30 by Guilherme Pereira

Hello,


Soo im having trouble trying to convert the bar chart (which is made of the svg element) to pdf, it appears blank without any chart. Any ideas?


Thanks

try to use BIRT Java API to generate Reports in PDF. 

you can learn more about this in: https://www.eclipse.org/birt/documentation/tutorial/

Nuno Gonçalo Pereira wrote:

try to use BIRT Java API to generate Reports in PDF. 

you can learn more about this in: https://www.eclipse.org/birt/documentation/tutorial/


Thanks for the help, but its not what im looking for. What im looking is basically a printscreen of the page and export it to pdf. Like if you want to print the webpage via browser.

Hi Vitor,


Take a look at this post that explains how to export charts to pdf (including an approach with this component).


Hope it helps

Guilherme

Solution

I managed to find the solution for my problem. It seems the barchart itself doesnt support the width " 12 col " on mobile and it was causing the barchart to disappear, changed to px and it worked.


Thanks for the help

Solution