LinuxCommandLibrary

pbmtolj

Convert a PBM file to an HP LaserJet file.

TLDR

Convert a PBM file to an HP LaserJet file

$ pbmtolj [path/to/input.pbm] > [path/to/output.lj]
copy


Compress the output file using the specified method
$ pbmtolj -[packbits|delta|compress] [path/to/input.pbm] > [path/to/output.lj]
copy


Specify the required resolution
$ pbmtolj -resolution [75|100|150|300|600] [path/to/input.pbm] > [path/to/output.lj]
copy

Copied to clipboard