foo2hp -VERSION (return code: 0)
$Id: foo2hp.c,v 1.48 2011/06/09 13:58:50 rick Exp $
foo2hp --help (return code: 1)
foo2hp: invalid option -- '-'
Usage:
foo2hp [options] <pbmraw-file >zjs-file
Convert Ghostscript pbmraw format to a monochrome ZJS stream,
for driving the Hewlett-Packard 2600n color laser printer
and other Zenographics-based black and white printers.
gs -q -dBATCH -dSAFER -dQUIET -dNOPAUSE \
-sPAPERSIZE=letter -r600x600 -sDEVICE=pbmraw \
-sOutputFile=- - < testpage.ps \
| foo2hp -r600x600 -g5100x6600 -p1 >testpage.zm
foo2hp [options] <bitcmyk-file >zjs-file
foo2hp [options] <cups-file >zjs-file
Convert Ghostscript bitcmyk or cups format to a color ZJS stream,
for driving the Hewlett-Packard 2600n color laser printer
N.B. Color correction is expected to be performed by ghostscript.
gs -q -dBATCH -dSAFER -dQUIET -dNOPAUSE \
-sPAPERSIZE=letter -g5100x6600 -r600x600 -sDEVICE=bitcmyk \
-sOutputFile=- - < testpage.ps \
| foo2hp -r600x600 -g5100x6600 -p1 >testpage.zc
Normal Options:
-b bits Bits per plane if autodetect doesn't work (1 or 2) [1]
-c Force color mode if autodetect doesn't work
-d duplex Duplex code to send to printer [1]
1=off, 2=longedge, 3=shortedge,
-g <xpix>x<ypix> Set page dimensions in pixels [5100x6600]
-m media Media code to send to printer [1]
1=plain 514=preprinted 513=letterhead 2=transparency
515=prepunched 265=labels 260=bond 516=recycled
512=color 276=tough 267=envelope 258=light 262=heavy
261=cardstock 268=lightglossy 269=glossy
270=heavyglossy 277=cover 278=photo
-p paper Paper code to send to printer [1]
1=letter, 5=legal 7=executive 9=A4 11=A5 13=B5jis
20=env#10, 27=envDL 28=envC5 34=envB5 37=envMonarch
-n copies Number of copies [1]
-r <xres>x<yres> Set device resolution in pixels/inch [600x600]
-s source Source code to send to printer [7]
1=tray2 2=tray1 7=auto
Code numbers may vary with printer model
-t Draft mode. Every other pixel is white.
-J filename Filename string to send to printer []
-U username Username string to send to printer []
Printer Tweaking Options:
-u <xoff>x<yoff> Set offset of upper left printable in pixels [0x0]
-l <xoff>x<yoff> Set offset of lower right printable in pixels [0x0]
-L mask Send logical clipping values from -u/-l in ZjStream [3]
0=no, 1=Y, 2=X, 3=XY
-A AllIsBlack: convert C=1,M=1,Y=1 to just K=1
-B BlackClears: K=1 forces C,M,Y to 0
-A, -B work with bitcmyk input only
-O c,m,y,k Alignment of CMYK in rows [0,0,0,0]
-P Do not output START_PLANE codes. May be needed by some
some black and white only printers.
-X padlen Add extra zero padding to the end of BID segments [0]
Debugging Options:
-S plane Output just a single color plane from a color print [all]
1=Cyan, 2=Magenta, 3=Yellow, 4=Black
-D lvl Set Debug level [0]
-V Version $Id: foo2hp.c,v 1.48 2011/06/09 13:58:50 rick Exp $