| 1 |
<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook V3.1//EN"> |
| 2 |
|
| 3 |
<!-- ************************************************************************** |
| 4 |
|
| 5 |
Some markup conventions: |
| 6 |
- "ghostscript" is not usually marked up. |
| 7 |
- Ghostscript drivers are treated as <command>s. |
| 8 |
- Inline PostScript code is encapsulated by <literal>...</literal>. |
| 9 |
- Inline options are specified without the option prefix (-s or -d) except |
| 10 |
when an argument follows or (in the case of optional boolean arguments) |
| 11 |
could follow. In the first case they are marked as "option", in the second |
| 12 |
case as "userinput". |
| 13 |
|
| 14 |
Other conventions: |
| 15 |
- Statements which refer to undocumented properties of ghostscript are |
| 16 |
accompanied by a comment containing the string VERIFIED and describing |
| 17 |
the ghostscript version(s) in which I've checked the statement. |
| 18 |
|
| 19 |
*************************************************************************** --> |
| 20 |
|
| 21 |
<refentry id="gs-pcl3"> |
| 22 |
|
| 23 |
<docinfo> |
| 24 |
<title>Reference page for the <application>ghostscript</application> |
| 25 |
device driver <command>pcl3</command></title> |
| 26 |
<author> |
| 27 |
<firstname>Martin</firstname> |
| 28 |
<surname>Lottermoser</surname> |
| 29 |
</author> |
| 30 |
<address> |
| 31 |
<street>Greifswaldstraße 28</street> |
| 32 |
<postcode>38124</postcode> <city>Braunschweig</city> |
| 33 |
<country>Germany</country> |
| 34 |
<email>[email protected]</email> |
| 35 |
</address> |
| 36 |
<copyright> |
| 37 |
<year>2000</year> |
| 38 |
<year>2001</year> |
| 39 |
<holder>Martin Lottermoser</holder> |
| 40 |
</copyright> |
| 41 |
<releaseinfo>$Id: gs-pcl3.ref,v 1.21 2001/08/18 17:19:29 Martin Rel $</releaseinfo> |
| 42 |
</docinfo> |
| 43 |
|
| 44 |
<!-- ********************************************************************** --> |
| 45 |
|
| 46 |
<refmeta> |
| 47 |
<refentrytitle>GS-PCL3</refentrytitle> |
| 48 |
<manvolnum>1</manvolnum> |
| 49 |
</refmeta> |
| 50 |
|
| 51 |
<!-- ********************************************************************** --> |
| 52 |
|
| 53 |
<refnamediv> |
| 54 |
<refname>pcl3</refname> |
| 55 |
<refpurpose>ghostscript device driver for printers <!-- |
| 56 |
-->understanding PCL 3+</refpurpose> |
| 57 |
</refnamediv> |
| 58 |
|
| 59 |
<!-- ********************************************************************** --> |
| 60 |
|
| 61 |
<refsynopsisdiv> |
| 62 |
<!-- According to Walsh+Muellner, "DocBook - The Definitive Guide" (1.0.2), |
| 63 |
the title should be generated if not given. The version of Norman Walsh's |
| 64 |
HTML stylesheet I'm using does not do it, docbook-to-man does. |
| 65 |
If one specifies a title here, docbook-to-man produces two. |
| 66 |
Hence both packages are wrong. --> |
| 67 |
<cmdsynopsis> |
| 68 |
<command>gs</command> |
| 69 |
<arg choice="plain"> -sDEVICE=pcl3</arg> |
| 70 |
<group rep="repeat"> |
| 71 |
<arg><replaceable>gs_option</replaceable></arg> |
| 72 |
<!-- The optional argument for boolean options is omitted because |
| 73 |
docbook-to-man does not produce good output for it. --> |
| 74 |
<arg>-dBlackLevels=<replaceable>integer</replaceable></arg> |
| 75 |
<arg>-dCMYLevels=<replaceable>integer</replaceable></arg> |
| 76 |
<arg>-sColorModel=<replaceable>model</replaceable></arg> |
| 77 |
<arg>-sColourModel=<replaceable>model</replaceable></arg> |
| 78 |
<arg>-dCompressionMethod=<replaceable>method</replaceable></arg> |
| 79 |
<arg>-dConfigureEveryPage</arg> |
| 80 |
<arg>-dCUPSAccounting</arg> |
| 81 |
<arg>-dCUPSMessages</arg> |
| 82 |
<arg>-dDepletion=<replaceable>depletion</replaceable></arg> |
| 83 |
<arg>-dDryTime=<replaceable>seconds</replaceable></arg> |
| 84 |
<arg>-sDuplexCapability=<replaceable>capability</replaceable></arg> |
| 85 |
<arg>-sIntensityRendering=<replaceable>method</replaceable></arg> |
| 86 |
<arg>-dLeadingEdge=<replaceable>edge</replaceable></arg> |
| 87 |
<arg>-dManualFeed</arg> |
| 88 |
<arg>-sMediaConfigurationFile=<replaceable>pathname</replaceable></arg> |
| 89 |
<arg>-dMediaPosition=<replaceable>position</replaceable></arg> |
| 90 |
<arg>-sMedium=<replaceable>medium</replaceable></arg> |
| 91 |
<arg>-dOnlyCRD</arg> |
| 92 |
<arg>-sPageCountFile=<replaceable>pathname</replaceable></arg> |
| 93 |
<arg>-sPCLInit1=<replaceable>string</replaceable></arg> |
| 94 |
<arg>-sPCLInit2=<replaceable>string</replaceable></arg> |
| 95 |
<arg>-sPJLJob=<replaceable>jobname</replaceable></arg> |
| 96 |
<arg>-sPJLLanguage=<replaceable>language</replaceable></arg> |
| 97 |
<arg>-sPrintQuality=<replaceable>quality</replaceable></arg> |
| 98 |
<arg>-dRasterGraphicsQuality=<replaceable>quality</replaceable></arg> |
| 99 |
<arg>-dSendBlackLast</arg> |
| 100 |
<arg>-dSendNULs=<replaceable>number</replaceable></arg> |
| 101 |
<arg>-dShingling=<replaceable>shingling</replaceable></arg> |
| 102 |
<arg>-sSubdevice=<replaceable>subdevice</replaceable></arg> |
| 103 |
<arg>-dTumble</arg> |
| 104 |
<arg>-dUseCard=<replaceable>value</replaceable></arg> |
| 105 |
</group> |
| 106 |
<arg rep="repeat"><replaceable>file</replaceable></arg> |
| 107 |
<!-- Actually, gs does not follow the XPG Utility Syntax Guidelines and |
| 108 |
you can not only mix options and files but there are also multi-token |
| 109 |
options. --> |
| 110 |
</cmdsynopsis> |
| 111 |
</refsynopsisdiv> |
| 112 |
|
| 113 |
<!-- ********************************************************************** --> |
| 114 |
|
| 115 |
<refsect1 id="DESCRIPTION"><title id="DESCRIPTIONtitle">DESCRIPTION</title> |
| 116 |
|
| 117 |
<refsect2><title>Supported Printers</title> |
| 118 |
<para> |
| 119 |
The ghostscript device driver <command>pcl3</command> |
| 120 |
(formerly called <command>hpdj</command>) |
| 121 |
is a ghostscript backend for printers understanding |
| 122 |
Hewlett-Packard's Printer Command Language, level 3+ |
| 123 |
("PCL 3+", also called "PCL 3 Plus"). |
| 124 |
The driver is intended to support in particular the following printer models: |
| 125 |
<blockquote><literallayout><!-- This is a hack to get a compact list. |
| 126 |
-->HP DeskJet |
| 127 |
HP DeskJet Plus |
| 128 |
HP DeskJet Portable |
| 129 |
HP DeskJet 310 |
| 130 |
HP DeskJet 320 |
| 131 |
HP DeskJet 340 |
| 132 |
HP DeskJet 400 |
| 133 |
HP DeskJet 500 |
| 134 |
HP DeskJet 500C |
| 135 |
HP DeskJet 510 |
| 136 |
HP DeskJet 520 |
| 137 |
HP DeskJet 540 |
| 138 |
HP DeskJet 550C |
| 139 |
HP DeskJet 560C |
| 140 |
HP DeskJet 600 |
| 141 |
HP DeskJet 660C |
| 142 |
HP DeskJet 670C |
| 143 |
HP DeskJet 680C |
| 144 |
HP DeskJet 690C |
| 145 |
HP DeskJet 850C |
| 146 |
HP DeskJet 855C |
| 147 |
HP DeskJet 870C |
| 148 |
HP DeskJet 890C |
| 149 |
HP DeskJet 1120C |
| 150 |
<!-- A total of 24 printer models. --></literallayout></blockquote> |
| 151 |
|
| 152 |
The PCL dialect called "PCL Level 3 enhanced" is apparently a not |
| 153 |
entirely compatible modification of PCL 3+. |
| 154 |
This driver should basically work with such printers |
| 155 |
but you must be more careful which options you select and |
| 156 |
you might not be able to exploit all your printer's capabilities. |
| 157 |
</para> |
| 158 |
|
| 159 |
<para> |
| 160 |
The driver does <emphasis>not</emphasis> support printers understanding only |
| 161 |
Hewlett-Packard's PPA (Printing Performance Architecture) commands. |
| 162 |
If a printer's documentation does not say anything about its |
| 163 |
printer command language and |
| 164 |
you find a statement like "... is designed for Microsoft Windows" or |
| 165 |
"DOS support through Windows only", |
| 166 |
the printer is almost certainly a PPA printer and hence is intended |
| 167 |
<emphasis>exclusively</emphasis> |
| 168 |
for systems running Microsoft Windows. |
| 169 |
(These printers are also erroneously known as "GDI printers" |
| 170 |
because they are intended to be accessed through a manufacturer-supplied driver |
| 171 |
via Windows' GDI interface.) |
| 172 |
There exist ways of using a PPA printer with ghostscript, |
| 173 |
but not through <command>pcl3</command>. |
| 174 |
</para> |
| 175 |
|
| 176 |
<para> |
| 177 |
Different printer models usually implement model-specific subsets of all |
| 178 |
PCL-3+ commands or arguments to commands. |
| 179 |
You must therefore tell the driver by means of the |
| 180 |
<option>Subdevice</option> |
| 181 |
option for which model the generated PCL code is intended. |
| 182 |
The model-dependent difference in the generated code is not great. |
| 183 |
Apart from media specifications, resolutions and colour capabilities, |
| 184 |
one can consider three groups of models |
| 185 |
which are treated with significant differences: |
| 186 |
|
| 187 |
<blockquote><variablelist> |
| 188 |
<varlistentry> |
| 189 |
<term>Group 1</term> |
| 190 |
<listitem><para>DeskJet, DeskJet Plus, DeskJet 500</para></listitem> |
| 191 |
</varlistentry> |
| 192 |
<varlistentry> |
| 193 |
<term>Group 2</term> |
| 194 |
<listitem><para>DeskJet Portable, DeskJets 3<replaceable>xx</replaceable>, |
| 195 |
400, 5<replaceable>xx</replaceable> except 500 and 540, |
| 196 |
</para></listitem> |
| 197 |
</varlistentry> |
| 198 |
<varlistentry> |
| 199 |
<term>Group 3</term> |
| 200 |
<listitem><para>DeskJets 540, 6<replaceable>xx</replaceable>, |
| 201 |
8<replaceable>xx</replaceable> and 1120C.</para></listitem> |
| 202 |
</varlistentry> |
| 203 |
</variablelist> |
| 204 |
</blockquote> |
| 205 |
|
| 206 |
The first two groups I call the "old Deskjets", |
| 207 |
the third group consists of "new DeskJets". |
| 208 |
If you have a PCL-3 printer not appearing in the list above, |
| 209 |
the likelihood is still good that it will accept the files generated by |
| 210 |
<command>pcl3</command>. |
| 211 |
You can specify one of the supported subdevices in these cases |
| 212 |
(it is sufficient to try one each from the groups just mentioned), |
| 213 |
or use the special subdevice names |
| 214 |
<userinput>unspecold</userinput> or <userinput>unspec</userinput> |
| 215 |
which are treated like members of the second and the third group above, |
| 216 |
respectively, |
| 217 |
with all subdevice-dependent checks having been turned off. |
| 218 |
</para> |
| 219 |
|
| 220 |
<para> |
| 221 |
The list of printer models for which this driver is currently known to work is: |
| 222 |
</para> |
| 223 |
<para> |
| 224 |
<!-- I don't know how to achieve a compact list. --> |
| 225 |
<blockquote><literallayout> |
| 226 |
HP 2000C |
| 227 |
HP 2500CM |
| 228 |
HP DeskJet 697C |
| 229 |
HP DeskJet 850C |
| 230 |
HP DeskJet 970C |
| 231 |
HP DeskJet 1100C |
| 232 |
Xerox DocuPrint M750 |
| 233 |
</literallayout></blockquote> |
| 234 |
</para> |
| 235 |
<para> |
| 236 |
Details can be found in the file <filename>reports.txt</filename> in the |
| 237 |
<command>pcl3</command> distribution; |
| 238 |
its latest version is available via <command>pcl3</command>'s |
| 239 |
<ulink url="http://home.t-online.de/home/Martin.Lottermoser/pcl3.html">home |
| 240 |
page</ulink>. |
| 241 |
If you wish to report on the hardware compatibility for a particular |
| 242 |
printer model, |
| 243 |
please read the file <filename>how-to-report.txt</filename>. |
| 244 |
</para> |
| 245 |
|
| 246 |
<para> |
| 247 |
Omitting models already mentioned, |
| 248 |
previous (<command>hpdj</command>) versions of this driver were reported to |
| 249 |
work with the following printers: |
| 250 |
</para> |
| 251 |
<para> |
| 252 |
<!-- Should be a compact list. --> |
| 253 |
<blockquote><literallayout> |
| 254 |
HP DeskJet 340 |
| 255 |
HP DeskJet 400 (tested for Gray only) |
| 256 |
HP DeskJet 420 |
| 257 |
HP DeskJet 500 |
| 258 |
HP DeskJet 500C (tested for Gray only) |
| 259 |
HP DeskJet 520 |
| 260 |
HP DeskJet 540 |
| 261 |
HP DeskJet 560C |
| 262 |
HP DeskJet 600 |
| 263 |
HP DeskJet 610C |
| 264 |
HP DeskJet 612C <!-- 2000-07-06 R. Thavas --> |
| 265 |
HP DeskJet 640C <!-- 2000-10-02 Filip Stanek --> |
| 266 |
HP DeskJet 660C/660Cse |
| 267 |
HP DeskJet 670C |
| 268 |
HP DeskJet 672C |
| 269 |
HP DeskJet 680C |
| 270 |
HP DeskJet 690C |
| 271 |
HP DeskJet 690C+ |
| 272 |
HP DeskJet 693C |
| 273 |
HP DeskJet 694C |
| 274 |
HP DeskJet 832C |
| 275 |
HP DeskJet 855C |
| 276 |
HP DeskJet 870Cse/870Cxi |
| 277 |
HP DeskJet 880C |
| 278 |
HP DeskJet 890C |
| 279 |
HP DeskJet 895Cse/895Cxi |
| 280 |
HP DeskJet 932C <!-- 2000-08-19 David Murdoch --> |
| 281 |
HP DeskJet 1120C |
| 282 |
HP OfficeJet 350 <!-- 2000-08-09 Chris BeHanna --> |
| 283 |
HP OfficeJet 590 |
| 284 |
HP OfficeJet 600 |
| 285 |
HP OfficeJet 625 |
| 286 |
HP OfficeJet G55 <!-- 2000-10-27 Harald Schmid --> |
| 287 |
HP OfficeJet T45 <!-- 2000-09-02 Peter Henning --> |
| 288 |
Lexmark 3000 Color Jetprinter |
| 289 |
Olivetti JP792 (see the option <option>SendBlackLast</option>) |
| 290 |
</literallayout></blockquote> |
| 291 |
</para> |
| 292 |
|
| 293 |
<para> |
| 294 |
Most of the people who sent me reports did not state to which extent |
| 295 |
<command>hpdj</command> worked for their printer model. |
| 296 |
</para> |
| 297 |
</refsect2> |
| 298 |
|
| 299 |
<!--========================================================================--> |
| 300 |
|
| 301 |
<refsect2 id="ColourModels"><title>Colour Models</title> |
| 302 |
|
| 303 |
<para> |
| 304 |
Ignoring photo cartridges which are not supported by <command>pcl3</command>, |
| 305 |
DeskJet printers can be classified in four categories: |
| 306 |
</para> |
| 307 |
<itemizedlist> |
| 308 |
<listitem><para>The printer has only a black ink cartridge.</para></listitem> |
| 309 |
<listitem><para>The printer can print with either a black or a |
| 310 |
cyan/magenta/yellow (CMY) cartridge.</para></listitem> |
| 311 |
<listitem><para>The printer holds a CMY and a black cartridge simultaneously, |
| 312 |
but the two groups of inks are chemically incompatible and should not be |
| 313 |
overlayed. |
| 314 |
(Don't worry: the printer is not going to explode if they do. |
| 315 |
You merely get poorer results because the black ink will spread further |
| 316 |
than it should. |
| 317 |
This is called "ink bleeding".)</para></listitem> |
| 318 |
<listitem><para>The printer holds a CMY and a black cartridge simultaneously |
| 319 |
and the inks can be mixed. |
| 320 |
(Newer HP DeskJets use such bleed-proof inks.)</para></listitem> |
| 321 |
</itemizedlist> |
| 322 |
<para> |
| 323 |
This leads to four <firstterm>(process) colour models</firstterm> |
| 324 |
for the driver: |
| 325 |
<blockquote><variablelist> |
| 326 |
<varlistentry> |
| 327 |
<term>Gray</term> |
| 328 |
<listitem><para>Print in black only.</para></listitem> |
| 329 |
</varlistentry> |
| 330 |
<varlistentry> |
| 331 |
<term>CMY</term> |
| 332 |
<listitem><para>Print with cyan, magenta and yellow. |
| 333 |
In this mode, "composite black" consisting of all three inks is used to |
| 334 |
stand in for true black.</para> |
| 335 |
</listitem> |
| 336 |
</varlistentry> |
| 337 |
<varlistentry> |
| 338 |
<term>CMY+K</term> |
| 339 |
<listitem><para> |
| 340 |
Print with all four inks, but never mix black with one of the others. |
| 341 |
</para></listitem> |
| 342 |
</varlistentry> |
| 343 |
<varlistentry> |
| 344 |
<term>CMYK</term> |
| 345 |
<listitem><para>Print with all four inks.</para></listitem> |
| 346 |
</varlistentry> |
| 347 |
</variablelist></blockquote> |
| 348 |
|
| 349 |
As a printer with both, a black and a CMY cartridge, can usually also print, |
| 350 |
e.g., with black only, |
| 351 |
the printer's "cartridge state" merely identifies one of these models as the |
| 352 |
maximal one. |
| 353 |
Depending on the category of the printer, |
| 354 |
the driver will therefore accept one or more models. |
| 355 |
The possibilities are: |
| 356 |
<blockquote><informaltable><tgroup cols="2"> |
| 357 |
<thead> |
| 358 |
<row rowsep="1"><entry>DeskJet Model</entry><entry>Colour Models</entry></row> |
| 359 |
<!-- Rule missing here. --> |
| 360 |
</thead> |
| 361 |
<tbody> |
| 362 |
<row><entry>DeskJet, DeskJet Plus, DeskJet Portable, 500, 510, 520</entry> |
| 363 |
<entry>Gray</entry></row> |
| 364 |
<row><entry>310, 320, 340, 400, 500C, 540, 600</entry> |
| 365 |
<entry>Gray, CMY</entry></row> |
| 366 |
<row><entry>550C, 560C</entry><entry>Gray, CMY, CMY+K</entry></row> |
| 367 |
<row><entry>660C, 670C, 680C, 690C, 850C, 855C, 870C, 890C, 1120C</entry> |
| 368 |
<entry>all</entry></row> |
| 369 |
</tbody> |
| 370 |
</tgroup></informaltable></blockquote> |
| 371 |
|
| 372 |
The subdevices <userinput>unspecold</userinput> and |
| 373 |
<userinput>unspec</userinput> also permit all colour models. |
| 374 |
A printer capable only of CMY might accept CMY+K or CMYK data, |
| 375 |
remapping them to CMY, |
| 376 |
and a printer capable of CMY+K might remap CMY data to CMY+K. |
| 377 |
</para> |
| 378 |
|
| 379 |
<para> |
| 380 |
The colour model CMY+K is not useful if you have a CMYK printer. |
| 381 |
In contrast, |
| 382 |
if you have a CMY+K or CMYK printer and the two cartridges support different |
| 383 |
resolutions, |
| 384 |
the colour models Gray or CMY become interesting as well. |
| 385 |
In most of these cases |
| 386 |
the black cartridge can print at a higher resolution than the CMY cartridge, |
| 387 |
although the converse does also occur. |
| 388 |
In addition, ghostscript is generally fastest for Gray. |
| 389 |
</para> |
| 390 |
|
| 391 |
<para> |
| 392 |
PCL 3+ also supports the colour model RGB |
| 393 |
although Hewlett-Packard discourages its use. |
| 394 |
For this model the printer internally converts the RGB data it receives into |
| 395 |
CMY data for printing. |
| 396 |
Note that not everything which can be demanded when using a CMY palette |
| 397 |
in PCL 3+ is also permitted when using RGB. |
| 398 |
Because of its limited usefulness, |
| 399 |
<command>pcl3</command> accepts the colour model RGB only for the subdevices |
| 400 |
<userinput>unspecold</userinput> and <userinput>unspec</userinput>. |
| 401 |
</para> |
| 402 |
|
| 403 |
</refsect2> |
| 404 |
|
| 405 |
<!--========================================================================--> |
| 406 |
|
| 407 |
<refsect2 id="sizesAndOrientations"><title>Media Sizes and Orientations</title> |
| 408 |
|
| 409 |
<para> |
| 410 |
A PostScript document describes its visible content with respect to |
| 411 |
a coordinate system called <firstterm>default user space</firstterm>. |
| 412 |
Almost all PostScript devices are <firstterm>page devices</firstterm> which |
| 413 |
paint only a restricted rectangular area in default user space. |
| 414 |
Part of the state of a page device is therefore the current |
| 415 |
<firstterm>page size</firstterm>, |
| 416 |
two numbers specifying the width and height of the sheet to be printed on. |
| 417 |
These values must be interpreted from default user space, |
| 418 |
hence the page size not only describes the |
| 419 |
"sheet size" (extension irrespective of orientation) but also the |
| 420 |
orientation between page contents and sheet |
| 421 |
(portrait if width ≤ height, landscape otherwise). |
| 422 |
The page size is requested by the user or the document, |
| 423 |
and it is one of the jobs of the device to satisfy this request. |
| 424 |
</para> |
| 425 |
|
| 426 |
<para> |
| 427 |
Ghostscript looks at several sources to determine the page size: |
| 428 |
</para> |
| 429 |
<itemizedlist> |
| 430 |
<listitem><para>the default size configured for <command>gs</command> |
| 431 |
(usually US Letter or ISO A4 in portrait orientation), |
| 432 |
</para> |
| 433 |
</listitem> |
| 434 |
<listitem><para>the value given to the option <option>PAPERSIZE</option> in the |
| 435 |
invocation,</para> |
| 436 |
</listitem> |
| 437 |
<listitem><para>the size requested by the document, unless you specify |
| 438 |
<userinput>-dFIXEDMEDIA</userinput>.</para> |
| 439 |
</listitem> |
| 440 |
</itemizedlist> |
| 441 |
<para> |
| 442 |
The last applicable item in this list overrides the others, |
| 443 |
hence the current page size can change at runtime. |
| 444 |
</para> |
| 445 |
|
| 446 |
<para> |
| 447 |
The <command>pcl3</command> driver splits the page size into sheet size and |
| 448 |
page orientation and passes the sheet size to the printer. |
| 449 |
This works only if the printer accepts this size |
| 450 |
(accepted sizes are listed in your printer's manual). |
| 451 |
For the explicitly supported printers, |
| 452 |
the driver knows which sizes are accepted |
| 453 |
and will refuse to print if an unsupported one is requested. |
| 454 |
(If you suspect that <command>pcl3</command> is in error concerning what is |
| 455 |
supported, |
| 456 |
check the list of supported sizes in the PPD file for the subdevice you are |
| 457 |
using.) |
| 458 |
Group-3 printers also accept a <firstterm>custom page size</firstterm> command |
| 459 |
which permits printing on arbitrarily-sized media |
| 460 |
but only within certain limits which are also known to the driver. |
| 461 |
Unlike the sheet size the page orientation is irrelevant for deciding whether |
| 462 |
a particular page size is supported or not. |
| 463 |
The driver will adapt itself as required by the |
| 464 |
PostScript language and rotate the output if necessary. |
| 465 |
(I know of only one other ghostscript driver capable of this.) |
| 466 |
<!-- The clj driver. --> |
| 467 |
</para> |
| 468 |
|
| 469 |
<para> |
| 470 |
In setting up the PostScript default user space, |
| 471 |
<command>pcl3</command> |
| 472 |
does not treat envelope sizes differently from other sizes. |
| 473 |
</para> |
| 474 |
<!-- |
| 475 |
The Adobe PostScript 3 Version 3010 and 3011 Product Supplement states |
| 476 |
(section 2.3, this is repeated from earlier versions of the Supplement) that |
| 477 |
for envelopes in portrait orientation the default user space origin should be |
| 478 |
in the corner opposite to the return address and not located on an edge where |
| 479 |
the flap is. For landscape orientation, the correct rotation of default user |
| 480 |
space is then -90 degrees ("seascape") instead of the usual +90 degrees |
| 481 |
used by setpagedevice. This implies that the generating program must treat |
| 482 |
envelopes different from other media of the same size! I find this |
| 483 |
unacceptable (and I could find stronger words than that). |
| 484 |
In addition, at least on a DJ 850C the way in which one should insert |
| 485 |
envelopes according to HP (flap on the right) leads to the expected result |
| 486 |
if one uses the +90 degrees rotation. |
| 487 |
--> |
| 488 |
|
| 489 |
<para> |
| 490 |
The subdevice <userinput>unspecold</userinput> accepts all sizes supported by |
| 491 |
the HP DeskJet 560C, |
| 492 |
<userinput>unspec</userinput> supports all discrete sizes known to the |
| 493 |
HP DeskJets 850C/855C/870C/890C and |
| 494 |
treats in addition every other size request as a custom page size |
| 495 |
without imposing any limits. |
| 496 |
If using any of these two subdevices you should change the list of supported |
| 497 |
sizes to fit your printer's capabilities; |
| 498 |
see the |
| 499 |
<link linkend="CONFIGURATION"><citetitle>CONFIGURATION</citetitle></link> |
| 500 |
section below for details. |
| 501 |
</para> |
| 502 |
|
| 503 |
<para> |
| 504 |
In order for a document to be printed correctly |
| 505 |
a sheet of appropriate size must be provided and the driver must know |
| 506 |
what its orientation with respect to the printing mechanism is. |
| 507 |
The latter is usually specified by reference to the feeding direction as |
| 508 |
"short edge first" or "long edge first". |
| 509 |
Don't confuse this kind of orientation with the portrait/landscape |
| 510 |
orientation: |
| 511 |
the former ("sheet orientation") refers to the orientation of the sheet |
| 512 |
with respect to the feeding direction, |
| 513 |
the latter ("page orientation") describes the orientation of the sheet with |
| 514 |
respect to the page contents (default user space). |
| 515 |
These orientations are logically independent: |
| 516 |
people inserting paper into the printer need to know about the first, |
| 517 |
people composing documents only care about the latter. |
| 518 |
</para> |
| 519 |
|
| 520 |
<para> |
| 521 |
Because <command>pcl3</command> |
| 522 |
has no information about the actual dimension or orientation of the medium |
| 523 |
in the input tray, |
| 524 |
you must ensure yourself that this is appropriate. |
| 525 |
By default, the driver assumes the dimension to be that requested via the |
| 526 |
page size, |
| 527 |
but you can override this assumption with an <literal>InputAttributes</literal> |
| 528 |
definition (see the |
| 529 |
<link linkend="sourcesAndDestinations"><citetitle>Media Sources and Destinations</citetitle></link> |
| 530 |
subsection in the <citetitle>CONFIGURATION</citetitle> section below). |
| 531 |
</para> |
| 532 |
|
| 533 |
<para> |
| 534 |
There is no command in PCL 3+ to tell the printer about the |
| 535 |
sheet's orientation in the input tray, |
| 536 |
therefore it cannot be chosen and the manufacturer must prescribe it. |
| 537 |
I am not aware of any precise and complete statement from Hewlett-Packard |
| 538 |
about what is required in this respect, |
| 539 |
hence you should check your printer's manual whether the assumptions made by |
| 540 |
<command>pcl3</command> are correct or not: |
| 541 |
the driver assumes that media are always fed short edge first except when |
| 542 |
using the subdevices |
| 543 |
<userinput>hpdj</userinput>, |
| 544 |
<userinput>hpdjplus</userinput>, |
| 545 |
<userinput>hpdj400</userinput>, |
| 546 |
<userinput>hpdj500</userinput> |
| 547 |
or |
| 548 |
<userinput>hpdj500c</userinput> |
| 549 |
for printing on envelope sizes |
| 550 |
(US no. 10 and ISO DL). |
| 551 |
In these cases you should insert the medium long edge first. |
| 552 |
<!-- |
| 553 |
Actually, this description is not entirely correct. The real assumption |
| 554 |
made by pcl3 is that if any PCL Page Size command is followed by a |
| 555 |
PCL Page Orientation command denoting "portrait", the first raster line |
| 556 |
sent is printed closest to and parallel with a short edge except in the |
| 557 |
cases mentioned in the text. The driver does not care how media are put |
| 558 |
into the input tray, but the medium's orientation with respect to the |
| 559 |
printer's command interface is important (and it's not documented by HP). |
| 560 |
|
| 561 |
The two descriptions are equivalent if the printer always prints the first |
| 562 |
raster line closest to and parallel with the leading edge. This assumption |
| 563 |
seems to me safe (mostly because PCL-3+ printers usually do not have |
| 564 |
sufficient memory to store a full graphics page) and I do not know of any |
| 565 |
PCL-3 printer violating it. |
| 566 |
--> |
| 567 |
If you find that <command>pcl3</command>'s default behaviour is incorrect, |
| 568 |
you can override it with the option <option>LeadingEdge</option> |
| 569 |
or a media configuration file |
| 570 |
(see the |
| 571 |
<link linkend="CONFIGURATION"><citetitle>CONFIGURATION</citetitle></link> |
| 572 |
section below). |
| 573 |
</para> |
| 574 |
|
| 575 |
</refsect2> |
| 576 |
|
| 577 |
<!--========================================================================--> |
| 578 |
|
| 579 |
<refsect2><title>Print Quality and Media Properties</title> |
| 580 |
|
| 581 |
<para> |
| 582 |
With the introduction of the DeskJet 540, HP added two new PCL commands to the |
| 583 |
language: "Print Quality" and "Media Type". |
| 584 |
For older DeskJets (groups 1 and 2), similar effects can be |
| 585 |
achieved by specifying some technical aspects of the printing process in detail. |
| 586 |
</para> |
| 587 |
|
| 588 |
<para> |
| 589 |
You can use the <option>PrintQuality</option> and |
| 590 |
<option>Medium</option> options to adapt the driver to the desired |
| 591 |
output quality and those properties of the medium it must know about, |
| 592 |
independent of which kind of subdevice you select. |
| 593 |
If it corresponds to a printer understanding the new commands, |
| 594 |
the option values are passed through to the printer, |
| 595 |
otherwise these specifications are |
| 596 |
mapped to the older Depletion, Shingling, and Raster Graphics Quality commands |
| 597 |
based on recommendations from HP. |
| 598 |
<!-- See TRG, page 6-34. --> |
| 599 |
If you are not satisfied with the result in the latter case, |
| 600 |
use the options <option>Depletion</option>, |
| 601 |
<option>Shingling</option> and |
| 602 |
<option>RasterGraphicsQuality</option> |
| 603 |
to explicitly set these values. |
| 604 |
</para> |
| 605 |
|
| 606 |
</refsect2> |
| 607 |
|
| 608 |
<!--========================================================================--> |
| 609 |
|
| 610 |
<refsect2><title>Diagnostic Messages</title> |
| 611 |
|
| 612 |
<para> |
| 613 |
Error messages issued by this driver start with |
| 614 |
"<computeroutput>? <replaceable>component</replaceable>:</computeroutput>" |
| 615 |
and warnings with |
| 616 |
"<computeroutput>?-W <replaceable>component</replaceable>:</computeroutput>". |
| 617 |
The <replaceable>component</replaceable> can be |
| 618 |
<computeroutput>eprn</computeroutput>, |
| 619 |
<computeroutput>pcl3</computeroutput>, or |
| 620 |
<computeroutput>pclgen</computeroutput>, |
| 621 |
corresponding to the driver's three internal layers: |
| 622 |
the <command>eprn</command> device extends ghostscript without knowing PCL, |
| 623 |
<command>pclgen</command> is a module generating PCL without being aware of |
| 624 |
ghostscript, |
| 625 |
and <command>pcl3</command> is the driver proper connecting the other two |
| 626 |
layers. |
| 627 |
</para> |
| 628 |
|
| 629 |
<para> |
| 630 |
All these messages are written on the standard error stream. |
| 631 |
</para> |
| 632 |
|
| 633 |
</refsect2> |
| 634 |
</refsect1> |
| 635 |
|
| 636 |
<!-- ********************************************************************** --> |
| 637 |
|
| 638 |
<refsect1 id="OPTIONS"><title>OPTIONS</title> |
| 639 |
|
| 640 |
<para> |
| 641 |
When specifying options for <command>gs</command> you should keep in mind |
| 642 |
that |
| 643 |
case is significant, |
| 644 |
that some options must be passed as strings (<userinput>-s</userinput>) |
| 645 |
and others as general tokens (<userinput>-d</userinput>), |
| 646 |
and that <command>gs</command> |
| 647 |
effectively ignores every option it does not recognize. |
| 648 |
Hence some care in spelling parameter names is necessary. |
| 649 |
</para> |
| 650 |
|
| 651 |
<para> |
| 652 |
If you are confused by the large number of options, don't worry. |
| 653 |
Just ignore those you don't understand and |
| 654 |
concentrate first on the following ones, |
| 655 |
given here in the order of their importance: |
| 656 |
<userinput>-sDEVICE</userinput>, |
| 657 |
<userinput>-sSubdevice</userinput>, |
| 658 |
<userinput>-sColourModel</userinput>, |
| 659 |
<userinput>-r</userinput>, |
| 660 |
<userinput>-sPrintQuality</userinput>, |
| 661 |
and |
| 662 |
<userinput>-sMedium</userinput>. |
| 663 |
You should also check whether there is an entry in the |
| 664 |
<filename>reports.txt</filename> file |
| 665 |
in the <command>pcl3</command> distribution |
| 666 |
listing working option combinations for your printer. |
| 667 |
</para> |
| 668 |
|
| 669 |
<!--========================================================================--> |
| 670 |
|
| 671 |
<refsect2><title>Standard Options</title> |
| 672 |
|
| 673 |
<para> |
| 674 |
When calling <command>gs</command> with the <command>pcl3</command> driver |
| 675 |
you can specify any option defined for ghostscript's |
| 676 |
<command>prn</command> |
| 677 |
(printer) device although some have particular meanings or restrictions. |
| 678 |
This includes all device-independent options described in |
| 679 |
<citerefentry> |
| 680 |
<refentrytitle>gs</refentrytitle><manvolnum>1</manvolnum> |
| 681 |
</citerefentry>. |
| 682 |
You should also look into ghostscript's extended documentation |
| 683 |
(file <ulink url="Use.htm"><filename>Use.htm</filename></ulink> and the section |
| 684 |
<ulink url="Language.htm#Device_parameters"><citetitle>Device |
| 685 |
parameters</citetitle></ulink> |
| 686 |
<!-- VERIFIED: Link checked for gs 5.50 and gs 6.50. --> |
| 687 |
in <filename>Language.htm</filename>). |
| 688 |
|
| 689 |
</para> |
| 690 |
|
| 691 |
<variablelist> |
| 692 |
|
| 693 |
<!-- ______________________________________________________________________ --> |
| 694 |
|
| 695 |
<varlistentry> |
| 696 |
<term><userinput>-sDEVICE=pcl3</userinput></term> |
| 697 |
<listitem><para>This specification selects the <command>pcl3</command> |
| 698 |
driver, |
| 699 |
but this is not the only way to select it with this option. |
| 700 |
See the description of the <option>Subdevice</option> option below for other |
| 701 |
possibilities. |
| 702 |
</para></listitem> |
| 703 |
</varlistentry> |
| 704 |
|
| 705 |
<!-- ______________________________________________________________________ --> |
| 706 |
|
| 707 |
<varlistentry> |
| 708 |
<term><userinput>-dDuplex<optional>=<replaceable>boolean</replaceable></optional |
| 709 |
></userinput> or <userinput>-dDuplex=null</userinput></term> |
| 710 |
<listitem><para> |
| 711 |
This parameter requests duplex printing and can be set to |
| 712 |
<userinput>true</userinput> only for <userinput>unspec</userinput> and |
| 713 |
<userinput>unspecold</userinput>, |
| 714 |
and when the |
| 715 |
<option>DuplexCapability</option> value is not <userinput>none</userinput>. |
| 716 |
The default is <userinput>null</userinput> |
| 717 |
which for this driver means that the printer's default setting will be used. |
| 718 |
</para> |
| 719 |
|
| 720 |
<para> |
| 721 |
If your printer does not support duplex printing you can achieve the same |
| 722 |
effect manually by printing the odd and even pages separately |
| 723 |
(use a command like <citerefentry> |
| 724 |
<refentrytitle>psselect</refentrytitle> |
| 725 |
<manvolnum>1</manvolnum> |
| 726 |
</citerefentry> from the psutils package for extracting these parts) |
| 727 |
and reinserting the paper in between. |
| 728 |
</para></listitem> |
| 729 |
</varlistentry> |
| 730 |
|
| 731 |
<!-- ______________________________________________________________________ --> |
| 732 |
|
| 733 |
<varlistentry> |
| 734 |
<term><userinput>-r <replaceable>resolution</replaceable></userinput></term> |
| 735 |
<listitem><para>This option specifies the resolution in |
| 736 |
pixels per inch (ppi; sometimes also called dots per inch, dpi). |
| 737 |
<!-- Strictly speaking, the concept here is addressability, not resolution, |
| 738 |
because the option sets the number of pixels sent to the printer, not |
| 739 |
what it really prints. For the same reason, using "dpi" would actually be |
| 740 |
wrong. --> |
| 741 |
The driver checks whether the subdevice selected accepts the given |
| 742 |
resolution unless the subdevice is <userinput>unspecold</userinput> or |
| 743 |
<userinput>unspec</userinput>. |
| 744 |
Resolutions supported by at least some of the other subdevices |
| 745 |
for some of the colour models are 75, 100, 150, 300, 600×300 and 600 ppi. |
| 746 |
Consult the PPD files in the <command>pcl3</command> distribution if you want |
| 747 |
to know the details. |
| 748 |
The default resolution for <command>pcl3</command> is 300 ppi. |
| 749 |
</para> |
| 750 |
|
| 751 |
<para> |
| 752 |
At least the highest possible value should be listed in your printer's manual, |
| 753 |
but some care is necessary in the interpretation: |
| 754 |
the value given to <command>pcl3</command> must be a resolution supported by |
| 755 |
the printer's hardware for all the colorants in the process colour model |
| 756 |
simultaneously and when operating in raster graphics mode. |
| 757 |
You should also keep in mind that if your printer has two cartridges |
| 758 |
they might support different sets of resolutions, |
| 759 |
i.e., which resolution you can choose might depend on the colour model. |
| 760 |
It is also possible that the print quality has to be considered as well. |
| 761 |
If you are in doubt and have access to a manufacturer-endorsed driver for your |
| 762 |
printer, |
| 763 |
use <command>pcl3opts</command> to find out about the settings used by that |
| 764 |
driver. |
| 765 |
</para> |
| 766 |
|
| 767 |
<para> |
| 768 |
At least some of the series-500 DeskJets claim to |
| 769 |
permit a resolution of 600 × 300 ppi. |
| 770 |
However, |
| 771 |
although these models have a 600 dpi addressable horizontal resolution grid |
| 772 |
they do not permit neighbouring pixels to be activated |
| 773 |
(and the dots printed still have a diameter of about 1/300 in). |
| 774 |
The raster data generated by |
| 775 |
<command>gs</command> |
| 776 |
does not obey this restriction. |
| 777 |
In addition, it is possible that the higher resolution is anyway only supported |
| 778 |
for the printer's builtin fonts and not for general raster data. |
| 779 |
</para> |
| 780 |
|
| 781 |
<para> |
| 782 |
Concerning the DeskJet 870C, |
| 783 |
my impression is that although some HP documents and drivers use expressions |
| 784 |
like "600x300 dpi C-REt color" for this printer, |
| 785 |
the model does not really support a resolution of 600 × 300 ppi. |
| 786 |
First, it does not accept <command>pcl3</command>'s output with this resolution, |
| 787 |
and second, |
| 788 |
if one inspects the best output of HP's Windows driver for this printer |
| 789 |
with <command>pcl3opts</command>, |
| 790 |
one finds that the file uses a "mixed resolution", |
| 791 |
i.e., 600 ppi for black and 300 ppi for CMY. |
| 792 |
This is not supported by <command>pcl3</command>. |
| 793 |
</para> |
| 794 |
</listitem> |
| 795 |
</varlistentry> |
| 796 |
|
| 797 |
<!-- ______________________________________________________________________ --> |
| 798 |
|
| 799 |
</variablelist> |
| 800 |
</refsect2> |
| 801 |
|
| 802 |
<!--========================================================================--> |
| 803 |
|
| 804 |
<refsect2><title><command>Pcl3</command>-Specific Options</title> |
| 805 |
|
| 806 |
<variablelist> |
| 807 |
|
| 808 |
<varlistentry> |
| 809 |
<term><userinput>-dBlackLevels=<replaceable>levels</replaceable></userinput |
| 810 |
> and <userinput>-dCMYLevels=<replaceable>levels</replaceable></userinput |
| 811 |
></term> |
| 812 |
<listitem><para> |
| 813 |
These options set the number of intensity levels per pixel and colorant |
| 814 |
to use when printing with black or CMY inks, respectively, |
| 815 |
and must be consistent with the colour model. |
| 816 |
They permit access to the printer's |
| 817 |
Colour Resolution Enhancement technology (C-REt) feature. |
| 818 |
The defaults are 0 or 2, depending on the colour model chosen. |
| 819 |
Other values are only accepted for the subdevices |
| 820 |
<userinput>hpdj8<replaceable>nn</replaceable>c</userinput>, |
| 821 |
<userinput>hpdj1120c</userinput> |
| 822 |
and <userinput>unspec</userinput>, |
| 823 |
and when not using the colour model <userinput>RGB</userinput>. |
| 824 |
</para> |
| 825 |
|
| 826 |
<para> |
| 827 |
The subdevice <userinput>unspec</userinput> |
| 828 |
accepts any non-negative number of levels except 1 up to 256. |
| 829 |
The subdevices <userinput>hpdj8<replaceable>nn</replaceable>c</userinput> |
| 830 |
and <userinput>hpdj1120c</userinput> accept the |
| 831 |
<replaceable>levels</replaceable> 0, 2, 3 and 4 |
| 832 |
with the following restrictions if any of the levels is larger than 2 |
| 833 |
(these restrictions have been determined experimentally with a |
| 834 |
DeskJet 850C and are not based on HP documentation): |
| 835 |
</para> |
| 836 |
<itemizedlist> |
| 837 |
<listitem><para> |
| 838 |
You can't use this feature with draft quality. |
| 839 |
</para></listitem> |
| 840 |
<listitem><para> |
| 841 |
You can't use a colour model of <userinput>CMY</userinput>. |
| 842 |
</para></listitem> |
| 843 |
<listitem><para> |
| 844 |
You must use a resolution of 300 ppi. |
| 845 |
</para></listitem> |
| 846 |
<listitem><para> |
| 847 |
You must use 4 levels for black. |
| 848 |
</para></listitem></itemizedlist> |
| 849 |
<para> |
| 850 |
When using the subdevice <userinput>unspec</userinput> |
| 851 |
you should expect the printer to similarly limit the possibilities. |
| 852 |
In particular you must expect the permitted number of levels to depend on |
| 853 |
colour model, resolution and print quality. |
| 854 |
So far I have not heard of a PCL-3+ printer supporting more than |
| 855 |
four intensity levels per colorant. |
| 856 |
</para></listitem> |
| 857 |
</varlistentry> |
| 858 |
|
| 859 |
<!-- ______________________________________________________________________ --> |
| 860 |
|
| 861 |
<varlistentry> |
| 862 |
<term><userinput>-sColorModel=<replaceable>model</replaceable></userinput |
| 863 |
> or <userinput>-sColourModel=<replaceable>model</replaceable></userinput></term> |
| 864 |
<listitem><para> |
| 865 |
This selects the colour model to be used by the driver: |
| 866 |
<userinput>Gray</userinput>, |
| 867 |
<userinput>RGB</userinput>, |
| 868 |
<userinput>CMY</userinput>, <userinput>CMY+K</userinput> or |
| 869 |
<userinput>CMYK</userinput>. |
| 870 |
The default is <userinput>Gray</userinput>. |
| 871 |
Which colour models are accepted depends on the subdevice, see |
| 872 |
<link linkend="ColourModels"><citetitle>Colour Models</citetitle></link> |
| 873 |
in the section <citetitle>DESCRIPTION</citetitle> above. |
| 874 |
</para> |
| 875 |
|
| 876 |
<para> |
| 877 |
A value of <userinput>CMY</userinput> for this option also sets |
| 878 |
<userinput>BlackLevels</userinput> to zero, |
| 879 |
<!-- Note that "BlackLevels" in the previous line is deliberately not marked up |
| 880 |
as an option. --> |
| 881 |
and if |
| 882 |
<userinput>CMYLevels</userinput> |
| 883 |
is zero when you demand any of <userinput>CMY</userinput>, |
| 884 |
<userinput>CMY+K</userinput> or <userinput>CMYK</userinput>, |
| 885 |
it is set to two. |
| 886 |
For <userinput>RGB</userinput>, effectively the same happens as for |
| 887 |
<userinput>CMY</userinput>. |
| 888 |
For all other situations you must ensure yourself that colour model and |
| 889 |
intensity levels are consistent or <command>pcl3</command> will complain. |
| 890 |
This rule implies that you can ignore the level options unless you |
| 891 |
want to use a non-default number of levels. |
| 892 |
</para> |
| 893 |
|
| 894 |
<para> |
| 895 |
The PostScript page device dictionary entry |
| 896 |
<literal>ProcessColorModel</literal> will not be correct for a colour model of |
| 897 |
<userinput>CMY</userinput> or <userinput>CMY+K</userinput>. |
| 898 |
(Ghostscript returns the native colour space in this parameter, |
| 899 |
not the process colour model.) |
| 900 |
</para></listitem> |
| 901 |
</varlistentry> |
| 902 |
|
| 903 |
<!-- ______________________________________________________________________ --> |
| 904 |
|
| 905 |
<varlistentry> |
| 906 |
<term><userinput>-dCompressionMethod=<replaceable>method</replaceable></userinput></term> |
| 907 |
<listitem><para> |
| 908 |
PCL interpreters understand several compression methods for raster graphics |
| 909 |
data in order to speed up host-printer communication. |
| 910 |
The possible choices are: |
| 911 |
|
| 912 |
<informaltable><tgroup cols="2"> |
| 913 |
<tbody> |
| 914 |
<row><entry><userinput>0</userinput></entry> |
| 915 |
<entry>Unencoded, non-compressed</entry></row> |
| 916 |
<row><entry><userinput>1</userinput></entry> |
| 917 |
<entry>Runlength encoding</entry></row> |
| 918 |
<row><entry><userinput>2</userinput></entry> |
| 919 |
<entry>Tagged Image File Format (TIFF) revision 4.0 "Packbits" encoding </entry></row> |
| 920 |
<row><entry><userinput>3</userinput></entry> |
| 921 |
<entry>Delta Row Compression</entry></row> |
| 922 |
<row><entry><userinput>9</userinput></entry> |
| 923 |
<entry>Compressed Replacement Delta Row Encoding</entry></row> |
| 924 |
</tbody></tgroup></informaltable> |
| 925 |
|
| 926 |
The default method is 9 except for the subdevices |
| 927 |
<userinput>hpdj</userinput>, |
| 928 |
<userinput>hpdjplus</userinput>, and |
| 929 |
<userinput>hpdj500</userinput> where it is 3 |
| 930 |
(these printers do not support method 9), |
| 931 |
and for the subdevices <userinput>unspec</userinput> and |
| 932 |
<userinput>unspecold</userinput> where it is 2 |
| 933 |
(this seems to give the best combination of portability and compression). |
| 934 |
Requesting method 3 actually leads to a combination of methods 2 and 3. |
| 935 |
The driver may temporarily choose method 0 if a compressed data sequence would |
| 936 |
be longer than its uncompressed version. |
| 937 |
</para> |
| 938 |
|
| 939 |
<para> |
| 940 |
Compression rates can vary drastically, depending on the structure of the input. |
| 941 |
However, although the absolute values change, the relative order of efficiency |
| 942 |
between the methods is usually the order of increasing |
| 943 |
<replaceable>method</replaceable>. |
| 944 |
In short: use method 9 if it is supported. |
| 945 |
</para></listitem> |
| 946 |
</varlistentry> |
| 947 |
|
| 948 |
<!-- ______________________________________________________________________ --> |
| 949 |
|
| 950 |
<varlistentry> |
| 951 |
<term><userinput>-dConfigureEveryPage<optional>=<replaceable>boolean</replaceable></optional></userinput></term> |
| 952 |
<listitem><para> |
| 953 |
This parameter, if set to true, will force the printer to be reconfigured for |
| 954 |
every page. |
| 955 |
The option is superfluous for printers which are truly PCL-3-conforming. |
| 956 |
</para> |
| 957 |
|
| 958 |
<para> |
| 959 |
Use this parameter if you discover that you can print single-page documents |
| 960 |
without problems but that the printer does not accept multi-page files. |
| 961 |
At present, the only printer I know of for which such a reconfiguration is |
| 962 |
needed is the Xerox DocuPrint M750. |
| 963 |
</para></listitem> |
| 964 |
</varlistentry> |
| 965 |
|
| 966 |
<!-- ______________________________________________________________________ --> |
| 967 |
|
| 968 |
<varlistentry> |
| 969 |
<term><userinput>-dCUPSAccounting<optional>=<replaceable>boolean</replaceable></optional></userinput></term> |
| 970 |
<listitem><para> |
| 971 |
You will usually specify this parameter when using <command>pcl3</command> as |
| 972 |
the final component in a CUPS (Common UNIX Printing System) driver. |
| 973 |
<!-- CUPS "driver": set of filters. --> |
| 974 |
It will lead to appropriate page accounting messages on standard error. |
| 975 |
The default for this parameter is <userinput>false</userinput>. |
| 976 |
</para> |
| 977 |
|
| 978 |
<para> |
| 979 |
If you have set this parameter to <userinput>true</userinput> you can't set |
| 980 |
it back to <userinput>false</userinput>. |
| 981 |
The driver will generate a warning if this is attempted. |
| 982 |
</para> |
| 983 |
|
| 984 |
<para> |
| 985 |
When using <command>pcl3</command> within CUPS you will normally set both, |
| 986 |
<option>CUPSAccounting</option> and <option>CUPSMessages</option>. |
| 987 |
There exist, however, CUPS configurations where page accounting messages should |
| 988 |
be generated by a command further down the print pipeline than |
| 989 |
<command>pcl3</command> |
| 990 |
(e.g., by a CUPS backend capable of processing PJL Page Status messages |
| 991 |
and driving a printer which sends them). |
| 992 |
In these cases you should not specify <userinput>-dCUPSAccounting</userinput>. |
| 993 |
</para></listitem> |
| 994 |
</varlistentry> |
| 995 |
|
| 996 |
<!-- ______________________________________________________________________ --> |
| 997 |
|
| 998 |
<varlistentry> |
| 999 |
<term><userinput>-dCUPSMessages<optional>=<replaceable>boolean</replaceable></optional></userinput></term> |
| 1000 |
<listitem><para> |
| 1001 |
Specify this parameter when using <command>pcl3</command> as a |
| 1002 |
component in a CUPS (Common UNIX Printing System) driver. |
| 1003 |
It will modify the format of error messages and warnings as expected by CUPS. |
| 1004 |
The default for this parameter is <userinput>false</userinput>. |
| 1005 |
</para></listitem> |
| 1006 |
</varlistentry> |
| 1007 |
|
| 1008 |
<!-- ______________________________________________________________________ --> |
| 1009 |
|
| 1010 |
<varlistentry> |
| 1011 |
<term><userinput>-dDepletion=<replaceable>depletion</replaceable></userinput></term> |
| 1012 |
<listitem><para> |
| 1013 |
This option is only available for old DeskJets |
| 1014 |
(including <userinput>unspecold</userinput>) |
| 1015 |
and when printing in colour. |
| 1016 |
The integer <replaceable>depletion</replaceable> controls an algorithm for |
| 1017 |
removing certain pixels from the image; |
| 1018 |
this leads to less ink being applied to the medium. |
| 1019 |
The possible values for <replaceable>depletion</replaceable> are: |
| 1020 |
|
| 1021 |
<informaltable><tgroup cols="2"> |
| 1022 |
<colspec align="right"><colspec align="left"> |
| 1023 |
<tbody> |
| 1024 |
<row><entry><userinput>1</userinput></entry> |
| 1025 |
<entry>No depletion</entry></row> |
| 1026 |
<row><entry><userinput>2</userinput></entry> |
| 1027 |
<entry>25%</entry></row> |
| 1028 |
<row><entry><userinput>3</userinput></entry> |
| 1029 |
<entry>50%</entry></row> |
| 1030 |
<row><entry><userinput>4</userinput></entry> |
| 1031 |
<entry>25% with gamma correction</entry></row> |
| 1032 |
<row><entry><userinput>5</userinput></entry> |
| 1033 |
<entry>50% with gamma correction</entry></row> |
| 1034 |
</tbody></tgroup></informaltable> |
| 1035 |
|
| 1036 |
The default value is derived from |
| 1037 |
<option>Medium</option> and <option>PrintQuality</option>. |
| 1038 |
The values 4 and 5 are not understood by the DeskJet 500C, |
| 1039 |
but even for the other printers these values are not useful because PostScript |
| 1040 |
permits finer control for gamma correction through transfer functions |
| 1041 |
(see the subsection |
| 1042 |
<link linkend="TransferFunctions"><citetitle>Transfer Functions</citetitle ></link> |
| 1043 |
in the next section). |
| 1044 |
</para></listitem> |
| 1045 |
</varlistentry> |
| 1046 |
|
| 1047 |
<!-- ______________________________________________________________________ --> |
| 1048 |
|
| 1049 |
<varlistentry> |
| 1050 |
<term><userinput>-dDryTime=<replaceable>delay</replaceable></userinput></term> |
| 1051 |
<listitem><para> |
| 1052 |
With the exception of the DeskJets 500 and 500C, |
| 1053 |
series-500 DeskJet printers can be told to guarantee a minimum drying time of |
| 1054 |
<replaceable>delay</replaceable> |
| 1055 |
seconds before the next page of the same print job is dropped on a newly |
| 1056 |
printed page. |
| 1057 |
(This interval can be terminated by pressing the Load/Eject button.) |
| 1058 |
The printer will choose default values depending on the current print quality, |
| 1059 |
hence it is normally not necessary to specify this option and |
| 1060 |
the feature is even considered obsolete for post-series-500 DeskJets |
| 1061 |
although it is still supported by some of them. |
| 1062 |
</para> |
| 1063 |
|
| 1064 |
<para> |
| 1065 |
Permissible values for |
| 1066 |
<replaceable>delay</replaceable> |
| 1067 |
are <userinput>null</userinput> and |
| 1068 |
integers in the range <userinput>0</userinput> |
| 1069 |
to <userinput>1200</userinput>, |
| 1070 |
where |
| 1071 |
<userinput>null</userinput> |
| 1072 |
instructs |
| 1073 |
<command>pcl3</command> |
| 1074 |
not to send a corresponding command, |
| 1075 |
<userinput>0</userinput> |
| 1076 |
establishes default values for the current print quality, |
| 1077 |
and all other values explicitly request the duration in seconds. |
| 1078 |
The default is <userinput>null</userinput>. |
| 1079 |
</para></listitem> |
| 1080 |
</varlistentry> |
| 1081 |
|
| 1082 |
<!-- ______________________________________________________________________ --> |
| 1083 |
|
| 1084 |
<varlistentry> |
| 1085 |
<term><userinput>-sDuplexCapability=<replaceable>capability</replaceable></userinput></term> |
| 1086 |
<listitem><para> |
| 1087 |
Looking at the final result (sheet printed), |
| 1088 |
there are two kinds of duplex printing identified by the two possible values |
| 1089 |
for the option <option>Tumble</option>. |
| 1090 |
Not all printers capable of duplex printing, however, provide the hardware |
| 1091 |
support necessary for both, |
| 1092 |
hence the driver must be told what the printer offers in order to be able to |
| 1093 |
compensate for the missing functionality. |
| 1094 |
The parameter <userinput><replaceable>capability</replaceable></userinput> |
| 1095 |
can be any of the following: |
| 1096 |
|
| 1097 |
<informaltable><tgroup cols="2"> |
| 1098 |
<colspec align="left"><colspec align="left"> |
| 1099 |
<tbody> |
| 1100 |
<row><entry><userinput>none</userinput></entry> |
| 1101 |
<entry>no duplex capability</entry></row> |
| 1102 |
<row><entry><userinput>sameLeadingEdge</userinput></entry> |
| 1103 |
<entry>second pass of sheet occurs with the same leading edge</entry></row> |
| 1104 |
<row><entry><userinput>oppositeLeadingEdge</userinput></entry> |
| 1105 |
<entry>second pass of sheet occurs with the opposite leading edge</entry></row> |
| 1106 |
<row><entry><userinput>both</userinput></entry> |
| 1107 |
<entry>second pass of sheet can occur with either edge</entry></row> |
| 1108 |
</tbody></tgroup></informaltable> |
| 1109 |
|
| 1110 |
This option can only be specified for |
| 1111 |
<userinput>unspecold</userinput> and <userinput>unspec</userinput>. |
| 1112 |
The default value is <userinput>none</userinput>. |
| 1113 |
</para> |
| 1114 |
|
| 1115 |
<para> |
| 1116 |
The correct setting for the HP DeskJet 970C is |
| 1117 |
<userinput>oppositeLeadingEdge</userinput>, |
| 1118 |
but the printer permits access to its duplex functionality only if you specify |
| 1119 |
in addition |
| 1120 |
<userinput>-sPJLLanguage=PCL3GUI -dOnlyCRD</userinput>. |
| 1121 |
(Many thanks to Dawei W. Dong for an extensive series of experiments.) |
| 1122 |
</para> |
| 1123 |
|
| 1124 |
<para> |
| 1125 |
If a printer does not offer hardware support for both orientations, |
| 1126 |
the document to be printed must execute <literal>showpage</literal> after a |
| 1127 |
possible page-level <literal>restore</literal> and not before, |
| 1128 |
otherwise the driver will not be able to compensate for the missing |
| 1129 |
functionality |
| 1130 |
and only one of the two <option>Tumble</option> values will work. |
| 1131 |
All DSC-3.0-conforming PostScript files have the required property. |
| 1132 |
<!-- See DSC 3.0, section 4.3 "Constraints", subsection "Use of showpage". --> |
| 1133 |
</para></listitem> |
| 1134 |
</varlistentry> |
| 1135 |
|
| 1136 |
<!-- ______________________________________________________________________ --> |
| 1137 |
|
| 1138 |
<varlistentry> |
| 1139 |
<term><userinput>-sIntensityRendering=<replaceable>method</replaceable></userinput></term> |
| 1140 |
<listitem><para> |
| 1141 |
Most printers, |
| 1142 |
including every PCL-3+ printer I know of, |
| 1143 |
can render only a small number of intensities per pixel and colorant. |
| 1144 |
In the most frequent case, merely two levels are possible. |
| 1145 |
As this is usually not sufficient, |
| 1146 |
various methods have been devised to achieve a larger palette; |
| 1147 |
this is possible at the expense of spatial resolution. |
| 1148 |
Because of this tradeoff between effective resolution and the number of |
| 1149 |
colours which can be distinguished, |
| 1150 |
the best method for a given document depends on the contents of the document |
| 1151 |
and the user should therefore be able to select it. |
| 1152 |
</para> |
| 1153 |
|
| 1154 |
<para> |
| 1155 |
The <command>pcl3</command> driver supports the following |
| 1156 |
<userinput><replaceable>methods</replaceable></userinput> for intensity |
| 1157 |
rendering: |
| 1158 |
|
| 1159 |
<informaltable><tgroup cols="2"> |
| 1160 |
<colspec align="left"><colspec align="left"> |
| 1161 |
<tbody> |
| 1162 |
<row><entry><userinput>printer</userinput></entry> |
| 1163 |
<entry>use the printer's capabilities directly</entry></row> |
| 1164 |
<row><entry><userinput>halftones</userinput></entry> |
| 1165 |
<entry>use ghostscript's halftoning implementation</entry></row> |
| 1166 |
<row><entry><userinput>Floyd-Steinberg</userinput></entry> |
| 1167 |
<entry>use Floyd-Steinberg error diffusion</entry></row> |
| 1168 |
</tbody></tgroup></informaltable> |
| 1169 |
|
| 1170 |
The default method is <userinput>halftones</userinput>. |
| 1171 |
The methods differ only in their treatment of intensities which cannot be |
| 1172 |
represented directly by the printer. |
| 1173 |
If your document contains for example only black text, |
| 1174 |
they all produce the same result, albeit at different speeds. |
| 1175 |
</para> |
| 1176 |
|
| 1177 |
<para> |
| 1178 |
With <userinput>printer</userinput>, |
| 1179 |
<command>pcl3</command> will cause everything to be painted |
| 1180 |
at the full hardware resolution but will have to map all colours to the nearest |
| 1181 |
levels the printer can represent directly. |
| 1182 |
For a CMY or CMYK printer with two intensity levels, |
| 1183 |
this results in just 8 useful colours per pixel. |
| 1184 |
This value is therefore usually only sensible for documents with a small number |
| 1185 |
of widely different saturated colours |
| 1186 |
where accurate colour reproduction is of minor importance but |
| 1187 |
achieving the highest possible resolution is essential. |
| 1188 |
Another possible application is the case of PostScript input which has already |
| 1189 |
been adapted to the printer's resolution and available intensity levels. |
| 1190 |
</para> |
| 1191 |
|
| 1192 |
<para> |
| 1193 |
With <userinput>halftones</userinput>, |
| 1194 |
ghostscript will use what looks like standard PostScript halftoning algorithms. |
| 1195 |
For details, consult a PostScript manual. |
| 1196 |
However, you should know that ghostscript's current halftoning |
| 1197 |
implementation has some problems: |
| 1198 |
<itemizedlist> |
| 1199 |
<listitem><para> |
| 1200 |
The algorithm cannot handle different non-zero values for |
| 1201 |
<option>BlackLevels</option> and <option>CMYLevels</option>. |
| 1202 |
In this situation <command>gs</command> will in general assume |
| 1203 |
that the number of black levels available is equal to that for CMY levels. |
| 1204 |
Depending on which of the numbers is smaller, there will then either be unused |
| 1205 |
black levels or some will be used more than once. |
| 1206 |
<!-- VERIFIED: gs 5.10 --> |
| 1207 |
</para></listitem> |
| 1208 |
<listitem><para> |
| 1209 |
When you are using values larger than 2 for <option>BlackLevels</option> or |
| 1210 |
<option>CMYLevels</option>, |
| 1211 |
ghostscript does not discover by itself that it could now achieve the same |
| 1212 |
number of shades with smaller halftone cells. |
| 1213 |
</para></listitem> |
| 1214 |
<listitem><para> |
| 1215 |
Most of the ways of increasing the halftone screen frequency seem to fail. |
| 1216 |
I have been successful only with the somewhat pedestrian approach of |
| 1217 |
using threshold arrays, |
| 1218 |
and even that worked only for some cases. |
| 1219 |
<!-- VERIFIED: gs 5.50, 6.01 --> |
| 1220 |
</para></listitem> |
| 1221 |
<listitem><para> |
| 1222 |
For particular CMYK values and with ghostscript version 6 or higher, |
| 1223 |
the colour becomes drastically wrong. |
| 1224 |
One example is CMYK = (0.99998472, 0.002549, 0, 0.00367827); |
| 1225 |
this should be almost a pure cyan but is instead displayed as a sort of pink. |
| 1226 |
If one subtracts one unit in the last position for any of the non-zero |
| 1227 |
components, |
| 1228 |
the result becomes acceptable. |
| 1229 |
The problem has not been observed with ghostscript 5.50. |
| 1230 |
</para></listitem> |
| 1231 |
<listitem><para> |
| 1232 |
For ghostscript versions up to and including 5.50, |
| 1233 |
if you are using the colour model <userinput>CMYK</userinput> |
| 1234 |
and more than 2 black levels you should not set merely a single halftone screen |
| 1235 |
(<literal>setscreen</literal>, a type-1 or a type-3 halftone dictionary) |
| 1236 |
because |
| 1237 |
ghostscript's dithering routine can in this case return non-monotonic levels of |
| 1238 |
black for monotonic input intensities. |
| 1239 |
<!-- |
| 1240 |
VERIFIED: |
| 1241 |
Discovered with gs 5.10/hpdj at 4 levels using a 1-cell type-3 dictionary. |
| 1242 |
Verified with gs 5.50. |
| 1243 |
Also easily visible with a 2x2 line screen given to setscreen. |
| 1244 |
Apparently gone with gs 6.01. --> |
| 1245 |
However, if you specify independent halftone information for the colour |
| 1246 |
components, |
| 1247 |
<command>gs</command> |
| 1248 |
uses a slower but more accurate algorithm instead which does not lead to the |
| 1249 |
wrong behaviour. |
| 1250 |
It is not necessary for the halftone information to be different for different |
| 1251 |
components to achieve this. |
| 1252 |
Note that ghostscript installs separate halftone screens for CMYK devices by |
| 1253 |
default if the resolution is at least 150 ppi. |
| 1254 |
<!-- VERIFIED: gs 5.10, 6.50 (definition of .sethireshalftone in gs_init.ps). |
| 1255 |
--> |
| 1256 |
</para></listitem> |
| 1257 |
</itemizedlist> |
| 1258 |
Whenever you modify the halftone screens you should therefore use a test file |
| 1259 |
like |
| 1260 |
<filename>levels-test.ps</filename> in the <command>pcl3</command> distribution |
| 1261 |
to check whether you obtain the desired result. |
| 1262 |
In particular, |
| 1263 |
you should count the number of intensities you can distinguish |
| 1264 |
for a single colorant: |
| 1265 |
if it is obviously not one plus |
| 1266 |
the number of pixels in the halftone cell times |
| 1267 |
one less than the number of hardware intensity levels, |
| 1268 |
something has gone wrong. |
| 1269 |
This is, for example, the case if |
| 1270 |
you specified 4 black levels and a 2×2 halftone cell, |
| 1271 |
and you then can distinguish more than 1 + 4×3 = 13 intensity levels. |
| 1272 |
You should also watch for non-monotonic jumps in intensity and incompletely |
| 1273 |
filled shapes. |
| 1274 |
</para> |
| 1275 |
|
| 1276 |
<para> |
| 1277 |
The value <userinput>Floyd-Steinberg</userinput> selects Floyd-Steinberg error |
| 1278 |
diffusion as the method for rendering intensities. |
| 1279 |
Use this in particular for printing photographs and other documents with |
| 1280 |
a large number of colours or small irregular shapes. |
| 1281 |
Regrettably, <command>pcl3</command>'s speed is much slower with this |
| 1282 |
method than in the other cases, |
| 1283 |
hence this value should only be used when it is really needed |
| 1284 |
(e.g., when you run into one of ghostscript's halftoning problems) |
| 1285 |
or when the delay is acceptable. |
| 1286 |
</para> |
| 1287 |
|
| 1288 |
<para> |
| 1289 |
If you are using ghostscript 5.50 and |
| 1290 |
the page to be rendered needs a lot of memory |
| 1291 |
(this applies in particular to <userinput>Floyd-Steinberg</userinput> in colour) |
| 1292 |
a core dump may result under certain circumstances. |
| 1293 |
You can get around this by increasing the <option>MaxBitmap</option> parameter |
| 1294 |
or by switching to a newer ghostscript version. |
| 1295 |
</para> |
| 1296 |
</listitem> |
| 1297 |
</varlistentry> |
| 1298 |
|
| 1299 |
<!-- ______________________________________________________________________ --> |
| 1300 |
|
| 1301 |
<varlistentry> |
| 1302 |
<term><userinput>-dLeadingEdge=<replaceable>edge</replaceable></userinput></term> |
| 1303 |
<listitem><para> |
| 1304 |
This option can be used to specify which edge of the sheet will enter the |
| 1305 |
printer first. |
| 1306 |
The permitted values identify this edge by reference to |
| 1307 |
the orientation of default user space on the sheet |
| 1308 |
when printing with default settings (except for <option>LeadingEdge</option>) |
| 1309 |
and a page size having width ≤ height |
| 1310 |
("canonical page in portrait orientation"): |
| 1311 |
|
| 1312 |
<informaltable><tgroup cols="2"> |
| 1313 |
<colspec align="right"><colspec align="left"> |
| 1314 |
<tbody> <!-- Copied from PLR3 p. 402. --> |
| 1315 |
<row><entry><userinput>null</userinput></entry> |
| 1316 |
<entry>No request for media orientation</entry></row> |
| 1317 |
<row><entry><userinput>0</userinput></entry> |
| 1318 |
<entry>Short edge; top of canonical page</entry></row> |
| 1319 |
<row><entry><userinput>1</userinput></entry> |
| 1320 |
<entry>Long edge; right side of canonical page</entry></row> |
| 1321 |
<row><entry><userinput>2</userinput></entry> |
| 1322 |
<entry>Short edge; bottom of canonical page</entry></row> |
| 1323 |
<row><entry><userinput>3</userinput></entry> |
| 1324 |
<entry>Long edge; left side of canonical page</entry></row> |
| 1325 |
</tbody></tgroup></informaltable> |
| 1326 |
</para> |
| 1327 |
|
| 1328 |
<para> |
| 1329 |
As far as I know, |
| 1330 |
given a particular PCL-3+ printer and a particular media size, |
| 1331 |
you cannot choose between short edge first (0 or 2) and |
| 1332 |
long edge first (1 or 3): |
| 1333 |
this orientation is prescribed by the manufacturer and should be documented |
| 1334 |
in your printer's manual. |
| 1335 |
If in doubt, use short edge first when inserting the medium. |
| 1336 |
</para> |
| 1337 |
|
| 1338 |
<para> |
| 1339 |
The default value for <replaceable>edge</replaceable> is |
| 1340 |
<userinput>null</userinput>. |
| 1341 |
This leads either to 0 or to 3, |
| 1342 |
depending on whether the subdevice normally expects media of this size |
| 1343 |
to be fed short edge first or long edge first. |
| 1344 |
See the subsection |
| 1345 |
<link linkend="sizesAndOrientations"><citetitle>Media Sizes and |
| 1346 |
Orientations</citetitle></link> |
| 1347 |
in the <citetitle>DESCRIPTION</citetitle> section above for details. |
| 1348 |
</para> |
| 1349 |
|
| 1350 |
<para> |
| 1351 |
If you find that you can't set this parameter from PostScript but you can set |
| 1352 |
it from the command line, |
| 1353 |
ghostscript's <literal>setpagedevice</literal> definition probably does not |
| 1354 |
pass the parameter to drivers. |
| 1355 |
Read the <filename>gs-mods.txt</filename> file in the <command>pcl3</command> |
| 1356 |
distribution on how to fix this. |
| 1357 |
</para></listitem> |
| 1358 |
</varlistentry> |
| 1359 |
|
| 1360 |
<!-- ______________________________________________________________________ --> |
| 1361 |
|
| 1362 |
<varlistentry> |
| 1363 |
<term><userinput>-dManualFeed<optional>=<replaceable>boolean</replaceable></optional></userinput></term> |
| 1364 |
<listitem><para> |
| 1365 |
It is possible to request a DeskJet printer to wait before each page of a |
| 1366 |
document until the Load/Eject button is pressed on the printer. |
| 1367 |
This is intended for situations where some special medium is used or |
| 1368 |
the medium has to be inserted into an input slot holding only one sheet at a |
| 1369 |
time. |
| 1370 |
The default setting for this option is <userinput>false</userinput>. |
| 1371 |
</para> |
| 1372 |
|
| 1373 |
<para> |
| 1374 |
In PCL, manual feed is established by requesting a particular media source (2), |
| 1375 |
hence you should expect that setting this parameter will interfere with the |
| 1376 |
input tray selection via <literal>InputAttributes</literal> |
| 1377 |
(see the |
| 1378 |
<link linkend="sourcesAndDestinations"><citetitle>Media Sources and Destinations</citetitle></link> |
| 1379 |
subsection in the <citetitle>CONFIGURATION</citetitle> section below). |
| 1380 |
</para></listitem> |
| 1381 |
</varlistentry> |
| 1382 |
|
| 1383 |
<!-- ______________________________________________________________________ --> |
| 1384 |
|
| 1385 |
<varlistentry> |
| 1386 |
<term><userinput>-sMediaConfigurationFile=<replaceable>pathname</replaceable |
| 1387 |
></userinput></term> |
| 1388 |
<listitem><para> |
| 1389 |
This option must specify an existing file containing a list of |
| 1390 |
supported media sizes, sheet orientations |
| 1391 |
and corresponding margin descriptions for the printer. |
| 1392 |
<!-- "-dMediaConfigurationFile=null" is also permitted, see below. --> |
| 1393 |
This will take precedence over the builtin subdevice-specific lists. |
| 1394 |
The format of the file is described in the |
| 1395 |
<link linkend="CONFIGURATION"><citetitle>CONFIGURATION</citetitle></link> |
| 1396 |
section below. |
| 1397 |
This option is primarily intended to be used with the subdevices |
| 1398 |
<userinput>unspecold</userinput> and <userinput>unspec</userinput>. |
| 1399 |
</para> |
| 1400 |
|
| 1401 |
<para> |
| 1402 |
The default is not to use a media configuration file but the builtin lists. |
| 1403 |
<!-- This is the case "-dMediaConfigurationFile=null". --> |
| 1404 |
However, |
| 1405 |
a media file path can also be specified at compile time overriding the default |
| 1406 |
behaviour for <userinput>unspec</userinput> only. |
| 1407 |
Using the |
| 1408 |
<option>MediaConfigurationFile</option> |
| 1409 |
option in addition will take precedence over the compiled-in media file path. |
| 1410 |
</para></listitem> |
| 1411 |
</varlistentry> |
| 1412 |
|
| 1413 |
<!-- ______________________________________________________________________ --> |
| 1414 |
|
| 1415 |
<varlistentry> |
| 1416 |
<term><userinput>-dMediaPosition=<replaceable>position</replaceable></userinput></term> |
| 1417 |
<listitem><para> |
| 1418 |
This option sets the standard PostScript page device parameter |
| 1419 |
<literal>MediaPosition</literal> to the specified value. |
| 1420 |
The integer <replaceable>position</replaceable> identifies an input tray for |
| 1421 |
feeding media from and |
| 1422 |
must refer to an existing entry in the <literal>InputAttributes</literal> |
| 1423 |
dictionary (see the |
| 1424 |
<link linkend="sourcesAndDestinations"><citetitle |
| 1425 |
>Media Sources and Destinations</citetitle></link> |
| 1426 |
subsection in the <citetitle>CONFIGURATION</citetitle> section below) |
| 1427 |
in order to take effect. |
| 1428 |
The media selection process will use this entry in preference to others |
| 1429 |
provided it matches the media request. |
| 1430 |
The default is not to request a particular tray by position but to look for |
| 1431 |
a best match based on other properties. |
| 1432 |
As ghostscript's default configuration defines only one entry in |
| 1433 |
<literal>InputAttributes</literal> |
| 1434 |
this option is ineffective unless you modify <literal>InputAttributes</literal>. |
| 1435 |
</para> |
| 1436 |
|
| 1437 |
<para> |
| 1438 |
With current ghostscript versions <!-- VERIFIED: gs 6.01, 6.50, 7.00 --> |
| 1439 |
you can't use this parameter to select a |
| 1440 |
negative <replaceable>position</replaceable>. |
| 1441 |
The driver will issue a warning if you attempt it. |
| 1442 |
If the entry is actually selected, |
| 1443 |
a <literal>rangecheck</literal> error from ghostscript will follow. |
| 1444 |
This restriction applies only to this device parameter, |
| 1445 |
not to permissible values for position numbers in |
| 1446 |
<literal>InputAttributes</literal>: |
| 1447 |
if you want to use a negative <replaceable>position</replaceable>, |
| 1448 |
you can do so by making sure that it is the only matching entry |
| 1449 |
or by selecting it via <literal>Priority</literal>. |
| 1450 |
</para> |
| 1451 |
</listitem> |
| 1452 |
</varlistentry> |
| 1453 |
|
| 1454 |
<!-- ______________________________________________________________________ --> |
| 1455 |
|
| 1456 |
<varlistentry> |
| 1457 |
<term><userinput>-sMedium=<replaceable>medium</replaceable></userinput></term> |
| 1458 |
<listitem><para> |
| 1459 |
This option selects the type of medium you wish to print on |
| 1460 |
as far as the printer needs to know about it. |
| 1461 |
The possible choices are: |
| 1462 |
|
| 1463 |
<informaltable><tgroup cols="2"> |
| 1464 |
<tbody> |
| 1465 |
<row><entry><userinput>0</userinput></entry> |
| 1466 |
<entry><userinput>plain paper</userinput></entry></row> |
| 1467 |
<row><entry><userinput>1</userinput></entry> |
| 1468 |
<entry><userinput>bond paper</userinput></entry></row> |
| 1469 |
<row><entry><userinput>2</userinput></entry> |
| 1470 |
<entry><userinput>HP Premium paper</userinput></entry></row> |
| 1471 |
<row><entry><userinput>3</userinput></entry> |
| 1472 |
<entry><userinput>glossy paper</userinput></entry></row> |
| 1473 |
<row><entry><userinput>4</userinput></entry> |
| 1474 |
<entry><userinput>transparency film</userinput></entry></row> |
| 1475 |
<row><entry><userinput>5</userinput></entry> |
| 1476 |
<entry><userinput>quick dry glossy</userinput></entry></row> |
| 1477 |
<row><entry><userinput>6</userinput></entry> |
| 1478 |
<entry><userinput>quick dry transparency</userinput></entry></row> |
| 1479 |
</tbody></tgroup></informaltable> |
| 1480 |
|
| 1481 |
The default is <userinput>plain paper</userinput>. |
| 1482 |
For <replaceable>medium</replaceable>, |
| 1483 |
you can specify the full strings (these are the standard values), |
| 1484 |
the (in some cases) one-word strings resulting from dropping "paper", "film", |
| 1485 |
and "HP", |
| 1486 |
or an integer. |
| 1487 |
Out-of-range numerical values generate a warning but are passed through to the |
| 1488 |
printer if you are using a group-3 subdevice. |
| 1489 |
If you don't, |
| 1490 |
the effect is the same as specifying <userinput>plain paper</userinput>. |
| 1491 |
The values 5 and 6 are unknown to most DeskJets; |
| 1492 |
the only official exception I know of is the HP 2000C printer. |
| 1493 |
Your printer's manual should tell you which kinds of medium are supported. |
| 1494 |
</para></listitem> |
| 1495 |
</varlistentry> |
| 1496 |
|
| 1497 |
<!-- ______________________________________________________________________ --> |
| 1498 |
|
| 1499 |
<varlistentry> |
| 1500 |
<term><userinput>-dOnlyCRD<optional>=<replaceable>boolean</replaceable |
| 1501 |
></optional></userinput></term> |
| 1502 |
<listitem><para> |
| 1503 |
This parameter influences the PCL code generated |
| 1504 |
and should only be specified for group-3 DeskJets. |
| 1505 |
The default value is <userinput>false</userinput> and leads to the new |
| 1506 |
PCL command Configure Raster Data being used only when it is necessary. |
| 1507 |
Specifying <userinput>true</userinput> leads to Configure Raster Data |
| 1508 |
being used even in those cases where older commands would be sufficient. |
| 1509 |
</para> |
| 1510 |
|
| 1511 |
<para> |
| 1512 |
There are indications that printers with a PCL dialect of |
| 1513 |
"PCL Level 3 enhanced" need a value of <userinput>true</userinput> for this |
| 1514 |
option to enable some of their functionality. |
| 1515 |
</para></listitem> |
| 1516 |
</varlistentry> |
| 1517 |
|
| 1518 |
<!-- ______________________________________________________________________ --> |
| 1519 |
|
| 1520 |
<varlistentry> |
| 1521 |
<term><userinput>-sPageCountFile=<replaceable>pathname</replaceable></userinput></term> |
| 1522 |
<listitem><para> |
| 1523 |
The <replaceable>pathname</replaceable> |
| 1524 |
must specify either a non-existent file in a directory with write permission |
| 1525 |
or a writable file with a single line containing a non-negative integer. |
| 1526 |
In the first case, |
| 1527 |
<command>pcl3</command> |
| 1528 |
will create the file and insert the number of pages printed, |
| 1529 |
<!-- Ghostscript interprets PageCount as meaning PostScript pages without |
| 1530 |
counting copies (see gx_default_print_page_copies() in gs 6.50). This |
| 1531 |
disagrees with PLR3 p. 752. pcl3 counts copies as well. --> |
| 1532 |
in the second case the number will be incremented by that amount. |
| 1533 |
Parallel invocations of |
| 1534 |
<command>gs</command> |
| 1535 |
are permitted to use the same file. |
| 1536 |
<command>pcl3</command> |
| 1537 |
will also make the initial page count available in its page device dictionary. |
| 1538 |
<!-- Only after the device has been opened, though. --> |
| 1539 |
</para> |
| 1540 |
|
| 1541 |
<para> |
| 1542 |
This option is mainly intended for spooler backends calling |
| 1543 |
<command>pcl3</command>. |
| 1544 |
It can be used to keep track of the total number of pages printed and also for |
| 1545 |
per-job accounting. |
| 1546 |
I recommend using this option for the first purpose and to make a note of the |
| 1547 |
values in the resulting files whenever you insert a new ink cartridge. |
| 1548 |
This will enable you to get an indication of how much a printed page costs, |
| 1549 |
and hence why it is a good idea to use <userinput>draft</userinput> quality |
| 1550 |
whenever possible |
| 1551 |
and why you should have bought a laser printer. |
| 1552 |
</para> |
| 1553 |
|
| 1554 |
<para> |
| 1555 |
The driver can be compiled without this option present |
| 1556 |
but on a UNIX system I would not expect this to be done unless |
| 1557 |
<command>gs</command> |
| 1558 |
offers the same functionality in a driver-independent manner |
| 1559 |
which it currently does not. |
| 1560 |
</para> |
| 1561 |
|
| 1562 |
<para> |
| 1563 |
<command>pcl3</command> |
| 1564 |
is distributed with example files <filename>if-pcl3</filename> and |
| 1565 |
<filename>cups-pcl3</filename> |
| 1566 |
of Berkeley and CUPS spooler backends using this option. |
| 1567 |
</para></listitem> |
| 1568 |
</varlistentry> |
| 1569 |
|
| 1570 |
<!-- ______________________________________________________________________ --> |
| 1571 |
|
| 1572 |
<varlistentry> |
| 1573 |
<term><userinput>-sPCLInit1=<replaceable>string</replaceable></userinput |
| 1574 |
> and <userinput>-sPCLInit2=<replaceable>string</replaceable></userinput |
| 1575 |
></term> |
| 1576 |
<listitem><para> |
| 1577 |
These options can be used to insert additional PCL commands into |
| 1578 |
<command>pcl3</command>'s output. |
| 1579 |
Strings given to <option>PCLInit1</option> will be sent immediately after the |
| 1580 |
initial Printer Reset command, |
| 1581 |
the value of <option>PCLInit2</option> will be emitted shortly before the |
| 1582 |
raster data of the first page. |
| 1583 |
The default is not to send any additional commands. |
| 1584 |
</para> |
| 1585 |
|
| 1586 |
<para> |
| 1587 |
Don't use any of these options unless you understand PCL or someone who does |
| 1588 |
tells you which value to choose under which circumstances. |
| 1589 |
</para> |
| 1590 |
|
| 1591 |
<para> |
| 1592 |
Because not every possible <replaceable>string</replaceable> value can be |
| 1593 |
passed from the command line, |
| 1594 |
these parameters are best set from a PostScript file. |
| 1595 |
</para></listitem> |
| 1596 |
</varlistentry> |
| 1597 |
|
| 1598 |
<!-- ______________________________________________________________________ --> |
| 1599 |
|
| 1600 |
<varlistentry> |
| 1601 |
<term><userinput>-sPJLJob=<optional><replaceable>jobname</replaceable></optional></userinput></term> |
| 1602 |
<listitem><para> |
| 1603 |
This option can be used to surround the generated file with |
| 1604 |
Printer Job Language (PJL) commands declaring it to be a single print job |
| 1605 |
called <replaceable>jobname</replaceable>. |
| 1606 |
If you omit <replaceable>jobname</replaceable>, you create an unnamed job. |
| 1607 |
The string <replaceable>jobname</replaceable> may not contain double quotes |
| 1608 |
or control characters except HT |
| 1609 |
(the forbidden byte codes are 0 to 8, 10 to 31, and 34). |
| 1610 |
</para> |
| 1611 |
|
| 1612 |
<para> |
| 1613 |
Use this option if your printer understands PJL and |
| 1614 |
you discover either that settings for one job influence the following job |
| 1615 |
or that the printer does not recognize the end of the job (lights remain |
| 1616 |
flashing or a control panel still displays a processing message). |
| 1617 |
If you send the generated PCL file through a PJL filter, |
| 1618 |
in particular one querying the printer's state, |
| 1619 |
omit this option and use the filter for this purpose instead. |
| 1620 |
</para></listitem> |
| 1621 |
</varlistentry> |
| 1622 |
|
| 1623 |
<!-- ______________________________________________________________________ --> |
| 1624 |
|
| 1625 |
<varlistentry> |
| 1626 |
<term><userinput>-sPJLLanguage=<replaceable>language</replaceable></userinput></term> |
| 1627 |
<listitem><para> |
| 1628 |
If a printer supports several command languages and PCL 3+ is not the |
| 1629 |
default, |
| 1630 |
the printer must be told to switch to PCL 3+ at the beginning of the |
| 1631 |
print job. |
| 1632 |
Hewlett-Packard's printers use a Printer Job Language (PJL) command |
| 1633 |
for this purpose. |
| 1634 |
Specifying this option will switch the printer to |
| 1635 |
<replaceable>language</replaceable> for the duration of the job and back to the |
| 1636 |
default at the end. |
| 1637 |
</para> |
| 1638 |
|
| 1639 |
<para> |
| 1640 |
This option is not usually necessary except that there are indications that |
| 1641 |
printers with a PCL dialect of "PCL Level 3 enhanced" need |
| 1642 |
<userinput>-sPJLLanguage=PCL3GUI</userinput> |
| 1643 |
to enable some of their functionality. |
| 1644 |
</para> |
| 1645 |
|
| 1646 |
<para> |
| 1647 |
You should never use the option unless you have a reliable source for the values |
| 1648 |
of <replaceable>language</replaceable> accepted by your printer, |
| 1649 |
for example the output from <command>pcl3opts</command> for a file generated |
| 1650 |
by an official driver for the printer in question. |
| 1651 |
Values I have seen so far are <computeroutput>PCLSLEEK</computeroutput> and |
| 1652 |
<computeroutput>PCL3GUI</computeroutput>. |
| 1653 |
</para> |
| 1654 |
|
| 1655 |
<para> |
| 1656 |
If you send the generated PCL file through a PJL filter, |
| 1657 |
omit this option and use the filter for this purpose instead. |
| 1658 |
</para></listitem> |
| 1659 |
</varlistentry> |
| 1660 |
|
| 1661 |
<!-- ______________________________________________________________________ --> |
| 1662 |
|
| 1663 |
<varlistentry> |
| 1664 |
<term><userinput>-sPrintQuality=<replaceable>quality</replaceable></userinput></term> |
| 1665 |
<listitem><para> |
| 1666 |
There are three print quality settings: |
| 1667 |
|
| 1668 |
<informaltable><tgroup cols="2"> |
| 1669 |
<colspec align="right"><colspec align="left"> |
| 1670 |
<tbody> |
| 1671 |
<row><entry><userinput>-1</userinput></entry> |
| 1672 |
<entry><userinput>draft</userinput> or <userinput>econo</userinput></entry></row> |
| 1673 |
<row><entry><userinput>0</userinput></entry> |
| 1674 |
<entry><userinput>normal</userinput></entry></row> |
| 1675 |
<row><entry><userinput>1</userinput></entry> |
| 1676 |
<entry><userinput>presentation</userinput> or <userinput>best</userinput></entry></row> |
| 1677 |
</tbody></tgroup></informaltable> |
| 1678 |
|
| 1679 |
The default is <userinput>normal</userinput>. |
| 1680 |
You may specify the strings or an integer. |
| 1681 |
Out-of-range numerical values will generate a warning but are passed |
| 1682 |
through to the printer if you have selected a group-3 subdevice. |
| 1683 |
If you haven't, |
| 1684 |
the effect is the same as specifying <userinput>normal</userinput>. |
| 1685 |
</para></listitem> |
| 1686 |
</varlistentry> |
| 1687 |
|
| 1688 |
<!-- ______________________________________________________________________ --> |
| 1689 |
|
| 1690 |
<varlistentry> |
| 1691 |
<term><userinput>-dRasterGraphicsQuality=<replaceable>quality</replaceable></userinput></term> |
| 1692 |
<listitem><para> |
| 1693 |
This option is only available for old DeskJets |
| 1694 |
(including <userinput>unspecold</userinput>) |
| 1695 |
and controls a trade-off between quality and print speed. |
| 1696 |
The possible values for <replaceable>quality</replaceable> are: |
| 1697 |
|
| 1698 |
<informaltable><tgroup cols="2"> |
| 1699 |
<colspec align="right"><colspec align="left"> |
| 1700 |
<tbody> |
| 1701 |
<row><entry><userinput>0</userinput></entry> |
| 1702 |
<entry>Use current control panel setting</entry></row> |
| 1703 |
<row><entry><userinput>1</userinput></entry> |
| 1704 |
<entry>Draft</entry></row> |
| 1705 |
<row><entry><userinput>2</userinput></entry> |
| 1706 |
<entry>High</entry></row> |
| 1707 |
</tbody></tgroup></informaltable> |
| 1708 |
|
| 1709 |
Specifying this option overrides the default value derived from |
| 1710 |
<option>Medium</option> and <option>PrintQuality</option>. |
| 1711 |
</para></listitem> |
| 1712 |
</varlistentry> |
| 1713 |
|
| 1714 |
<!-- ______________________________________________________________________ --> |
| 1715 |
|
| 1716 |
<varlistentry> |
| 1717 |
<term><userinput>-dSendBlackLast<optional>=<replaceable>boolean</replaceable></optional></userinput></term> |
| 1718 |
<listitem><para> |
| 1719 |
When printing with four inks, |
| 1720 |
a PCL-3+ printer expects the colour information for a row of pixels |
| 1721 |
in the order black, cyan, magenta, and finally yellow (KCMY). |
| 1722 |
</para> |
| 1723 |
|
| 1724 |
<para> |
| 1725 |
There exists at least one printer (Olivetti JP792) which claims to accept |
| 1726 |
PCL 3+ <!-- It claims to be DJ-850C compatible. --> |
| 1727 |
but expects the colour planes to arrive in the order CMYK. |
| 1728 |
If you have a printer with this property, use this option. |
| 1729 |
The default value is <userinput>false</userinput>. |
| 1730 |
</para></listitem> |
| 1731 |
</varlistentry> |
| 1732 |
|
| 1733 |
<!-- ______________________________________________________________________ --> |
| 1734 |
|
| 1735 |
<varlistentry> |
| 1736 |
<term><userinput>-dSendNULs=<replaceable>number</replaceable></userinput></term> |
| 1737 |
<listitem><para> |
| 1738 |
Most HP drivers for newer DeskJet printers generate PCL files starting with a |
| 1739 |
sequence of 600 NUL characters, at least one uses even 9600 NULs. |
| 1740 |
I have seen no documentation of this feature |
| 1741 |
but I assume that in PCL the NUL character demands a null operation, i.e., |
| 1742 |
does nothing. |
| 1743 |
Just in case such a NUL sequence is useful under certain circumstances, |
| 1744 |
this option can be used to request it. |
| 1745 |
(It has been suggested that this is needed to get the printer to accept |
| 1746 |
new PCL commands if the previous print job was aborted in the middle of a |
| 1747 |
command.) |
| 1748 |
<!-- This suggestion came from David Chappell (2001-07-20). --> |
| 1749 |
The value <replaceable>number</replaceable> specifies the number of |
| 1750 |
NUL characters to send and must not be negative. |
| 1751 |
The default is zero. |
| 1752 |
Note that initial NULs might confuse spooler backends which |
| 1753 |
try to determine the file type from the first few bytes of the file contents. |
| 1754 |
</para> |
| 1755 |
|
| 1756 |
<para> |
| 1757 |
There is no point in using this option if some other command |
| 1758 |
in your print pipeline will add Printer Job Language (PJL) commands |
| 1759 |
to the <command>pcl3</command>-generated file. |
| 1760 |
</para></listitem> |
| 1761 |
</varlistentry> |
| 1762 |
|
| 1763 |
<!-- ______________________________________________________________________ --> |
| 1764 |
|
| 1765 |
<varlistentry> |
| 1766 |
<term><userinput>-dShingling=<replaceable>shingling</replaceable></userinput></term> |
| 1767 |
<listitem><para> |
| 1768 |
This option is only available for group-2 DeskJets |
| 1769 |
(including <userinput>unspecold</userinput>) |
| 1770 |
and controls the number of passes the print head makes over the medium. |
| 1771 |
A higher number permits more neighbouring pixels |
| 1772 |
to be printed in separate passes, |
| 1773 |
thereby reducing the likelihood of the ink spreading into the next pixel. |
| 1774 |
The possible values for <replaceable>shingling</replaceable> are: |
| 1775 |
|
| 1776 |
<informaltable><tgroup cols="2"> |
| 1777 |
<colspec align="right"><colspec align="left"> |
| 1778 |
<tbody> |
| 1779 |
<row><entry><userinput>0</userinput></entry> |
| 1780 |
<entry>No shingling</entry></row> |
| 1781 |
<row><entry><userinput>1</userinput></entry> |
| 1782 |
<entry>2 passes (50% each pass)</entry></row> |
| 1783 |
<row><entry><userinput>2</userinput></entry> |
| 1784 |
<entry>4 passes (25% each pass)</entry></row> |
| 1785 |
</tbody></tgroup></informaltable> |
| 1786 |
|
| 1787 |
Specifying this option overrides the default value derived from |
| 1788 |
<option>Medium</option> and <option>PrintQuality</option>. |
| 1789 |
</para></listitem> |
| 1790 |
</varlistentry> |
| 1791 |
|
| 1792 |
<!-- ______________________________________________________________________ --> |
| 1793 |
|
| 1794 |
<varlistentry> |
| 1795 |
<term><userinput>-sSubdevice=<replaceable>subdevice</replaceable></userinput></term> |
| 1796 |
<listitem><para> |
| 1797 |
This option identifies the printer model for which the generated file is |
| 1798 |
intended. |
| 1799 |
The following names (mostly of Hewlett-Packard DeskJet printers) |
| 1800 |
are accepted for <replaceable>subdevice</replaceable>: |
| 1801 |
</para> |
| 1802 |
|
| 1803 |
<blockquote><para> |
| 1804 |
<userinput>hpdj</userinput>, |
| 1805 |
<userinput>hpdjplus</userinput>, |
| 1806 |
<userinput>hpdjportable</userinput>, |
| 1807 |
<userinput>hpdj310</userinput>, |
| 1808 |
<userinput>hpdj320</userinput>, |
| 1809 |
<userinput>hpdj340</userinput>, |
| 1810 |
<userinput>hpdj400</userinput>, |
| 1811 |
<userinput>hpdj500</userinput>, |
| 1812 |
<userinput>hpdj500c</userinput>, |
| 1813 |
<userinput>hpdj510</userinput>, |
| 1814 |
<userinput>hpdj520</userinput>, |
| 1815 |
<userinput>hpdj540</userinput>, |
| 1816 |
<userinput>hpdj550c</userinput>, |
| 1817 |
<userinput>hpdj560c</userinput>, |
| 1818 |
<userinput>unspecold</userinput>, |
| 1819 |
<userinput>hpdj600</userinput>, |
| 1820 |
<userinput>hpdj660c</userinput>, |
| 1821 |
<userinput>hpdj670c</userinput>, |
| 1822 |
<userinput>hpdj680c</userinput>, |
| 1823 |
<userinput>hpdj690c</userinput>, |
| 1824 |
<userinput>hpdj850c</userinput>, |
| 1825 |
<userinput>hpdj855c</userinput>, |
| 1826 |
<userinput>hpdj870c</userinput>, |
| 1827 |
<userinput>hpdj890c</userinput>, |
| 1828 |
<userinput>hpdj1120c</userinput>, |
| 1829 |
<userinput>unspec</userinput>. |
| 1830 |
</para></blockquote> |
| 1831 |
|
| 1832 |
<para> |
| 1833 |
The correspondence with the real printer name is, I hope, obvious. |
| 1834 |
Note that <userinput>hpdj</userinput> does not select the |
| 1835 |
<command>hpdj</command> driver (this driver's predecessor) |
| 1836 |
but configures the <command>pcl3</command> driver |
| 1837 |
for the "classical" HP DeskJet. |
| 1838 |
</para> |
| 1839 |
|
| 1840 |
<para> |
| 1841 |
With the exception of <userinput>hpdj</userinput>, |
| 1842 |
<userinput>unspec</userinput> and <userinput>unspecold</userinput>, |
| 1843 |
your <command>gs</command> binary might support the subdevice names also |
| 1844 |
as device names, |
| 1845 |
i.e., instead of specifying |
| 1846 |
<userinput>-sDEVICE=pcl3 |
| 1847 |
-sSubdevice=<replaceable>subdevice</replaceable></userinput> |
| 1848 |
you might be able to write |
| 1849 |
<userinput>-sDEVICE=<replaceable>subdevice</replaceable></userinput>. |
| 1850 |
Check ghostscript's list of available devices to find out whether this is the |
| 1851 |
case (<userinput>gs -h</userinput>). |
| 1852 |
</para> |
| 1853 |
|
| 1854 |
<para> |
| 1855 |
The choice of subdevice primarily determines which resolutions, colour models, |
| 1856 |
intensity levels and media sizes the driver will accept, |
| 1857 |
where the output will appear on the page, |
| 1858 |
and to some extent what PCL code the driver will generate. |
| 1859 |
Several of the subdevices are treated identically. |
| 1860 |
</para> |
| 1861 |
|
| 1862 |
<para> |
| 1863 |
The default subdevice is <userinput>unspec</userinput>. |
| 1864 |
It is intended for new PCL-3+ printers not explicitly supported by this driver. |
| 1865 |
For <userinput>unspec</userinput>, |
| 1866 |
all subdevice-specific checks (e.g., supported resolutions) |
| 1867 |
are turned off. |
| 1868 |
Supported media sizes and margin settings are assumed to be identical with |
| 1869 |
those for the DeskJets 850C/855C/870C/890C, |
| 1870 |
but you can and should use the <option>MediaConfigurationFile</option> |
| 1871 |
option or its compile-time equivalent to override this. |
| 1872 |
The PCL code generated assumes a new DeskJet in the sense that it should be |
| 1873 |
at least of the level of a DeskJet 540 supporting the PCL commands Media Type |
| 1874 |
and Print Quality. |
| 1875 |
If you specify unequal horizontal and vertical resolutions or |
| 1876 |
more than two levels of intensity per colorant and pixel, |
| 1877 |
the printer must in addition understand the Configure Raster Data command. |
| 1878 |
</para> |
| 1879 |
|
| 1880 |
<para> |
| 1881 |
The subdevice <userinput>unspecold</userinput> is similar but behaves like |
| 1882 |
a DeskJet 560C. |
| 1883 |
It supports all colour models and all uniform resolutions |
| 1884 |
(the horizontal resolution is equal to the vertical resolution). |
| 1885 |
</para> |
| 1886 |
|
| 1887 |
<para> |
| 1888 |
If you choose to use <userinput>unspec</userinput> or |
| 1889 |
<userinput>unspecold</userinput> |
| 1890 |
it is your responsibility to ensure that <command>pcl3</command> |
| 1891 |
is only called with parameter values the printer can handle. |
| 1892 |
This applies in particular to the resolution and the intensity levels. |
| 1893 |
</para> |
| 1894 |
|
| 1895 |
<para> |
| 1896 |
If you set this parameter from a PostScript document you must know that |
| 1897 |
doing this re-initializes most of the <command>pcl3</command> parameters |
| 1898 |
to their default values. |
| 1899 |
If you set several page device parameters in a single |
| 1900 |
<literal>setpagedevice</literal> call |
| 1901 |
the <option>Subdevice</option> option will be treated first. |
| 1902 |
</para></listitem> |
| 1903 |
</varlistentry> |
| 1904 |
|
| 1905 |
<!-- ______________________________________________________________________ --> |
| 1906 |
|
| 1907 |
<varlistentry> |
| 1908 |
<term><userinput>-dTumble<optional>=<replaceable>boolean</replaceable></optional></userinput></term> |
| 1909 |
<listitem><para> |
| 1910 |
When duplex printing is requested (<userinput>-dDuplex</userinput>), |
| 1911 |
this parameter specifies whether the y axes of PostScript's default user space |
| 1912 |
on the two sides of the sheet (assumed to use the same page size) point to the |
| 1913 |
same edge or to opposite edges. |
| 1914 |
<!-- This is really default user space, not default default user space. --> |
| 1915 |
The default value <userinput>false</userinput> indicates the same edge and |
| 1916 |
is usually suitable for binding on the left while |
| 1917 |
<userinput>true</userinput> indicates opposite edges and should be used for |
| 1918 |
binding at the top. |
| 1919 |
</para> |
| 1920 |
|
| 1921 |
<para> |
| 1922 |
You should note that the interpretation of <option>Tumble</option> refers to |
| 1923 |
default user space: |
| 1924 |
if a PostScript program has rotated the user space coordinate system |
| 1925 |
the association between the page's apparent "up" direction and the binding edge |
| 1926 |
will usually not be the one desired. |
| 1927 |
You should watch for this in particular when creating output |
| 1928 |
in landscape orientation from an application still generating |
| 1929 |
PostScript Level 1 code. |
| 1930 |
If a ghostscript screen driver like <command>x11</command> displays the pages |
| 1931 |
with the right side up you should have nothing to worry about, |
| 1932 |
even in the case of landscape orientation. |
| 1933 |
(You must call <command>gs</command> directly for this test, |
| 1934 |
not via <command>ghostview</command>.) |
| 1935 |
<!-- ghostview interprets the DSC comment %%Orientation. --> |
| 1936 |
If the orientation between the two sides turns out to be wrong, |
| 1937 |
you will have to print again with the opposite value for |
| 1938 |
<option>Tumble</option>. |
| 1939 |
If that does not help and you have a printer supporting only one of the two |
| 1940 |
possible duplex orientations, |
| 1941 |
check the relative order of <literal>restore</literal> and |
| 1942 |
<literal>showpage</literal> in the document you printed |
| 1943 |
(see the <option>DuplexCapability</option> option above). |
| 1944 |
</para></listitem> |
| 1945 |
</varlistentry> |
| 1946 |
|
| 1947 |
<!-- ______________________________________________________________________ --> |
| 1948 |
|
| 1949 |
<varlistentry> |
| 1950 |
<term><userinput>-dUseCard<optional>=<replaceable>value</replaceable></optional></userinput></term> |
| 1951 |
<listitem><para> |
| 1952 |
This option should only be given when printing on A6 and with a printer like the |
| 1953 |
HP DeskJet 1120C which distinguishes between A6 sheets and A6 postcards. |
| 1954 |
The option can be used to specifically request one of the alternatives. |
| 1955 |
The default <replaceable>value</replaceable> is <userinput>null</userinput> |
| 1956 |
and means that sheets are preferred to postcards, |
| 1957 |
but either is acceptable if supported. |
| 1958 |
The other permitted values are |
| 1959 |
<userinput>true</userinput> and <userinput>false</userinput>. |
| 1960 |
</para> |
| 1961 |
|
| 1962 |
<para> |
| 1963 |
This option applies to all page sizes set while ghostscript |
| 1964 |
executes and this includes the default size set at startup. |
| 1965 |
If you wish to use <userinput>-dUseCard=true</userinput> you will |
| 1966 |
therefore usually have to specify the <option>PAPERSIZE</option> option in the |
| 1967 |
call, |
| 1968 |
otherwise an error will occur because there is no postcard variant for the |
| 1969 |
usual default sizes (ISO A4 and US Letter). |
| 1970 |
</para></listitem> |
| 1971 |
</varlistentry> |
| 1972 |
|
| 1973 |
<!-- ______________________________________________________________________ --> |
| 1974 |
|
| 1975 |
</variablelist> |
| 1976 |
|
| 1977 |
</refsect2> |
| 1978 |
|
| 1979 |
<!--========================================================================--> |
| 1980 |
|
| 1981 |
<refsect2><title>Option Combinations for Hardware Parameters</title> |
| 1982 |
|
| 1983 |
<para> |
| 1984 |
Not all combinations of colour model, resolution, number of intensity levels, |
| 1985 |
print quality and media type are accepted or make sense. |
| 1986 |
Unfortunately, Hewlett-Packard does not publicly release sufficient information |
| 1987 |
to find the best possible combinations. |
| 1988 |
A good way to find reasonable settings is to use <command>pcl3opts</command> |
| 1989 |
on files generated by an official driver for the printer. |
| 1990 |
You should also check the file <filename>reports.txt</filename> in the |
| 1991 |
<command>pcl3</command> distribution. |
| 1992 |
In addition, I'll provide some remarks here. |
| 1993 |
</para> |
| 1994 |
|
| 1995 |
<para> |
| 1996 |
As a general rule, |
| 1997 |
it is unprofitable to use a finer resolution than 300 ppi or more than |
| 1998 |
2 intensity levels for draft quality. |
| 1999 |
A coarser resolution in particular can reduce the time needed to generate |
| 2000 |
and transmit the file to the printer. |
| 2001 |
Combined with draft quality this leads to what HP calls an "EconoFast" mode. |
| 2002 |
</para> |
| 2003 |
|
| 2004 |
<para> |
| 2005 |
As an exception, here are recommendations based on official HP documentation |
| 2006 |
for the DeskJet 1120C. |
| 2007 |
<!-- Source: "Hewlett-Packard DeskJet 1120C Printer - Software Developer's |
| 2008 |
PCL Guide", version 1.0, December 1997; page 48. --> |
| 2009 |
The table lists the resolution and the number of black or black and CMY levels |
| 2010 |
if not 2. |
| 2011 |
<blockquote><informaltable><tgroup cols="3"><thead> |
| 2012 |
<row><entry>Quality</entry> <entry>Gray</entry> <entry>CMYK</entry></row> |
| 2013 |
<!-- Missing rule --> |
| 2014 |
</thead> |
| 2015 |
<tbody> |
| 2016 |
<row><entry>draft</entry> <entry>300 ppi</entry> <entry>300 ppi</entry></row> |
| 2017 |
<row><entry>normal</entry> <entry>300 ppi, 4 levels</entry> |
| 2018 |
<entry>300 ppi, (4,3) levels</entry></row> |
| 2019 |
<row><entry>presentation</entry> |
| 2020 |
<entry>600 ppi</entry> <entry>300 ppi, (4,4) levels</entry></row> |
| 2021 |
</tbody></tgroup></informaltable></blockquote> |
| 2022 |
|
| 2023 |
These seem reasonable values for the supported series-800 DeskJets as well. |
| 2024 |
</para> |
| 2025 |
|
| 2026 |
</refsect2> |
| 2027 |
|
| 2028 |
<!--========================================================================--> |
| 2029 |
|
| 2030 |
<refsect2><title>Checking Page Device Parameters</title> |
| 2031 |
|
| 2032 |
<para> |
| 2033 |
As for all ghostscript drivers, |
| 2034 |
<command>pcl3</command>'s command line options correspond to identically-named |
| 2035 |
PostScript page device parameters |
| 2036 |
and are accessible in the usual way. |
| 2037 |
In particular, |
| 2038 |
it is possible to read the value of a parameter |
| 2039 |
by letting <command>gs</command> execute a command like |
| 2040 |
<blockquote><programlisting> |
| 2041 |
currentpagedevice /<replaceable>parameter</replaceable> get == |
| 2042 |
</programlisting></blockquote> |
| 2043 |
where <replaceable>parameter</replaceable> is the name of the parameter one |
| 2044 |
would like to inspect, |
| 2045 |
for example <userinput>BlackLevels</userinput>. |
| 2046 |
This is useful if you are in doubt whether the driver has accepted your options. |
| 2047 |
Of course, for printer-visible parameters you can also use |
| 2048 |
<command>pcl3opts</command> on the output file. |
| 2049 |
</para> |
| 2050 |
|
| 2051 |
<para> |
| 2052 |
The ghostscript distribution contains a program <filename>uninfo.ps</filename> |
| 2053 |
which displays the page device dictionary on standard output |
| 2054 |
but does not resolve nested dictionaries. |
| 2055 |
The <command>pcl3</command> distribution contains a similar program |
| 2056 |
<filename>dumppdd.ps</filename> which does not have this limitation. |
| 2057 |
</para> |
| 2058 |
|
| 2059 |
</refsect2> |
| 2060 |
|
| 2061 |
|
| 2062 |
</refsect1> |
| 2063 |
|
| 2064 |
<!-- ********************************************************************** --> |
| 2065 |
|
| 2066 |
<refsect1 id="CONFIGURATION"><title>CONFIGURATION</title> |
| 2067 |
|
| 2068 |
<refsect2><title>Media Configuration File</title> |
| 2069 |
|
| 2070 |
<para> |
| 2071 |
A <firstterm>media configuration file</firstterm> |
| 2072 |
(<firstterm>media file</firstterm> for short) can be used to override the |
| 2073 |
builtin subdevice-specific lists of supported media sizes |
| 2074 |
and, for each size, the sheet orientation in the input tray |
| 2075 |
and the margins enforced by the printer. |
| 2076 |
This feature is mainly intended to be used in conjunction with |
| 2077 |
<userinput>unspec</userinput> and <userinput>unspecold</userinput>: |
| 2078 |
if you have a model not directly supported by this driver, look up the |
| 2079 |
supported media sizes, |
| 2080 |
the rules for inserting media |
| 2081 |
and the corresponding printable regions in your printer's |
| 2082 |
manual and enter them in a media file. |
| 2083 |
</para> |
| 2084 |
|
| 2085 |
<caution><simpara> |
| 2086 |
Entering a media size in the file which is not really supported by your |
| 2087 |
printer is not useful: |
| 2088 |
the PCL interpreter will simply ignore the request to set this size, |
| 2089 |
and printer and driver may have diverging opinions about what the margins |
| 2090 |
will be. |
| 2091 |
If you need to print on a medium of a size not supported by your printer, |
| 2092 |
choose a larger and printer-supported size in PostScript or via |
| 2093 |
<option>FIXEDMEDIA</option>, |
| 2094 |
shift the image if necessary, |
| 2095 |
establish properly-positioned clipping regions within the real size, and print. |
| 2096 |
Or you could use a suitable page size recovery policy for PostScript's |
| 2097 |
media selection process. |
| 2098 |
However, if you have a newer DeskJet supporting custom page sizes, |
| 2099 |
all this is not necessary. |
| 2100 |
</simpara></caution> |
| 2101 |
|
| 2102 |
<para> |
| 2103 |
Margin specifications are important for two reasons: |
| 2104 |
the values for the left and top margins determine how the output is positioned |
| 2105 |
on the page, |
| 2106 |
and sufficiently large values for the right and bottom margins prevent the |
| 2107 |
print head being caught at the paper's edge and printing beyond the sheet, |
| 2108 |
respectively. |
| 2109 |
Because DeskJet printers usually have an inconveniently large bottom margin |
| 2110 |
(usually 0.4-0.8 inches or 10-20 mm), |
| 2111 |
one might be tempted to specify smaller values than listed in the |
| 2112 |
printer's manual. |
| 2113 |
However, one user reported that this led to the printer depositing a large wet |
| 2114 |
blob of black ink at the bottom of the page. |
| 2115 |
</para> |
| 2116 |
|
| 2117 |
<para> |
| 2118 |
A line in the media file can be blank, a comment line (first non-blank |
| 2119 |
character is '<userinput>#</userinput>'), or one of the following: |
| 2120 |
</para> |
| 2121 |
|
| 2122 |
<blockquote> |
| 2123 |
<!-- This is a table merely do get a decent alignment. --> |
| 2124 |
<informaltable frame="none"><tgroup cols="2"> |
| 2125 |
<tbody> |
| 2126 |
<row><entry><userinput>unit</userinput></entry> |
| 2127 |
<entry><replaceable>unit</replaceable></entry></row> |
| 2128 |
<row><entry><replaceable>size</replaceable></entry> |
| 2129 |
<entry><replaceable>left</replaceable> <replaceable>bottom</replaceable> <!-- |
| 2130 |
--> <replaceable>right</replaceable> <replaceable>top</replaceable></entry> |
| 2131 |
</row> |
| 2132 |
</tbody></tgroup></informaltable> |
| 2133 |
</blockquote> |
| 2134 |
|
| 2135 |
<para> |
| 2136 |
A <userinput>unit</userinput> line specifies in which units |
| 2137 |
margin specifications in the following lines should be interpreted. |
| 2138 |
<replaceable>unit</replaceable> |
| 2139 |
can either be <userinput>in</userinput> (inch) or |
| 2140 |
<userinput>mm</userinput> (millimetre) |
| 2141 |
with <userinput>in</userinput> being the default. |
| 2142 |
A unit specification remains in force until overridden by a following |
| 2143 |
<userinput>unit</userinput> line. |
| 2144 |
</para> |
| 2145 |
|
| 2146 |
<para> |
| 2147 |
The second kind of line states that the model supports a particular |
| 2148 |
media configuration and specifies the hardware margins in force for that case. |
| 2149 |
The <replaceable>size</replaceable> word consists of two parts: |
| 2150 |
a keyword denoting the extension and an optional suffix. |
| 2151 |
The following keywords are accepted |
| 2152 |
(entries marked with an asterisk (*) are those used by the subdevice |
| 2153 |
<userinput>unspec</userinput> |
| 2154 |
if no media file is employed; |
| 2155 |
entries with a section/paragraph sign (§) similarly identify the sizes |
| 2156 |
used by <userinput>unspecold</userinput>): |
| 2157 |
|
| 2158 |
<informaltable><tgroup cols="2"> |
| 2159 |
<colspec align="right"><colspec align="left"> |
| 2160 |
<tbody> |
| 2161 |
<row><entry><userinput>Index3x5in</userinput></entry> |
| 2162 |
<entry>US index card 3 × 5 in</entry></row> |
| 2163 |
<row><entry><userinput>EnvChou4</userinput></entry> |
| 2164 |
<entry>Japanese long envelope #4 (90 × 205 mm)</entry></row> |
| 2165 |
<row><entry><userinput>EnvMonarch</userinput></entry> |
| 2166 |
<entry>US Monarch envelope (3.875 × 7.5 in)</entry></row> |
| 2167 |
<row><entry>*<userinput>Postcard</userinput></entry> |
| 2168 |
<entry>Japanese Hagaki card (100 × 148 mm)</entry></row> |
| 2169 |
<row><entry>*<userinput>Index4x6in</userinput></entry> |
| 2170 |
<entry>US index card 4 × 6 in</entry></row> |
| 2171 |
<row><entry>§*<userinput>Env10</userinput></entry> |
| 2172 |
<entry>US no. 10 envelope (4.125 × 9.5 in)</entry></row> |
| 2173 |
<row><entry><userinput>A6</userinput></entry> |
| 2174 |
<entry>ISO/JIS A6 (105 × 148 mm)</entry></row> |
| 2175 |
<row><entry>*<userinput>A6Card</userinput></entry> |
| 2176 |
<entry>ISO/JIS A6 postcard (105 × 148 mm)</entry></row> |
| 2177 |
<row><entry>§*<userinput>EnvDL</userinput></entry> |
| 2178 |
<entry>ISO DL envelope (110 × 220 mm)</entry></row> |
| 2179 |
<row><entry><userinput>EnvUS_A2</userinput></entry> |
| 2180 |
<entry>US A2 envelope (4.375 × 5.75 in)</entry></row> |
| 2181 |
<row><entry>*<userinput>EnvC6</userinput></entry> |
| 2182 |
<entry>ISO C6 envelope (114 × 162 mm)</entry></row> |
| 2183 |
<row><entry><userinput>EnvChou3</userinput></entry> |
| 2184 |
<entry>Japanese long envelope #3 (120 × 235 mm)</entry></row> |
| 2185 |
<row><entry>*<userinput>Index5x8in</userinput></entry> |
| 2186 |
<entry>US index card 5 × 8 in</entry></row> |
| 2187 |
<row><entry><userinput>Statement</userinput></entry> |
| 2188 |
<entry>US Statement (5.5 × 8.5 in)</entry></row> |
| 2189 |
<row><entry><userinput>DoublePostcard</userinput></entry> |
| 2190 |
<entry>double Postcard (148 × 200 mm)</entry></row> |
| 2191 |
<row><entry>*<userinput>A5</userinput></entry> |
| 2192 |
<entry>ISO/JIS A5 (148 × 210 mm)</entry></row> |
| 2193 |
<row><entry><userinput>EnvC5</userinput></entry> |
| 2194 |
<entry>ISO C5 envelope (162 × 229 mm)</entry></row> |
| 2195 |
<row><entry><userinput>ISOB5</userinput></entry> |
| 2196 |
<entry>ISO B5 (176 × 250 mm)</entry></row> |
| 2197 |
<row><entry>*<userinput>JISB5</userinput></entry> |
| 2198 |
<entry>JIS B5 (182 × 257 mm)</entry></row> |
| 2199 |
<row><entry>§*<userinput>Executive</userinput></entry> |
| 2200 |
<entry>US Executive (7.25 × 10.5 in)</entry></row> |
| 2201 |
<row><entry>§*<userinput>A4</userinput></entry> |
| 2202 |
<entry>ISO/JIS A4 (210 × 297 mm)</entry></row> |
| 2203 |
<row><entry>§*<userinput>Letter</userinput></entry> |
| 2204 |
<entry>US Letter (8.5 × 11 in)</entry></row> |
| 2205 |
<row><entry>§*<userinput>Legal</userinput></entry> |
| 2206 |
<entry>US Legal (8.5 × 14 in)</entry></row> |
| 2207 |
<row><entry><userinput>EnvKaku2</userinput></entry> |
| 2208 |
<entry>Japanese Kaku envelope (240 × 332 mm)</entry></row> |
| 2209 |
<row><entry><userinput>JISB4</userinput></entry> |
| 2210 |
<entry>JIS B4 (257 × 364 mm). |
| 2211 |
This is distinct from ISO B4 (250 × 353 mm).</entry></row> |
| 2212 |
<row><entry><userinput>Tabloid</userinput></entry> |
| 2213 |
<entry>US Tabloid (11 × 17 in; in landscape orientation also called "Ledger")</entry></row> |
| 2214 |
<row><entry><userinput>A3</userinput></entry> |
| 2215 |
<entry>ISO/JIS A3 (297 × 420 mm)</entry></row> |
| 2216 |
<row><entry><userinput>HPSuperB</userinput></entry> |
| 2217 |
<entry>what HP calls Super B (13 × 19 in)</entry></row> |
| 2218 |
<row><entry>*<userinput>CustomPageSize</userinput></entry> |
| 2219 |
<entry>custom page size</entry></row> |
| 2220 |
</tbody></tgroup></informaltable> |
| 2221 |
|
| 2222 |
Note the difference between <userinput>A6</userinput> (sheet) and |
| 2223 |
<userinput>A6Card</userinput> (postcard). |
| 2224 |
I do not know why Hewlett-Packard associates this distinction with media size |
| 2225 |
instead of media type. |
| 2226 |
However, with the exception of the 1120C all DeskJet printers I know of |
| 2227 |
use only <userinput>A6Card</userinput> anyway. |
| 2228 |
</para> |
| 2229 |
|
| 2230 |
<para> |
| 2231 |
In looking at your printer's documentation, bear in mind that a driver might |
| 2232 |
support more sizes than the printer accepts; |
| 2233 |
<command>pcl3</command> needs to be given the latter values. |
| 2234 |
If you are in doubt what your printer understands, |
| 2235 |
<command>pcl3opts</command> can tell you which media size another driver |
| 2236 |
requests. |
| 2237 |
</para> |
| 2238 |
|
| 2239 |
<para> |
| 2240 |
Custom page sizes are not understood by older printers |
| 2241 |
and may be used in a media file only for the subdevices |
| 2242 |
<userinput>hpdj540</userinput>, |
| 2243 |
<userinput>hpdj6<replaceable>nn</replaceable><optional>c</optional></userinput>, |
| 2244 |
<userinput>hpdj8<replaceable>nn</replaceable>c</userinput>, |
| 2245 |
<userinput>hpdj1120c</userinput>, |
| 2246 |
and <userinput>unspec</userinput> (group 3). |
| 2247 |
In these cases you can print, within certain limits, on arbitrarily-sized media. |
| 2248 |
The driver knows these limits and refuses to generate a file if you exceed them. |
| 2249 |
For <userinput>unspec</userinput>, there are no limits. |
| 2250 |
<command>pcl3</command> |
| 2251 |
will tell the printer to expect a custom page size |
| 2252 |
only if there is no fitting discrete entry. |
| 2253 |
</para> |
| 2254 |
|
| 2255 |
<para> |
| 2256 |
Although it is possible, on those printers which support it, |
| 2257 |
to use a media configuration file containing only a custom page size entry, |
| 2258 |
I advise against it |
| 2259 |
because this size specification is only intended as a last resort. |
| 2260 |
If you have a custom page size entry in the media file, |
| 2261 |
you should therefore list <emphasis>all</emphasis> discrete sizes supported by |
| 2262 |
your printer or at least those which you expect to use. |
| 2263 |
</para> |
| 2264 |
|
| 2265 |
<para> |
| 2266 |
The size keyword in the <replaceable>size</replaceable> field can be extended |
| 2267 |
by the following strings: |
| 2268 |
<variablelist> |
| 2269 |
<varlistentry><term><userinput>Big</userinput></term> |
| 2270 |
<listitem><para> |
| 2271 |
For <command>pcl3</command>, this suffix means banner printing. |
| 2272 |
In these cases the top and bottom margins are usually zero. |
| 2273 |
HP DeskJets supporting banner printing do so only for ISO A4 and US Letter. |
| 2274 |
Your media file should then contain entries for the |
| 2275 |
<replaceable>sizes</replaceable> |
| 2276 |
<userinput>A4</userinput>, |
| 2277 |
<userinput>A4Big</userinput>, |
| 2278 |
<userinput>Letter</userinput>, and |
| 2279 |
<userinput>LetterBig</userinput>. |
| 2280 |
</para> |
| 2281 |
</listitem></varlistentry> |
| 2282 |
|
| 2283 |
<varlistentry><term><userinput>.Transverse</userinput></term> |
| 2284 |
<listitem><para> |
| 2285 |
By default, |
| 2286 |
<command>pcl3</command> assumes that the media listed are fed short edge first. |
| 2287 |
If you specify this qualifier, |
| 2288 |
the driver will assume that you are going to feed media of this size |
| 2289 |
long edge first. |
| 2290 |
If, for example, |
| 2291 |
your printer's manual states that envelopes of size ISO DL should be fed |
| 2292 |
long edge first, |
| 2293 |
the corresponding <replaceable>size</replaceable> field in your media file |
| 2294 |
should contain the string <userinput>EnvDL.Transverse</userinput>, |
| 2295 |
not <userinput>EnvDL</userinput>. |
| 2296 |
</para> |
| 2297 |
|
| 2298 |
<para> |
| 2299 |
This specification (or its absence) can be overridden with the option |
| 2300 |
<option>LeadingEdge</option> in the call. |
| 2301 |
</para> |
| 2302 |
</listitem></varlistentry> |
| 2303 |
</variablelist> |
| 2304 |
|
| 2305 |
The builtin lists for the <userinput>unspec</userinput> and |
| 2306 |
<userinput>unspecold</userinput> devices do not contain size entries with any |
| 2307 |
of these suffixes. |
| 2308 |
</para> |
| 2309 |
|
| 2310 |
<para> |
| 2311 |
Every media file must contain at least an entry which fits ghostscript's |
| 2312 |
default page size, |
| 2313 |
usually ISO A4 or US Letter. |
| 2314 |
Only those sizes which are listed will be accepted by <command>pcl3</command>. |
| 2315 |
This is independent of a <userinput>.Transverse</userinput> suffix. |
| 2316 |
If there are several entries in the media file with the same |
| 2317 |
<replaceable>size</replaceable> value, |
| 2318 |
only the first is used. |
| 2319 |
</para> |
| 2320 |
|
| 2321 |
<para> |
| 2322 |
The margins in a size entry should be valid for monochrome printing in |
| 2323 |
raster graphics mode. |
| 2324 |
If a non-monochrome colour model is selected and unless the bottom margin is |
| 2325 |
exactly zero, |
| 2326 |
it will be increased by a subdevice-specific amount. |
| 2327 |
This increment is zero for <userinput>unspecold</userinput> and |
| 2328 |
<userinput>unspec</userinput>. |
| 2329 |
</para> |
| 2330 |
|
| 2331 |
<para> |
| 2332 |
The orientation of the margins refers to the feeding direction: |
| 2333 |
you should imagine holding the sheet such that the leading edge is at the top |
| 2334 |
and the side to be printed on is towards you. |
| 2335 |
Be careful with envelopes: |
| 2336 |
older (pre-1997) HP documentation usually gives the margins in landscape |
| 2337 |
orientation |
| 2338 |
even for those printers where the envelope has to be fed short edge first. |
| 2339 |
You can check this by looking for the largest margin value: |
| 2340 |
if it is on the left instead of at the bottom you almost certainly have such a |
| 2341 |
landscape-based specification; |
| 2342 |
rotate the values by +90 degrees (quarter-circle counterclockwise) in these |
| 2343 |
cases. |
| 2344 |
The margins have to be specified as non-negative floating point numbers |
| 2345 |
in inches or millimetres |
| 2346 |
as announced by the last preceding <userinput>unit</userinput> line. |
| 2347 |
The floating point format is that of the "C" locale. |
| 2348 |
</para> |
| 2349 |
|
| 2350 |
<para> |
| 2351 |
<command>pcl3</command> |
| 2352 |
is distributed with an example of a media configuration file, |
| 2353 |
<filename>example.mcf</filename>. |
| 2354 |
</para> |
| 2355 |
</refsect2> |
| 2356 |
|
| 2357 |
<!--========================================================================--> |
| 2358 |
|
| 2359 |
<refsect2><title>PostScript Configuration Files</title> |
| 2360 |
|
| 2361 |
<para> |
| 2362 |
Sometimes it is desirable to execute additional PostScript commands for a |
| 2363 |
particular file or possibly all files sent to a particular printer or print |
| 2364 |
queue. |
| 2365 |
With ghostscript this is easily possible because <command>gs</command> |
| 2366 |
accepts several file names in the invocation and processes them sequentially. |
| 2367 |
This is particularly appropriate for those PostScript operators which affect |
| 2368 |
device-specific features and should therefore not appear in a portable page |
| 2369 |
description |
| 2370 |
and for settings which would be part |
| 2371 |
of the interpreter's persistent state when using a real PostScript printer. |
| 2372 |
</para> |
| 2373 |
|
| 2374 |
<para> |
| 2375 |
The <command>pcl3</command> distribution contains examples of filters |
| 2376 |
<filename>if-pcl3</filename> for the Berkeley spooler |
| 2377 |
<citerefentry> |
| 2378 |
<!-- Here we have a choice of evils: lpr(1) can refer to the Berkeley |
| 2379 |
interface or to the Berkeley-like interface for CUPS, lpd(8) can be |
| 2380 |
either the Berkeley or the AT&T daemon. --> |
| 2381 |
<refentrytitle>lpr</refentrytitle> |
| 2382 |
<manvolnum>1</manvolnum> |
| 2383 |
</citerefentry> |
| 2384 |
and <filename>cups-pcl3</filename> for the Common UNIX Printing System |
| 2385 |
<citerefentry> |
| 2386 |
<refentrytitle>cupsd</refentrytitle> |
| 2387 |
<manvolnum>8</manvolnum> |
| 2388 |
</citerefentry>. |
| 2389 |
These filters permit the use of a print-queue-specific configuration file. |
| 2390 |
</para> |
| 2391 |
</refsect2> |
| 2392 |
|
| 2393 |
<!--========================================================================--> |
| 2394 |
|
| 2395 |
<refsect2 id="sourcesAndDestinations"> |
| 2396 |
<title>Media Sources and Destinations</title> |
| 2397 |
|
| 2398 |
<para> |
| 2399 |
PostScript has a builtin mechanism for selecting media sources and destinations |
| 2400 |
based on certain properties of the document. |
| 2401 |
This usually requires a system administrator to set the |
| 2402 |
<literal>InputAttributes</literal> and <literal>OutputAttributes</literal> |
| 2403 |
dictionaries in the device's page device dictionary according to the current |
| 2404 |
state of the printer and its intended use. |
| 2405 |
For example, if there are two input trays, |
| 2406 |
one currently holding paper and the other transparencies, |
| 2407 |
the administrator could configure the <literal>InputAttributes</literal> |
| 2408 |
dictionary such that print jobs requesting transparencies in a certain manner |
| 2409 |
automatically fetch media from the second tray |
| 2410 |
and every job needing a size not currently available will terminate with |
| 2411 |
an error message. |
| 2412 |
Unfortunately, in order to work as expected this process usually also requires |
| 2413 |
some additional action on the part of the entity generating the PostScript code |
| 2414 |
to be printed. |
| 2415 |
</para> |
| 2416 |
|
| 2417 |
<para> |
| 2418 |
If your printer is capable of sensing certain properties of media in the |
| 2419 |
input tray (e.g., media size) |
| 2420 |
or assumes a fixed association between media properties and input trays |
| 2421 |
you must expect this functionality to interfere with the process referenced |
| 2422 |
here. |
| 2423 |
<!-- One user reported (2000-02-14) that his Mita copier/printer fed media from |
| 2424 |
the A3 tray only when sent the correct PCL page size code (this was for |
| 2425 |
hpdj). --> |
| 2426 |
</para> |
| 2427 |
|
| 2428 |
<para> |
| 2429 |
In the attributes dictionaries, |
| 2430 |
each tray is identified by an integer, |
| 2431 |
its <firstterm>position number</firstterm>. |
| 2432 |
When ghostscript successfully matches the document's requirements with trays |
| 2433 |
the resulting position numbers are accessible to the driver. |
| 2434 |
The <command>pcl3</command> driver uses these numbers (except 0) |
| 2435 |
directly as arguments |
| 2436 |
for the PCL commands "Media Source" and "Media Destination", respectively. |
| 2437 |
<!-- Actually, the name of the latter seems to be "Paper Destination" in |
| 2438 |
PCL 5. --> |
| 2439 |
For the Media Source values (input trays), I know of the following meanings: |
| 2440 |
|
| 2441 |
<blockquote><informaltable><tgroup cols="2"> |
| 2442 |
<colspec align="right"><colspec align="left"> |
| 2443 |
<tbody> |
| 2444 |
<!-- HP 2500C values from bpd07645. --> |
| 2445 |
<row><entry>-1</entry> <entry>banner printing</entry></row> |
| 2446 |
<row><entry>1</entry> <entry>default tray; portable CSF (DJ 340); tray 2 (HP 2500C)</entry></row> |
| 2447 |
<row><entry>2</entry> <entry>manual feed</entry></row> |
| 2448 |
<row><entry>3</entry> <entry>envelope feed</entry></row> |
| 2449 |
<row><entry>4</entry> <entry>desktop CSF (DJ 340); tray 3 (HP 2500C)</entry></row> |
| 2450 |
<row><entry>5</entry> <entry>tray 1 (HP 2500C)</entry></row> |
| 2451 |
<row><entry>7</entry> <entry>auto select (HP 2500C)</entry></row> |
| 2452 |
</tbody></tgroup></informaltable> |
| 2453 |
</blockquote> |
| 2454 |
|
| 2455 |
You'll have to experiment with your printer to find out which values are |
| 2456 |
accepted and what their interpretation is. |
| 2457 |
In general, |
| 2458 |
you can only expect 1 and 2 to work. |
| 2459 |
Unrecognized values should be simply ignored by the printer |
| 2460 |
leading to the medium being fetched from the default tray. |
| 2461 |
To shorten the search, use <command>pcl3opts</command> |
| 2462 |
if you can in order to find out which values other drivers generate. |
| 2463 |
Don't bother testing the value 0: |
| 2464 |
in PCL its effect is to eject a page and, as this is not needed, |
| 2465 |
<command>pcl3</command> uses it to mean that no particular tray should be |
| 2466 |
selected. |
| 2467 |
</para> |
| 2468 |
|
| 2469 |
<para> |
| 2470 |
I do not know of any PCL-3+ printer supporting more than one output tray, |
| 2471 |
hence the corresponding implementation is based on the speculation that such |
| 2472 |
a feature, if made available, |
| 2473 |
would use the same command as in PCL 5. |
| 2474 |
Again, a value of zero is used by <command>pcl3</command> to mean |
| 2475 |
"don't select a particular tray". |
| 2476 |
</para> |
| 2477 |
|
| 2478 |
<para> |
| 2479 |
Ghostscript's default configuration defines |
| 2480 |
<literal>InputAttributes</literal> and |
| 2481 |
<literal>OutputAttributes</literal> dictionaries with one entry each, |
| 2482 |
having position number 0 in both cases, |
| 2483 |
and maps all requests to these positions. |
| 2484 |
As explained above, this configuration will lead to <command>pcl3</command> |
| 2485 |
not requesting any particular input or output tray. |
| 2486 |
If you wish to modify this you should consult a PostScript manual, |
| 2487 |
for example the sections 6.2.1 and 6.2.4 in the |
| 2488 |
<citetitle>PostScript Language Reference</citetitle>. <!-- 3rd ed. --> |
| 2489 |
However, I'll present here three examples without explanation. |
| 2490 |
In all cases, the PostScript code shown should be executed before the |
| 2491 |
document to be printed. |
| 2492 |
</para> |
| 2493 |
|
| 2494 |
<para> |
| 2495 |
The first example is intended for situations where you always wish to select |
| 2496 |
a specific input tray: |
| 2497 |
<blockquote><programlisting> |
| 2498 |
<< |
| 2499 |
/InputAttributes << |
| 2500 |
0 null <!-- see PLR3, p. 410 --> |
| 2501 |
<replaceable>input</replaceable> << /PageSize [6 6 524287 524287] >> |
| 2502 |
>> |
| 2503 |
>> setpagedevice |
| 2504 |
</programlisting></blockquote> |
| 2505 |
Replace <replaceable>input</replaceable> with the number of the tray |
| 2506 |
you wish to use. |
| 2507 |
The second example does the same for the output tray: |
| 2508 |
<blockquote><programlisting> |
| 2509 |
<< |
| 2510 |
/OutputAttributes << |
| 2511 |
0 null |
| 2512 |
<replaceable>output</replaceable> << >> |
| 2513 |
>> |
| 2514 |
>> setpagedevice |
| 2515 |
</programlisting></blockquote> |
| 2516 |
Replace <replaceable>output</replaceable> with the number of the tray |
| 2517 |
you wish to use. |
| 2518 |
</para> |
| 2519 |
|
| 2520 |
<para> |
| 2521 |
For the final example assume that you have one input tray, |
| 2522 |
filled with media of a certain default size, |
| 2523 |
and you wish all print jobs requesting another size to automatically switch |
| 2524 |
to manual feed so you can insert these special sheets at leisure. |
| 2525 |
In that case, |
| 2526 |
let <command>gs</command> execute the following PostScript code: |
| 2527 |
</para> |
| 2528 |
|
| 2529 |
<blockquote><programlisting> |
| 2530 |
<< |
| 2531 |
/InputAttributes << |
| 2532 |
0 << /PageSize [<replaceable>width</replaceable> <replaceable>height</replaceable>] >> |
| 2533 |
2 << /PageSize [6 6 524287 524287] >> <!-- 2^19 - 1 --> |
| 2534 |
/Priority [0 2] |
| 2535 |
>> |
| 2536 |
>> setpagedevice |
| 2537 |
</programlisting></blockquote> |
| 2538 |
|
| 2539 |
<para> |
| 2540 |
For <replaceable>width</replaceable> and <replaceable>height</replaceable> you |
| 2541 |
must insert the actual dimensions of your default size |
| 2542 |
in units of 1 bp ("big point", 1/72 inch, roughly 0.35 mm); |
| 2543 |
the tolerance is 5 bp. |
| 2544 |
In contrast to a document's page size, |
| 2545 |
the orientation is irrelevant here. |
| 2546 |
</para> |
| 2547 |
|
| 2548 |
<para> |
| 2549 |
If you drop the second entry and the <userinput>Priority</userinput> line |
| 2550 |
in the last example |
| 2551 |
you obtain a configuration where ghostscript will refuse to print any document |
| 2552 |
not requesting the specified media size. |
| 2553 |
If you retain the two lines and you are using the |
| 2554 |
<userinput>unspecold</userinput> or <userinput>unspec</userinput> devices |
| 2555 |
it is advisable to insert your printer's actual size bounds instead of those |
| 2556 |
given above. |
| 2557 |
This will protect you against printing on some sizes |
| 2558 |
not supported by your printer. |
| 2559 |
</para> |
| 2560 |
|
| 2561 |
</refsect2> |
| 2562 |
|
| 2563 |
<!--========================================================================--> |
| 2564 |
|
| 2565 |
<refsect2><title>Banner Printing</title> |
| 2566 |
|
| 2567 |
<para> |
| 2568 |
Some printers support printing on continuous forms, |
| 2569 |
also called banners or z-fold media. |
| 2570 |
Your printer's manual should tell you whether this is supported and in |
| 2571 |
particular how to load these media. |
| 2572 |
</para> |
| 2573 |
|
| 2574 |
<para> |
| 2575 |
In order to print on continuous media with <command>pcl3</command>, |
| 2576 |
configure it as follows: |
| 2577 |
<itemizedlist> |
| 2578 |
<listitem><para> |
| 2579 |
Make sure that input position number −1 will be selected |
| 2580 |
(see the subsection |
| 2581 |
<link linkend="sourcesAndDestinations"><citetitle |
| 2582 |
>Media Sources And Destinations</citetitle></link> |
| 2583 |
above). |
| 2584 |
</para></listitem> |
| 2585 |
<listitem><para> |
| 2586 |
In the call to <command>gs</command>, |
| 2587 |
select a subdevice supporting the intended "<userinput>Big</userinput>" size. |
| 2588 |
By default, |
| 2589 |
only the subdevices <userinput>hpdj680c</userinput>, |
| 2590 |
<userinput>hpdj690c</userinput> and <userinput>hpdj1120c</userinput> |
| 2591 |
support banner printing |
| 2592 |
(<userinput>A4Big</userinput> and <userinput>LetterBig</userinput>). |
| 2593 |
</para></listitem> |
| 2594 |
</itemizedlist> |
| 2595 |
Don't forget to prepare the printer as well. |
| 2596 |
</para> |
| 2597 |
|
| 2598 |
</refsect2> |
| 2599 |
|
| 2600 |
<!--========================================================================--> |
| 2601 |
|
| 2602 |
<refsect2><title>Correcting Offsets</title> |
| 2603 |
|
| 2604 |
<para> |
| 2605 |
A media configuration file is intended to adapt |
| 2606 |
<command>pcl3</command> |
| 2607 |
to the difference in margin settings between printer models and should usually |
| 2608 |
contain "official" information, |
| 2609 |
preferably taken from the model's manual. |
| 2610 |
</para> |
| 2611 |
|
| 2612 |
<para> |
| 2613 |
A different situation arises if a particular printer's output is not properly |
| 2614 |
positioned on the page even if the margin information is correct for this |
| 2615 |
model. |
| 2616 |
PostScript defines two arrays in the page device dictionary for correcting such |
| 2617 |
misadjustments, |
| 2618 |
both containing two numbers describing a desired shift of the page image with |
| 2619 |
respect to device space coordinate axes but in different units. |
| 2620 |
The values in the `<literal>Margins</literal>' array are interpreted with |
| 2621 |
respect to a canonical default resolution, |
| 2622 |
the newer `<literal>PageOffset</literal>' array |
| 2623 |
is taken to be in units of 1/72 inch ("big points", bp). |
| 2624 |
For <command>pcl3</command> the device coordinate system has an |
| 2625 |
x axis pointing to the right and a y axis pointing downwards |
| 2626 |
when looking at the sheet with the leading edge at the top and the side to be |
| 2627 |
printed on towards you. |
| 2628 |
The canonical default resolution is 300 ppi. |
| 2629 |
</para> |
| 2630 |
|
| 2631 |
<para> |
| 2632 |
As an example, assume your printer shifts its output 1 mm to the right |
| 2633 |
and 0.5 mm upwards. |
| 2634 |
Now create a file containing either the PostScript code |
| 2635 |
<blockquote><programlisting> |
| 2636 |
<< /Margins [-11.8 5.9] >> setpagedevice |
| 2637 |
</programlisting></blockquote> |
| 2638 |
<!-- |
| 2639 |
Specifying tenths of pixels here may seem exaggerated. However, the DJ 850C |
| 2640 |
for example states that after calibration the vertical alignment is accurate |
| 2641 |
within +/-0.002 in or +/-0.6 pixels at 300 ppi. I can't imagine ever needing |
| 2642 |
that, but I can't see a reason either for throwing away accuracy. Moreover, |
| 2643 |
I do dot wish to suggest to the reader that s/he has to specify integers. |
| 2644 |
--> |
| 2645 |
("shift 11.8 pixels to the left and 5.9 pixels down") or |
| 2646 |
<blockquote><programlisting> |
| 2647 |
<< /PageOffset [-2.8 1.4] >> setpagedevice |
| 2648 |
</programlisting></blockquote> |
| 2649 |
("shift 2.8 bp to the left and 1.4 bp down") |
| 2650 |
and have it executed by ghostscript before the file to be printed. |
| 2651 |
</para> |
| 2652 |
|
| 2653 |
<para> |
| 2654 |
The margin test files distributed with <command>pcl3</command> |
| 2655 |
can be used to determine the necessary correction. |
| 2656 |
You should be aware that you have to expect fluctuations between individual |
| 2657 |
print jobs, |
| 2658 |
in particular in the horizontal direction. |
| 2659 |
</para> |
| 2660 |
|
| 2661 |
</refsect2> |
| 2662 |
|
| 2663 |
<!--========================================================================--> |
| 2664 |
|
| 2665 |
<refsect2 id="TransferFunctions"><title>Transfer Functions</title> |
| 2666 |
|
| 2667 |
<para> |
| 2668 |
DeskJets usually produce prints which are too dark (too much ink on the page), |
| 2669 |
most noticeably when using more than 2 intensity levels per colorant. |
| 2670 |
In this case you should perform |
| 2671 |
<firstterm>gamma correction</firstterm> |
| 2672 |
by modifying what PostScript calls <firstterm>transfer functions</firstterm>. |
| 2673 |
In the simplest case, |
| 2674 |
create a file containing the PostScript command |
| 2675 |
</para> |
| 2676 |
|
| 2677 |
<blockquote><programlisting> |
| 2678 |
{<replaceable>number</replaceable> exp} settransfer |
| 2679 |
</programlisting></blockquote> |
| 2680 |
|
| 2681 |
<para> |
| 2682 |
where a good value for <replaceable>number</replaceable> |
| 2683 |
is usually in the range 0.3-0.5, |
| 2684 |
<!-- |
| 2685 |
The recommendation is my own. HP recommends to experiment around a gamma |
| 2686 |
value of 0.3 for the DeskJets 310 and 320 when using 50 % shingling and |
| 2687 |
25 % depletion (DJ3/4 p. 24). --> |
| 2688 |
and specify this file in ghostscript's command line before the file you wish to |
| 2689 |
print. |
| 2690 |
Now the intensities of all colorants will be rescaled by exponentiation |
| 2691 |
with <replaceable>number</replaceable>. |
| 2692 |
Because PostScript intensity values are in the range zero to one |
| 2693 |
with zero meaning dark and one meaning light (additive interpretation), |
| 2694 |
a value of <replaceable>number</replaceable> < 1 |
| 2695 |
will lead to lighter colours and |
| 2696 |
<replaceable>number</replaceable> > 1 results in darker colours. |
| 2697 |
</para> |
| 2698 |
|
| 2699 |
<para> |
| 2700 |
The best value for <replaceable>number</replaceable> depends on the |
| 2701 |
print quality, |
| 2702 |
the number of intensity levels, |
| 2703 |
the method chosen for intensity rendering, |
| 2704 |
the kind of medium you print on, |
| 2705 |
and the properties of the document to be printed. |
| 2706 |
<!-- That should give you sufficient scope for experiments :-). --> |
| 2707 |
</para> |
| 2708 |
|
| 2709 |
<para> |
| 2710 |
Note that there is no common convention for the interpretation of |
| 2711 |
stand-alone gamma values. |
| 2712 |
When dealing with other software you might for example find that the boundary |
| 2713 |
between light and dark is at a value of 1000 and |
| 2714 |
that lighter colours are obtained with larger values. |
| 2715 |
In order to understand what a "gamma value" means |
| 2716 |
you therefore need the complete specification of the transfer function and, |
| 2717 |
if the value does not refer to PostScript, |
| 2718 |
also information on the interpretation of intensity values. |
| 2719 |
</para> |
| 2720 |
|
| 2721 |
<para> |
| 2722 |
You can also set independent transfer functions for the four colorants |
| 2723 |
by using the operator <literal>setcolortransfer</literal> |
| 2724 |
which expects four routines as arguments. |
| 2725 |
Consult a PostScript manual if you want to learn more about transfer functions. |
| 2726 |
</para> |
| 2727 |
|
| 2728 |
<para> |
| 2729 |
If you are using <userinput>-sIntensityRendering=halftones</userinput>, |
| 2730 |
less than 32 intensity levels per colorant, |
| 2731 |
a resolution below 800 ppi, |
| 2732 |
and unless you explicitly set transfer functions, |
| 2733 |
<command>gs</command> applies a default gamma correction roughly corresponding |
| 2734 |
to a value of 0.8 for <replaceable>number</replaceable>. |
| 2735 |
<!-- VERIFIED: gs 6.01, 6.50 (gs_init.ps) --> |
| 2736 |
</para> |
| 2737 |
|
| 2738 |
</refsect2> |
| 2739 |
</refsect1> |
| 2740 |
|
| 2741 |
<!-- ********************************************************************** --> |
| 2742 |
|
| 2743 |
<refsect1 id="LIMITATIONS"><title>LIMITATIONS</title> |
| 2744 |
|
| 2745 |
<refsect2><title>Ghostscript Version</title> |
| 2746 |
|
| 2747 |
<para> |
| 2748 |
This manual page contains statements relying on undocumented properties of |
| 2749 |
ghostscript. |
| 2750 |
These statements are to my best knowledge and belief correct for current |
| 2751 |
ghostscript versions |
| 2752 |
but I do not check all these statements for every new version. |
| 2753 |
</para> |
| 2754 |
|
| 2755 |
<para> |
| 2756 |
If you are in doubt about a particular point, please check it yourself. |
| 2757 |
</para> |
| 2758 |
|
| 2759 |
</refsect2> |
| 2760 |
|
| 2761 |
<!--========================================================================--> |
| 2762 |
|
| 2763 |
<refsect2><title>Reliability</title> |
| 2764 |
|
| 2765 |
<para> |
| 2766 |
Hewlett-Packard does not publicly provide sufficiently detailed or accurate |
| 2767 |
technical information to write a reliable driver for all of its PCL-3+ printers. |
| 2768 |
The amount and quality of available information differs between printer models. |
| 2769 |
As a consequence, |
| 2770 |
<command>pcl3</command> cannot provide the same level of reliability for all |
| 2771 |
of its devices. |
| 2772 |
</para> |
| 2773 |
|
| 2774 |
<para> |
| 2775 |
In my opinion the best-documented printers are those of the DeskJet-500 series. |
| 2776 |
In addition, I have currently access to a DeskJet 850C which I have used for a |
| 2777 |
number of experiments. |
| 2778 |
Support for these printers should be considered to be the most reliable. |
| 2779 |
</para> |
| 2780 |
|
| 2781 |
<para> |
| 2782 |
The next level of reliability belongs to the remaining printers for which |
| 2783 |
subdevices exist. |
| 2784 |
In these cases I had at least access to official HP documentation on supported |
| 2785 |
media sizes and associated hardware margins |
| 2786 |
and in addition for almost all cases some information on the supported PCL |
| 2787 |
commands, |
| 2788 |
sometimes complemented by PCL files generated by HP's official drivers and sent |
| 2789 |
me by users. |
| 2790 |
</para> |
| 2791 |
|
| 2792 |
<para> |
| 2793 |
The third level of reliability is associated with those printers for which |
| 2794 |
people have sent success reports |
| 2795 |
but for which I have no official information from HP. |
| 2796 |
</para> |
| 2797 |
|
| 2798 |
<para> |
| 2799 |
With decreasing reliability it becomes increasingly probable |
| 2800 |
that there is printer functionality which is not accessible through |
| 2801 |
<command>pcl3</command> or |
| 2802 |
even that this driver generates PCL code not accepted by the printer. |
| 2803 |
</para> |
| 2804 |
|
| 2805 |
</refsect2> |
| 2806 |
|
| 2807 |
<!--========================================================================--> |
| 2808 |
|
| 2809 |
<refsect2><title>Mixed Resolutions</title> |
| 2810 |
|
| 2811 |
<para> |
| 2812 |
Some printers are able to print with different resolutions for black and |
| 2813 |
CMY on the same region of a page. |
| 2814 |
For example, the best quality on a DeskJet 850C is achieved with 600 ppi for |
| 2815 |
black and 300 ppi for CMY. |
| 2816 |
This is not supported by <command>pcl3</command>. |
| 2817 |
</para> |
| 2818 |
|
| 2819 |
</refsect2> |
| 2820 |
|
| 2821 |
<!--========================================================================--> |
| 2822 |
|
| 2823 |
<refsect2><title>Photo Cartridges</title> |
| 2824 |
|
| 2825 |
<para> |
| 2826 |
From what I've heard, DeskJet printers with photo cartridges installed do not |
| 2827 |
use a CMYK palette but instead one with 6 components. |
| 2828 |
I have no official information on this interface |
| 2829 |
and even if I had it wouldn't help because |
| 2830 |
ghostscript does not currently support <literal>DeviceN</literal> as a |
| 2831 |
native colour space. |
| 2832 |
</para> |
| 2833 |
|
| 2834 |
</refsect2> |
| 2835 |
|
| 2836 |
<!--========================================================================--> |
| 2837 |
|
| 2838 |
<refsect2><title>Cartridge Alignment</title> |
| 2839 |
|
| 2840 |
<para> |
| 2841 |
DeskJet printers with more than one ink cartridge present should usually be |
| 2842 |
configured for the proper relative alignment of these cartridges. |
| 2843 |
Apparently, this information is stored in not-immediately-volatile memory |
| 2844 |
in the printer together with some settings (like the default media size) |
| 2845 |
which are not relevant for printing with <command>pcl3</command>. |
| 2846 |
As I do not have information on how this is done, |
| 2847 |
you will need to use one of HP's programs for this purpose. |
| 2848 |
</para> |
| 2849 |
|
| 2850 |
<para> |
| 2851 |
On a Linux system, try installing and running HP's DOS DeskJet control panel |
| 2852 |
<command>DJCP</command> in the DOS emulator. |
| 2853 |
<command>DJCP</command> should be present on one of the installation media |
| 2854 |
you received with your printer. |
| 2855 |
One user managed to get this to work |
| 2856 |
for a DJ 670C with DOSEMU 0.98 under RedHat 5.2 by setting |
| 2857 |
<blockquote><programlisting> |
| 2858 |
$_ports = "0x378 0x379" |
| 2859 |
</programlisting></blockquote> |
| 2860 |
in <filename>dosemu.conf</filename>. |
| 2861 |
<!-- Mail from Swapneel Kore <[email protected]> on 1999-05-23. --> |
| 2862 |
I was not successful on my Debian system. |
| 2863 |
<!-- |
| 2864 |
DOSEMU 0.98.1 in Debian 2.1. |
| 2865 |
I used (kernel 2.0.38): |
| 2866 |
ports { device /dev/lp1 range 0x378 0x37f } |
| 2867 |
DJCP sensed correctly whether the printer was switched on or not, but the |
| 2868 |
printer did not react. Some (all?) print jobs ended in the spooler. |
| 2869 |
--> |
| 2870 |
</para> |
| 2871 |
|
| 2872 |
<para> |
| 2873 |
The <command>pcl3</command> distribution contains a file |
| 2874 |
<filename>calign.ps</filename> which you can print if you wish to check |
| 2875 |
to which extent the cartridges are aligned. |
| 2876 |
</para> |
| 2877 |
|
| 2878 |
</refsect2> |
| 2879 |
|
| 2880 |
</refsect1> |
| 2881 |
|
| 2882 |
<!--************************************************************************--> |
| 2883 |
|
| 2884 |
<refsect1><title>KNOWN BUGS</title> |
| 2885 |
|
| 2886 |
<para> |
| 2887 |
There are no known bugs in <command>pcl3</command> proper, |
| 2888 |
but there do exist restrictions or bugs in <command>gs</command> |
| 2889 |
which can lead to faulty behaviour when printing with <command>pcl3</command>. |
| 2890 |
As far as I noticed them |
| 2891 |
they are mentioned in the body of this manual page at the relevant points. |
| 2892 |
</para> |
| 2893 |
|
| 2894 |
<para> |
| 2895 |
You can find an up-to-date bug list for this driver via |
| 2896 |
<command>pcl3</command>'s home page on the Web. |
| 2897 |
</para> |
| 2898 |
</refsect1> |
| 2899 |
|
| 2900 |
<!--************************************************************************--> |
| 2901 |
|
| 2902 |
<refsect1><title>SEE ALSO</title> |
| 2903 |
|
| 2904 |
<!-- I should like to use simplelist here, but docbook-to-man indents it |
| 2905 |
which looks very ugly. --> |
| 2906 |
<para> |
| 2907 |
<!-- I should generate some links here in case of HTML output. But how? --> |
| 2908 |
<citerefentry> |
| 2909 |
<refentrytitle>gs</refentrytitle> |
| 2910 |
<manvolnum>1</manvolnum> |
| 2911 |
</citerefentry>, |
| 2912 |
<citerefentry> |
| 2913 |
<refentrytitle>pcl3opts</refentrytitle> |
| 2914 |
<manvolnum>1</manvolnum> |
| 2915 |
</citerefentry> |
| 2916 |
</para> |
| 2917 |
|
| 2918 |
<!-- Note that DocBook 3.1 does not permit a bibliography in a refsect. --> |
| 2919 |
|
| 2920 |
<para> |
| 2921 |
<ulink |
| 2922 |
url="http://www.cs.indiana.edu/docproject/programming/postscript/postscript.html" |
| 2923 |
><citetitle>A First Guide to PostScript</citetitle></ulink> |
| 2924 |
<!-- URL last checked 2000-10-21. --> |
| 2925 |
</para> |
| 2926 |
|
| 2927 |
<para> |
| 2928 |
<corpauthor>Adobe Systems</corpauthor>, |
| 2929 |
<ulink url="http://partners.adobe.com/asn/developer/PDFS/TN/PLRM.pdf" |
| 2930 |
><citetitle>PostScript Language Reference</citetitle></ulink>. |
| 2931 |
<!-- URL last checked 2000-05-26. --> |
| 2932 |
Third edition, 1999. |
| 2933 |
</para> |
| 2934 |
|
| 2935 |
</refsect1> |
| 2936 |
|
| 2937 |
<!--************************************************************************--> |
| 2938 |
|
| 2939 |
<refsect1><title>AUTHOR</title> |
| 2940 |
|
| 2941 |
<para> |
| 2942 |
Copyright © 2000, 2001 by Martin Lottermoser, |
| 2943 |
Greifswaldstraße 28, 38124 Braunschweig, Germany. |
| 2944 |
E-mail: |
| 2945 |
<email>[email protected]</email>. |
| 2946 |
</para> |
| 2947 |
|
| 2948 |
<para> |
| 2949 |
<command>pcl3</command> has a |
| 2950 |
<ulink url="http://home.t-online.de/home/Martin.Lottermoser/pcl3.html" |
| 2951 |
>home page</ulink> on the Web. |
| 2952 |
</para> |
| 2953 |
|
| 2954 |
<para> |
| 2955 |
This is free software, |
| 2956 |
released under the terms of the |
| 2957 |
<ulink url="http://www.gnu.org/copyleft/lesser.html" |
| 2958 |
>GNU Lesser General Public License (LGPL)</ulink>, |
| 2959 |
<!-- URL last checked 2000-10-21. --> |
| 2960 |
Version 2.1. |
| 2961 |
<emphasis>USE IT AT YOUR OWN RISK.</emphasis> |
| 2962 |
</para> |
| 2963 |
|
| 2964 |
<para> |
| 2965 |
Version of this reference page: $Revision: 1.21 $ |
| 2966 |
($Date: 2001/08/18 17:19:29 $). |
| 2967 |
</para> |
| 2968 |
|
| 2969 |
</refsect1> |
| 2970 |
|
| 2971 |
<!--************************************************************************--> |
| 2972 |
</refentry> |