[Wylug-discuss] xml -> pcl

ALLEN, David David.ALLEN at eur.crowncork.com
Thu Dec 18 16:11:47 GMT 2003


Thanks. Has anyone had any success using xmlto? It sounds just what we
require, but obviously I don't wish to spent hours bug fixing!

Cheers,

David

-----Original Message-----
From: Roger Leigh [mailto:roger at whinlatter.uklinux.net]
Sent: Tuesday, December 16, 2003 9:13 PM
To: ALLEN, David
Cc: wylug-discuss at wylug.org.uk
Subject: Re: [Wylug-discuss] xml -> pcl


"ALLEN, David" <David.ALLEN at eur.crowncork.com> writes:

> Does anyone know of a open source product which will create a pcl or
> postscript file from an xml file and associated schema "style" sheets.

To convert from DocBook to PostScript:

xmlto [stylesheet] ps mydoc.xml

(or use xsltproc directly, or use db2ps from docbook-utils).  Also
have a look at xmlroff.


<plug>
To convert from PostScript or PDF to PCL:

gs -sDEVICE=ijs -sIjsServer=/usr/bin/ijsgimpprint
-sDeviceManufacturer=HEWLETT-PACKARD -sDeviceModel=pcl-4
-sOutputFile=/tmp/mydoc.pcl mydoc.ps

See ijsgimpprint(1), gimpprint-models(7).
</plug>


If you want "nicer" i.e. non-raster PCL, then you could convert the
XML to DVI, and then use dvilj to get PCL (or convert to roff, and
then use groff -Tlj4).  Basically, there are multiple ways to get from
XML to PS or PCL--see which you prefer.


Regards,
Roger

--
Roger Leigh

                Printing on GNU/Linux?  http://gimp-print.sourceforge.net/
                GPG Public Key: 0x25BFB848.  Please sign and encrypt your
mail.



CONFIDENTIALITY NOTICE
The information contained in this e-mail is intended only for the
confidential use of the above named recipient. If you are not the intended
recipient or person responsible for delivering it to the intended recipient,
you have received this communication in error and must not distribute or
copy it.  Please accept the sender's apologies, notify the sender
immediately by return e-mail and delete this communication.  Thank you.




More information about the Wylug-discuss mailing list