• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Looking for Java API for PDF generation

 
Ranch Hand
Posts: 472
Objective C Ubuntu Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 3473
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic