Codebase list pnm2ppa / f1ff343
git-debrebase convert-from-dgit-view: drop upstream changes from breakwater Drop upstream changes, and delete debian/patches, as part of converting to git-debrebase format. Upstream changes will appear as commits. [git-debrebase convert-from-dgit-view drop-patches] Didier Raboud 3 years ago
11 changed file(s) with 67 addition(s) and 404 deletion(s). Raw diff Collapse all Expand all
8080 FILE *outFile = NULL ;
8181 int testPattern = 0;
8282 char *out_filepath = NULL;
83 int c;
83 char c;
8484 static struct option long_opts[] = {
8585 {"gamma",0,0,'g'},
8686 {"align",0,0,0},
+0
-24
debian/patches/0001-Fix-signedness-of-c.patch less more
0 From bbc107a7d7f781c434b717c0383fcdd6953b1c7c Mon Sep 17 00:00:00 2001
1 From: Chad Walstrom <chewie@debian.org>
2 Date: Sat, 10 Feb 2018 16:45:11 +0100
3 Subject: Fix signedness of "c"
4
5 Bugs-Debian: 177295
6 Last-Update: 2003-10-26
7 ---
8 calibrate_ppa.c | 2 +-
9 1 file changed, 1 insertion(+), 1 deletion(-)
10
11 diff --git a/calibrate_ppa.c b/calibrate_ppa.c
12 index d2eddb7..59f6231 100644
13 --- a/calibrate_ppa.c
14 +++ b/calibrate_ppa.c
15 @@ -81,7 +81,7 @@ main (int argc, char *argv[])
16 FILE *outFile = NULL ;
17 int testPattern = 0;
18 char *out_filepath = NULL;
19 - char c;
20 + int c;
21 static struct option long_opts[] = {
22 {"gamma",0,0,'g'},
23 {"align",0,0,0},
+0
-39
debian/patches/0002-Make-sure-examples-have-shebangs.patch less more
0 From 4eaa72f394ce83cee564c3d736127296723f642b Mon Sep 17 00:00:00 2001
1 From: Chad Walstrom <chewie@debian.org>
2 Date: Sat, 10 Feb 2018 16:45:12 +0100
3 Subject: Make sure examples have shebangs
4
5 Last-Update: 2004-11-12
6 ---
7 sample_scripts/lprbw | 1 +
8 sample_scripts/lprcolor | 1 +
9 sample_scripts/lpreco | 1 +
10 3 files changed, 3 insertions(+)
11
12 diff --git a/sample_scripts/lprbw b/sample_scripts/lprbw
13 index 17d281a..2311dd2 100755
14 --- a/sample_scripts/lprbw
15 +++ b/sample_scripts/lprbw
16 @@ -1,3 +1,4 @@
17 +#!/bin/sh
18 cat $1 | \
19 gs -sDEVICE=pbmraw -q -sPAPERSIZE=a4 -dNOPAUSE -r600 -sOutputFile=- - | \
20 pnm2ppa --bw --eco $2 $3 $4 $5 -i - -o /dev/lp0
21 diff --git a/sample_scripts/lprcolor b/sample_scripts/lprcolor
22 index b745b5b..9ee223f 100755
23 --- a/sample_scripts/lprcolor
24 +++ b/sample_scripts/lprcolor
25 @@ -1,3 +1,4 @@
26 +#!/bin/sh
27 cat $1 | \
28 gs -sDEVICE=ppmraw -q -sPAPERSIZE=a4 -dNOPAUSE -r600 -sOutputFile=- - | \
29 pnm2ppa $2 $3 $4 $5 -i - -o /dev/lp0
30 diff --git a/sample_scripts/lpreco b/sample_scripts/lpreco
31 index 450cbe3..7e0674e 100755
32 --- a/sample_scripts/lpreco
33 +++ b/sample_scripts/lpreco
34 @@ -1,3 +1,4 @@
35 +#!/bin/sh
36 cat $1 | \
37 gs -sDEVICE=ppmraw -q -sPAPERSIZE=a4 -dNOPAUSE -r600 -sOutputFile=- - | \
38 pnm2ppa --eco $2 $3 $4 $5 -i - -o /dev/lp0
+0
-240
debian/patches/0003-Fix-various-errors-in-the-pnm2ppa-manpage.patch less more
0 From 47343fcdf45a1cce1f18f3d87509d23990bbec8b Mon Sep 17 00:00:00 2001
1 From: Didier Raboud <odyx@debian.org>
2 Date: Sat, 10 Feb 2018 16:45:13 +0100
3 Subject: Fix various errors in the pnm2ppa manpage.
4
5 Amongst those: hyphen-used-as-minus from lintian and the lack of section identifier.
6 Last-Update: 2011-05-26
7 ---
8 docs/en/pnm2ppa.1 | 98 +++++++++++++++++++++++++++----------------------------
9 1 file changed, 49 insertions(+), 49 deletions(-)
10
11 diff --git a/docs/en/pnm2ppa.1 b/docs/en/pnm2ppa.1
12 index 35fd7f1..1f7ded1 100644
13 --- a/docs/en/pnm2ppa.1
14 +++ b/docs/en/pnm2ppa.1
15 @@ -1,8 +1,8 @@
16 -.TH pnm2ppa "23 Jun 2002"
17 +.TH pnm2ppa 1 "23 Jun 2002"
18 .SH NAME
19 pnm2ppa - convert portable anymap (PNM) images to HP's PPA printer format.
20 .SH SYNOPSIS
21 -pnm2ppa [options] [ -i \fIinfile\fR ] [ -o \fIoutfile\fR ]
22 +pnm2ppa [options] [ \-i \fIinfile\fR ] [ \-o \fIoutfile\fR ]
23
24 .SH DESCRIPTION
25 Reads portable anymap (PNM) format as input. Binary PNM formats pnmraw =
26 @@ -16,111 +16,111 @@ Printing Performance Architecture (PPA) printers (HP DeskJet 710C, 712C, 720C,
27 GhostScript output devices "pbmraw", "pgmraw" or "ppmraw", or by "pnmraw",
28 which will choose one of these formats as appropriate for the document.)
29 \fBpnm2ppa\fP assumes the input resolution is 600dpi (or 300dpi if
30 -the command-line option \fB--dpi300\fP is used): input at higher/lower
31 +the command-line option \fB\-\-dpi300\fP is used): input at higher/lower
32 resolutions will result in a correspondingly larger/smaller printed image,
33 provided it is within the printer's allowed size range.
34 .PP
35
36 .SH OPTIONS
37 -.\"{{{ -b bottommargin
38 +.\"{{{ \-b bottommargin
39 .IP "\fB\-b \fIbottommargin\fR\fP"
40 -Sets the bottom margin \fIbottommargin\fR in units of 1/600 inches (e.g., \fB -b 150\fP corresponds to 0.25").
41 +Sets the bottom margin \fIbottommargin\fR in units of 1/600 inches (e.g., \fB \-b 150\fP corresponds to 0.25").
42 .\"}}}
43
44 -.\"{{{ -B blackness
45 +.\"{{{ \-B blackness
46 .IP "\fB\-B \fIblackness\fR\fP"
47 Sets the black ink density \fIblackness\fR in drops per pixel (0,1,2,3,4).
48 .\"}}}
49
50 -.\"{{{ --bi
51 -.IP "\fB\--bi\fP"
52 +.\"{{{ \-\-bi
53 +.IP "\fB\-\-bi\fP"
54 Force bidirectional print sweeps.
55 .\"}}}
56
57 .\"{{{ --bw
58 -.IP "\fB\--bw\fP"
59 +.IP "\fB\-\-bw\fP"
60 Disables the color cartridge; will print in grey scale using only the black cartridge.
61 .\"}}}
62
63 -.\"{{{ -d
64 +.\"{{{ \-d
65 .IP "\fB\-d\fP"
66 Displays the current configuration.
67 .\"}}}
68
69 -.\"{{{ --dpi300
70 -.IP "\fB\--dpi300\fP"
71 +.\"{{{ \-\-dpi300
72 +.IP "\fB\-\-dpi300\fP"
73 Treat input resolution as 300dpi instead of 600dpi.
74 .\"}}}
75
76 -.\"{{{ --eco
77 -.IP "\fB\--eco\fP"
78 +.\"{{{ \-\-eco
79 +.IP "\fB\-\-eco\fP"
80 Econofast mode: lower print quality that is faster and saves ink.
81 .\"}}}
82
83 -.\"{{{ -f configFile
84 +.\"{{{ \-f configFile
85 .IP "\fB\-f \fIconfigFile\fR\fP"
86 Re-reads configuration from \fIconfigFile\fR (after
87 initially reading it from /etc/pnm2ppa.conf).
88 .\"}}}
89
90 -.\"{{{ -F GammaFile
91 +.\"{{{ \-F GammaFile
92 .IP "\fB\-F \fIGammaFile\fR\fP"
93 Overrides reading the color-correction table (Gamma curve) from the default
94 file /etc/pnm2ppa.gamma, and uses \fIGammaFile\fR instead.
95 .\"}}}
96
97 -.\"{{{ --fd
98 -.IP "\fB\--fd\fP"
99 -Enable fast ordered dithering instead of using the slower, but beautiful, Floyd-Steinberg dithering. (Has no effect in --bw mode.)
100 +.\"{{{ \-\-fd
101 +.IP "\fB\-\-fd\fP"
102 +Enable fast ordered dithering instead of using the slower, but beautiful, Floyd-Steinberg dithering. (Has no effect in \-\-bw mode.)
103 .\"}}}
104
105 -.\"{{{ -g
106 +.\"{{{ \-g
107 .IP "\fB\-g\fP"
108 Prints a page of color intensity samples (for comparison with gamma.ppm
109 data produced by calibrate_ppa).
110 This is part of a \fBcolor-correction\fP procedure; see COLOR.txt for more details.
111 .\"}}}
112
113 -.\"{{{ -h, --help
114 -.IP "\fB\-h, --help\fP"
115 +.\"{{{ \-h, \-\-help
116 +.IP "\fB\-h, \-\-help\fP"
117 Displays program usage.
118 .\"}}}
119
120 -.\"{{{ -i infile
121 +.\"{{{ \-i infile
122 .IP "\fB\-i \fIinfile\fR\fP"
123 -Input file \fIinfile\fR is either a path to a PPM file, or '-' to indicate stdin (defaults to stdin).
124 +Input file \fIinfile\fR is either a path to a PPM file, or '\-' to indicate stdin (defaults to stdin).
125 .\"}}}
126
127 -.\"{{{ -l leftmargin
128 +.\"{{{ \-l leftmargin
129 .IP "\fB\-l \fIleftmargin\fR\fP"
130 -Sets the left margin \fIleftmargin\fR in units of 1/600 inches (e.g., \fB-l 150\fP corresponds to 0.25").
131 +Sets the left margin \fIleftmargin\fR in units of 1/600 inches (e.g., \fB\-l 150\fP corresponds to 0.25").
132 .\"}}}
133
134 -.\"{{{ --noGamma
135 -.IP "\fB\--noGamma\fP"
136 +.\"{{{ \-\-noGamma
137 +.IP "\fB\-\-noGamma\fP"
138 Switches off any color-correction.
139 .\"}}}
140
141 -.\"{{{ -o outfile | -
142 -.IP "\fB\-o \fIoutfile\fR | - \fP"
143 -Output file \fIoutfile\fR is either a path to a file or device, or '-' to indicate stdout (defaults to stdout).
144 +.\"{{{ \-o outfile | \-
145 +.IP "\fB\-o \fIoutfile\fR | \- \fP"
146 +Output file \fIoutfile\fR is either a path to a file or device, or '\-' to indicate stdout (defaults to stdout).
147 .\"}}}
148
149 -.\"{{{ -p
150 +.\"{{{ \-p
151 .IP "\fB\-p\fP"
152 Disables the black ink cartridge; i.e., print using only the color ink cartridge, even for printing "black". This might be useful for printing high-quality
153 color images.
154 .\"}}}
155
156 -.\"{{{ -r rightmargin
157 +.\"{{{ \-r rightmargin
158 .IP "\fB\-r \fIrightmargin\fR\fP"
159 -Sets the right margin \fIrightmargin\fR in units of 1/600 inches (e.g., \fB-r 150\fP corresponds to 0.25").
160 +Sets the right margin \fIrightmargin\fR in units of 1/600 inches (e.g., \fB\-r 150\fP corresponds to 0.25").
161 .\"}}}
162
163 -.\"{{{ -s papersize
164 +.\"{{{ \-s papersize
165 .IP "\fB\-s \fIpapersize\fR\fP"
166 Sets the default paper size (now used only for color-correction output
167 -produced by the \fB-g\fP option).
168 +produced by the \fB\-g\fP option).
169 In normal use, pnm2ppa now instead reads the paper dimensions from
170 pnm input file headers, and
171 checks that it is a valid papersize for the given printer model.
172 @@ -130,40 +130,40 @@ Possible values for \fIpapersize\fR are \fBa4\fP (A4),
173 The default is US Letter.
174 .\"}}}
175
176 -.\"{{{ -t topmargin
177 +.\"{{{ \-t topmargin
178 .IP "\fB\-t \fItopmargin\fR\fP"
179 -Sets the top margin \fItopmargin\fR in units of 1/600 inches (ie \fB-t 150\fP corresponds to 0.25").
180 +Sets the top margin \fItopmargin\fR in units of 1/600 inches (ie \fB\-t 150\fP corresponds to 0.25").
181 .\"}}}
182
183 -.\"{{{ --uni
184 -.IP "\fB\--uni\fP"
185 +.\"{{{ \-\-uni
186 +.IP "\fB\-\-uni\fP"
187 Force unidirectional (left to right) print sweeps. Useful if
188 "shearing" is a problem for high quality color images.
189 .\"}}}
190
191 -.\"{{{ -v printertype
192 +.\"{{{ \-v printertype
193 .IP "\fB\-v \fIprintertype\fP"
194 Selects the printer model. Possible values of \fIprintertype\fR are:
195 \fB710\fP, \fB712\fP, \fB720\fP, \fB722\fP, \fB820\fP and \fB1000\fP.
196 The default is the HP DeskJet 7X0 Series (710, 712, 720, 722).
197 .\"}}}
198
199 -.\"{{{ --verbose
200 -.IP "\fB\--verbose\fP"
201 +.\"{{{ \-\-verbose
202 +.IP "\fB\-\-verbose\fP"
203 Displays the program's System Log messages on the standard output, as well.
204 .\"}}}
205
206 -.\"{{{ --version
207 -.IP "\fB\--version\fP"
208 +.\"{{{ \-\-version
209 +.IP "\fB\-\-version\fP"
210 Displays the program's version information.
211 .\"}}}
212
213 -.\"{{{ -x xoffset
214 +.\"{{{ \-x xoffset
215 .IP "\fB\-x \fIxoffset\fR\fP"
216 Sets the x-offset \fIxoffset\fR from the left of the page. Units are 1/600 inches.
217 .\"}}}
218
219 -.\"{{{ -y yoffset
220 +.\"{{{ \-y yoffset
221 .IP "\fB\-y \fIyoffset\fR\fP"
222 Sets the y-offset \fIyoffset\fR from the top of the page. Units are 1/600 inches.
223 .\"}}}
224 @@ -172,7 +172,7 @@ Sets the y-offset \fIyoffset\fR from the top of the page. Units are 1/600 inches
225 .SH NOTES
226 The default configuration file \fI/etc/pnm2ppa.conf\fR is read in first. Command line arguments then modify the resulting definitions.
227 .PP
228 -The \fB-v\fP option resets all definitions (margins, offsets, etc.) back to
229 +The \fB\-v\fP option resets all definitions (margins, offsets, etc.) back to
230 the inbuilt defaults for that printer and should be used before subsequent
231 \fB-b\fP, \fB-l\fP, \fB-r\fP, \fB-t\fP, \fB-x\fP and \fB-y\fP arguments.
232 .SH "SEE ALSO"
233 @@ -212,5 +212,5 @@ http://sourceforge.net/projects/pnm2ppa.
234 .SH BUGS
235 Faint horizontal lines marking boundaries between print sweeps may be visible.
236 You may get better results when printing images, with the options:
237 - \fB -p --uni \fP (this may no longer apply since recent code improvements).
238 + \fB \-p \-\-uni \fP (this may no longer apply since recent code improvements).
239
+0
-27
debian/patches/0004-Drop-usage-of-__DATE__-and-__TIME__-hindering-build.patch less more
0 From 9252ab22fd5f15d1550f85dd735ae31121e9f413 Mon Sep 17 00:00:00 2001
1 From: Didier Raboud <odyx@debian.org>
2 Date: Sat, 10 Feb 2018 16:45:14 +0100
3 Subject: Drop usage of __DATE__ and __TIME__, hindering build
4
5 reproducibility.
6 Last-Update: 2016-02-26
7 ---
8 pnm2ppa.c | 4 ++--
9 1 file changed, 2 insertions(+), 2 deletions(-)
10
11 diff --git a/pnm2ppa.c b/pnm2ppa.c
12 index 1790927..9fd88ec 100644
13 --- a/pnm2ppa.c
14 +++ b/pnm2ppa.c
15 @@ -732,9 +732,9 @@ main (int argc, char *argv[])
16
17 case 2:
18 /* --version (output to stderr, not syslog) */
19 - fprintf(stderr,"%s %s %s %s %s\n",
20 + fprintf(stderr,"%s %s %s\n",
21 *argv, gMessages[LOG_VERSION],
22 - VERSION, __DATE__, __TIME__);
23 + VERSION);
24 exit (0);
25 break;
26
+0
-4
debian/patches/series less more
0 0001-Fix-signedness-of-c.patch
1 0002-Make-sure-examples-have-shebangs.patch
2 0003-Fix-various-errors-in-the-pnm2ppa-manpage.patch
3 0004-Drop-usage-of-__DATE__-and-__TIME__-hindering-build.patch
0 .TH pnm2ppa 1 "23 Jun 2002"
0 .TH pnm2ppa "23 Jun 2002"
11 .SH NAME
22 pnm2ppa - convert portable anymap (PNM) images to HP's PPA printer format.
33 .SH SYNOPSIS
4 pnm2ppa [options] [ \-i \fIinfile\fR ] [ \-o \fIoutfile\fR ]
4 pnm2ppa [options] [ -i \fIinfile\fR ] [ -o \fIoutfile\fR ]
55
66 .SH DESCRIPTION
77 Reads portable anymap (PNM) format as input. Binary PNM formats pnmraw =
1515 GhostScript output devices "pbmraw", "pgmraw" or "ppmraw", or by "pnmraw",
1616 which will choose one of these formats as appropriate for the document.)
1717 \fBpnm2ppa\fP assumes the input resolution is 600dpi (or 300dpi if
18 the command-line option \fB\-\-dpi300\fP is used): input at higher/lower
18 the command-line option \fB--dpi300\fP is used): input at higher/lower
1919 resolutions will result in a correspondingly larger/smaller printed image,
2020 provided it is within the printer's allowed size range.
2121 .PP
2222
2323 .SH OPTIONS
24 .\"{{{ \-b bottommargin
24 .\"{{{ -b bottommargin
2525 .IP "\fB\-b \fIbottommargin\fR\fP"
26 Sets the bottom margin \fIbottommargin\fR in units of 1/600 inches (e.g., \fB \-b 150\fP corresponds to 0.25").
27 .\"}}}
28
29 .\"{{{ \-B blackness
26 Sets the bottom margin \fIbottommargin\fR in units of 1/600 inches (e.g., \fB -b 150\fP corresponds to 0.25").
27 .\"}}}
28
29 .\"{{{ -B blackness
3030 .IP "\fB\-B \fIblackness\fR\fP"
3131 Sets the black ink density \fIblackness\fR in drops per pixel (0,1,2,3,4).
3232 .\"}}}
3333
34 .\"{{{ \-\-bi
35 .IP "\fB\-\-bi\fP"
34 .\"{{{ --bi
35 .IP "\fB\--bi\fP"
3636 Force bidirectional print sweeps.
3737 .\"}}}
3838
3939 .\"{{{ --bw
40 .IP "\fB\-\-bw\fP"
40 .IP "\fB\--bw\fP"
4141 Disables the color cartridge; will print in grey scale using only the black cartridge.
4242 .\"}}}
4343
44 .\"{{{ \-d
44 .\"{{{ -d
4545 .IP "\fB\-d\fP"
4646 Displays the current configuration.
4747 .\"}}}
4848
49 .\"{{{ \-\-dpi300
50 .IP "\fB\-\-dpi300\fP"
49 .\"{{{ --dpi300
50 .IP "\fB\--dpi300\fP"
5151 Treat input resolution as 300dpi instead of 600dpi.
5252 .\"}}}
5353
54 .\"{{{ \-\-eco
55 .IP "\fB\-\-eco\fP"
54 .\"{{{ --eco
55 .IP "\fB\--eco\fP"
5656 Econofast mode: lower print quality that is faster and saves ink.
5757 .\"}}}
5858
59 .\"{{{ \-f configFile
59 .\"{{{ -f configFile
6060 .IP "\fB\-f \fIconfigFile\fR\fP"
6161 Re-reads configuration from \fIconfigFile\fR (after
6262 initially reading it from /etc/pnm2ppa.conf).
6363 .\"}}}
6464
65 .\"{{{ \-F GammaFile
65 .\"{{{ -F GammaFile
6666 .IP "\fB\-F \fIGammaFile\fR\fP"
6767 Overrides reading the color-correction table (Gamma curve) from the default
6868 file /etc/pnm2ppa.gamma, and uses \fIGammaFile\fR instead.
6969 .\"}}}
7070
71 .\"{{{ \-\-fd
72 .IP "\fB\-\-fd\fP"
73 Enable fast ordered dithering instead of using the slower, but beautiful, Floyd-Steinberg dithering. (Has no effect in \-\-bw mode.)
74 .\"}}}
75
76 .\"{{{ \-g
71 .\"{{{ --fd
72 .IP "\fB\--fd\fP"
73 Enable fast ordered dithering instead of using the slower, but beautiful, Floyd-Steinberg dithering. (Has no effect in --bw mode.)
74 .\"}}}
75
76 .\"{{{ -g
7777 .IP "\fB\-g\fP"
7878 Prints a page of color intensity samples (for comparison with gamma.ppm
7979 data produced by calibrate_ppa).
8080 This is part of a \fBcolor-correction\fP procedure; see COLOR.txt for more details.
8181 .\"}}}
8282
83 .\"{{{ \-h, \-\-help
84 .IP "\fB\-h, \-\-help\fP"
83 .\"{{{ -h, --help
84 .IP "\fB\-h, --help\fP"
8585 Displays program usage.
8686 .\"}}}
8787
88 .\"{{{ \-i infile
88 .\"{{{ -i infile
8989 .IP "\fB\-i \fIinfile\fR\fP"
90 Input file \fIinfile\fR is either a path to a PPM file, or '\-' to indicate stdin (defaults to stdin).
91 .\"}}}
92
93 .\"{{{ \-l leftmargin
90 Input file \fIinfile\fR is either a path to a PPM file, or '-' to indicate stdin (defaults to stdin).
91 .\"}}}
92
93 .\"{{{ -l leftmargin
9494 .IP "\fB\-l \fIleftmargin\fR\fP"
95 Sets the left margin \fIleftmargin\fR in units of 1/600 inches (e.g., \fB\-l 150\fP corresponds to 0.25").
96 .\"}}}
97
98 .\"{{{ \-\-noGamma
99 .IP "\fB\-\-noGamma\fP"
95 Sets the left margin \fIleftmargin\fR in units of 1/600 inches (e.g., \fB-l 150\fP corresponds to 0.25").
96 .\"}}}
97
98 .\"{{{ --noGamma
99 .IP "\fB\--noGamma\fP"
100100 Switches off any color-correction.
101101 .\"}}}
102102
103 .\"{{{ \-o outfile | \-
104 .IP "\fB\-o \fIoutfile\fR | \- \fP"
105 Output file \fIoutfile\fR is either a path to a file or device, or '\-' to indicate stdout (defaults to stdout).
106 .\"}}}
107
108 .\"{{{ \-p
103 .\"{{{ -o outfile | -
104 .IP "\fB\-o \fIoutfile\fR | - \fP"
105 Output file \fIoutfile\fR is either a path to a file or device, or '-' to indicate stdout (defaults to stdout).
106 .\"}}}
107
108 .\"{{{ -p
109109 .IP "\fB\-p\fP"
110110 Disables the black ink cartridge; i.e., print using only the color ink cartridge, even for printing "black". This might be useful for printing high-quality
111111 color images.
112112 .\"}}}
113113
114 .\"{{{ \-r rightmargin
114 .\"{{{ -r rightmargin
115115 .IP "\fB\-r \fIrightmargin\fR\fP"
116 Sets the right margin \fIrightmargin\fR in units of 1/600 inches (e.g., \fB\-r 150\fP corresponds to 0.25").
117 .\"}}}
118
119 .\"{{{ \-s papersize
116 Sets the right margin \fIrightmargin\fR in units of 1/600 inches (e.g., \fB-r 150\fP corresponds to 0.25").
117 .\"}}}
118
119 .\"{{{ -s papersize
120120 .IP "\fB\-s \fIpapersize\fR\fP"
121121 Sets the default paper size (now used only for color-correction output
122 produced by the \fB\-g\fP option).
122 produced by the \fB-g\fP option).
123123 In normal use, pnm2ppa now instead reads the paper dimensions from
124124 pnm input file headers, and
125125 checks that it is a valid papersize for the given printer model.
129129 The default is US Letter.
130130 .\"}}}
131131
132 .\"{{{ \-t topmargin
132 .\"{{{ -t topmargin
133133 .IP "\fB\-t \fItopmargin\fR\fP"
134 Sets the top margin \fItopmargin\fR in units of 1/600 inches (ie \fB\-t 150\fP corresponds to 0.25").
135 .\"}}}
136
137 .\"{{{ \-\-uni
138 .IP "\fB\-\-uni\fP"
134 Sets the top margin \fItopmargin\fR in units of 1/600 inches (ie \fB-t 150\fP corresponds to 0.25").
135 .\"}}}
136
137 .\"{{{ --uni
138 .IP "\fB\--uni\fP"
139139 Force unidirectional (left to right) print sweeps. Useful if
140140 "shearing" is a problem for high quality color images.
141141 .\"}}}
142142
143 .\"{{{ \-v printertype
143 .\"{{{ -v printertype
144144 .IP "\fB\-v \fIprintertype\fP"
145145 Selects the printer model. Possible values of \fIprintertype\fR are:
146146 \fB710\fP, \fB712\fP, \fB720\fP, \fB722\fP, \fB820\fP and \fB1000\fP.
147147 The default is the HP DeskJet 7X0 Series (710, 712, 720, 722).
148148 .\"}}}
149149
150 .\"{{{ \-\-verbose
151 .IP "\fB\-\-verbose\fP"
150 .\"{{{ --verbose
151 .IP "\fB\--verbose\fP"
152152 Displays the program's System Log messages on the standard output, as well.
153153 .\"}}}
154154
155 .\"{{{ \-\-version
156 .IP "\fB\-\-version\fP"
155 .\"{{{ --version
156 .IP "\fB\--version\fP"
157157 Displays the program's version information.
158158 .\"}}}
159159
160 .\"{{{ \-x xoffset
160 .\"{{{ -x xoffset
161161 .IP "\fB\-x \fIxoffset\fR\fP"
162162 Sets the x-offset \fIxoffset\fR from the left of the page. Units are 1/600 inches.
163163 .\"}}}
164164
165 .\"{{{ \-y yoffset
165 .\"{{{ -y yoffset
166166 .IP "\fB\-y \fIyoffset\fR\fP"
167167 Sets the y-offset \fIyoffset\fR from the top of the page. Units are 1/600 inches.
168168 .\"}}}
171171 .SH NOTES
172172 The default configuration file \fI/etc/pnm2ppa.conf\fR is read in first. Command line arguments then modify the resulting definitions.
173173 .PP
174 The \fB\-v\fP option resets all definitions (margins, offsets, etc.) back to
174 The \fB-v\fP option resets all definitions (margins, offsets, etc.) back to
175175 the inbuilt defaults for that printer and should be used before subsequent
176176 \fB-b\fP, \fB-l\fP, \fB-r\fP, \fB-t\fP, \fB-x\fP and \fB-y\fP arguments.
177177 .SH "SEE ALSO"
211211 .SH BUGS
212212 Faint horizontal lines marking boundaries between print sweeps may be visible.
213213 You may get better results when printing images, with the options:
214 \fB \-p \-\-uni \fP (this may no longer apply since recent code improvements).
215
214 \fB -p --uni \fP (this may no longer apply since recent code improvements).
215
731731
732732 case 2:
733733 /* --version (output to stderr, not syslog) */
734 fprintf(stderr,"%s %s %s\n",
734 fprintf(stderr,"%s %s %s %s %s\n",
735735 *argv, gMessages[LOG_VERSION],
736 VERSION);
736 VERSION, __DATE__, __TIME__);
737737 exit (0);
738738 break;
739739
0 #!/bin/sh
10 cat $1 | \
21 gs -sDEVICE=pbmraw -q -sPAPERSIZE=a4 -dNOPAUSE -r600 -sOutputFile=- - | \
32 pnm2ppa --bw --eco $2 $3 $4 $5 -i - -o /dev/lp0
0 #!/bin/sh
10 cat $1 | \
21 gs -sDEVICE=ppmraw -q -sPAPERSIZE=a4 -dNOPAUSE -r600 -sOutputFile=- - | \
32 pnm2ppa $2 $3 $4 $5 -i - -o /dev/lp0
0 #!/bin/sh
10 cat $1 | \
21 gs -sDEVICE=ppmraw -q -sPAPERSIZE=a4 -dNOPAUSE -r600 -sOutputFile=- - | \
32 pnm2ppa --eco $2 $3 $4 $5 -i - -o /dev/lp0