Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
The moose likes Other Open Source Projects and the fly likes how to generate pdf file Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Products » Other Open Source Projects
Reply Bookmark "how to generate pdf file" Watch "how to generate pdf file" New topic
Author

how to generate pdf file

yogesh m gaikwad
Greenhorn

Joined: Dec 28, 2011
Posts: 11
sir,
i have a jsp page.
and on same page when i am click on submit,
the same page pdf format will be generated for printing purpose...
i am waiting
Chetan Dorle
Ranch Hand

Joined: Aug 06, 2009
Posts: 128

Can you elaborate your problem and what needs to happen ?
Sai Hegde
security forum advocate
Ranch Hand

Joined: Oct 26, 2010
Posts: 183

There are many Open source packages that can be used for dynamic pdf generation in java viz. itext, fop, pdfbox.
Tim Moores
Rancher

Joined: Sep 21, 2011
Posts: 2407
PDFBox is not particularly useful for creating arbitrary PDFs; iText is, but it would be a lot of effort to use its API to create PDFs mirroring arbitrary HTML pages. If you're creating CSS-styled XHTML, then the FlyingSaucer library might fit the bill.
Sai Hegde
security forum advocate
Ranch Hand

Joined: Oct 26, 2010
Posts: 183

PDFBox is not particularly useful for creating arbitrary PDFs


what do you mean by that?
Tim Moores
Rancher

Joined: Sep 21, 2011
Posts: 2407
PDFBox's API makes it very hard to create PDF files that correspond to arbitrary HTML files, because it does not have high-level APIs for various HTML constructs, like tables. That would make it very hard to use for this.
Sai Hegde
security forum advocate
Ranch Hand

Joined: Oct 26, 2010
Posts: 183

oh okay, I agree... There would be a coding effort involved to get it done using pdfBox
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: how to generate pdf file
 
Similar Threads
How to make PDF render to handle HTML specific?
doubt in domain relationship
Return a pdf and refresh the calling page
itext PDF problem with radio button
JasperReport with iReport Issue. Please help.