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
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: 4
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: 80

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

Joined: Oct 26, 2010
Posts: 167

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: 2329
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: 167

PDFBox is not particularly useful for creating arbitrary PDFs


what do you mean by that?
Tim Moores
Rancher

Joined: Sep 21, 2011
Posts: 2329
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: 167

oh okay, I agree... There would be a coding effort involved to get it done using pdfBox
 
 
subject: how to generate pdf file
 
Threads others viewed
Return a pdf and refresh the calling page
How to make PDF render to handle HTML specific?
itext PDF problem with radio button
doubt in domain relationship
JasperReport with iReport Issue. Please help.
IntelliJ Java IDE