This content has been marked as final.
Show 2 replies
-
1. Re: Embedding the PDF generated by iText
nickarls Feb 21, 2008 8:19 AM (in response to josephhu)One page can only have one content type. You can have a HTML page and and PDF document on the same screen but then we are talking frames etc.
You might be able to generate dynamic navigation buttons inside the PDF but that sounds a little strange
You could even make the whole application a PDF ;-)
-
2. Re: Embedding the PDF generated by iText
damianharvey.damianharvey.gmail.com Feb 21, 2008 10:23 AM (in response to josephhu)I think you might be better off rendering the PDF as an image on the fly and displaying that image on your page rather than an actual PDF (which would be super ugly).
Sun have open sourced their PDF renderer to do this : https://pdf-renderer.dev.java.net/
Also have a look at the Flying Saucer renderer (more general purpose than Suns) : https://xhtmlrenderer.dev.java.net/
Cheers,
Damian.