• 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
  • Liutauras Vilda
  • Tim Cooke
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Devaka Cooray
  • Ron McLeod
  • paul wheaton
Saloon Keepers:
  • Tim Moores
  • Piet Souris
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Frits Walraven
  • Scott Selikoff

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.
 
Eat that pie! EAT IT! Now read this tiny ad. READ IT!
the value of filler advertising in 2021
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic