foomatic-ppd-to-xml man page

foomatic-ppd-to-xml — Generate Foomatic printer XML from a PPD


foomatic-ppd-to-xml Options [DRIVER:]PPD [[DRIVER:]PPD ...]

foomatic-ppd-to-xml -h


The first form of the foomatic-ppd-to-xml command creates Foomatic printer XML corresponding to a given PPD file.

If DRIVER is specified, it is the driver to which the PPD file should get assigned. If not supplied, the first driver in the driver list supplied via the -d option is used. Note that the PPD files have to be supplied to different drivers, so drivers need to be specified if using more than one PPD.

The second form prints a help message and exits.


Comma-separated list of drivers with which the printer works. First driver is the one for which the PPD file is. If not otherwise stated by the -r option, this is also the recommended driver. Drivers already specified together with PPDs do not need to be specified with this option again. The option is not needed if drivers are specified for all PPDs.
Recommended driver.
Comma-separated list of known Page Description Languages (PDLs) which the printer supports. This will add all suitable drivers to the XML entry. Currently supported are: Postscript, PCLXL, PCL6, PCL5e, PCL5c, PCL5, and PCL4.
Add a link to the PPD file to the driver entry in the XML file.
Base directory for a relative link to the PPD. If the base directory is given, the link set via the -l option is relative to this directory (and not relative to the current directory). With a base directory given the PPD can also be given relative to this directory.
Add only the driver requested by -d and -r to the driver list in the XML file, do not add drivers based on PDLs, not even on the PDLs supplied by the -p option.
Add the given comment to the comment field of the XML file. Comments are in HTML.
Suppress any default comments (max paper width, pages per minute, automatically generated XML, ...). Does not suppress the comment supplied with -c.
Directory in which to write the resulting XML file. The name of the file will be the printer ID with the ".xml" extension.
Do not write modified versions of existing XML files, only create XML files for printers for which there is no XML file yet.
Create XML files independent of whether or not there are already XML files for the printers covered by the PPD. This makes the process vastly faster if you have PPD files for printers which are definitely not yet in the Foomatic database.

Exit Status

foomatic-ppd-to-xml returns 0 on success, 1 otherwise.


None so far.

Please post bug reports on



Foomatic Project 2014-08-21