Converting HTML Report File to PDF appears blank using iTextPDF

0

Hi;

I am using jasper server rest api to export report as html. I managed to export the report write it to html file and then reading html file to convert it to pdf using iTextpdf and xmlworker. But at the end my PDF report appears blank where as the output is coming correct in HTML.

 

Please help it's urgent

mariumrafay's picture
Joined: May 27 2015 - 6:04am
Last seen: 4 years 5 months ago

Hi,

I wonder whether you have worked it out. And I have only tried to convert PDF with the help of some 3rd party toolkits. When it comes to PDF conversion process, I have another question for you. I wonder have you ever tried to convert PDF to image files before? I am testing the related PDF to JPG converting, PDF to PNG converting, and PDF to BMP converting programs these days. Do you have experience about it?  Any suggestion will be appreciated. Thanks in advance.

 

 

 

Best regards,

Arron

arronwall1 - 4 years 3 months ago

1 Answer:

0

You can use the JasperServer REST API to export direcly in PDF so no need to use any other things; you do it with a GET call  like:

http://<host>:<port>/jasperserver[-pro]/rest_v2/reports/path/to/report.pdf?<arguments>

You will find the dcoumentation in the Web Services Guide: http://community.jaspersoft.com/documentation/tibco-jasperreports-server...

To your particular question; looks like the problem you have is in itext and xmlworker, since as you said the HTML comes correct. 

marianol's picture
4788
Joined: Sep 13 2011 - 8:04am
Last seen: 1 year 1 month ago
Feedback