This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

XML to PDF in command line

 
Robert Jaeger
Ranch Hand
Posts: 62
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi!
I already used Cocoon to convert XML to PDF on the fly with XSL (FOP) on web pages.
Now I am searching for a way to do the same, but on a client in the command line.
It would be necessary to create PDF using ...
a) one XML-source to create one PDF-file
b) one XML-source and different XSL-files to create multiple output (PDF)
c) multiple XML-sources to create one or more PDF-files.
The technology should moreover be able to create PDF-files on a more sophisticated level, which means with table of contents, text-anchors, links, ...
Does anyone know a way how I can do that (maybe with the cocoon environment, XT by James Clark, ...)?
Of course I don�t expect vaste explanations, just one or two valuable links or tipps.
Hope someone can help me,
Robito.
P.S.: In the near future I will use XT to generate HTML from XML-sources.
 
Lasse Koskela
author
Sheriff
Posts: 11962
5
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Why not use the same FOP stylesheets and the FOP processor to generate the PDFs? I guess you'd only need to write a simple shell script and perhaps a simple "main" Java class to invoke the FOP processor.
 
Robert Jaeger
Ranch Hand
Posts: 62
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi!
Thanks, a good advice. That�s the way it goes.
Robito.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic