pbmtolj

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

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

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

pbmtolj -resolution 75|100|150|300|600 path/to/input.pbm > path/to/output.lj