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