File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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 EJB 3 in Action this week in the EJB and other Java EE Technologies 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: 8708
    
    6

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


"blabbing like a narcissistic fool with a superiority complex" ~ N.A.
[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: 8708
    
    6

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://aspose.com/file-tools
 
subject: how to save a webpage with struts code as pdf in java?
 
Similar Threads
Display pdf file as individual pages
sending pdf files to IBM MQ
Convert PDF into HTML
how to save a jsp page as pdf in java?
Convert HTML page to PDF..