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 Looking for Java API for PDF generation Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Products » Other Open Source Projects
Reply Bookmark "Looking for Java API for PDF generation" Watch "Looking for Java API for PDF generation" New topic
Author

Looking for Java API for PDF generation

D Rog
Ranch Hand

Joined: Feb 07, 2004
Posts: 471
I use XSLT based API, I do not remember its name, but file extension is .fo. The library is good however it is outdated, so I'm wondering if somebody knows a better solution? Certainly open source is a must.


Get power of your iPod with MediaChest | Minimal J2EE container is here | Light weight full J2EE stack | My blog | Co-author of "Windows programming in Turbo Pascal"
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 35232
    
    7
You're probably talking about Apache FOP (which continues to be updated, so I wouldn't call it "outdated"). Other good libraries include iText and xhtmlrenderer. Which of these would be most appropriate depends on how you (need to) generate PDFs.


Android appsImageJ pluginsJava web charts
D Rog
Ranch Hand

Joined: Feb 07, 2004
Posts: 471
Thanks. I generate reports in PDF. Current approach is based on processing report XML template by some template engine, like Velocity and then process by XSLT. Does it make senese to choose some other library?
arulk pillai
Author
Ranch Hand

Joined: May 31, 2007
Posts: 3188
All depends on your requirements. Have a look at the following links. Some information might not be accurate (i.e. out dated).


http://itblackbelt.wordpress.com/2008/02/29/comparing-fop-and-jasperreports/


http://dev.eclipse.org/newslists/news.eclipse.birt/msg00678.html

http://www.netuality.ro/comparing-fop-and-jasperreports/tools/20040525
[ September 12, 2008: Message edited by: arulk pillai ]

Java Interview Questions and Answers Blog | Amazon.com profile | Java Interview Books
ashoksrinivasan babu
Greenhorn

Joined: Dec 13, 2008
Posts: 1
IText API is Consuming More Memory than Apache FOP. In case of Apache FOP, Designing the Template work is heavier task. Like Those Libraries, any open source libraries for generation of PDF documents without consuming more memory and less design work...


Thanks,<br />Ashok<br />We Have To Make It Happen
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 35232
    
    7
IText API is Consuming More Memory than Apache FOP.

I doubt that, since FOP uses iText internally. If anything, it might use more because of all the XSL processing. But memory use is unlikely to be an important differentiator in this day and age.
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Looking for Java API for PDF generation
 
Similar Threads
how to delete contents of sdcard?/
About System.out.print or System.out.println
Creating Tabs in JSP using xml file
web.xml parameters?
Thread