]> git.ipfire.org Git - thirdparty/cups.git/blob - doc/help/man-cupstestppd.html
Save work.
[thirdparty/cups.git] / doc / help / man-cupstestppd.html
1 <!DOCTYPE HTML>
2 <html>
3 <!-- SECTION: Man Pages -->
4 <head>
5 <link rel="stylesheet" type="text/css" href="../cups-printable.css">
6 <title>cupstestppd(1)</title>
7 </head>
8 <body>
9 <h1 class="title">cupstestppd(1)</h1>
10 <h2 class="title"><a name="NAME">Name</a></h2>
11 cupstestppd - test conformance of ppd files
12 <h2 class="title"><a name="SYNOPSIS">Synopsis</a></h2>
13 <b>cupstestppd</b>
14 [ -I
15 <i>category</i>
16 ] [ -R
17 <i>rootdir</i>
18 ] [ -W
19 <i>category</i>
20 ] [ -q ] [-r] [ -v[v] ] filename.ppd[.gz] [ ... filenameN.ppd[.gz] ]
21 <br>
22 <b>cupstestppd</b>
23 [ -R
24 <i>rootdir</i>
25 ] [ -W
26 <i>category</i>
27 ] [ -q ] [-r] [ -v[v] ] -
28 <h2 class="title"><a name="DESCRIPTION">Description</a></h2>
29 <i>cupstestppd</i> tests the conformance of PPD files to the
30 Adobe PostScript Printer Description file format specification
31 version 4.3. It can also be used to list the supported options
32 and available fonts in a PPD file. The results of testing and
33 any other output are sent to the standard output.
34 <p>The first form of <i>cupstestppd</i> tests one or more PPD files
35 on the command-line. The second form tests the PPD file provided
36 on the standard input.
37 <h2 class="title"><a name="OPTIONS">Options</a></h2>
38 <i>cupstestppd</i> supports the following options:
39 <dl class="man">
40 <dt>-I filename
41 <dd style="margin-left: 5.0em"><br>
42 Ignores all PCFileName warnings.
43 <dt>-I filters
44 <dd style="margin-left: 5.0em"><br>
45 Ignores all filter errors.
46 <dt>-I profiles
47 <dd style="margin-left: 5.0em"><br>
48 Ignores all profile errors.
49 <dt>-R rootdir
50 <dd style="margin-left: 5.0em"><br>
51 Specifies an alternate root directory for the filter, pre-filter,
52 and other support file checks.
53 <dt>-W constraints
54 <dd style="margin-left: 5.0em"><br>
55 Report all UIConstraint errors as warnings.
56 <dt>-W defaults
57 <dd style="margin-left: 5.0em"><br>
58 Except for size-related options, report all default option errors as warnings.
59 <dt>-W filters
60 <dd style="margin-left: 5.0em"><br>
61 Report all filter errors as warnings.
62 <dt>-W profiles
63 <dd style="margin-left: 5.0em"><br>
64 Report all profile errors as warnings.
65 <dt>-W sizes
66 <dd style="margin-left: 5.0em"><br>
67 Report all media size errors as warnings.
68 <dt>-W translations
69 <dd style="margin-left: 5.0em"><br>
70 Report all translation errors as warnings.
71 <dt>-W all
72 <dd style="margin-left: 5.0em"><br>
73 Report all of the previous errors as warnings.
74 <dt>-W none
75 <dd style="margin-left: 5.0em"><br>
76 Report all of the previous errors as errors.
77 <dt>-q
78 <dd style="margin-left: 5.0em"><br>
79 Specifies that no information should be displayed.
80 <dt>-r
81 <dd style="margin-left: 5.0em"><br>
82 Relaxes the PPD conformance requirements so that common
83 whitespace, control character, and formatting problems are not
84 treated as hard errors.
85 <dt>-v
86 <dd style="margin-left: 5.0em"><br>
87 Specifies that detailed conformance testing results should be
88 displayed rather than the concise PASS/FAIL/ERROR status.
89 <dt>-vv
90 <dd style="margin-left: 5.0em"><br>
91 Specifies that all information in the PPD file should be
92 displayed in addition to the detailed conformance testing
93 results.
94 </dl>
95 <p>The <i>-q</i>, <i>-v</i>, and <i>-vv</i> options are mutually exclusive.
96 <h2 class="title"><a name="EXIT_STATUS">Exit Status</a></h2>
97 <i>cupstestppd</i> returns zero on success and non-zero on error. The
98 error codes are as follows:
99 <dl class="man">
100 <dt>1
101 <dd style="margin-left: 5.0em"><br>
102 Bad command-line arguments or missing PPD filename.
103 <dt>2
104 <dd style="margin-left: 5.0em"><br>
105 Unable to open or read PPD file.
106 <dt>3
107 <dd style="margin-left: 5.0em"><br>
108 The PPD file contains format errors that cannot be skipped.
109 <dt>4
110 <dd style="margin-left: 5.0em"><br>
111 The PPD file does not conform to the Adobe PPD specification.
112 </dl>
113 <h2 class="title"><a name="EXAMPLES">Examples</a></h2>
114 The following command will test all PPD files under the current
115 directory and print the names of each file that does not
116 conform:
117 <pre class="man">
118
119 find . -name \*.ppd \! -exec cupstestppd -q '{}' \; -print
120
121 </pre>
122 The next command tests all PPD files under the current directory
123 and print detailed conformance testing results for the files
124 that do not conform:
125 <pre class="man">
126
127 find . -name \*.ppd \! -exec cupstestppd -q '{}' \; \
128 -exec cupstestppd -v '{}' \;
129
130 </pre>
131 <h2 class="title"><a name="SEE_ALSO">See Also</a></h2>
132 <i>lpadmin(8)</i>,
133 <br>
134 <a href="http://localhost:631/help">http://localhost:631/help</a>
135 <br>
136 Adobe PostScript Printer Description File Format Specification, Version 4.3.
137 <h2 class="title"><a name="COPYRIGHT">Copyright</a></h2>
138 Copyright 2007-2013 by Apple Inc.
139
140 </body>
141 </html>