aspose file tools*
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


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "FOP vs. iText" Watch "FOP vs. iText" New topic
Author

FOP vs. iText

Velika Srbija
Ranch Hand

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

Joined: Jan 23, 2002
Posts: 11962
    
    5
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
Rancher

Joined: Mar 22, 2000
Posts: 12806
    
    5
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.
Bill
[ 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
Marshal

Joined: May 26, 2003
Posts: 30764
    
156

Velika,
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.


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
Balaji Loganathan
author and deputy
Bartender

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
Greenhorn

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.

http://www-128.ibm.com/developerworks/library/x-ospdf
 
Don't get me started about those stupid light bulbs.
 
subject: FOP vs. iText