pnm2ppa --version (return code: 0)
pnm2ppa version and build date: 1.13 Aug 6 2014 19:34:09
pnm2ppa --help (return code: 0)
usage: pnm2ppa [ options ] [-i <infile> ] [ -o <outfile> ]]
Prints a pnm- or pnmraw-format <infile> to HP720/820/1000-format <outfile>.
-b <margin> bottom margin in 1"/600 (default: 150 = 0.25")
--bi forces bidirectional print head sweeps
-B <n> density of black ink (n = 0,1,2,3 or 4)
--bw forces black/white output
-d dumps the configuration to stdout
--eco Econofast mode (uses less ink)
--dpi300 Treat input resolution as 300dpi instead of 600dpi
-f <cfgfile> read printer settings from configuration file <cfgfile>
-F <gammaFile> read color correction table from file <gammaFile>
--fd use fast dithering mode
-g print color calibration page. See CALIBRATION.txt
-h, --help displays this help text.
-i <infile> input from file <infile>, "-i -" means stdin
-l <margin> left margin in 1"/600 (default: 150 = 0.25")
--noGamma suppresses any color correction
-o <outfile> output to file <outfile>, "-o -" means stdout
-p disable black ink cartridge
-r <margin> right margin in 1"/600 (default: 150 = 0.25")
-s <paper> default papersize (a4, legal, letter = us (default))
-t <margin> top margin in 1"/600 (default: 150 = 0.25")
--uni forces unidirectional print head sweeps
-v <model> set the printer model (710, 712, 720, 722, 820, or 1000)
--verbose outputs syslog output to stderr as well
--version Display the version of pnm2ppa to the syslog
-x <offset> vertical offset adjustment in 1"/600
-y <offset> horizontal offset adjustment in 1"/600
The -v option resets the margins and offset adjustments to the
default values for that printer model. <infile> and <outfile> default
to stdin and stdout. '-' is a synonym for stdin and stdout.
Configuration files specified with the '-f' parameter have the following
format:
# Comment
<key1> <value1>
<key2> <value2>
[etc.]
Valid keys include 'version', 'xoffset', 'yoffset', 'topmargin', 'leftmargin',
'rightmargin', 'bottommargin', 'blackness', 'papersize', or any non-null
truncated version of these words. Valid values are the same as with
the corresponding command-line parameters.
Other keys that can be only set in the configuration file include:
'silent', 'verbose', 'log_info',
'unimode', 'blackshear', 'colorshear',
'RedGammaIdx','BlueGammaIdx', 'GreenGammaIdx',
'GammaR', 'GammaG', 'GammaB',
'ColOffsX', 'ColOffsY',
'black_ink', 'color_ink', 'cyan_ink', 'magenta_ink', 'yellow_ink',
'compression';
see documentation in the sample configuration file for their usage.
The order in which parameters are specified is important:
the file /etc/pnm2ppa.conf, if it exists, is processed as a configuration
file before any command-line parameters are processed.
If an alternate configuration file is specified on the command line
with the '-f' parameter, its contents are processed at that point.
If a parameter is specified more than once, only its last value is used.