File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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 Spring in Action this week in the Spring 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: 146

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

Joined: Oct 26, 2010
Posts: 200
    
    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: 200
    
    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: 200
    
    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