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