a90dc3
diff -up pbm2ppa-0.8.6/CALIBRATION.20000205 pbm2ppa-0.8.6/CALIBRATION
a90dc3
--- pbm2ppa-0.8.6/CALIBRATION.20000205	1998-08-22 14:44:07.000000000 +0100
a90dc3
+++ pbm2ppa-0.8.6/CALIBRATION	2008-09-24 15:15:53.000000000 +0100
a90dc3
@@ -10,9 +10,22 @@ during this procedure (like 600)]
a90dc3
   The 'pbmtpg' program generates a full-page (8.5"x11") test pattern in
a90dc3
 pbmraw (P4) format on stdout.  The output may be fed directly into pbm2ppa
a90dc3
 in order to print a calibration pattern on your printer with commands such as:
a90dc3
+Assuming you printer is on /dev/lp0
a90dc3
 
a90dc3
-    pbmtpg | pbm2ppa > /dev/lp1
a90dc3
+    pbmtpg | pbm2ppa > /dev/lp0
a90dc3
       ( as root )
a90dc3
+(Note: /dev/lp0 is the default device for the primary parallel port on systems
a90dc3
+with 2.2.x or later Linux kernels; it is /dev/lp1 on  systems with
a90dc3
+older Linux 2.0.x kernels)
a90dc3
+
a90dc3
+For other papersizes, the command must specify a valid size, for both
a90dc3
+pbmtpg and pbm2ppa:
a90dc3
+
a90dc3
+    pbmtpg -a4 | pbm2ppa -s a4 > /dev/lp0
a90dc3
+    pbmtpg -legal | pbm2ppa -s legal > /dev/lp0
a90dc3
+    pbmtpg -letter | pbm2ppa -s letter > /dev/lp0
a90dc3
+
a90dc3
+For A4, US Legal of US Letter (default).
a90dc3
 
a90dc3
       - or -
a90dc3
 
a90dc3
@@ -33,3 +46,7 @@ paper.  Also, the margins should be able
a90dc3
 causing the printer to choke with 'blinking lights syndrome'.
a90dc3
 
a90dc3
 [TODO: Add shearing adjustments to pbm2ppa and explain here]
a90dc3
+
a90dc3
+
a90dc3
+
a90dc3
+
a90dc3
diff -up pbm2ppa-0.8.6/defaults.1000.h.20000205 pbm2ppa-0.8.6/defaults.1000.h
a90dc3
--- pbm2ppa-0.8.6/defaults.1000.h.20000205	1998-08-22 14:44:12.000000000 +0100
a90dc3
+++ pbm2ppa-0.8.6/defaults.1000.h	2008-09-24 15:17:47.000000000 +0100
a90dc3
@@ -1,19 +0,0 @@
a90dc3
-/* defaults.h
a90dc3
- * Default printer values.  Edit these and recompile if so desired.
a90dc3
- * [Note: a /etc/pbm2ppa.conf file will override these]
a90dc3
- */
a90dc3
-#ifndef _DEFAULTS_H
a90dc3
-#define _DEFAULTS_H
a90dc3
-
a90dc3
-#define DEFAULT_PRINTER        ( HP1000 )
a90dc3
-
a90dc3
-/* Refer to CALIBRATION file about these settings */
a90dc3
-#define DEFAULT_X_OFFSET       (   100 )
a90dc3
-#define DEFAULT_Y_OFFSET       (  -650 )
a90dc3
-
a90dc3
-#define DEFAULT_TOP_MARGIN     (   150 )
a90dc3
-#define DEFAULT_LEFT_MARGIN    (   150 )
a90dc3
-#define DEFAULT_RIGHT_MARGIN   (   150 )
a90dc3
-#define DEFAULT_BOTTOM_MARGIN  (   150 )
a90dc3
-
a90dc3
-#endif
a90dc3
diff -up pbm2ppa-0.8.6/defaults.720.h.20000205 pbm2ppa-0.8.6/defaults.720.h
a90dc3
--- pbm2ppa-0.8.6/defaults.720.h.20000205	1998-08-22 14:44:12.000000000 +0100
a90dc3
+++ pbm2ppa-0.8.6/defaults.720.h	2008-09-24 15:17:47.000000000 +0100
a90dc3
@@ -1,19 +0,0 @@
a90dc3
-/* defaults.h
a90dc3
- * Default printer values.  Edit these and recompile if so desired.
a90dc3
- * [Note: a /etc/pbm2ppa.conf file will override these]
a90dc3
- */
a90dc3
-#ifndef _DEFAULTS_H
a90dc3
-#define _DEFAULTS_H
a90dc3
-
a90dc3
-#define DEFAULT_PRINTER        ( HP720 )
a90dc3
-
a90dc3
-/* Refer to CALIBRATION file about these settings */
a90dc3
-#define DEFAULT_X_OFFSET       (   169 )
a90dc3
-#define DEFAULT_Y_OFFSET       (  -569 )
a90dc3
-
a90dc3
-#define DEFAULT_TOP_MARGIN     (   150 )
a90dc3
-#define DEFAULT_LEFT_MARGIN    (   150 )
a90dc3
-#define DEFAULT_RIGHT_MARGIN   (   150 )
a90dc3
-#define DEFAULT_BOTTOM_MARGIN  (   150 )
a90dc3
-
a90dc3
-#endif
a90dc3
diff -up pbm2ppa-0.8.6/defaults.820.h.20000205 pbm2ppa-0.8.6/defaults.820.h
a90dc3
--- pbm2ppa-0.8.6/defaults.820.h.20000205	1998-08-22 14:44:12.000000000 +0100
a90dc3
+++ pbm2ppa-0.8.6/defaults.820.h	2008-09-24 15:17:47.000000000 +0100
a90dc3
@@ -1,19 +0,0 @@
a90dc3
-/* defaults.h
a90dc3
- * Default printer values.  Edit these and recompile if so desired.
a90dc3
- * [Note: a /etc/pbm2ppa.conf file will override these]
a90dc3
- */
a90dc3
-#ifndef _DEFAULTS_H
a90dc3
-#define _DEFAULTS_H
a90dc3
-
a90dc3
-#define DEFAULT_PRINTER        ( HP820 )
a90dc3
-
a90dc3
-/* Refer to CALIBRATION file about these settings */
a90dc3
-#define DEFAULT_X_OFFSET       (    75 )
a90dc3
-#define DEFAULT_Y_OFFSET       (  -500 )
a90dc3
-
a90dc3
-#define DEFAULT_TOP_MARGIN     (    80 )
a90dc3
-#define DEFAULT_LEFT_MARGIN    (    80 )
a90dc3
-#define DEFAULT_RIGHT_MARGIN   (    80 )
a90dc3
-#define DEFAULT_BOTTOM_MARGIN  (   150 )
a90dc3
-
a90dc3
-#endif
a90dc3
diff -up /dev/null pbm2ppa-0.8.6/defaults.h
a90dc3
--- /dev/null	2008-09-24 08:53:03.196006296 +0100
a90dc3
+++ pbm2ppa-0.8.6/defaults.h	2008-09-24 15:15:53.000000000 +0100
a90dc3
@@ -0,0 +1,53 @@
a90dc3
+/* defaults.h
a90dc3
+ * Default printer values.  Edit these and recompile if so desired.
a90dc3
+ * [Note: a /etc/pbm2ppa.conf file will override these]
a90dc3
+ */
a90dc3
+
a90dc3
+#ifndef _DEFAULTS_H
a90dc3
+#define _DEFAULTS_H
a90dc3
+
a90dc3
+#ifndef DEFAULT_PRINTER
a90dc3
+#define DEFAULT_PRINTER        ( HP720 )
a90dc3
+#endif
a90dc3
+
a90dc3
+/* for HP720 series */
a90dc3
+/* Refer to CALIBRATION file about these settings */
a90dc3
+#define HP720_X_OFFSET       (   169 )
a90dc3
+#define HP720_Y_OFFSET       (  -569 )
a90dc3
+
a90dc3
+#define HP720_TOP_MARGIN     (   150 )
a90dc3
+#define HP720_LEFT_MARGIN    (   150 )
a90dc3
+#define HP720_RIGHT_MARGIN   (   150 )
a90dc3
+#define HP720_BOTTOM_MARGIN  (   150 )
a90dc3
+
a90dc3
+/* for HP820 series */
a90dc3
+/* Refer to CALIBRATION file about these settings */
a90dc3
+#define HP820_X_OFFSET       (    75 )
a90dc3
+#define HP820_Y_OFFSET       (  -500 )
a90dc3
+
a90dc3
+#define HP820_TOP_MARGIN     (    80 )
a90dc3
+#define HP820_LEFT_MARGIN    (    80 )
a90dc3
+#define HP820_RIGHT_MARGIN   (    80 )
a90dc3
+#define HP820_BOTTOM_MARGIN  (   150 )
a90dc3
+
a90dc3
+/* for HP1000 series */
a90dc3
+/* Refer to CALIBRATION file about these settings */
a90dc3
+#define HP1000_X_OFFSET       (   100 )
a90dc3
+#define HP1000_Y_OFFSET       (  -650 )
a90dc3
+
a90dc3
+#define HP1000_TOP_MARGIN     (   150 )
a90dc3
+#define HP1000_LEFT_MARGIN    (   150 )
a90dc3
+#define HP1000_RIGHT_MARGIN   (   150 )
a90dc3
+#define HP1000_BOTTOM_MARGIN  (   150 )
a90dc3
+
a90dc3
+#endif
a90dc3
+
a90dc3
+
a90dc3
+
a90dc3
+
a90dc3
+
a90dc3
+
a90dc3
+
a90dc3
+
a90dc3
+
a90dc3
+
a90dc3
diff -up pbm2ppa-0.8.6/INSTALL.20000205 pbm2ppa-0.8.6/INSTALL
a90dc3
--- pbm2ppa-0.8.6/INSTALL.20000205	1998-10-19 02:27:16.000000000 +0100
a90dc3
+++ pbm2ppa-0.8.6/INSTALL	2008-09-24 15:15:53.000000000 +0100
a90dc3
@@ -1,6 +1,6 @@
a90dc3
 Overview
