wood burning stoves 2.0*
The moose likes Other Open Source Projects and the fly likes how to generate pdf file Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Products » Other Open Source Projects
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: 12
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
Karn Kumar
Ranch Hand

Joined: Aug 06, 2009
Posts: 145

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

Joined: Oct 26, 2010
Posts: 199
    
    1

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: 2408
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: 199
    
    1

PDFBox is not particularly useful for creating arbitrary PDFs


what do you mean by that?
Tim Moores
Rancher

Joined: Sep 21, 2011
Posts: 2408
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: 199
    
    1

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