• 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:
  • Tim Cooke
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Liutauras Vilda
Sheriffs:
  • Rob Spoor
  • Junilu Lacar
  • paul wheaton
Saloon Keepers:
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Carey Brown
  • Scott Selikoff
Bartenders:
  • Piet Souris
  • Jj Roberts
  • fred rosenberger

Writing PDF files in Java

 
Ranch Hand
Posts: 134
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi All,
Sorry for double posting this thread but I figured it would be more appropriate in this category.
I was wondering if someone might be able to point me in the right direction. I need to generate PDF files from XML. These PDF files are format intensive. Does anyone know of what API I should use to achieve this. I was also wondering if anyone has used a program to take a PDF file and transform it to a Formated Object(FO) since this would save me a ton of time not writing my own style sheet myself. I'm guessing I'm going to want to use an XSL-FO style sheet to transform my xml to a PDF document.
Any help would be appreciated.
Cheers
Ryan
 
author
Posts: 11962
5
 
Ryan Bailey
Ranch Hand
Posts: 134
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Lasse,
Thanks for the quick response. I have already looked at 3/4 of the list you provided. Have you ever used any of these libs before? Would it be easier to use XSL-FO? Do you know of any software that is available to generate a FO out of a PDF file?
Regards,
Ryan
 
Lasse Koskela
author
Posts: 11962
5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have tried iText and Retep some two years ago, I think. iText was OK, if I remember correctly. I didn't manage to get Retep working correctly due to some environment conflicts (I was developing on a remote Linux box with not-quite-the-latest JDK version etc).
 
Lasse Koskela
author
Posts: 11962
5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Oh, forgot the XSL-FO part...
Yes, I think it would be "easier" to generate XSL-FO docs and let the Apache FOP component blurt out the corresponding PDF files. By "easier" I mean that you don't need to be afraid of your PDF library vendor going out of business etc. because your code relies only on a W3C specification (XSL Formatting Objects). However, the XSL-FO approach carries a significant learning curve so from that point of view it's easier to use one of the non-standard Java APIs.
 
author and deputy
Posts: 3150
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Ryan Bailey:

Do you know of any software that is available to generate a FO out of a PDF file?
Regards,
Ryan


There is no such tool.
 
Ryan Bailey
Ranch Hand
Posts: 134
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Sure there are, XSLFast and Scriptura. Just found them yesterday.
[ July 24, 2003: Message edited by: Ryan Bailey ]
 
Balaji Loganathan
author and deputy
Posts: 3150
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Ryan Bailey:
Sure there are, XSLFast and Scriptura. Just found them yesterday.


Well then I understood your question in a different sense.
reply
    Bookmark Topic Watch Topic
  • New Topic