]>
Commit | Line | Data |
---|---|---|
ef416fc2 | 1 | .\" |
bc44d920 | 2 | .\" "$Id: cupstestppd.man 6649 2007-07-11 21:46:42Z mike $" |
ef416fc2 | 3 | .\" |
4 | .\" cupstestppd man page for the Common UNIX Printing System (CUPS). | |
5 | .\" | |
bc44d920 | 6 | .\" Copyright 2007 by Apple Inc. |
bd7854cb | 7 | .\" Copyright 1997-2006 by Easy Software Products. |
ef416fc2 | 8 | .\" |
9 | .\" These coded instructions, statements, and computer programs are the | |
bc44d920 | 10 | .\" property of Apple Inc. and are protected by Federal copyright |
11 | .\" law. Distribution and use rights are outlined in the file "LICENSE.txt" | |
12 | .\" which should have been included with this file. If this file is | |
13 | .\" file is missing or damaged, see the license at "http://www.cups.org/". | |
ef416fc2 | 14 | .\" |
bc44d920 | 15 | .TH cupstestppd 1 "Common UNIX Printing System" "3 May 2007" "Apple Inc." |
ef416fc2 | 16 | .SH NAME |
17 | cupstestppd \- test conformance of ppd files | |
18 | .SH SYNOPSIS | |
19 | .B cupstestppd | |
b94498cf | 20 | [ -R |
21 | .I rootdir | |
22 | ] [ -W | |
23 | .I category | |
24 | ] [ -q ] [-r] [ -v[v] ] filename.ppd[.gz] [ ... filenameN.ppd[.gz] ] | |
ef416fc2 | 25 | .br |
26 | .B cupstestppd | |
b94498cf | 27 | [ -R |
28 | .I rootdir | |
29 | ] [ -W | |
30 | .I category | |
31 | ] [ -q ] [-r] [ -v[v] ] - | |
ef416fc2 | 32 | .SH DESCRIPTION |
33 | \fIcupstestppd\fR tests the conformance of PPD files to the | |
34 | Adobe PostScript Printer Description file format specification | |
35 | version 4.3. It can also be used to list the supported options | |
36 | and available fonts in a PPD file. The results of testing and | |
37 | any other output are sent to the standard output. | |
38 | .LP | |
39 | The first form of \fIcupstestppd\fR tests one or more PPD files | |
40 | on the command-line. The second form tests the PPD file provided | |
41 | on the standard input. | |
bd7854cb | 42 | .SH OPTIONS |
43 | \fIcupstestppd\fR supports the following options: | |
44 | .TP 5 | |
b94498cf | 45 | -R rootdir |
46 | .br | |
47 | Specifies an alternate root directory for the filter, pre-filter, | |
48 | and other support file checks. | |
49 | .TP 5 | |
50 | -W constraints | |
51 | .br | |
52 | Report all UIConstraint errors as warnings. | |
53 | .TP 5 | |
54 | -W defaults | |
55 | .br | |
56 | Except for size-related options, report all default option errors as warnings. | |
57 | .TP 5 | |
58 | -W filters | |
59 | .br | |
60 | Report all filter errors as warnings. | |
61 | .TP 5 | |
62 | -W translations | |
63 | .br | |
64 | Report all translation errors as warnings. | |
65 | .TP 5 | |
66 | -W all | |
67 | .br | |
68 | Report all of the previous errors as warnings. | |
69 | .TP 5 | |
70 | -W none | |
71 | .br | |
72 | Report all of the previous errors as errors. | |
73 | .TP 5 | |
bd7854cb | 74 | -q |
75 | .br | |
76 | Specifies that no information should be displayed. | |
77 | .TP 5 | |
78 | -r | |
79 | .br | |
80 | Relaxes the PPD conformance requirements so that common | |
81 | whitespace, control character, and formatting problems are not | |
82 | treated as hard errors. | |
83 | .TP 5 | |
84 | -v | |
85 | .br | |
86 | Specifies that detailed conformance testing results should be | |
87 | displayed rather than the concise PASS/FAIL/ERROR status. | |
88 | .TP 5 | |
89 | -vv | |
90 | .br | |
91 | Specifies that all information in the PPD file should be | |
92 | displayed in addition to the detailed conformance testing | |
93 | results. | |
ef416fc2 | 94 | .LP |
95 | The \fI-q\fR, \fI-v\fR, and \fI-vv\fR options are mutually exclusive. | |
96 | .SH EXIT STATUS | |
97 | \fIcupstestppd\fR returns zero on success and non-zero on error. The | |
98 | error codes are as follows: | |
99 | .TP 5 | |
100 | 1 | |
101 | .br | |
102 | Bad command-line arguments or missing PPD filename. | |
103 | .TP 5 | |
104 | 2 | |
105 | .br | |
106 | Unable to open or read PPD file. | |
107 | .TP 5 | |
108 | 3 | |
109 | .br | |
110 | The PPD file contains format errors that cannot be skipped. | |
111 | .TP 5 | |
112 | 4 | |
113 | .br | |
114 | The PPD file does not conform to the Adobe PPD specification. | |
115 | .SH EXAMPLES | |
116 | The following command will test all PPD files under the current | |
117 | directory and print the names of each file that does not | |
118 | conform: | |
119 | .nf | |
120 | ||
121 | find . -name \\*.ppd \\! -exec cupstestppd -q '{}' \\; -print | |
122 | ||
123 | .fi | |
124 | The next command tests all PPD files under the current directory | |
125 | and print detailed conformance testing results for the files | |
126 | that do not conform: | |
127 | .nf | |
128 | ||
129 | find . -name \\*.ppd \\! -exec cupstestppd -q '{}' \\; \\ | |
130 | -exec cupstestppd -v '{}' \\; | |
131 | ||
132 | .fi | |
133 | .SH SEE ALSO | |
bd7854cb | 134 | \fIlpadmin(8)\fR, |
135 | .br | |
136 | http://localhost:631/help | |
137 | .br | |
ef416fc2 | 138 | Adobe PostScript Printer Description File Format Specification, Version 4.3. |
139 | .SH COPYRIGHT | |
bc44d920 | 140 | Copyright 2007 by Apple Inc. |
ef416fc2 | 141 | .\" |
bc44d920 | 142 | .\" End of "$Id: cupstestppd.man 6649 2007-07-11 21:46:42Z mike $". |
ef416fc2 | 143 | .\" |