pbmtolj
Convert a PBM file to an HP LaserJet file. tldr-pages
On several platforms
Several platforms
Convert a PBM file to an HP LaserJet file
pbmtolj path/to/input.pbm >path/to/output.ljIdentifyCompress the output file using the specified method
pbmtolj -packbits path/to/input.pbm >path/to/output.ljIdentifySpecify the required resolution
pbmtolj -resolution 75 path/to/input.pbm >path/to/output.ljIdentify