wood burning stoves 2.0*
The moose likes Other Open Source Projects and the fly likes How to save a webpage as PDF ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Products » Other Open Source Projects
Bookmark "How to save a webpage as PDF ?" Watch "How to save a webpage as PDF ?" New topic
Author

How to save a webpage as PDF ?

Anoop Nair
Ranch Hand

Joined: Oct 29, 2008
Posts: 70
Hi All,

I have a webpage in which there is a "Save" button, which is supposed to save the entire page in PDF format.
The webpage has images, text and also CSS.

I tried using flying saucer and iText. However when using this, the background images (done via CSS) are not coming in the PDF file.

Below is the code I am using. Is there a better way to do this where the entire page can directly be converted to PDF format.



 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to save a webpage as PDF ?
 
Similar Threads
PDF creation using iTEXT
flying saucer not converting cellspacing html property properly into pdf
flying saucer not identifying   of html
Rendering PDF in browser using Flying Saucer
Help Reading the contents of a jsp/html page