-
1. Re: Any plans for iText HTML 2 PDF?
wesleyhales Jul 16, 2007 9:58 AM (in response to wesleyhales)Maybe we should render the HTML content and print it to a graphics context provided by iText. The iText library then would convert the UIDocument's draw operations to a PDF document.
I noticed a JPEG option in the source which isn't documented... What is it for? -
2. Re: Any plans for iText HTML 2 PDF?
norman.richards Jul 16, 2007 11:15 AM (in response to wesleyhales)I haven't tried it, but this looks like an interesting approach:
http://today.java.net/pub/a/today/2006/10/31/combine-facelets-and-flying-saucer-renderer.html -
3. Re: Any plans for iText HTML 2 PDF?
wesleyhales Jul 16, 2007 1:06 PM (in response to wesleyhales)Awesome! - I forgot all about this article - I will give it a try and let you know.
-
4. Re: Any plans for iText HTML 2 PDF?
wesleyhales Jul 16, 2007 5:29 PM (in response to wesleyhales)I got everything working with Flying Saucer xhtmlrenderer. It actually works better than PD4ML which was purchased by my company a few projects ago.
The only bad thing is the hidden input non-xhtml-compliant jsf tags - and trinidad's inline javascript. I used jtidy on the InputStream which fixed all issues but the inline js (from the Trinidad charting component).
Should this be in jira for a html2pdf feature?