a90dc3
 --------
a90dc3
-This file contains some quick notes on installation in general.  For a
a90dc3
+	This file contains some quick notes on installation in general.  For a
a90dc3
 complete step-by-step instruction on how to install pbm2ppa for your
a90dc3
 printer, please see INSTALL-MORE.  (It was written for the 820, but it
a90dc3
 should work for all supported models) Thanks to Michael Buehlmann for
a90dc3
@@ -9,14 +9,19 @@ writing that guide!
a90dc3
 Compilation
a90dc3
 -----------
a90dc3
 	To compile, you should simply run 'make' with the series of your
a90dc3
-printer.  The following options are supported:
a90dc3
+printer. This will set the default printer to the HP720 series.
a90dc3
+To specify a different default printyer, the following options are supported:
a90dc3
 
a90dc3
 make 720	# for 720 series - e.g. 722C
a90dc3
 make 820	# for 820 series - e.g. 820Cse
a90dc3
 make 1000	# for 1000 series
a90dc3
 
a90dc3
-If you choose to recompile for a different printer series, you must 'make
a90dc3
-clean' first.
a90dc3
+	If you choose to recompile for a different default  printer series, 
a90dc3
+you must 'make clean' first.  However, the default printer choice
a90dc3
+selected at compilation time can be overridden with e.g., the 
a90dc3
+"pbm2pppa -v  820 ..."	command line option, or specified by e.g., 
a90dc3
+a "version 820" entry in the /etc/pbm2ppa.conf file.
a90dc3
+Type "pbm2ppa -h" to see the list of options.
a90dc3
 
a90dc3
 Installation
a90dc3
 ------------
a90dc3
@@ -26,17 +31,23 @@ but you might want to tweak them).  See 
a90dc3
 
a90dc3
 	The other binary created, pbm2ppa, is a converter from a PBM
a90dc3
 image to a stream of PPA data that can be sent directly to the printer.
a90dc3
-The PBM image is expected to be 600 dpi, 8.5"x11".  These files can be
a90dc3
+The PBM image is expected to be 600 dpi, and the paper size
a90dc3
+can be   8.5"x11" (US Letter), 8.5"x14" (US Legal) or A4.  These files can be
a90dc3
 generated with ghostscript.  Both the pbm and pbmraw devices are supported.
a90dc3
 pbmraw is MUCH faster, so use it if you have it available!
a90dc3
+IMPORTANT: the PAPERSIZE option passed to ghostscript must match
a90dc3
+the paper size specified for pbm2ppa.
a90dc3
+Valid papersizes are: "letter" = "us" , "legal" , and "a4" .
a90dc3
 
a90dc3
 Use
