This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes XML and Related Technologies and the fly likes FOP vs. iText Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "FOP vs. iText" Watch "FOP vs. iText" New topic

FOP vs. iText

Velika Srbija
Ranch Hand

Joined: Jan 15, 2002
Posts: 172
Should I go with FOP or iText? Any expiriences?
Lasse Koskela

Joined: Jan 23, 2002
Posts: 11962
iText is probably easier to get started with, if you're familiar with Java. XSL-FO is rather complex...

Author of Test Driven (2007) and Effective Unit Testing (2013) [Blog] [HowToAskQuestionsOnJavaRanch]
Karthikeyan Rajendraprasad
Ranch Hand

Joined: Apr 16, 2003
Posts: 70
Go for itext..

Karthikeyan<br />SCJP 1.4, SCWCD.
William Brogden
Author and all-around good cowpoke

Joined: Mar 22, 2000
Posts: 13000
I have been using FOP for the last month on a major project. In this project, XML data is rearranged to create PDF documents of 200 - 300 pages.

FOP is not a complete implementation of XSL-FO 1.0 - basic level. It is pretty complete but has holes that have tripped me up frequently. Fortunately there is a compliance document that says which features are done. There is also an active fop-users mailing list.

A cursory examination of the iText site didn't reveal any comparable list of compliance with the standard - if you find one, please post the location.

Incidently, Holman's book, "Definitive XSL-FO" is a great help, but if you get it, go to Kinkos and get it rebound in a lay-flat spiral binding because you will constantly be turning back and forth between the sections.
[ March 11, 2005: Message edited by: William Brogden ]
Velika Srbija
Ranch Hand

Joined: Jan 15, 2002
Posts: 172
Seems that FOP is better for building document templates, but I'll rather try iText. I have to prepare PDF document with images generated by servlets, so it seems that iText is a good solution.?
Jeanne Boyarsky
author & internet detective

Joined: May 26, 2003
Posts: 32481

Personally, I use iText. If you only need to render in PDF, I think iText is a good place to start. If you need different formats, or think you are likely to, FOP will make that job easier.

[OCA 8 book] [Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Other Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, TOGAF part 1 and part 2
Balaji Loganathan
author and deputy

Joined: Jul 13, 2001
Posts: 3150
Originally posted by Velika Srbija:
I have to prepare PDF document with images generated by servlets, so it seems that iText is a good solution.?

If you could explain more about where does the images comes from ? in what format?, what is the part of servlet here and so on... that would really help us to see further and make a choice between iText or fop.
sanmao yahoo

Joined: Mar 23, 2005
Posts: 2
If you are using simple PDF stuff like not tie in security and access-ablities issues, using FOP is not a bad choice. Might be following article can help a bit.
Have you checked out Aspose?
subject: FOP vs. iText
It's not a secret anymore!