We help IT Professionals succeed at work.

Jasper report and HTML

6,777 Views
Last Modified: 2013-11-19
Hi experts,

I have a HTML code that is coming from the database of my application, it is rendering HTML tags in the PDF report. The HTML consists of valid tags. How to properly parse and export PDF report without HTML tags being displayed. At the same time HTML style should be maintained in PDF.

Thanks
hm
Comment
Watch Question

Hi

Try to use HTML with CSS 1.0.

In Acrobat Edit->Preference->Convert from pdf->HTML 3.2 or HTML 4.0

Check whether settings are correct if you are using acrobat to convert html to pdf

Anto

Author

Commented:
Anto,

I need to implement this functionality programmatically. Any pointers would be highly appreciated.

Thanks
HM

Author

Commented:
Hi,

I have found the solution using FlyingSaucer API for on the fly HTML to PDF conversion.

Thanks
HM
This one is on us!
(Get your first solution completely free - no credit card required)
UNLOCK SOLUTION
Unlock the solution to this question.
Join our community and discover your potential

Experts Exchange is the only place where you can interact directly with leading experts in the technology field. Become a member today and access the collective knowledge of thousands of technology experts.

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.