Files
tldr/pages.zh/common/pbmtoescp2.md

21 lines
679 B
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# pbmtoescp2
> 将 PBM 图像转换为 ESC/P2 打印机文件。
> 另见:`pbmtoepson``escp2topbm`。
> 更多信息:<https://netpbm.sourceforge.net/doc/pbmtoescp2.html>。
- 将 PBM 图像转换为 ESC/P2 打印机文件:
`pbmtoescp2 {{path/to/image.pbm}} > {{path/to/output.escp2}}`
- 指定输出的压缩:
`pbmtoescp2 -compression {{0|1}} {{path/to/image.pbm}} > {{path/to/output.escp2}}`
- 指定输出的水平和垂直分辨率(每英寸点数):
`pbmtoescp2 -resolution {{180|360|720}} {{path/to/image.pbm}} > {{path/to/output.escp2}}`
- 在输出末尾放置换页命令:
`pbmtoescp2 -formfeed {{path/to/image.pbm}} > {{path/to/output.escp2}}`