wood burning stoves
The moose likes Struts and the fly likes how to save a webpage with struts code as pdf in java? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Elasticsearch in Action this week in the Big Data forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "how to save a webpage with struts code as pdf in java?" Watch "how to save a webpage with struts code as pdf in java?" New topic
Author

how to save a webpage with struts code as pdf in java?

andi smith
Greenhorn

Joined: Aug 10, 2011
Posts: 2
I have a page that built with JSP, struts and jQuery that its data come after page loading.

I want to save the page as PDF-file with all contents and the same format with a button click. I can convert HTML to PDF and if I can save the page with all contents, I can convert to PDF.

The users can load the page with any browser and I want sth to act in all browsers.

How to save a page with this properties as pdf?
Joe Ess
Bartender

Joined: Oct 29, 2001
Posts: 9045
    
    9

We do a PDF export by saving the page completely (you have to download resources in the page, like linked CSS files and images separately and change the original references in the HTML) then use OpenOffice to do the PDF conversion. I don't know if there's an easier way


[How To Ask Questions On JavaRanch]
Tarunz Kumarz
Greenhorn

Joined: Apr 16, 2012
Posts: 5
Please help how can i use this functionality a bit more easy way.
Also wish to know abot iText tool.
Joe Ess
Bartender

Joined: Oct 29, 2001
Posts: 9045
    
    9

As I said before, I don't know if there is an easier way. There are many examples in the OpenOffice forums.
iText has excellent support resources including documentation and a mailing list.
 
I agree. Here's the link: http://kickstarter.com/rocket-mass-heater
 
subject: how to save a webpage with struts code as pdf in java?