• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Junilu Lacar
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Knute Snortum
  • Tim Cooke
  • Devaka Cooray
Saloon Keepers:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Ganesh Patekar

Looking for Java API for PDF generation

 
Ranch Hand
Posts: 472
Objective C Ubuntu Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Rancher
Posts: 43011
76
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
D Rog
Ranch Hand
Posts: 472
Objective C Ubuntu Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
Author
Posts: 3443
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ]
 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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...
 
Ulf Dittmer
Rancher
Posts: 43011
76
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

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.
 
The moth suit and wings road is much more exciting than taxes. Or this tiny ad:
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!