foo2oak -VERSION (return code: 0)
$Id: foo2oak.c,v 1.69 2011/11/08 20:25:27 rick Exp $
foo2oak --help (return code: 1)
foo2oak: invalid option -- '-'
Usage:
foo2oak [options] <pbmraw-file >OAKT-file
Convert Ghostscript pbm format to a 1-bpp monochrome OAKT stream,
for driving the HP LaserJet 1500 color laser printer
and other OAKT-based black and white printers.
gs -q -dBATCH -dSAFER -dQUIET -dNOPAUSE \
-sPAPERSIZE=letter -r600x600 -sDEVICE=pbmraw \
-sOutputFile=- - < testpage.ps \
| foo2oak -r600x600 -g5100x6600 -p1 >testpage.oak
foo2oak [options] <pgmraw-file >OAKT-file
Convert Ghostscript pgm format to a 2-bpp monochrome OAKT stream,
for driving the HP LaserJet 1500 color laser printer
and other OAKT-based black and white printers.
gs -q -dBATCH -dSAFER -dQUIET -dNOPAUSE \
-sPAPERSIZE=letter -r600x600 -sDEVICE=pgmraw \
-sOutputFile=- - < testpage.ps \
| foo2oak -r600x600 -g5100x6600 -p1 >testpage.oak
foo2oak [options] <bitcmyk-file >OAKT-file
Convert Ghostscript bitcmyk format to a 1-bpp color OAKT stream,
for driving the HP LaserJet 1500 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 \
| foo2oak -r600x600 -g5100x6600 -p1 >testpage.oak
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 [0]
0=auto 1=plain 2=preprinted 3=letterhead 4=transparency
5=prepunched 6=labels 7=bond 8=recycled 9=color
10=cardstock 11=heavy 12=envelope 13=light 14=tough
15=vellum 16=rough 19=thick 20=highqual
-p paper Paper code to send to printer [1]
1=letter, 3=ledger, 5=legal, 6=statement, 7=executive,
8=A3, 9=A4, 11=A5, 12=B4, 13=B5jis, 14=folio, 19=env9,
20=env10, 27=envDL, 28=envC5, 30=envC4, 37=envMonarch,
257=A6, 258=B6, 259=B5iso, 260=env6
-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=tray1 2=tray2 4=manual 7=auto
Code numbers may vary with printer model
-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
-M mirror Mirror bytes (0=KM-1635/KM-2035, 1=HP CLJ 1500) [1]
-z model Model [0]
0=HP-1500, 1=KM-1635/2035
Debugging Options:
-S plane Output just a single color plane from a color print [all]
2=Cyan, 1=Magenta, 0=Yellow, 3=Black
-D lvl Set Debug level [0]
-V Version $Id: foo2oak.c,v 1.69 2011/11/08 20:25:27 rick Exp $