HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

pbmtolj — Convert a PBM file to an HP LaserJet file. More information: <https://netpbm.sourceforge.net/doc/pbm

Submitted by: @import:tldr-pages··
0
Viewed 0 times
commandpbmtoljconvertclifilelaserjetpbm

Problem

How to use the pbmtolj command: Convert a PBM file to an HP LaserJet file. More information: <https://netpbm.sourceforge.net/doc/pbmtolj.html>.

Solution

pbmtolj — Convert a PBM file to an HP LaserJet file. More information: <https://netpbm.sourceforge.net/doc/pbmtolj.html>.

Convert a PBM file to an HP LaserJet file:
pbmtolj {{path/to/input.pbm}} > {{path/to/output.lj}}


Compress the output file using the specified method:
pbmtolj -{{packbits|delta|compress}} {{path/to/input.pbm}} > {{path/to/output.lj}}


Specify the required resolution:
pbmtolj {{[-r|-resolution]}} {{75|100|150|300|600}} {{path/to/input.pbm}} > {{path/to/output.lj}}

Code Snippets

Convert a PBM file to an HP LaserJet file

pbmtolj {{path/to/input.pbm}} > {{path/to/output.lj}}

Compress the output file using the specified method

pbmtolj -{{packbits|delta|compress}} {{path/to/input.pbm}} > {{path/to/output.lj}}

Specify the required resolution

pbmtolj {{[-r|-resolution]}} {{75|100|150|300|600}} {{path/to/input.pbm}} > {{path/to/output.lj}}

Context

tldr-pages: common/pbmtolj

Revisions (0)

No revisions yet.