pbmtolj

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

Install

All systems
curl cmd.cat/pbmtolj.sh
Debian Debian
apt-get install netpbm
Ubuntu
apt-get install netpbm
Arch Arch Linux
pacman -S netpbm
image/svg+xml Kali Linux
apt-get install netpbm
CentOS
yum install netpbm-progs
Fedora
dnf install netpbm-progs
Windows (WSL2)
sudo apt-get update sudo apt-get install netpbm
OS X
brew install netpbm
Raspbian
apt-get install netpbm

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 -resolution 75|100|150|300|600 path/to/input.pbm > path/to/output.lj

© tl;dr; authors and contributors