• 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

XML to PDF in command line

 
Ranch Hand
Posts: 62
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
author
Posts: 11962
5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi!
Thanks, a good advice. That�s the way it goes.
Robito.
 
I child proofed my house but they still get in. Distract them with this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic