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
80 | 80 | FILE *outFile = NULL ; |
81 | 81 | int testPattern = 0; |
82 | 82 | char *out_filepath = NULL; |
83 | int c; | |
83 | char c; | |
84 | 84 | static struct option long_opts[] = { |
85 | 85 | {"gamma",0,0,'g'}, |
86 | 86 | {"align",0,0,0}, |
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 | 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 | 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 | 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 | 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" | |
1 | 1 | .SH NAME |
2 | 2 | pnm2ppa - convert portable anymap (PNM) images to HP's PPA printer format. |
3 | 3 | .SH SYNOPSIS |
4 | pnm2ppa [options] [ \-i \fIinfile\fR ] [ \-o \fIoutfile\fR ] | |
4 | pnm2ppa [options] [ -i \fIinfile\fR ] [ -o \fIoutfile\fR ] | |
5 | 5 | |
6 | 6 | .SH DESCRIPTION |
7 | 7 | Reads portable anymap (PNM) format as input. Binary PNM formats pnmraw = |
15 | 15 | GhostScript output devices "pbmraw", "pgmraw" or "ppmraw", or by "pnmraw", |
16 | 16 | which will choose one of these formats as appropriate for the document.) |
17 | 17 | \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 | |
19 | 19 | resolutions will result in a correspondingly larger/smaller printed image, |
20 | 20 | provided it is within the printer's allowed size range. |
21 | 21 | .PP |
22 | 22 | |
23 | 23 | .SH OPTIONS |
24 | .\"{{{ \-b bottommargin | |
24 | .\"{{{ -b bottommargin | |
25 | 25 | .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 | |
30 | 30 | .IP "\fB\-B \fIblackness\fR\fP" |
31 | 31 | Sets the black ink density \fIblackness\fR in drops per pixel (0,1,2,3,4). |
32 | 32 | .\"}}} |
33 | 33 | |
34 | .\"{{{ \-\-bi | |
35 | .IP "\fB\-\-bi\fP" | |
34 | .\"{{{ --bi | |
35 | .IP "\fB\--bi\fP" | |
36 | 36 | Force bidirectional print sweeps. |
37 | 37 | .\"}}} |
38 | 38 | |
39 | 39 | .\"{{{ --bw |
40 | .IP "\fB\-\-bw\fP" | |
40 | .IP "\fB\--bw\fP" | |
41 | 41 | Disables the color cartridge; will print in grey scale using only the black cartridge. |
42 | 42 | .\"}}} |
43 | 43 | |
44 | .\"{{{ \-d | |
44 | .\"{{{ -d | |
45 | 45 | .IP "\fB\-d\fP" |
46 | 46 | Displays the current configuration. |
47 | 47 | .\"}}} |
48 | 48 | |
49 | .\"{{{ \-\-dpi300 | |
50 | .IP "\fB\-\-dpi300\fP" | |
49 | .\"{{{ --dpi300 | |
50 | .IP "\fB\--dpi300\fP" | |
51 | 51 | Treat input resolution as 300dpi instead of 600dpi. |
52 | 52 | .\"}}} |
53 | 53 | |
54 | .\"{{{ \-\-eco | |
55 | .IP "\fB\-\-eco\fP" | |
54 | .\"{{{ --eco | |
55 | .IP "\fB\--eco\fP" | |
56 | 56 | Econofast mode: lower print quality that is faster and saves ink. |
57 | 57 | .\"}}} |
58 | 58 | |
59 | .\"{{{ \-f configFile | |
59 | .\"{{{ -f configFile | |
60 | 60 | .IP "\fB\-f \fIconfigFile\fR\fP" |
61 | 61 | Re-reads configuration from \fIconfigFile\fR (after |
62 | 62 | initially reading it from /etc/pnm2ppa.conf). |
63 | 63 | .\"}}} |
64 | 64 | |
65 | .\"{{{ \-F GammaFile | |
65 | .\"{{{ -F GammaFile | |
66 | 66 | .IP "\fB\-F \fIGammaFile\fR\fP" |
67 | 67 | Overrides reading the color-correction table (Gamma curve) from the default |
68 | 68 | file /etc/pnm2ppa.gamma, and uses \fIGammaFile\fR instead. |
69 | 69 | .\"}}} |
70 | 70 | |
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 | |
77 | 77 | .IP "\fB\-g\fP" |
78 | 78 | Prints a page of color intensity samples (for comparison with gamma.ppm |
79 | 79 | data produced by calibrate_ppa). |
80 | 80 | This is part of a \fBcolor-correction\fP procedure; see COLOR.txt for more details. |
81 | 81 | .\"}}} |
82 | 82 | |
83 | .\"{{{ \-h, \-\-help | |
84 | .IP "\fB\-h, \-\-help\fP" | |
83 | .\"{{{ -h, --help | |
84 | .IP "\fB\-h, --help\fP" | |
85 | 85 | Displays program usage. |
86 | 86 | .\"}}} |
87 | 87 | |
88 | .\"{{{ \-i infile | |
88 | .\"{{{ -i infile | |
89 | 89 | .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 | |
94 | 94 | .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" | |
100 | 100 | Switches off any color-correction. |
101 | 101 | .\"}}} |
102 | 102 | |
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 | |
109 | 109 | .IP "\fB\-p\fP" |
110 | 110 | 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 |
111 | 111 | color images. |
112 | 112 | .\"}}} |
113 | 113 | |
114 | .\"{{{ \-r rightmargin | |
114 | .\"{{{ -r rightmargin | |
115 | 115 | .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 | |
120 | 120 | .IP "\fB\-s \fIpapersize\fR\fP" |
121 | 121 | 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). | |
123 | 123 | In normal use, pnm2ppa now instead reads the paper dimensions from |
124 | 124 | pnm input file headers, and |
125 | 125 | checks that it is a valid papersize for the given printer model. |
129 | 129 | The default is US Letter. |
130 | 130 | .\"}}} |
131 | 131 | |
132 | .\"{{{ \-t topmargin | |
132 | .\"{{{ -t topmargin | |
133 | 133 | .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" | |
139 | 139 | Force unidirectional (left to right) print sweeps. Useful if |
140 | 140 | "shearing" is a problem for high quality color images. |
141 | 141 | .\"}}} |
142 | 142 | |
143 | .\"{{{ \-v printertype | |
143 | .\"{{{ -v printertype | |
144 | 144 | .IP "\fB\-v \fIprintertype\fP" |
145 | 145 | Selects the printer model. Possible values of \fIprintertype\fR are: |
146 | 146 | \fB710\fP, \fB712\fP, \fB720\fP, \fB722\fP, \fB820\fP and \fB1000\fP. |
147 | 147 | The default is the HP DeskJet 7X0 Series (710, 712, 720, 722). |
148 | 148 | .\"}}} |
149 | 149 | |
150 | .\"{{{ \-\-verbose | |
151 | .IP "\fB\-\-verbose\fP" | |
150 | .\"{{{ --verbose | |
151 | .IP "\fB\--verbose\fP" | |
152 | 152 | Displays the program's System Log messages on the standard output, as well. |
153 | 153 | .\"}}} |
154 | 154 | |
155 | .\"{{{ \-\-version | |
156 | .IP "\fB\-\-version\fP" | |
155 | .\"{{{ --version | |
156 | .IP "\fB\--version\fP" | |
157 | 157 | Displays the program's version information. |
158 | 158 | .\"}}} |
159 | 159 | |
160 | .\"{{{ \-x xoffset | |
160 | .\"{{{ -x xoffset | |
161 | 161 | .IP "\fB\-x \fIxoffset\fR\fP" |
162 | 162 | Sets the x-offset \fIxoffset\fR from the left of the page. Units are 1/600 inches. |
163 | 163 | .\"}}} |
164 | 164 | |
165 | .\"{{{ \-y yoffset | |
165 | .\"{{{ -y yoffset | |
166 | 166 | .IP "\fB\-y \fIyoffset\fR\fP" |
167 | 167 | Sets the y-offset \fIyoffset\fR from the top of the page. Units are 1/600 inches. |
168 | 168 | .\"}}} |
171 | 171 | .SH NOTES |
172 | 172 | The default configuration file \fI/etc/pnm2ppa.conf\fR is read in first. Command line arguments then modify the resulting definitions. |
173 | 173 | .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 | |
175 | 175 | the inbuilt defaults for that printer and should be used before subsequent |
176 | 176 | \fB-b\fP, \fB-l\fP, \fB-r\fP, \fB-t\fP, \fB-x\fP and \fB-y\fP arguments. |
177 | 177 | .SH "SEE ALSO" |
211 | 211 | .SH BUGS |
212 | 212 | Faint horizontal lines marking boundaries between print sweeps may be visible. |
213 | 213 | 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 |
731 | 731 | |
732 | 732 | case 2: |
733 | 733 | /* --version (output to stderr, not syslog) */ |
734 | fprintf(stderr,"%s %s %s\n", | |
734 | fprintf(stderr,"%s %s %s %s %s\n", | |
735 | 735 | *argv, gMessages[LOG_VERSION], |
736 | VERSION); | |
736 | VERSION, __DATE__, __TIME__); | |
737 | 737 | exit (0); |
738 | 738 | break; |
739 | 739 |
0 | #!/bin/sh | |
1 | 0 | cat $1 | \ |
2 | 1 | gs -sDEVICE=pbmraw -q -sPAPERSIZE=a4 -dNOPAUSE -r600 -sOutputFile=- - | \ |
3 | 2 | pnm2ppa --bw --eco $2 $3 $4 $5 -i - -o /dev/lp0 |