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