[Wylug-discuss] xml -> pcl

Roger Leigh roger at whinlatter.uklinux.net
Tue Dec 16 21:13:02 GMT 2003


"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.




More information about the Wylug-discuss mailing list