]>
Commit | Line | Data |
---|---|---|
ef416fc2 | 1 | .\" |
bf1bc4c6 | 2 | .\" cupstestppd man page for CUPS. |
ef416fc2 | 3 | .\" |
87030afb MS |
4 | .\" Copyright © 2007-2019 by Apple Inc. |
5 | .\" Copyright © 1997-2006 by Easy Software Products. | |
ef416fc2 | 6 | .\" |
87030afb MS |
7 | .\" Licensed under Apache License v2.0. See the file "LICENSE" for more |
8 | .\" information. | |
ef416fc2 | 9 | .\" |
87030afb | 10 | .TH cupstestppd 1 "CUPS" "26 April 2019" "Apple Inc." |
ef416fc2 | 11 | .SH NAME |
12 | cupstestppd \- test conformance of ppd files | |
13 | .SH SYNOPSIS | |
14 | .B cupstestppd | |
bf1bc4c6 MS |
15 | [ |
16 | .B \-I | |
b226ab99 | 17 | .I category |
bf1bc4c6 MS |
18 | ] [ |
19 | .B \-R | |
b94498cf | 20 | .I rootdir |
bf1bc4c6 MS |
21 | ] [ |
22 | .B \-W | |
b94498cf | 23 | .I category |
bf1bc4c6 MS |
24 | ] [ |
25 | .B \-q | |
26 | ] [ | |
27 | .B \-r | |
28 | ] [ | |
29 | \fB\-v\fR[\fBv\fR] | |
30 | ] | |
31 | .I filename.ppd[.gz] | |
32 | [ ... | |
33 | .I filename.ppd[.gz] | |
34 | ] | |
ef416fc2 | 35 | .br |
36 | .B cupstestppd | |
bf1bc4c6 MS |
37 | [ |
38 | .B \-R | |
b94498cf | 39 | .I rootdir |
bf1bc4c6 MS |
40 | ] [ |
41 | .B \-W | |
b94498cf | 42 | .I category |
bf1bc4c6 MS |
43 | ] [ |
44 | .B \-q | |
45 | ] [ | |
46 | .B \-r | |
47 | ] [ | |
48 | \fB\-v\fR[\fBv\fR] | |
49 | ] | |
50 | .B \- | |
ef416fc2 | 51 | .SH DESCRIPTION |
bf1bc4c6 MS |
52 | \fBcupstestppd\fR tests the conformance of PPD files to the Adobe PostScript Printer Description file format specification version 4.3. |
53 | It can also be used to list the supported options and available fonts in a PPD file. | |
54 | The results of testing and any other output are sent to the standard output. | |
ef416fc2 | 55 | .LP |
bf1bc4c6 MS |
56 | The first form of \fBcupstestppd\fR tests one or more PPD files on the command-line. |
57 | The second form tests the PPD file provided on the standard input. | |
bd7854cb | 58 | .SH OPTIONS |
bf1bc4c6 | 59 | \fBcupstestppd\fR supports the following options: |
bd7854cb | 60 | .TP 5 |
bf1bc4c6 | 61 | \fB\-I filename\fR |
ef55b745 MS |
62 | Ignores all PCFileName warnings. |
63 | .TP 5 | |
bf1bc4c6 | 64 | \fB\-I filters\fR |
b226ab99 MS |
65 | Ignores all filter errors. |
66 | .TP 5 | |
bf1bc4c6 | 67 | \fB\-I profiles\fR |
b226ab99 MS |
68 | Ignores all profile errors. |
69 | .TP 5 | |
bf1bc4c6 MS |
70 | \fB\-R \fIrootdir\fR |
71 | Specifies an alternate root directory for the filter, pre-filter, and other support file checks. | |
b94498cf | 72 | .TP 5 |
bf1bc4c6 | 73 | \fB\-W constraints\fR |
b94498cf | 74 | Report all UIConstraint errors as warnings. |
75 | .TP 5 | |
bf1bc4c6 | 76 | \fB\-W defaults\fR |
b94498cf | 77 | Except for size-related options, report all default option errors as warnings. |
78 | .TP 5 | |
bf1bc4c6 | 79 | \fB\-W filters\fR |
b94498cf | 80 | Report all filter errors as warnings. |
81 | .TP 5 | |
bf1bc4c6 | 82 | \fB\-W profiles\fR |
a603edef MS |
83 | Report all profile errors as warnings. |
84 | .TP 5 | |
bf1bc4c6 | 85 | \fB\-W sizes\fR |
1340db2d MS |
86 | Report all media size errors as warnings. |
87 | .TP 5 | |
bf1bc4c6 | 88 | \fB\-W translations\fR |
b94498cf | 89 | Report all translation errors as warnings. |
90 | .TP 5 | |
bf1bc4c6 | 91 | \fB\-W all\fR |
b94498cf | 92 | Report all of the previous errors as warnings. |
93 | .TP 5 | |
bf1bc4c6 | 94 | \fB\-W none\fR |
b94498cf | 95 | Report all of the previous errors as errors. |
96 | .TP 5 | |
bf1bc4c6 | 97 | .B \-q |
bd7854cb | 98 | Specifies that no information should be displayed. |
99 | .TP 5 | |
bf1bc4c6 MS |
100 | .B \-r |
101 | Relaxes the PPD conformance requirements so that common whitespace, control character, and formatting problems are not treated as hard errors. | |
bd7854cb | 102 | .TP 5 |
bf1bc4c6 MS |
103 | .B \-v |
104 | Specifies that detailed conformance testing results should be displayed rather than the concise PASS/FAIL/ERROR status. | |
bd7854cb | 105 | .TP 5 |
bf1bc4c6 MS |
106 | .B \-vv |
107 | Specifies that all information in the PPD file should be displayed in addition to the detailed conformance testing results. | |
ef416fc2 | 108 | .LP |
109 | The \fI-q\fR, \fI-v\fR, and \fI-vv\fR options are mutually exclusive. | |
110 | .SH EXIT STATUS | |
bf1bc4c6 MS |
111 | \fBcupstestppd\fR returns zero on success and non-zero on error. |
112 | The error codes are as follows: | |
ef416fc2 | 113 | .TP 5 |
114 | 1 | |
ef416fc2 | 115 | Bad command-line arguments or missing PPD filename. |
116 | .TP 5 | |
117 | 2 | |
ef416fc2 | 118 | Unable to open or read PPD file. |
119 | .TP 5 | |
120 | 3 | |
ef416fc2 | 121 | The PPD file contains format errors that cannot be skipped. |
122 | .TP 5 | |
123 | 4 | |
ef416fc2 | 124 | The PPD file does not conform to the Adobe PPD specification. |
125 | .SH EXAMPLES | |
bf1bc4c6 | 126 | The following command will test all PPD files under the current directory and print the names of each file that does not conform: |
ef416fc2 | 127 | .nf |
128 | ||
bf1bc4c6 | 129 | find . \-name \\*.ppd \\! \-exec cupstestppd \-q '{}' \\; \-print |
ef416fc2 | 130 | |
131 | .fi | |
bf1bc4c6 | 132 | The next command tests all PPD files under the current directory and print detailed conformance testing results for the files that do not conform: |
ef416fc2 | 133 | .nf |
134 | ||
bf1bc4c6 MS |
135 | find . \-name \\*.ppd \\! \-exec cupstestppd \-q '{}' \\; \\ |
136 | \-exec cupstestppd \-v '{}' \\; | |
ef416fc2 | 137 | .fi |
87030afb MS |
138 | .SH NOTES |
139 | PPD files are deprecated and will no longer be supported in a future feature release of CUPS. | |
140 | Printers that do not support IPP can be supported using applications such as | |
141 | .BR ippeveprinter (1). | |
ef416fc2 | 142 | .SH SEE ALSO |
bf1bc4c6 MS |
143 | .BR lpadmin (8), |
144 | CUPS Online Help (http://localhost:631/help), | |
ef416fc2 | 145 | Adobe PostScript Printer Description File Format Specification, Version 4.3. |
146 | .SH COPYRIGHT | |
87030afb | 147 | Copyright \[co] 2007-2019 by Apple Inc. |