← 返回命令列表

Linux command

foo2hbpl 命令

文件

涉及管道、覆盖或删除,执行前请先确认路径和参数。

常用示例

Convert pbmraw to HBPL2

gs -q -dBATCH -dNOPAUSE -sDEVICE=pbmraw -sOutputFile=- [file.ps] | foo2hbpl2 > [output.hbpl]

Use the wrapper script

foo2hbpl2-wrapper [file.ps] > [output.prn]

Convert with specific resolution

foo2hbpl2 -r[1200x600] < [input.pbm] > [output.hbpl]

Print color document

gs -sDEVICE=bitcmyk -sOutputFile=- [file.ps] | foo2hbpl2 -c > [output.hbpl]

Set page dimensions

foo2hbpl2 -p[10200x6600] < [input.pbm] > [output.hbpl]

说明

foo2hbpl2 converts Ghostscript pbmraw, bitcmyk, or pksmraw output to HBPL2 (HP Bi-directional Printer Language 2) streams for certain laser printers. Supported printers include Dell 1355, Dell C1765, Epson AcuLaser M1400, Fuji Xerox DocuPrint series, Xerox Phaser 3010/3040, and Xerox WorkCentre 3045/6015 MFP. The tool is typically used in a pipeline with Ghostscript to convert PostScript or PDF files to printer-ready format. The foo2hbpl2-wrapper script provides a convenient interface that handles the Ghostscript conversion automatically. foo2hbpl2 is part of the foo2zjs project, which provides open-source drivers for various laser printers that use proprietary page description languages.

参数

-c
Force color mode output.
-r _XRESxYRES_
Set device resolution in pixels per inch (default: 1200x600).
-p _WIDTHxHEIGHT_
Set page dimensions in pixels.
-n _COPIES_
Number of copies to print (default: 1).
-d _DUPLEX_
Duplex code to send to printer.
-u _XOFFxYOFF_
Set offset of printable region from upper left corner in pixels.
-A
AllIsBlack: convert C=1,M=1,Y=1 to K=1 (bitcmyk input only).
-B
BlackClears: K=1 forces C,M,Y to 0 (bitcmyk input only).
-D _LEVEL_
Set debug level.

FAQ

What is the foo2hbpl command used for?

foo2hbpl2 converts Ghostscript pbmraw, bitcmyk, or pksmraw output to HBPL2 (HP Bi-directional Printer Language 2) streams for certain laser printers. Supported printers include Dell 1355, Dell C1765, Epson AcuLaser M1400, Fuji Xerox DocuPrint series, Xerox Phaser 3010/3040, and Xerox WorkCentre 3045/6015 MFP. The tool is typically used in a pipeline with Ghostscript to convert PostScript or PDF files to printer-ready format. The foo2hbpl2-wrapper script provides a convenient interface that handles the Ghostscript conversion automatically. foo2hbpl2 is part of the foo2zjs project, which provides open-source drivers for various laser printers that use proprietary page description languages.

How do I run a basic foo2hbpl example?

Run `gs -q -dBATCH -dNOPAUSE -sDEVICE=pbmraw -sOutputFile=- [file.ps] | foo2hbpl2 > [output.hbpl]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does -c do in foo2hbpl?

Force color mode output.