2 .\" cupstestppd man page for CUPS.
4 .\" Copyright 2007-2014 by Apple Inc.
5 .\" Copyright 1997-2006 by Easy Software Products.
7 .\" Licensed under Apache License v2.0. See the file "LICENSE" for more information.
9 .TH cupstestppd 1 "CUPS" "11 June 2014" "Apple Inc."
11 cupstestppd \- test conformance of ppd files
51 \fBcupstestppd\fR tests the conformance of PPD files to the Adobe PostScript Printer Description file format specification version 4.3.
52 It can also be used to list the supported options and available fonts in a PPD file.
53 The results of testing and any other output are sent to the standard output.
55 The first form of \fBcupstestppd\fR tests one or more PPD files on the command-line.
56 The second form tests the PPD file provided on the standard input.
58 \fBcupstestppd\fR supports the following options:
61 Ignores all PCFileName warnings.
64 Ignores all filter errors.
67 Ignores all profile errors.
70 Specifies an alternate root directory for the filter, pre-filter, and other support file checks.
73 Report all UIConstraint errors as warnings.
76 Except for size-related options, report all default option errors as warnings.
79 Report all filter errors as warnings.
82 Report all profile errors as warnings.
85 Report all media size errors as warnings.
87 \fB\-W translations\fR
88 Report all translation errors as warnings.
91 Report all of the previous errors as warnings.
94 Report all of the previous errors as errors.
97 Specifies that no information should be displayed.
100 Relaxes the PPD conformance requirements so that common whitespace, control character, and formatting problems are not treated as hard errors.
103 Specifies that detailed conformance testing results should be displayed rather than the concise PASS/FAIL/ERROR status.
106 Specifies that all information in the PPD file should be displayed in addition to the detailed conformance testing results.
108 The \fI-q\fR, \fI-v\fR, and \fI-vv\fR options are mutually exclusive.
110 \fBcupstestppd\fR returns zero on success and non-zero on error.
111 The error codes are as follows:
114 Bad command-line arguments or missing PPD filename.
117 Unable to open or read PPD file.
120 The PPD file contains format errors that cannot be skipped.
123 The PPD file does not conform to the Adobe PPD specification.
125 The following command will test all PPD files under the current directory and print the names of each file that does not conform:
128 find . \-name \\*.ppd \\! \-exec cupstestppd \-q '{}' \\; \-print
131 The next command tests all PPD files under the current directory and print detailed conformance testing results for the files that do not conform:
134 find . \-name \\*.ppd \\! \-exec cupstestppd \-q '{}' \\; \\
135 \-exec cupstestppd \-v '{}' \\;
139 CUPS Online Help (http://localhost:631/help),
140 Adobe PostScript Printer Description File Format Specification, Version 4.3.
142 Copyright \[co] 2007-2018 by Apple Inc.