HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

pnmtopclxl — Convert a PNM file to an HP LaserJet PCL XL printer stream. More information: <https://netpbm.source

Submitted by: @import:tldr-pages··
0
Viewed 0 times
commandconvertpclclifilelaserjetpnmpnmtopclxl

Problem

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

Solution

pnmtopclxl — 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}} {{[-x|-xoffs]}} {{x_offset}} {{[-y|-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 {{[-du|-duplex]}} {{vertical|horizontal}} {{[-fo|-format]}} {{letter|legal|a3|a4|a5|...}} {{path/to/input1.pnm path/to/input2.pnm ...}} > {{path/to/output.pclxl}}

Code Snippets

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}} {{[-x|-xoffs]}} {{x_offset}} {{[-y|-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 {{[-du|-duplex]}} {{vertical|horizontal}} {{[-fo|-format]}} {{letter|legal|a3|a4|a5|...}} {{path/to/input1.pnm path/to/input2.pnm ...}} > {{path/to/output.pclxl}}

Context

tldr-pages: common/pnmtopclxl

Revisions (0)

No revisions yet.