• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Bear Bibeault
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Knute Snortum
  • Junilu Lacar
  • Devaka Cooray
Saloon Keepers:
  • Ganesh Patekar
  • Tim Moores
  • Carey Brown
  • Stephan van Hulst
  • salvin francis
Bartenders:
  • Ron McLeod
  • Frits Walraven
  • Pete Letkeman

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

 
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?
 
Bartender
Posts: 9526
12
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
 
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: 9526
12
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.
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!