a90dc3
 ---
a90dc3
-	To print a postscript file with this program, I use a simple
a90dc3
-shell script:
a90dc3
+	To print a postscript file with this program, on US Letter
a90dc3
+paper and a HP 710/720 series printer, I use a simple shell script:
a90dc3
 
a90dc3
-cat $1 | gs -sDEVICE=pbm -q -dNOPAUSE -r600 -sOutputFile=- - | \
a90dc3
-pbm2ppa - - | lpr
a90dc3
+cat $1 | gs -sDEVICE=pbm -q -dNOPAUSE -r600  -sPAPERSIZE=letter -sOutputFile=- - | \
a90dc3
+pbm2ppa -s letter -v 720 - - | lpr -l 
a90dc3
+
a90dc3
+Valid printer versions are "720", "820" and "1000".
a90dc3
 
a90dc3
 	You can also set up a printer filter.  See the documentation for
a90dc3
 your print spooler for information on how to do that, or look in
a90dc3
diff -up pbm2ppa-0.8.6/INSTALL-MORE.20000205 pbm2ppa-0.8.6/INSTALL-MORE
a90dc3
--- pbm2ppa-0.8.6/INSTALL-MORE.20000205	1998-10-19 02:27:17.000000000 +0100
a90dc3
+++ pbm2ppa-0.8.6/INSTALL-MORE	2008-09-24 15:15:53.000000000 +0100
a90dc3
@@ -36,14 +36,21 @@ or put in your printer number (720, 820 
a90dc3
 file).
a90dc3
 
a90dc3
 
a90dc3
-2. To adjust the paper size to DIN A4, use the -s a4 option to pbm2ppa or
a90dc3
+2. To adjust the paper size to US Legal (8.5"x14"), use the -s legal option 
a90dc3
+to pbm2ppa or change your pbm2ppa.conf file to read "papersize legal" 
a90dc3
+To adjust the paper size to DIN A4, use the -s a4 option to pbm2ppa or
a90dc3
 change your pbm2ppa.conf file to read "papersize a4" (see step 5).
a90dc3
-
a90dc3
+For US Letter (8.5"x11") paper is the default; "-s us", "-s letter",
a90dc3
+"papersize us" and "papersize letter" also specif this size. 
a90dc3
 
a90dc3
 3. You can now calibrate the printer with 
a90dc3
 
a90dc3
-For US size paper:
a90dc3
+For US Letter size paper:
a90dc3
 # pbmtpg | pbm2ppa > /dev/lp1 ( as root )
a90dc3
+or
a90dc3
+# pbmtpg -letter | pbm2ppa > /dev/lp1 ( as root )
a90dc3
+For US Legal  size paper:
a90dc3
+# pbmtpg -legal | pbm2ppa -s a4 > /dev/lp1 ( as root )
a90dc3
 For A4 size paper:
a90dc3
 # pbmtpg -a4 | pbm2ppa -s a4 > /dev/lp1 ( as root )
a90dc3
 
a90dc3
diff -up pbm2ppa-0.8.6/Makefile.20000205 pbm2ppa-0.8.6/Makefile
a90dc3
--- pbm2ppa-0.8.6/Makefile.20000205	1998-10-11 16:17:16.000000000 +0100
a90dc3
+++ pbm2ppa-0.8.6/Makefile	2008-09-24 15:15:53.000000000 +0100
a90dc3
@@ -1,36 +1,23 @@
a90dc3
 CC=gcc
a90dc3
-CFLAGS=-Wall -O2
a90dc3
+CFLAGS=-Wall -O2 
a90dc3
 LDFLAGS=
a90dc3
+PRINTER=HP720
a90dc3
 
a90dc3
-default:
a90dc3
-	@echo Please specify the type of printer you wish to compile this
a90dc3
-	@echo software for.  Supported options are:
a90dc3
-	@echo
a90dc3
-	@echo make 720
a90dc3
-	@echo make 820
a90dc3
-	@echo make 1000
a90dc3
-	@echo
a90dc3
-	@exit
a90dc3
+default: all
a90dc3
 
a90dc3
-720.h:
a90dc3
-	cp defaults.720.h defaults.h
a90dc3
+720: PRINTER=HP720
a90dc3
+720:  all
a90dc3
 
a90dc3
-820.h:
a90dc3
-	cp defaults.820.h defaults.h
a90dc3
+820: PRINTER=HP820
a90dc3
+820:  all
a90dc3
 
a90dc3
-1000.h:
a90dc3
-	cp defaults.1000.h defaults.h
a90dc3
+1000: PRINTER=HP1000
a90dc3
+1000: all
a90dc3
 
a90dc3
-720: 720.h all
a90dc3
-
a90dc3
-820: 820.h all
a90dc3
-
a90dc3
-1000: 1000.h all
a90dc3
-
a90dc3
-all: defaults.h pbm2ppa pbmtpg
a90dc3
+all: pbm2ppa pbmtpg
a90dc3
 
a90dc3
 clean:
a90dc3
-	rm -f *.o *~ pbmtpg pbm2ppa defaults.h
a90dc3
+	rm -f *.o *~ pbmtpg pbm2ppa 
a90dc3
 
a90dc3
 pbm2ppa: pbm2ppa.o ppa.o pbm.o cutswath.o
a90dc3
 	$(CC) $(LDFLAGS) -o pbm2ppa pbm2ppa.o ppa.o pbm.o cutswath.o
a90dc3
@@ -39,4 +26,11 @@ pbmtpg: pbmtpg.o
a90dc3
 	$(CC) $(CFLAGS) -o pbmtpg pbmtpg.o -lm
a90dc3
 
a90dc3
 .c.o: $*.c ppa.h pbm.h
