Debian Codegraph @

contrib/chp2200/INSTALL

raw
1 Ghostscript driver for HP Business Inkjet 2200
2
3 =============================================================================
4 Building the source code
5 =============================================================================
6 The source code for the HP 2200 Ghostscript driver consists of 3 files
7 (gs-hp2200.tar.gz).
8 1. gdevcd8.c
9 2. contrib.mak
10 3. unix-gcc.mak
11
12 Follow these steps to build Ghostscript 6.01 in Linux:
13 1. Download and install the Ghostscript 6.01 source code
14 (http://www.cs.wisc.edu/~ghost/aladdin/get601.html) according to the
15 official instructions shown on the Ghostscript home page. To build for
16 the Linux platform, you will need the Unix & VMS sources:
17 a. Ghostscript-6.01-1.src.rpm
18 b. Ghostscript-fonts-6.0-2.src.rpm
19
20 2. Copy the HP 2200 Ghostscript driver source files (gdevcd8.c, contrib.mak
21 and unix-gcc.mak) into the Ghostscript source directory, overwriting the
22 original versions.
23
24 3. Build Ghostscript.
25
26 Here is a summary of the steps to build Ghostscript 6.01 in Linux:
27 # cd /usr/local/src
28 # tar zxvf /tmp/ghostscript-6.01.tar.gz
29 # cd gs6.01
30 # tar zxvf /tmp/ghostscript-6.01jpeg.tar.gz
31 # tar zxvf /tmp/ghostscript-6.01libpng.tar.gz
32 # tar zxvf /tmp/ghostscript-6.01zlib.tar.gz
33 # mv jpeg-6b jpeg
34 # mv libpng-1.0.5 libpng
35 # mv zlib-1.1.3 zlib
36 # cd src
37 # cp /tmp/gdevcd8.c ./
38 # cp /tmp/contrib.mak ./
39 # cp /tmp/unix-gcc.mak ./
40 # cd ..
41 # ln -s /usr/X11R6 /usr/X11 (needed by some Linux distributions)
42 # make -f src/unix-gcc.mak
43
44 When the build completes, the binary output is:
45 /usr/local/src/gs6.01/bin/gs
46
47 =============================================================================
48 Installation
49 =============================================================================
50 1. Download and install Ghostscript 6.01
51 (http://www.cs.wisc.edu/~ghost/aladdin/get601.html) according to the
52 official instructions shown on the Ghostscript home page.
53 a. Ghostscript-6.01-1.i386.rpm
54 b. Ghostscript-fonts-6.0-2.noarch.rpm
55
56 2. Copy the HP 2200 Ghostscript binary (gs) and overwrite the original
57 Ghostscript 6.01 executable:
58 # type gs
59 gs is /usr/bin/gs
60 # cd /usr/bin/gs
61 # cp gs gs.backup
62 # cp /usr/local/src/gs6.01/bin/gs .
63 cp: overwrite `./gs'? y
64
65 3. Run printtool and add a print queue, e.g. lp0
66 a. In the Configure Filter dialog box, select
67 "HP DeskJet 850/855/870/1100 series".
68 b. In the Paper Size list box, choose the desired paper size,
69 e.g. Letter
70 c. In the Extra GS options edit box:
71 specify "-sDEVICE=chp2200"
72 d. Enable the checkboxes: "Send EOF after job to eject page" and "Fix
73 stair-stepping text".
74
75 =============================================================================
76 Using the driver
77 =============================================================================
78 Selecting paper size:
79 Run printtool and edit the lp0 printer queue. In the Paper Size list box,
80 choose the desired size.
81
82 Selecting paper type:
83 Run printtool and edit the lp0 printer queue. In the Extra GS options edit
84 box, specify:
85 "-dPapertype=x"
86 Possible values of x are:
87 0=Plain Paper (*default), 1=Bond paper, 2=special paper, 3=photo paper,
88 4=transparency
89
90 Selecting print quality:
91 Run printtool and edit the lp0 printer queue. In the Extra GS options edit
92 box, specify:
93 "-dQuality=x"
94 Possible values of x are:
95 -1=Draft, 0=Normal (*default), 1=Best
96
97 Printing from an application:
98 From the application, select File -> Print. In the Print Command field,
99 specify:
100 "lpr -Plp0"
101
102 Printing a file from a console window:
103 # gs -q -sDEVICE=chp2200 -dNOPAUSE -dSAFER -dBATCH -sOutputFile=- test.ps |lpr
104