Linux command
foo2zjs 命令
文本
涉及管道、覆盖或删除,执行前请先确认路径和参数。
常用示例
Convert PBM to
foo2zjs [options] < [input.pbm] > [output.prn]
Set resolution
foo2zjs -r [600] < [input.pbm] > [output.prn]
Set paper size (1=letter, 9=A4, 5=legal)
foo2zjs -p [9] < [input.pbm] > [output.prn]
Color mode
foo2zjs -c < [input.ppm] > [output.prn]
Print multiple copies
foo2zjs -n [3] < [input.pbm] > [output.prn]
说明
foo2zjs converts PBM/PPM images to ZjStream format for HP LaserJet and Minolta/QMS magicolor printers. It's the core tool of the foo2zjs printer driver suite. The tool encodes raster data in the proprietary ZjStream protocol, handling page setup, compression, and printer commands. It works as a CUPS filter for supported printers. foo2zjs enables Linux printing on numerous "GDI printers" that lack standard driver support.
参数
- -r _DPI_
- Resolution (300, 600, 1200).
- -p _CODE_
- Paper size code: 1=letter, 5=legal, 7=executive, 9=A4, 11=A5, 13=B5. Default is 1.
- -c
- Color mode (input must be PPM).
- -m _MEDIA_
- Media type code.
- -n _COPIES_
- Number of copies.
- -d _DUPLEX_
- Duplex mode: 1=off, 2=long edge, 3=short edge.
- -g _XPIXxYPIX_
- Page dimensions in pixels (default 10200x6600).
- --help
- Display help information.
FAQ
What is the foo2zjs command used for?
foo2zjs converts PBM/PPM images to ZjStream format for HP LaserJet and Minolta/QMS magicolor printers. It's the core tool of the foo2zjs printer driver suite. The tool encodes raster data in the proprietary ZjStream protocol, handling page setup, compression, and printer commands. It works as a CUPS filter for supported printers. foo2zjs enables Linux printing on numerous "GDI printers" that lack standard driver support.
How do I run a basic foo2zjs example?
Run `foo2zjs [options] < [input.pbm] > [output.prn]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does -r _DPI_ do in foo2zjs?
Resolution (300, 600, 1200).