a90dc3
-	$(CC) $(CFLAGS) -c $*.c
a90dc3
+	$(CC) $(CFLAGS) -DDEFAULT_PRINTER=$(PRINTER)  -c $*.c
a90dc3
+
a90dc3
+
a90dc3
+
a90dc3
+
a90dc3
+
a90dc3
+
a90dc3
+
a90dc3
diff -up /dev/null pbm2ppa-0.8.6/pbm2ppa.1
a90dc3
--- /dev/null	2008-09-24 08:53:03.196006296 +0100
a90dc3
+++ pbm2ppa-0.8.6/pbm2ppa.1	2008-09-24 15:15:53.000000000 +0100
a90dc3
@@ -0,0 +1,135 @@
a90dc3
+.TH pnm2ppa "5 Feb 2000"
a90dc3
+.SH NAME
a90dc3
+pbm2ppa - convert portable bitmap (PBM) to HP's Printing Performance Architecture (PPA) file format
a90dc3
+.SH SYNOPSIS
a90dc3
+pbm2ppa [options] [ <\fIinfile\fR] > [ <\fIoutfile\fR]> ] ]
a90dc3
+
a90dc3
+.SH DESCRIPTION
a90dc3
+Reads portable bitmap (PBM) format as input.  Outputs a stream suitable for 
a90dc3
+processing by  Hewlett-Packard's range of Printing Performance Architecture 
a90dc3
+(PPA) printers. 
a90dc3
+pnm2ppa supports the HP 710c, 712c, 720c, 722c, 820c, and 1000c 
a90dc3
+series printers. 
a90dc3
+.PP
a90dc3
+(Portable bitmap (PBM) format output can be produced from PostScript(tm) input 
a90dc3
+by the GhostScript driver "pbmraw".)
a90dc3
+.PP
a90dc3
+
a90dc3
+
a90dc3
+.SH OPTIONS
a90dc3
+.\"{{{	infile  
a90dc3
+.IP "\fB\\fIinfile\fR \fP"
a90dc3
+Input file \fIinfile\fR is either a path to a file or device, or '-' to indicate stdin (defaults to stdin)
a90dc3
+.\"}}}
a90dc3
+
a90dc3
+
a90dc3
+.\"{{{	outfile 
a90dc3
+.IP "\fB\\fIoutfile\fR  \fP"
a90dc3
+Output file \fIoutfile\fR is either a path to a file or device, or '-' to indicate stdout (defaults to stdout)
a90dc3
+.\"}}}
a90dc3
+
a90dc3
+
a90dc3
+.\"{{{	-b bottommargin
a90dc3
+.IP "\fB\-b \fIbottommargin\fR\fP"
a90dc3
+Sets the bottom margin \fIbottommargin\fR in units of 1/600 inches (e.g.,  -b 150 = 0.25")
a90dc3
+.\"}}}
a90dc3
+
a90dc3
+
a90dc3
+.\"{{{	-d
a90dc3
+.IP "\fB\-d\fP"
a90dc3
+Displays the current configuration
a90dc3
+.\"}}}
a90dc3
+
a90dc3
+
a90dc3
+.\"{{{	-f configfile
a90dc3
+.IP "\fB\-f \fIconfigfile\fR\fP"
a90dc3
+Overrides reading the configuration from /etc/pnm2ppa.conf, and uses 
a90dc3
+\fIconfigfile\fR instead.
a90dc3
+.\"}}}
a90dc3
+
a90dc3
+
a90dc3
+.\"{{{	-h
a90dc3
+.IP "\fB\-h\fP"
a90dc3
+Displays program usage
a90dc3
+.\"}}}
a90dc3
+
a90dc3
+
a90dc3
+
a90dc3
+.\"{{{	-l leftmargin
a90dc3
+.IP "\fB\-l \fIleftmargin\fR\fP"
a90dc3
+Sets the left margin \fIleftmargin\fR in units of 1/600 inches (e.g., -l 150 = 0.25")
a90dc3
+.\"}}}
a90dc3
+
a90dc3
+
a90dc3
+.\"{{{	-r rightmargin
a90dc3
+.IP "\fB\-r \fIrightmargin\fR\fP"
a90dc3
+Sets the right margin \fIrightmargin\fR in units of 1/600 inches (e.g., -r 150 = 0.25")
a90dc3
+.\"}}}
a90dc3
+
a90dc3
+.\"{{{	-s  papersize
a90dc3
+.IP "\fB\-s \fIpapersize\fR\fP"
a90dc3
+Sets the paper size. Possible values for \fIpapersize\fR are \fBa4\fP (A4),
a90dc3
+\fBletter\fP or \fBus\fP (US Letter, 8.5"x11"), and \fBlegal\fR (US Legal,
a90dc3
+8.5"x14").
a90dc3
+The default is US Letter.
a90dc3
+.\"}}}
a90dc3
+
a90dc3
+.\"{{{	-t topmargin
a90dc3
+.IP "\fB\-t \fItopmargin\fR\fP"
a90dc3
+Sets the top margin \fItopmargin\fR in units of 1/600 inches (ie -t 150 = 0.25")
a90dc3
+.\"}}}
a90dc3
+
a90dc3
+.\"{{{	-v  printertype
a90dc3
+.IP "\fB\-v \fIprintertype\fP"
a90dc3
+Selects the printer model.  Possible values of \fIprintertype\fR are:
a90dc3
+\fB710\fP, \fB712\fP, \fB720\fP, \fB722\fP, \fB820\fP and \fB1000\fP.
a90dc3
+The default is the HP DeskJet 7X0 Series (710, 712, 720, 722).
a90dc3
+.\"}}}
a90dc3
+
a90dc3
+
a90dc3
+.\"{{{	-x xoffset
a90dc3
+.IP "\fB\-x \fIxoffset\fR\fP"
a90dc3
+Sets the x-offset \fBxoffset\fR from the left of the page. Units are 1/600 inches
a90dc3
+.\"}}}
a90dc3
+
a90dc3
+.\"{{{	-y yoffset
a90dc3
+.IP "\fB\-y \fIyoffset\fR\fP"
a90dc3
+Sets the y-offset \fByoffset\fR from the top of the page. Units are 1/600 inches
a90dc3
+.\"}}}
a90dc3
+
a90dc3
+ 
a90dc3
+.SH NOTES
a90dc3
+The configuration file is read in first. Command line arguments then modify the resulting definitions.
a90dc3
+.PP
a90dc3
+The -x and -y options accumulate. The -v option resets all definitions back to
a90dc3
+an inbuilt default for that printer and should be used before subsequent -b -l -r, -t,  -x, and -y arguments.
a90dc3
+.SH "SEE ALSO"
a90dc3
+pbm(5)
a90dc3
+
a90dc3
+.SH FILES
a90dc3
+
a90dc3
+.\"{{{	/etc/pbm2ppa.conf
a90dc3
+.IP "\fB\fI/etc/pbm2ppa.conf\fR\fP"
a90dc3
+Default configuration file
a90dc3
+.\"}}}
a90dc3
+
a90dc3
+
a90dc3
+.SH AUTHOR
a90dc3
+This code is licensed under the GNU Public License version 2. See
a90dc3
+LICENSE for details.
a90dc3
+.PP
a90dc3
+(c) 1998	Tim Norman
a90dc3
+.PP
a90dc3
+.SH HISTORY
a90dc3
+This program was written by Tim Norman. It originally 
a90dc3
+supported black and white output on the 820 series. This program is
a90dc3
+almost obsolete; its successor pnm2ppa will support color printing.
a90dc3
+.SH BUGS
a90dc3
+This is a stable driver, but does not support color printing.
a90dc3
+
a90dc3
+
a90dc3
+
a90dc3
+
a90dc3
+
a90dc3
+
a90dc3
+
a90dc3
diff -up pbm2ppa-0.8.6/pbm2ppa.c.20000205 pbm2ppa-0.8.6/pbm2ppa.c
a90dc3
--- pbm2ppa-0.8.6/pbm2ppa.c.20000205	1998-09-16 01:00:27.000000000 +0100
a90dc3
+++ pbm2ppa-0.8.6/pbm2ppa.c	2008-09-24 15:15:53.000000000 +0100
a90dc3
@@ -17,10 +17,15 @@
a90dc3
 
a90dc3
 /* Paper sizes in 600ths of an inch. */
a90dc3
 
a90dc3
-/* US is 8.5 in by 11 in */
a90dc3
+/* US Letter is 8.5 in by 11 in */
a90dc3
 
a90dc3
-#define USWIDTH  (5100)
a90dc3
-#define USHEIGHT (6600)
a90dc3
+#define LETTERWIDTH  (5100)
a90dc3
+#define LETTERHEIGHT (6600)
a90dc3
+
a90dc3
+/* US Legal is 8.5 in by 14 in */
a90dc3
+
a90dc3
+#define LEGALWIDTH  (5100)
a90dc3
+#define LEGALHEIGHT (8400)
a90dc3
 
a90dc3
 /* A4 is 210 mm by 297 mm == 8.27 in by 11.69 in */
a90dc3
 
a90dc3
@@ -121,16 +126,35 @@ int print_pbm (FILE *in)
a90dc3
 
a90dc3
 void set_printer_specific_defaults()
a90dc3
 {
a90dc3
-  printer.x_offset=DEFAULT_X_OFFSET;
a90dc3
-  printer.y_offset=DEFAULT_Y_OFFSET;
a90dc3
   switch(printer.version)
a90dc3
   {
a90dc3
   case HP720:
a90dc3
+    printer.x_offset=HP720_X_OFFSET;
a90dc3
+    printer.y_offset=HP720_Y_OFFSET;
a90dc3
+    printer.top_margin=HP720_TOP_MARGIN;
a90dc3
+    printer.left_margin=HP720_LEFT_MARGIN;
a90dc3
+    printer.right_margin=HP720_RIGHT_MARGIN;
a90dc3
+    printer.bottom_margin=HP720_BOTTOM_MARGIN;
a90dc3
     printer.marg_diff=2;
a90dc3
     printer.bufsize = 200*1024;
a90dc3
     break;
a90dc3
   case HP820:
a90dc3
+    printer.x_offset=HP820_X_OFFSET;
a90dc3
+    printer.y_offset=HP820_Y_OFFSET;
a90dc3
+    printer.top_margin=HP820_TOP_MARGIN;
a90dc3
+    printer.left_margin=HP820_LEFT_MARGIN;
a90dc3
+    printer.right_margin=HP820_RIGHT_MARGIN;
a90dc3
+    printer.bottom_margin=HP820_BOTTOM_MARGIN;
a90dc3
+    printer.marg_diff=0x62;
a90dc3
+    printer.bufsize = 100*1024;
a90dc3
+    break;
a90dc3
   case HP1000:
a90dc3
+    printer.x_offset=HP1000_X_OFFSET;
a90dc3
+    printer.y_offset=HP1000_Y_OFFSET;
a90dc3
+    printer.top_margin=HP1000_TOP_MARGIN;
a90dc3
+    printer.left_margin=HP1000_LEFT_MARGIN;
a90dc3
+    printer.right_margin=HP1000_RIGHT_MARGIN;
a90dc3
+    printer.bottom_margin=HP1000_BOTTOM_MARGIN;
a90dc3
     printer.marg_diff=0x62;
a90dc3
     printer.bufsize = 100*1024;
a90dc3
     break;
a90dc3
@@ -144,15 +168,17 @@ void show_usage(char* prog)
a90dc3
 {
a90dc3
   printf("usage: %s [ options ] [ <infile> [ <outfile> ] ]\n\n",prog);
a90dc3
   printf("  Prints a pbm- or pbmraw-format <infile> to HP720/820/1000-format <outfile>.\n\n");
a90dc3
-  printf("    -v <version>    printer version (720, 820, or 1000)\n");
a90dc3
-  printf("    -x <xoff>       vertical offset adjustment in 1\"/600\n");
a90dc3
-  printf("    -y <yoff>       horizontal offset adjustment in 1\"/600\n");
a90dc3
-  printf("    -t <topmarg>    top margin in 1\"/600    (default: 150 = 0.25\")\n");
a90dc3
-  printf("    -l <leftmarg>   left margin in 1\"/600   (default: 150 = 0.25\")\n");
a90dc3
-  printf("    -r <rightmarg>  right margin in 1\"/600  (default: 150 = 0.25\")\n");
a90dc3
-  printf("    -b <botmarg>    bottom margin in 1\"/600 (default: 150 = 0.25\")\n");
a90dc3
-  printf("    -s <paper>      paper size (us, a4, default: us)\n");
a90dc3
+  printf("    -b <margin>    bottom margin in 1\"/600 (default: 150 = 0.25\")\n");
a90dc3
+  printf("    -d              dumps the configuration to stdout");
a90dc3
   printf("    -f <cfgfile>    read <cfgfile> as parameters\n\n");
a90dc3
+  printf("    -h              displays this help text");
a90dc3
+  printf("    -l <margin>     left margin in 1\"/600   (default: 150 = 0.25\")\n");
a90dc3
+  printf("    -r <margin>     right margin in 1\"/600  (default: 150 = 0.25\")\n");
a90dc3
+  printf("    -s <paper>      paper size (us,letter,legal,a4, default: us)\n");
a90dc3
+  printf("    -t <margin>     top margin in 1\"/600    (default: 150 = 0.25\")\n");
a90dc3
+  printf("    -v <model>      printer model (710, 712, 720, 722,  820, or 1000)\n");
a90dc3
+  printf("    -x <offset>     vertical offset adjustment in 1\"/600\n");
a90dc3
+  printf("    -y <offset>     horizontal offset adjustment in 1\"/600\n");
a90dc3
   printf("  The -x and -y options accumulate.  The -v option resets the horizontal and\n");
a90dc3
   printf("  vertical adjustments to an internal default.  <infile> and <outfile> default\n");
a90dc3
   printf("  to stdin and stdout.  '-' is a synonym for stdin and stdout.\n\n");
a90dc3
@@ -173,7 +199,13 @@ void show_usage(char* prog)
a90dc3
 
a90dc3
 void parm_version(char* arg)
a90dc3
 {
a90dc3
-  if(!strcasecmp(arg,"hp720") || !strcmp(arg,"720"))
a90dc3
+  if(!strcasecmp(arg,"hp710") || !strcmp(arg,"710"))
a90dc3
+    printer.version=HP720;
a90dc3
+  else if(!strcasecmp(arg,"hp712") || !strcmp(arg,"712"))
a90dc3
+    printer.version=HP720;
a90dc3
+  else if(!strcasecmp(arg,"hp720") || !strcmp(arg,"720"))
a90dc3
+    printer.version=HP720;
a90dc3
+  else if(!strcasecmp(arg,"hp722") || !strcmp(arg,"722"))
a90dc3
     printer.version=HP720;
a90dc3
   else if(!strcasecmp(arg,"hp820") || !strcmp(arg,"820"))
a90dc3
     printer.version=HP820;
a90dc3
@@ -191,7 +223,10 @@ void parm_iversion(int arg)
a90dc3
 {
a90dc3
   switch(arg)
a90dc3
   {
a90dc3
+  case 710:
a90dc3
+  case 712:
a90dc3
   case 720:
a90dc3
+  case 722:
a90dc3
     printer.version=HP720;
a90dc3
     break;
a90dc3
   case 820:
a90dc3
@@ -262,10 +297,15 @@ void read_config_file(char* fname)
a90dc3
 	printer.bottom_margin=value;
a90dc3
       else if(!strncmp(key,"papersize",len))
a90dc3
       {
a90dc3
-	if(!strcmp(buf,"us"))
a90dc3
+	if(!strcmp(buf,"us") || !strcmp(buf,"letter"))
a90dc3
+	{
a90dc3
+	  Width = LETTERWIDTH;
a90dc3
+	  Height = LETTERHEIGHT;
a90dc3
+	}
a90dc3
+	else if(!strcmp(buf,"legal"))
a90dc3
 	{
a90dc3
-	  Width = USWIDTH;
a90dc3
-	  Height = USHEIGHT;
a90dc3
+	  Width = LEGALWIDTH;
a90dc3
+	  Height = LEGALHEIGHT;
a90dc3
 	}
a90dc3
 	else if(!strcmp(buf,"a4"))
a90dc3
 	{
a90dc3
@@ -313,15 +353,9 @@ int main (int argc, char *argv[])
a90dc3
   FILE *in=stdin, *out=stdout;
a90dc3
   struct stat tmpstat;
a90dc3
 
a90dc3
-  printer.version       = DEFAULT_PRINTER;
a90dc3
-  printer.x_offset      = DEFAULT_X_OFFSET;
a90dc3
-  printer.y_offset      = DEFAULT_Y_OFFSET;
a90dc3
-  printer.top_margin    = DEFAULT_TOP_MARGIN;
a90dc3
-  printer.left_margin   = DEFAULT_LEFT_MARGIN;
a90dc3
-  printer.right_margin  = DEFAULT_RIGHT_MARGIN;
a90dc3
-  printer.bottom_margin = DEFAULT_BOTTOM_MARGIN;
a90dc3
-  Width = USWIDTH;
a90dc3
-  Height = USHEIGHT;
a90dc3
+  printer.version = DEFAULT_PRINTER;
a90dc3
+  Width = LETTERWIDTH;
a90dc3
+  Height = LETTERHEIGHT;
a90dc3
   set_printer_specific_defaults();
a90dc3
 
a90dc3
   if(!stat(defaultcfgfile,&tmpstat))
a90dc3
@@ -356,10 +390,15 @@ int main (int argc, char *argv[])
a90dc3
       else if(!strcmp(argv[argn],"-s"))
a90dc3
       {
a90dc3
 	argn++;
a90dc3
-	if(!strcmp(argv[argn],"us"))
a90dc3
+	if(!strcmp(argv[argn],"us") || !strcmp(argv[argn],"letter"))
a90dc3
 	{
a90dc3
-	  Width = USWIDTH;
a90dc3
-	  Height = USHEIGHT;
a90dc3
+	  Width = LETTERWIDTH;
a90dc3
+	  Height = LETTERHEIGHT;
a90dc3
+	}
a90dc3
+	else if(!strcmp(argv[argn],"legal"))
a90dc3
+	{
a90dc3
+	  Width = LEGALWIDTH;
a90dc3
+	  Height = LEGALHEIGHT;
a90dc3
 	}
a90dc3
 	else if(!strcmp(argv[argn],"a4"))
a90dc3
 	{
a90dc3
@@ -414,3 +453,4 @@ int main (int argc, char *argv[])
a90dc3
   return print_pbm (in);
a90dc3
 }
a90dc3
 
a90dc3
+
a90dc3
diff -up /dev/null pbm2ppa-0.8.6/pbm2ppa.conf
a90dc3
--- /dev/null	2008-09-24 08:53:03.196006296 +0100
a90dc3
+++ pbm2ppa-0.8.6/pbm2ppa.conf	2008-09-24 15:15:53.000000000 +0100
a90dc3
@@ -0,0 +1,58 @@
a90dc3
+# Sample configuration file for the HP720/HP820/HP1000 PPA Printers
a90dc3
+#
a90dc3
+# This file will be automatically read upon startup if it's placed in
a90dc3
+# /etc/pbm2ppa.conf
a90dc3
+#
a90dc3
+
a90dc3
+# uncomment  options (remove "#" at beginning of line) to activate them
a90dc3
+
a90dc3
+#valid printer  versions are 710, 712, 720, 722. 820, 100
a90dc3
+# 710 = 712 = 720 = 722: 	HP DeskJet 710C, 712C, 720C, 722C (default)
a90dc3
+# 820:				HP DeskJet 820Cse, 820Cxi
a90dc3
+# 1000: 			HP DeskJet 1000Cse, 1000Cxi
a90dc3
+#version  720
a90dc3
+#version  820
a90dc3
+#version  1000
a90dc3
+#
a90dc3
+
a90dc3
+# valid papersizes are us, letter, legal, a4
a90dc3
+# US Letter (8.5"x11"): us, letter   (default)
a90dc3
+# US Legal  (8.5"x14"): legal
a90dc3
+# A4                  : a4
a90dc3
+#papersize	letter
a90dc3
+#papersize	legal
a90dc3
+#papersize	a4
a90dc3
+
a90dc3
+
a90dc3
+#Defaults for 720 series:
a90dc3
+# X-offset, Y-Offset: (Adjust these for your printer, see CALIBRATE)
a90dc3
+#xoff     169 
a90dc3
+#yoff    -569 
a90dc3
+# 1/4 inch margins all around (at 600 DPI)
a90dc3
+#top      150
a90dc3
+#bottom   150
a90dc3
+#left     150
a90dc3
+#right    150
a90dc3
+
a90dc3
+#Defaults for 820 series:
a90dc3
+# X-offset, Y-Offset: (Adjust these for your printer, see CALIBRATE)
a90dc3
+#xoff      75 
a90dc3
+#yoff    -500 
a90dc3
+# 1/4 inch margins all around (at 600 DPI)
a90dc3
+#top       80
a90dc3
+#bottom   150
a90dc3
+#left      80
a90dc3
+#right     80
a90dc3
+
a90dc3
+#Defaults for 820 series:
a90dc3
+# X-offset, Y-Offset: (Adjust these for your printer, see CALIBRATE)
a90dc3
+#xoff     100 
a90dc3
+#yoff    -650 
a90dc3
+# 1/4 inch margins all around (at 600 DPI)
a90dc3
+#top      150
a90dc3
+#bottom   150
a90dc3
+#left     150
a90dc3
+#right    150
a90dc3
+
a90dc3
+
a90dc3
+
a90dc3
diff -up pbm2ppa-0.8.6/pbm2ppa.conf.hp1000.20000205 pbm2ppa-0.8.6/pbm2ppa.conf.hp1000
a90dc3
--- pbm2ppa-0.8.6/pbm2ppa.conf.hp1000.20000205	1998-10-19 02:27:19.000000000 +0100
a90dc3
+++ pbm2ppa-0.8.6/pbm2ppa.conf.hp1000	2008-09-24 15:17:47.000000000 +0100
a90dc3
@@ -1,18 +0,0 @@
a90dc3
-# Sample configuration file for the HP720
a90dc3
-#
a90dc3
-# This file will be automatically read upon startup if it's placed in
a90dc3
-# /etc/pbm2ppa.conf
a90dc3
-#
a90dc3
-
a90dc3
-version  1000
a90dc3
-
a90dc3
-papersize	us
a90dc3
-
a90dc3
-xoff     100 # \ Adjust these for your printer.
a90dc3
-yoff    -650 # / (see CALIBRATE)
a90dc3
-
a90dc3
-# 1/4 inch margins all around (at 600 DPI)
a90dc3
-top      150
a90dc3
-bottom   150
a90dc3
-left     150
a90dc3
-right    150
a90dc3
diff -up pbm2ppa-0.8.6/pbm2ppa.conf.hp720.20000205 pbm2ppa-0.8.6/pbm2ppa.conf.hp720
a90dc3
--- pbm2ppa-0.8.6/pbm2ppa.conf.hp720.20000205	1998-10-19 02:27:20.000000000 +0100
a90dc3
+++ pbm2ppa-0.8.6/pbm2ppa.conf.hp720	2008-09-24 15:17:47.000000000 +0100
a90dc3
@@ -1,18 +0,0 @@
a90dc3
-# Sample configuration file for the HP720
a90dc3
-#
a90dc3
-# This file will be automatically read upon startup if it's placed in
a90dc3
-# /etc/pbm2ppa.conf
a90dc3
-#
a90dc3
-
a90dc3
-version  720
a90dc3
-
a90dc3
-papersize	us
a90dc3
-
a90dc3
-xoff     169 # \ Adjust these for your printer.
a90dc3
-yoff    -569 # / (see CALIBRATE)
a90dc3
-
a90dc3
-# 1/4 inch margins all around (at 600 DPI)
a90dc3
-top      150
a90dc3
-bottom   150
a90dc3
-left     150
a90dc3
-right    150
a90dc3
diff -up pbm2ppa-0.8.6/pbm2ppa.conf.hp820.20000205 pbm2ppa-0.8.6/pbm2ppa.conf.hp820
a90dc3
--- pbm2ppa-0.8.6/pbm2ppa.conf.hp820.20000205	1998-10-19 02:27:21.000000000 +0100
a90dc3
+++ pbm2ppa-0.8.6/pbm2ppa.conf.hp820	2008-09-24 15:17:47.000000000 +0100
a90dc3
@@ -1,18 +0,0 @@
a90dc3
-# Sample configuration file for the HP820
a90dc3
-#
a90dc3
-# This file will be automatically read upon startup if it's placed in
a90dc3
-# /etc/pbm2ppa.conf
a90dc3
-#
a90dc3
-
a90dc3
-version  820
a90dc3
-
a90dc3
-papersize	us
a90dc3
-
a90dc3
-xoff      75 # \ Adjust these for your printer.
a90dc3
-yoff    -500 # / (see CALIBRATE)
a90dc3
-
a90dc3
-# 1/4 inch margins all around (at 600 DPI)
a90dc3
-top       80
a90dc3
-bottom   150
a90dc3
-left      80
a90dc3
-right     80
a90dc3
diff -up pbm2ppa-0.8.6/pbmtpg.c.20000205 pbm2ppa-0.8.6/pbmtpg.c
a90dc3
--- pbm2ppa-0.8.6/pbmtpg.c.20000205	1998-09-16 01:00:28.000000000 +0100
a90dc3
+++ pbm2ppa-0.8.6/pbmtpg.c	2008-09-24 15:15:53.000000000 +0100
a90dc3
@@ -1,13 +1,19 @@
a90dc3
 #include <math.h>
a90dc3
 #include <stdio.h>
a90dc3
 #include <stdlib.h>
a90dc3
+#include <string.h>
a90dc3
 
a90dc3
-/* Support both US and A4. */
a90dc3
+/* Support  US Letter, Legal,  and A4. */
a90dc3
 
a90dc3
-/* US is 8.5 in by 11 in */
a90dc3
+/* US Letter is 8.5 in by 11 in */
a90dc3
 
a90dc3
-#define USWIDTH  (5100)
a90dc3
-#define USHEIGHT (6600)
a90dc3
+#define LETTERWIDTH  (5100)
a90dc3
+#define LETTERHEIGHT (6600)
a90dc3
+
a90dc3
+/* US Legal is 8.5 in by 14 in */
a90dc3
+
a90dc3
+#define LEGALWIDTH  (5100)
a90dc3
+#define LEGALHEIGHT (8400)
a90dc3
 
a90dc3
 /* A4 is 210 mm by 297 mm == 8.27 in by 11.69 in */
a90dc3
 
a90dc3
@@ -137,8 +143,24 @@ int main(int argc,char** argv)
a90dc3
   char buf[128];
a90dc3
   char *progname = *argv;
a90dc3
 
a90dc3
-  Width = USWIDTH;
a90dc3
-  Height = USHEIGHT;
a90dc3
+  Width = LETTERWIDTH;
a90dc3
+  Height = LETTERHEIGHT;
a90dc3
+  if(argc>1 && strcmp(argv[1], "-letter")==0)
a90dc3
+  {
a90dc3
+    Width = LETTERWIDTH;
a90dc3
+    Height = LETTERHEIGHT;
a90dc3
+    argc--;
a90dc3
+    argv++;
a90dc3
+  }
a90dc3
+
a90dc3
+  if(argc>1 && strcmp(argv[1], "-legal")==0)
a90dc3
+  {
a90dc3
+    Width = LEGALWIDTH;
a90dc3
+    Height = LEGALHEIGHT;
a90dc3
+    argc--;
a90dc3
+    argv++;
a90dc3
+  }
a90dc3
+
a90dc3
   if(argc>1 && strcmp(argv[1], "-a4")==0)
a90dc3
   {
a90dc3
     Width = A4WIDTH;
a90dc3
@@ -146,6 +168,9 @@ int main(int argc,char** argv)
a90dc3
     argc--;
a90dc3
     argv++;
a90dc3
   }
a90dc3
+
a90dc3
+
a90dc3
+
a90dc3
   Pwidth = (Width+7)/8;
a90dc3
   bitmap = (char *)malloc(Pwidth*Height);
a90dc3
 
a90dc3
@@ -192,6 +217,7 @@ int main(int argc,char** argv)
a90dc3
     return 1;
a90dc3
   }
a90dc3
 
a90dc3
+  Width = 8*Pwidth ; /* here need 8*Pwidth as the Width ! */
a90dc3
   printf("P4\n%d %d\n",Width,Height);
a90dc3
 
a90dc3
   for(x=0; x
a90dc3
@@ -199,3 +225,10 @@ int main(int argc,char** argv)
a90dc3
 
a90dc3
   return 0;
a90dc3
 }
a90dc3
+
a90dc3
+
a90dc3
+
a90dc3
+
a90dc3
+
a90dc3
+
a90dc3
+
a90dc3
diff -up pbm2ppa-0.8.6/README.REDHAT.20000205 pbm2ppa-0.8.6/README.REDHAT
a90dc3
--- pbm2ppa-0.8.6/README.REDHAT.20000205	1998-08-22 14:48:40.000000000 +0100
a90dc3
+++ pbm2ppa-0.8.6/README.REDHAT	2008-09-24 15:15:53.000000000 +0100
a90dc3
@@ -1,12 +1,28 @@
a90dc3
-RedHat users may find the following tip from Panayotis Vryonis <vrypan@hol.gr>
a90dc3
-helpful!
a90dc3
+The best way to integrate support for the HP PPA Printers into RedHat's
a90dc3
+Linux Print System Manager (printtool) is to replace e.g., the
a90dc3
+rhs-printfilters-1.57-3 RPM package that comes with Red Hat 6.1,
a90dc3
+with a  PPA-aware version from the pnm2ppa project  whic h has a
a90dc3
+homepage at http://www.sourceforge.net/projects/?group_id=1322
a90dc3
 
a90dc3
-Here is a tip to intergrate HP720C support in RedHat's printtool:
a90dc3
+At the time of writing, the latest release is
a90dc3
+     rhs-printfilters-1.57-4ppa1
a90dc3
+This package includes support for both pbm2ppa and the new
a90dc3
+color driver pnm2ppa.
a90dc3
 
a90dc3
-Install pbm2ppa. Copy pbm2ppa to /usr/bin.
a90dc3
-Edit "printerdb" (in my system it is found in
a90dc3
-/usr/lib/rhs/rhs-printfilters )
a90dc3
-and append the following lines:
a90dc3
+   -------------------------------------
a90dc3
+
a90dc3
+If for some reason, they cannot use this PPA-aware version of
a90dc3
+rhs-printfilters, RedHat users may still find the following tip from 
a90dc3
+Panayotis Vryonis <vrypan@hol.gr> helpful!  
a90dc3
+It will work with the standard rhs-printfilters that comes with  the 
a90dc3
+Red Hat release:
a90dc3
+	
a90dc3
+	Here is a tip to integrate HP720C support in RedHat's printtool:
a90dc3
+
a90dc3
+	Install pbm2ppa. Copy pbm2ppa to /usr/bin.
a90dc3
+	Edit "printerdb" (in my system it is found in	
a90dc3
+	/usr/lib/rhs/rhs-printfilters )
a90dc3
+	and append the following lines:
a90dc3
 ----------------------Cut here
a90dc3
 -------------------------------------------
a90dc3
 StartEntry: DeskJet720C
a90dc3
@@ -23,7 +39,11 @@ StartEntry: DeskJet720C
a90dc3
 EndEntry
a90dc3
 --------------------------------------------------------------------------
a90dc3
 
a90dc3
-Now you can add an HP720C printer just like any other, using printtool.
a90dc3
+	Now you can add an HP720C printer just like any other, using printtool.
a90dc3
+
a90dc3
+	[Author's (P. Vryonis) Note: The same should work for the 820 and 
a90dc3
+	1000, but it hasn't been tested.  Also, use the pbmraw GSDriver if 
a90dc3
+	you have it; it's faster. ]
a90dc3
+
a90dc3
+
a90dc3
 
a90dc3
-[Author's Note: The same should work for the 820 and 1000, but it hasn't
a90dc3
-been tested.  Also, use the pbmraw GSDriver if you have it; it's faster. ]