Converting HTML Report File to PDF appears blank using iTextPDF



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


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,


arronwall1 - 4 years 3 months ago

1 Answer:


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:


You will find the dcoumentation in the Web Services Guide:

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
Joined: Sep 13 2011 - 8:04am
Last seen: 1 year 1 month ago