[plain text]

.\" "$Id:,v 2005/01/04 19:16:06 jlovell Exp $"
.\"   cupstestppd man page for the Common UNIX Printing System (CUPS).
.\"   Copyright 1997-2005 by Easy Software Products.
.\"   These coded instructions, statements, and computer programs are the
.\"   property of Easy Software Products and are protected by Federal
.\"   copyright law.  Distribution and use rights are outlined in the file
.\"   "LICENSE.txt" which should have been included with this file.  If this
.\"   file is missing or damaged please contact Easy Software Products
.\"   at:
.\"       Attn: CUPS Licensing Information
.\"       Easy Software Products
.\"       44141 Airport View Drive, Suite 204
.\"       Hollywood, Maryland 20636 USA
.\"       Voice: (301) 373-9600
.\"       EMail:
.\"         WWW:
.TH cupstestppd 1 "Common UNIX Printing System" "1 August 2003" "Easy Software Products"
cupstestppd \- test conformance of ppd files
.B cupstestppd
[ -q ] [-r] [ -v[v] ] filename.ppd[.gz] [ ... filenameN.ppd[.gz] ]
.B cupstestppd
[ -q ] [-r] [ -v[v] ] -
\fIcupstestppd\fR tests the conformance of PPD files to the
Adobe PostScript Printer Description file format specification
version 4.3. It can also be used to list the supported options
and available fonts in a PPD file. The results of testing and
any other output are sent to the standard output.
The first form of \fIcupstestppd\fR tests one or more PPD files
on the command-line. The second form tests the PPD file provided
on the standard input.
The \fI-q\fR option specifies that no information should be displayed.
The \fI-r\fR option relaxes the PPD conformance requirements so
that common whitespace, control character, and formatting
problems are not treated as hard errors.
The \fI-v\fR option specifies that detailed conformance testing
results should be displayed rather than the concise PASS/FAIL/ERROR
The \fI-vv\fR option specifies that all information in the PPD
file should be displayed in addition to the detailed conformance
testing results.
The \fI-q\fR, \fI-v\fR, and \fI-vv\fR options are mutually exclusive.
\fIcupstestppd\fR returns zero on success and non-zero on error. The
error codes are as follows:
.TP 5
Bad command-line arguments or missing PPD filename.
.TP 5
Unable to open or read PPD file.
.TP 5
The PPD file contains format errors that cannot be skipped.
.TP 5
The PPD file does not conform to the Adobe PPD specification.
The following command will test all PPD files under the current
directory and print the names of each file that does not

    find . -name \\*.ppd \\! -exec cupstestppd -q '{}' \\; -print

The next command tests all PPD files under the current directory
and print detailed conformance testing results for the files
that do not conform:

    find . -name \\*.ppd \\! -exec cupstestppd -q '{}' \\; \\
        -exec cupstestppd -v '{}' \\;

CUPS Software Administrators Manual,
CUPS Software Programmers Manual,
Adobe PostScript Printer Description File Format Specification, Version 4.3.
Copyright 1993-2005 by Easy Software Products, All Rights Reserved.
.\" End of "$Id:,v 2005/01/04 19:16:06 jlovell Exp $".