ppmtolj

Convert a PPM file to an HP LaserJet PCL 5 Color file. More information: <https://netpbm.sourceforge.net/doc/ppmtolj.html>.

Install

All systems
curl cmd.cat/ppmtolj.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 PPM file to an HP LaserJet PCL 5 Color file. More information: <https://netpbm.sourceforge.net/doc/ppmtolj.html>.

  • Convert a PPM file to an HP LaserJet PCL 5 Color file:
    ppmtolj path/to/input.ppm > path/to/output.lj
  • Apply a gamma correction using the specified gamma value:
    ppmtolj -gamma gamma path/to/input.ppm > path/to/output.lj
  • Specify the required resolution:
    ppmtolj -resolution 75|100|150|300|600 path/to/input.ppm > path/to/output.lj

© tl;dr; authors and contributors