]> git.ipfire.org Git - thirdparty/cups.git/blame - man/cupstestppd.man
Import CUPS 1.4svn-r7356.
[thirdparty/cups.git] / man / cupstestppd.man
CommitLineData
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
17cupstestppd \- 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
34Adobe PostScript Printer Description file format specification
35version 4.3. It can also be used to list the supported options
36and available fonts in a PPD file. The results of testing and
37any other output are sent to the standard output.
38.LP
39The first form of \fIcupstestppd\fR tests one or more PPD files
40on the command-line. The second form tests the PPD file provided
41on the standard input.
bd7854cb 42.SH OPTIONS
43\fIcupstestppd\fR supports the following options:
44.TP 5
b94498cf 45-R rootdir
46.br
47Specifies an alternate root directory for the filter, pre-filter,
48and other support file checks.
49.TP 5
50-W constraints
51.br
52Report all UIConstraint errors as warnings.
53.TP 5
54-W defaults
55.br
56Except for size-related options, report all default option errors as warnings.
57.TP 5
58-W filters
59.br
60Report all filter errors as warnings.
61.TP 5
62-W translations
63.br
64Report all translation errors as warnings.
65.TP 5
66-W all
67.br
68Report all of the previous errors as warnings.
69.TP 5
70-W none
71.br
72Report all of the previous errors as errors.
73.TP 5
bd7854cb 74-q
75.br
76Specifies that no information should be displayed.
77.TP 5
78-r
79.br
80Relaxes the PPD conformance requirements so that common
81whitespace, control character, and formatting problems are not
82treated as hard errors.
83.TP 5
84-v
85.br
86Specifies that detailed conformance testing results should be
87displayed rather than the concise PASS/FAIL/ERROR status.
88.TP 5
89-vv
90.br
91Specifies that all information in the PPD file should be
92displayed in addition to the detailed conformance testing
93results.
ef416fc2 94.LP
95The \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
98error codes are as follows:
99.TP 5
1001
101.br
102Bad command-line arguments or missing PPD filename.
103.TP 5
1042
105.br
106Unable to open or read PPD file.
107.TP 5
1083
109.br
110The PPD file contains format errors that cannot be skipped.
111.TP 5
1124
113.br
114The PPD file does not conform to the Adobe PPD specification.
115.SH EXAMPLES
116The following command will test all PPD files under the current
117directory and print the names of each file that does not
118conform:
119.nf
120
121 find . -name \\*.ppd \\! -exec cupstestppd -q '{}' \\; -print
122
123.fi
124The next command tests all PPD files under the current directory
125and print detailed conformance testing results for the files
126that 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
136http://localhost:631/help
137.br
ef416fc2 138Adobe PostScript Printer Description File Format Specification, Version 4.3.
139.SH COPYRIGHT
bc44d920 140Copyright 2007 by Apple Inc.
ef416fc2 141.\"
bc44d920 142.\" End of "$Id: cupstestppd.man 6649 2007-07-11 21:46:42Z mike $".
ef416fc2 143.\"