Commit 621be200 authored by Marcus Meissner's avatar Marcus Meissner Committed by Alexandre Julliard

Changed the printing documentation to include CUPS and LPR support,

also give some hints on AFM files in system and generic.ppd.
parent 00d70684
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
</para> </para>
<para> <para>
Printing in Wine can be done in one of two ways. Both of which are pretty alpha. Printing in Wine can be done in one of two ways:
</para> </para>
<orderedlist> <orderedlist>
<listitem> <listitem>
...@@ -36,8 +36,8 @@ ...@@ -36,8 +36,8 @@
<sect3> <sect3>
<title>External printer drivers</title> <title>External printer drivers</title>
<para> <para>
At present only 16 bit drivers will work (note that these include win9x At present only 16 bit drivers will work (note that these include
drivers). To use them, add win9x drivers). To use them, add
</para> </para>
<screen> <screen>
printer=on printer=on
...@@ -62,7 +62,14 @@ printer=on ...@@ -62,7 +62,14 @@ printer=on
<para> <para>
Enables printing of PostScript files via a driver built into Wine. See Enables printing of PostScript files via a driver built into Wine. See
below for installation instructions. The code for the PostScript below for installation instructions. The code for the PostScript
driver is in <filename>graphics/psdrv</filename>. driver is in <filename>dlls/wineps/</filename>.
</para>
<para>
The driver behaves as if it were a DRV file called
<filename>wineps.drv</filename> which at the moment is built into
Wine.
Although it mimics a 16 bit driver it will work with both 16 and 32
bit apps, just as win9x drivers do.
</para> </para>
</sect3> </sect3>
...@@ -84,6 +91,12 @@ printer=on ...@@ -84,6 +91,12 @@ printer=on
with that port's name e.g. for <systemitem>LPT3:</systemitem> a file with that port's name e.g. for <systemitem>LPT3:</systemitem> a file
called <systemitem>LPT3:</systemitem> would be created. called <systemitem>LPT3:</systemitem> would be created.
</para> </para>
<para>
There are now also virtual spool queues called
<systemitem>LPR:printername</systemitem>, which send the data
to <command>lpr -Pprintername</command>. You do not need to
specify those in the config file, they are handled automatically by
<filename>dlls/gdi/printdrv.c</filename>.
</sect3> </sect3>
</sect2> </sect2>
...@@ -98,37 +111,70 @@ printer=on ...@@ -98,37 +111,70 @@ printer=on
</para> </para>
<para> <para>
When complete this will allow Wine to generate PostScript files without This allows Wine to generate PostScript files without
needing an external printer driver. It should be possible to print to a needing an external printer driver. Wine in this case uses the
non PostScript printer by filtering the output through ghostscript. system provided postscript printer filters, which almost all use
ghostscript if necessary. Those should be configured during the
original system installation or by your system administrator.
</para> </para>
<sect3> <sect3>
<title>Installation</title> <title>Installation</title>
<sect4>
<title>Installation of CUPS printers</title>
<para> <para>
The driver behaves as if it were a DRV file called If you are using CUPS you do not need to configure .ini or
<filename>wineps.drv</filename> which at the moment is built into Wine. registry entries, everything is autodetected.
Although it mimics a 16 bit driver it will work with both 16 and 32 bit
apps, just as win9x drivers do.
</para> </para>
</sect4>
<sect4>
<title>Installation of LPR /etc/printcap based printers</title>
<para> <para>
To install it add If your system is not yet using CUPS, it probably uses LPRng
or a LPR based system with configuration based on /etc/printcap.
</para>
<para>
If it does, your printers in <filename>/etc/printcap</filename>
are scanned with a heuristic whether they are PostScript capable
printers and also configured mostly automatic.
</para>
<para>
Since WINE cannot find out what type of printer this is, you
need to specify a PPD file in the [ppd] section of
<filename>~/.wine/config</filename>. Either use the shortcut
name and make the entry look:
</para> </para>
<screen> <screen>
"Wine PostScript Driver" = "WINEPS,LPT1:" [ppd]
"ps1" = "/usr/lib/wine/ps1.ppd"
</screen>
<para>
Or you can specify a generic PPD file matching for all of the rest
printers. A generic PPD file can be found in
<filename>documenation/samples/generic.ppd</filename>.
</para>
</sect4>
<sect4>
<title>Installation of other printers</title>
<para>
You do not need to this, if the above 2 sections apply, only if
you have a special printer.
</para>
<screen>
"Wine PostScript Driver" = "WINEPS,LPT1:"
</screen> </screen>
<para> <para>
to the [devices] section and to the [devices] section and
</para> </para>
<screen> <screen>
"Wine PostScript Driver" = "WINEPS,LPT1:,15,45" "Wine PostScript Driver" = "WINEPS,LPT1:,15,45"
</screen> </screen>
<para> <para>
to the [PrinterPorts] section of <filename>win.ini</filename> and to set it to the [PrinterPorts] section of <filename>win.ini</filename> and to set it
as the default printer also add as the default printer also add
</para> </para>
<screen> <screen>
"device" = "Wine PostScript Driver,WINEPS,LPT1:" "device" = "Wine PostScript Driver,WINEPS,LPT1:"
</screen> </screen>
<para> <para>
to the [windows] section of <filename>~/.wine/config</filename> and ??? to the [windows] section of <filename>~/.wine/config</filename> and ???
...@@ -165,6 +211,9 @@ printer=on ...@@ -165,6 +211,9 @@ printer=on
</listitem> </listitem>
</itemizedlist> </itemizedlist>
</para> </para>
</sect4>
<sect4>
<title>Required Configuration for all printertypes</title>
<para> <para>
You will need Adobe Font Metric (AFM) files for the (type 1 PostScript) You will need Adobe Font Metric (AFM) files for the (type 1 PostScript)
fonts that you wish to use. You can get these from fonts that you wish to use. You can get these from
...@@ -189,18 +238,32 @@ printer=on ...@@ -189,18 +238,32 @@ printer=on
<filename>~/.wine/config</filename>) and add a line of the form <filename>~/.wine/config</filename>) and add a line of the form
</para> </para>
<screen> <screen>
"dir&lt;n&gt;" = "/unix/path/name/" "dir&lt;n&gt;" = "/unix/path/name/"
</screen> </screen>
<para> <para>
for each directory that contains AFM files you wish to use. for each directory that contains AFM files you wish to use.
</para> </para>
<para> <para>
You also require a PPD file for your printer. This describes certain There usually are a lot of afm files already on your system,
characteristics of the printer such as which fonts are installed, how within ghostscript, enscript, a2ps or similar programs. You might
to select manual feed etc. Adobe also has many of these on its website, check (and probably add) the following entries to the [afmdirs]
have a look in <ulink url="ftp://ftp.adobe.com/pub/adobe/printerdrivers/win/all/"> section.
ftp://ftp.adobe.com/pub/adobe/printerdrivers/win/all/</ulink>. See </para>
above for information on configuring the driver to use this file. <screen>
"1" = "/usr/share/ghostscript/fonts"
"2" = "/usr/share/a2ps/afm"
"3" = "/usr/share/enscript"
"4" = "/usr/X11R6/lib/X11/fonts/Type1"
</screen>
<para>
You also require a PPD file for your printer. This describes
certain characteristics of the printer such as which fonts are
installed, how to select manual feed etc. Adobe also has many of
these on its website, have a look in
<ulink url="ftp://ftp.adobe.com/pub/adobe/printerdrivers/win/all/">
ftp://ftp.adobe.com/pub/adobe/printerdrivers/win/all/</ulink>.
See above for information on configuring the driver to use this
file.
</para> </para>
<para> <para>
To enable colour printing you need to have the To enable colour printing you need to have the
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment