pnm2ppa(1)
π pnm2ppa β the manual page, but make it cute π
okay bestie, sit down, hydrate, because we're about to turn your printer from "meh" into "slay". This is pnm2ppa(1) from the General Commands Manual, and yes, it's a whole vibe. π
β¨ NAME β¨
pnm2ppa β convert portable anymap (PNM) images to HP's PPA printer format. π¨οΈπ
πΈ SYNOPSIS πΈ
pnm2ppa [options] [ -i infile ] [ -o outfile ]
π¦ DESCRIPTION π¦
So basically, it reads portable anymap (PNM) format as input. And ngl, you want the binary PNM formats β pnmraw = { ppmraw (color pixmap), pgmraw (graymap), and pbmraw (black-and-white bitmap) } β those are strongly preferred, fr fr. β¨
The output stream can be locally processed by Hewlett-Packard's Printing Performance Architecture (PPA) printers: the HP DeskJet 710C, 712C, 720C, 722C, 820C, and 1000C series. π
(PNM format output can be produced from PostScript(tm) input by the GhostScript output devices "pbmraw", "pgmraw" or "ppmraw", or by "pnmraw", which will choose one of these formats as appropriate for the document.) No cap, that's just how it works.
pnm2ppa assumes the input resolution is 600dpi (or 300dpi if the command-line option --dpi300 is used): input at higher/lower resolutions will result in a correspondingly larger/smaller printed image, provided it is within the printer's allowed size range. π (yes, your image will literally scale, that's the tea)
π OPTIONS π
-bbottommargin β Sets the bottom margin bottommargin in units of 1/600 inches (e.g.,-b 150corresponds to0.25"). π-Bblackness β Sets the black ink density blackness in drops per pixel (0,1,2,3,4).--biβ Force bidirectional print sweeps. πβοΈπ¨--bwβ Disables the color cartridge; will print in grey scale using only the black cartridge. π€-dβ Displays the current configuration. π--dpi300β Treat input resolution as 300dpi instead of 600dpi.--ecoβ Econofast mode: lower print quality that is faster and saves ink. π±β¨-fconfigFile β Re-reads configuration from configFile (after initially reading it from/etc/pnm2ppa.conf).-FGammaFile β Overrides reading the color-correction table (Gamma curve) from the default file/etc/pnm2ppa.gamma, and uses GammaFile instead. π--fdβ Enable fast ordered dithering instead of using the slower, but beautiful, Floyd-Steinberg dithering. (Has no effect in--bwmode.) π yes, the fast one is the less pretty one, that's the tradeoff-gβ Prints a page of color intensity samples (for comparison withgamma.ppmdata produced bycalibrate_ppa). This is part of a color-correction procedure; seeCOLOR.txtfor more details. π¨-h,--helpβ Displays program usage. π«Ά-iinfile β Input file infile is either a path to a PPM file, or'-'to indicate stdin (defaults to stdin).-lleftmargin β Sets the left margin leftmargin in units of 1/600 inches (e.g.,-l 150corresponds to0.25").--noGammaβ Switches off any color-correction. π-ooutfile |-β Output file outfile is either a path to a file or device, or'-'to indicate stdout (defaults to stdout).-pβ Disables the black ink cartridge; i.e., print using only the color ink cartridge, even for printing"black". This might be useful for printing high-quality color images. ππ-rrightmargin β Sets the right margin rightmargin in units of 1/600 inches (e.g.,-r 150corresponds to0.25").-spapersize β Sets the default paper size (now used only for color-correction output produced by the-goption). In normal use,pnm2ppanow instead reads the paper dimensions from pnm input file headers, and checks that it is a valid papersize for the given printer model. Possible values for papersize area4(A4),letterorus(US Letter,8.5"x11"),legal(US Legal,8.5"x14"). The default is US Letter.-ttopmargin β Sets the top margin topmargin in units of 1/600 inches (ie-t 150corresponds to0.25").--uniβ Force unidirectional (left to right) print sweeps. Useful if"shearing"is a problem for high quality color images. β‘οΈ-vprintertype β Selects the printer model. Possible values of printertype are:710,712,720,722,820and1000. The default is the HP DeskJet 7X0 Series (710, 712, 720, 722). π--verboseβ Displays the program's System Log messages on the standard output, as well. π£οΈ--versionβ Displays the program's version information.-xxoffset β Sets the x-offset xoffset from the left of the page. Units are 1/600 inches.-yyoffset β Sets the y-offset yoffset from the top of the page. Units are 1/600 inches.
π§ NOTES π§
The default configuration file /etc/pnm2ppa.conf is read in first. Command line arguments then modify the resulting definitions. So like, order matters, bestie. π
β οΈ The-voption resets all definitions (margins, offsets, etc.) back to the inbuilt defaults for that printer, and should be used before subsequent-b,-l,-r,-t,-xand-yarguments. Not me warning you twice β put-vfirst or your margins get deleted, periodt. π
π SEE ALSO π
π FILES π
/etc/pnm2ppa.confβ Default configuration file./etc/pnm2ppa.gammaβ Default Gamma (color-correction) file.
π«Ά AUTHOR π«Ά
This code is licensed under the GNU Public License version 2. See LICENSE for details. βοΈ
- (c) 1998-1999 Tim Norman
- (c) 1999 Giorgio Marzano
- (c) 1999 Andrew van der Stock
- (c) 1998-2002 Various authors for many, many fixes
shoutout to "Various authors" carrying the whole team on their back, iconic behavior fr fr π
π HISTORY π
This program was originally pbm2ppa, written by Tim Norman. It originally supported black and white output on the 820 series. Tim added nascent color support in early 1999. In May 1999, Giorgio Marzano started making real headway in getting color support working properly. Andrew van der Stock has maintained the code since September 1999, and made it available at http://sourceforge.net/projects/pnm2ppa. π¦
π BUGS π
Faint horizontal lines marking boundaries between print sweeps may be visible. You may get better results when printing images, with the options:
-p --uni
(this may no longer apply since recent code improvements). π
and that's the whole manual, bestie β this page is from the pnm2ppa(1) manual, dated 23 Jun 2002. go print something gorgeous. πβ¨π¨οΈ
π¦ where this page comes from
- debian bookworm: printer-driver-pnm2ppa 1.13-13+b1 Β· GPL-2.0-or-later
- debian trixie: printer-driver-pnm2ppa 1.13-13+b1 Β· GPL-2.0-or-later
- ubuntu jammy: printer-driver-pnm2ppa 1.13+nondbs-0ubuntu9
- ubuntu noble: printer-driver-pnm2ppa 1.13+nondbs-0ubuntu10
- ubuntu questing: printer-driver-pnm2ppa 1.13+nondbs-0ubuntu10
- ubuntu resolute: printer-driver-pnm2ppa 1.13+nondbs-0ubuntu11 Β· GPL-2.0-or-later
- ubuntu stonking: printer-driver-pnm2ppa 1.13+nondbs-0ubuntu11 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms