192 |
- |
1 |
# Sample configuration file
|
|
|
2 |
#
|
|
|
3 |
# This file will be automatically read upon startup if it is placed in
|
|
|
4 |
# /etc/pnm2ppa.conf
|
|
|
5 |
#
|
|
|
6 |
# uncomment entries by removing "#" to activate them.
|
|
|
7 |
#
|
|
|
8 |
#-----------set the printer model---------------------------
|
|
|
9 |
# YOU MUST CHOOSE ONE OF THE FOLLOWING, EVEN IF YOU DO NOTHING ELSE!
|
|
|
10 |
#
|
|
|
11 |
# If there is more than one "version" entry activated, the last one
|
|
|
12 |
# will be used. The printer version can also be set with the command line
|
|
|
13 |
# option e.g., "-v 720".
|
|
|
14 |
|
|
|
15 |
#version 720 # 710, 712, 722 also acceptable
|
|
|
16 |
#version 820
|
|
|
17 |
#version 1000
|
|
|
18 |
|
|
|
19 |
|
|
|
20 |
#--------control system log messages from pnm2ppa-------------------
|
|
|
21 |
# pnm2ppa issues progress and error messages to the system log (syslog).
|
|
|
22 |
# For security reasons, no input from the user is ever sent to the syslog.
|
|
|
23 |
# The setting "silent 1" suppresses messages to the syslog. The
|
|
|
24 |
# setting "verbose 1" sends messages to the standard error stream (stderr)
|
|
|
25 |
# in addition to the syslog. (Note: on BeOS, syslog messages are
|
|
|
26 |
# diverted to stderr; use "silent 1" to suppress them.)
|
|
|
27 |
# Note: the "silent 1" keyword is only accepted from the system
|
|
|
28 |
# configuration file (/etc/pnm2ppa.conf), and not from configuration files
|
|
|
29 |
# specified with the pnm2ppa option "-f".
|
|
|
30 |
|
|
|
31 |
#silent 1
|
|
|
32 |
#verbose 1
|
|
|
33 |
|
|
|
34 |
#---------set the margins of the printed page-------------------
|
|
|
35 |
# Margins: these are distances from the edges of the paper in
|
|
|
36 |
# "dots" ( 600 dots = 1 inch = 2.54 cm).
|
|
|
37 |
# Nothing outside these margins will be printed.
|
|
|
38 |
# Default values are give below; uncomment and change, if necessary.
|
|
|
39 |
# (Older versions of pnm2ppa required larger left and right margins to avoid
|
|
|
40 |
# printer failure with "flashing lights", but this problem is believed to
|
|
|
41 |
# be solved)
|
|
|
42 |
|
|
|
43 |
#topmargin 10
|
|
|
44 |
#bottommargin 150
|
|
|
45 |
#leftmargin 10
|
|
|
46 |
#rightmargin 10
|
|
|
47 |
|
|
|
48 |
#----------center the printer output on the paper-------------------
|
|
|
49 |
# Offsets: these are adjustments for centering the print correctly on the
|
|
|
50 |
# paper. Units are dots (1/600 inch). Add a positive number of dots to
|
|
|
51 |
# xoff to move the printed image to the right, relative to the paper.
|
|
|
52 |
# add to yoff to move it down. The helper program calibrate_ppa prints
|
|
|
53 |
# a test page to check the offsets (see CALIBRATON.txt):
|
|
|
54 |
# usage: "calibrate_ppa --center | pnm2ppa --bw - - | lpr -l
|
|
|
55 |
# Default values are:
|
|
|
56 |
|
|
|
57 |
#xoffset 160
|
|
|
58 |
#yoffset 50
|
|
|
59 |
|
|
|
60 |
#------------align the black and color ink cartridges--------
|
|
|
61 |
# Color Offsets: these control alignment between the black ink
|
|
|
62 |
# and color ink print cartridges. This changes a little whenever you
|
|
|
63 |
# replace an ink cartridge, so the default values are just approximate.
|
|
|
64 |
#
|
|
|
65 |
# Use "calibrate_ppa --align | pnm2ppa --fd - - | lpr -l "
|
|
|
66 |
# to print a test page to help you adjust the color offsets.
|
|
|
67 |
#
|
|
|
68 |
# The first line checks horizontal alignment ColOffsX,:
|
|
|
69 |
# The second line checks vertical alignment ColOffsY,:
|
|
|
70 |
# The alignment is correct if alignment patterns "0" is best.
|
|
|
71 |
# If a diffent alignment pattern is best, add or subtract the + or
|
|
|
72 |
# - value shown below it to ColOffsX or ColOffSy.
|
|
|
73 |
#
|
|
|
74 |
# See CALIBRATION.txt for more details.
|
|
|
75 |
# Use "calibrate_ppa --test | pnm2ppa --fd - - | lpr -l " to check your
|
|
|
76 |
# new settings.
|
|
|
77 |
|
|
|
78 |
#ColOffsX 0
|
|
|
79 |
#ColOffsY 0
|
|
|
80 |
|
|
|
81 |
#---------------"shearing" corrections-------------------------------------
|
|
|
82 |
# shearing correction (for bidirectional printing modes)
|
|
|
83 |
# if there is a horizontal offset between right-to-left and left-to-right
|
|
|
84 |
# sweeps of the print head, adjust these in units of 1"/600 (1 dot).
|
|
|
85 |
# There are separate corrections colorshear and blackshear for the
|
|
|
86 |
# color and black print heads. The third and fourth lines of the
|
|
|
87 |
# alignment test page (see above) tests these.
|
|
|
88 |
# The setting is correct when alignments "0" are correct.
|
|
|
89 |
# Add or subtract the + or - number shown under the best-aligned shearing
|
|
|
90 |
# alignment pattern.
|
|
|
91 |
|
|
|
92 |
#colorshear 0
|
|
|
93 |
#blackshear 0
|
|
|
94 |
|
|
|
95 |
#-------------blackness control-----------------------------
|
|
|
96 |
# this controls the density of black ink used.
|
|
|
97 |
# valid blackness choices are 1 2 3 4; controls the
|
|
|
98 |
# density of black ink used: 1 (least ink), 2 (default), 4 (most).
|
|
|
99 |
# 0 = no black ink. This affects black ink bordered by whitespace
|
|
|
100 |
# only (e.g. text, but not black in color images)
|
|
|
101 |
|
|
|
102 |
#blackness 2
|
|
|
103 |
|
|
|
104 |
#------------Color correct curve Gamma parameters-------------------------
|
|
|
105 |
# Gamma color correction values for Red, Green and Blue:
|
|
|
106 |
# (Note: a more effective method of color correction is to use
|
|
|
107 |
# a calibration file /etc/pnm2ppa.gamma, in which case these
|
|
|
108 |
# Gamma values will not be used. See COLOR.html or COLOR.txt)
|
|
|
109 |
# The pnm2ppa option --noGamma suppresses color correction.
|
|
|
110 |
|
|
|
111 |
# The standard Gamma enhancement curve is
|
|
|
112 |
# gEnh(i) = (int) ( pow ( (double) i / 256, Gamma ) * 256 )
|
|
|
113 |
# (i.e., 256 times ( i*(1.0/256)) to the power Gamma ),
|
|
|
114 |
# where (int) i is the ppm color intensity, in the range 0 - 255.
|
|
|
115 |
# positive values of Gamma enhance (increase the intensity of)
|
|
|
116 |
# the corresponding color. Gamma = 1.0 corresponds to no
|
|
|
117 |
# color correction, gEnh[i] = i.
|
|
|
118 |
|
|
|
119 |
# You can specify Gamma values as a decimal number for each primary color
|
|
|
120 |
|
|
|
121 |
#GammaR 1.0 # red enhancement
|
|
|
122 |
#GammaG 1.0 # green enhancement
|
|
|
123 |
#GammaB 1.0 # blue enhancement
|
|
|
124 |
|
|
|
125 |
# For use with the printed output of "pnm2ppa -g ",
|
|
|
126 |
# you can also specify Gamma values using the integer GammaIdx,
|
|
|
127 |
# which gives Gamma = 1.0 - 0.033 * GammaIdx :
|
|
|
128 |
|
|
|
129 |
#RedGammaIdx 0
|
|
|
130 |
#GreenGammaIdx 0
|
|
|
131 |
#BlueGammaIdx 0
|
|
|
132 |
|
|
|
133 |
# Default papersize (only used for printing the color calibration
|
|
|
134 |
# test page with pnm2ppa -g).
|
|
|
135 |
# Valid choices are: a4, letter, legal:
|
|
|
136 |
|
|
|
137 |
#papersize letter # this is the default
|
|
|
138 |
#papersize legal
|
|
|
139 |
#papersize a4
|
|
|
140 |
|
|
|
141 |
#-----------suppress bidirectional printing---------------------
|
|
|
142 |
|
|
|
143 |
# by default the printing sweeps are now bidirectional (unimode 0);
|
|
|
144 |
# to make unidirectional printing (left-to-right) the default behavior,
|
|
|
145 |
# (unimode 1) uncomment the next line . (The command line options --uni
|
|
|
146 |
# and --bi override the default behavior). You might wish to print
|
|
|
147 |
# unidirectionally to avoid shearing effects in high-quality
|
|
|
148 |
# color images, for example)
|
|
|
149 |
|
|
|
150 |
#unimode 1
|
|
|
151 |
|
|
|
152 |
#=====================================================================
|
|
|
153 |
# the following are switches for debugging purposes only:
|
|
|
154 |
# set their values to 0 to switch off the corresponding ink type:
|
|
|
155 |
|
|
|
156 |
#black_ink 1
|
|
|
157 |
#color_ink 1
|
|
|
158 |
#cyan_ink 1
|
|
|
159 |
#magenta_ink 1
|
|
|
160 |
#yellow_ink 1
|