• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
andi smith
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 9337
10
Linux Mac OS X Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Tarunz Kumarz
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please help how can i use this functionality a bit more easy way.
Also wish to know abot iText tool.
 
Joe Ess
Bartender
Posts: 9337
10
Linux Mac OS X Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic