LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

pnm2ppa

Convert PNM images to HP PPA printer format

TLDR

Convert a color PNM to PPA format
$ pnm2ppa --eco -i [input.pnm] -o [output.ppa]
copy
Print a PNM file directly to the printer
$ pnm2ppa -i [image.pnm] -o - | lpr
copy
Convert with a specific paper size
$ pnm2ppa --paper [a4] -i [input.pnm] -o [output.ppa]
copy
Convert a black-and-white PNM
$ pbm2ppa -i [input.pbm] -o [output.ppa]
copy

SYNOPSIS

pnm2ppa [options] [-i infile] [-o outfile]

DESCRIPTION

pnm2ppa converts PNM (Portable Any Map) images to HP PPA (Printer Performance Architecture) format used by certain HP DeskJet inkjet printers (710, 720, 820, 1000 series). These printers lack standard PCL or PostScript support and require a host-based driver to render pages.The tool generates the raw printer data stream, which can be sent directly to the printer device or piped through the print spooler. It is typically used in a GhostScript pipeline: a PostScript or PDF file is first rendered to PNM format by GhostScript, then converted to PPA by pnm2ppa. A companion utility pbm2ppa handles black-and-white PBM images. Paper size, resolution, and economy mode options control the output formatting.

PARAMETERS

-i FILE

Input PNM file (use - for stdin).
-o FILE
Output PPA file (use - for stdout).
--paper SIZE
Paper size (letter, a4, legal).
--dpi DPI
Resolution (300 or 600).
--eco
Economode: use less ink.
--bw
Print in black and white only.
-v PRINTER
Printer model (710, 720, 820, 1000).
--gamma VALUE
Gamma correction value for color adjustment.
-f FILE
Read configuration from file.
--help
Display help.

CAVEATS

Only works with specific HP DeskJet PPA printers. Considered legacy; most modern printers use standard drivers. Supports only 300 and 600 DPI resolutions.

HISTORY

pnm2ppa was created for HP PPA printers lacking standard driver support.

SEE ALSO

pnm(5), pbmtoppa(1), gs(1), lpr(1), lpstat(1)

Copied to clipboard
Kai