pnmtopclxl

Convert a PNM file to an HP LaserJet PCL XL printer stream. More information: <https://netpbm.sourceforge.net/doc/pnmtopclxl.html>.

Install

All systems
curl cmd.cat/pnmtopclxl.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 PNM file to an HP LaserJet PCL XL printer stream. More information: <https://netpbm.sourceforge.net/doc/pnmtopclxl.html>.

  • Convert PNM files to an HP LaserJet PCL XL printer stream:
    pnmtopclxl path/to/input1.pnm path/to/input2.pnm ... > path/to/output.pclxl
  • Specify the resolution of the image as well as the location of the page from the upper left corner of each image:
    pnmtopclxl -dpi resolution -xoffs x_offset -yoffs y_offset path/to/input1.pnm path/to/input2.pnm ... > path/to/output.pclxl
  • Generate a duplex printer stream for the specified paper format:
    pnmtopclxl -duplex vertical|horizontal -format letter|legal|a3|a4|a5|... path/to/input1.pnm path/to/input2.pnm ... > path/to/output.pclxl

© tl;dr; authors and contributors