Move PostScript driver docs to documentation/ . Add instructions on
how to use regapi to get information into the registry. Supply sample input to regapi.
This commit is contained in:
parent
2d7f8590dc
commit
395d3705cf
|
@ -16,7 +16,9 @@ they ever will.
|
||||||
|
|
||||||
1. External printer drivers
|
1. External printer drivers
|
||||||
---------------------------
|
---------------------------
|
||||||
At present only 16 bit drivers will work.
|
At present only 16 bit drivers will work (note that these include win9x
|
||||||
|
drivers).
|
||||||
|
|
||||||
Add
|
Add
|
||||||
|
|
||||||
printer=on
|
printer=on
|
||||||
|
@ -34,11 +36,11 @@ to the [TrueType] section of win.ini .
|
||||||
The code for the driver interface is in graphics/win16drv .
|
The code for the driver interface is in graphics/win16drv .
|
||||||
|
|
||||||
|
|
||||||
2. Builtin Wine Postscript driver
|
2. Builtin Wine PostScript driver
|
||||||
---------------------------------
|
---------------------------------
|
||||||
Enables printing of postscript files via a driver built into Wine. See
|
Enables printing of PostScript files via a driver built into Wine. See
|
||||||
graphics/psdrv/README for installation instructions. The code for the
|
documentation/psdriver for installation instructions. The code for the
|
||||||
postscript driver is in graphics/psdrv .
|
PostScript driver is in graphics/psdrv .
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -9,28 +9,37 @@ printer by filtering the output through ghostscript.
|
||||||
Installation
|
Installation
|
||||||
------------
|
------------
|
||||||
|
|
||||||
At the moment the driver will only work for 16 bit apps, the move to 32 bit
|
The driver behaves as if it were a DRV file called WINEPS.DRV which at the
|
||||||
should be quite easy, I'd just like to improve it first. The driver behaves as
|
moment is built into Wine. Although it mimics a 16 bit driver it will work
|
||||||
if it were a DRV file called WINEPS.DRV . To install it as the default printer
|
with both 16 and 32 bit apps, just as win9x drivers do.
|
||||||
driver add
|
|
||||||
|
To install it add
|
||||||
|
|
||||||
|
Wine PostScript Driver=WINEPS,LPT1:
|
||||||
|
|
||||||
|
to the [devices] section of win.ini and to set it as the default printer also
|
||||||
|
add
|
||||||
|
|
||||||
device=Wine PostScript Driver,WINEPS,LPT1:
|
device=Wine PostScript Driver,WINEPS,LPT1:
|
||||||
|
|
||||||
to the [windows] section of win.ini and
|
to the [windows] section of win.ini and
|
||||||
|
|
||||||
Wine PostScript Driver=WINEPS,LPT1:
|
|
||||||
|
|
||||||
to the [devices] section of win.ini .
|
To run 32 bit apps (and 16 bit apps using the builtin commdlg) you also need to
|
||||||
|
add certain entries to the registry. The easiest way to do that at the moment
|
||||||
|
is to use the winelib program programs/regapi/regapi with the file
|
||||||
|
documentation/psdrv.reg . To do this cd to programs/regapi/regapi and type
|
||||||
|
`make' to actually make the program, then type
|
||||||
|
`./regapi setValue <../../documentation/psdrv.reg' . You can obviously edit
|
||||||
|
psdrv.reg to suit your requirements.
|
||||||
|
|
||||||
You will need Adobe Font Metric (AFM) files for the (type 1 PostScript) fonts
|
You will need Adobe Font Metric (AFM) files for the (type 1 PostScript) fonts
|
||||||
that you wish to use. You can get these from
|
that you wish to use. You can get these from
|
||||||
|
ftp://ftp.adobe.com/pub/adobe/type/win/all/afmfiles . The directories base17
|
||||||
ftp://ftp.adobe.com/pub/adobe/type/win/all/afmfiles . The directories base17 or
|
or base35 are good places to start. Note that these are only the font metrics
|
||||||
base35 are good places to start.
|
and not the fonts themselves. At the moment the driver does not download
|
||||||
|
additional fonts, so you can only use fonts that are already present on the
|
||||||
Note that these are only the font metrics and not the fonts themselves. At
|
printer.
|
||||||
present the driver does not download additional fonts, so you can only use
|
|
||||||
fonts that are already present on the printer.
|
|
||||||
|
|
||||||
Then create a [afmfiles] section in your wine.conf (or ~/.winerc) and add a
|
Then create a [afmfiles] section in your wine.conf (or ~/.winerc) and add a
|
||||||
line of the form
|
line of the form
|
||||||
|
@ -39,9 +48,9 @@ file=/unix/path/name/filename.afm
|
||||||
|
|
||||||
for each AFM file that you wish to use. [This might change in the future]
|
for each AFM file that you wish to use. [This might change in the future]
|
||||||
|
|
||||||
You also require a PPD file for your printer. This describes certain
|
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
|
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
|
manual feed etc. Adobe also has many of these on its website, have a look in
|
||||||
ftp://ftp.adobe.com/pub/adobe/printerdrivers/win/all/
|
ftp://ftp.adobe.com/pub/adobe/printerdrivers/win/all/
|
||||||
Create a [psdrv] section in your wine.conf (or ~/.winerc) and add the
|
Create a [psdrv] section in your wine.conf (or ~/.winerc) and add the
|
||||||
following entry:
|
following entry:
|
||||||
|
@ -59,9 +68,10 @@ enables printing via external printer drivers and does not affect wineps.
|
||||||
|
|
||||||
If you're lucky you should now be able to produce PS files from Wine!
|
If you're lucky you should now be able to produce PS files from Wine!
|
||||||
|
|
||||||
I've tested it with win3.1 notepad/write, Winword6 and Origin4.0 with some
|
I've tested it with win3.1 notepad/write, Winword6 and Origin4.0 and 32 bit
|
||||||
degree of success - you should be able to get something out, it may not be in
|
apps such as win98 wordpad, Winword97, Powerpoint2000 with some degree of
|
||||||
the right place.
|
success - you should be able to get something out, it may not be in the right
|
||||||
|
place.
|
||||||
|
|
||||||
TODO / Bugs
|
TODO / Bugs
|
||||||
-----------
|
-----------
|
||||||
|
@ -86,7 +96,6 @@ settings. However the win3.1 pscript.drv (under wine) also does this.
|
||||||
|
|
||||||
Probably many more...
|
Probably many more...
|
||||||
|
|
||||||
Since the driver is very alpha, things are likely to change quickly.
|
|
||||||
Please contact me if you want to help so that we can avoid duplication.
|
Please contact me if you want to help so that we can avoid duplication.
|
||||||
|
|
||||||
Huw Davies <h.davies1@physics.ox.ac.uk>
|
Huw Davies <h.davies1@physics.ox.ac.uk>
|
|
@ -0,0 +1,21 @@
|
||||||
|
[HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Print\Printers\Wine PostScript Driver]
|
||||||
|
"Attributes"="dword:00000000"
|
||||||
|
"Default Devmode"=
|
||||||
|
"Name"="Wine PostScript Driver"
|
||||||
|
"Port"="LPT1:"
|
||||||
|
"Print Processor"="WinPrint"
|
||||||
|
"Printer Driver"="PS Driver"
|
||||||
|
"Priority"="dword:00000000"
|
||||||
|
"Start Time"="dword:00000000"
|
||||||
|
"Status"="dword:00000000"
|
||||||
|
"Until Time"="dword:00000000"
|
||||||
|
|
||||||
|
[HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Print\Environments\Windows 4.0\Drivers\PS Driver]
|
||||||
|
"Configuration File"="WINEPS.DRV"
|
||||||
|
"Data File"=""
|
||||||
|
"Driver"="WINEPS.DRV"
|
||||||
|
"Version"="dword:0a000000"
|
||||||
|
"Datatype"=""
|
||||||
|
"Dependent Files"=""
|
||||||
|
"Help Files"=""
|
||||||
|
"Monitor"=""
|
Loading…
Reference in New Issue