| 1 |
.\" Copyright (c) 2000-2002 |
| 2 |
.\" Andreas Klemm <[email protected]>. All rights reserved. |
| 3 |
.\" |
| 4 |
.\" $ApsCVS: src/apsfilter/man/apsfilterrc.5.in,v 1.10.2.6 2002/11/10 16:08:53 andreas Exp $ |
| 5 |
.\" |
| 6 |
.Dd April 08, 2000 |
| 7 |
.Dt APSFILTERRC 5 |
| 8 |
.Os |
| 9 |
.Sh NAME |
| 10 |
.Nm apsfilterrc |
| 11 |
.Nd configuration file for magic print filter |
| 12 |
.Sh SYNOPSIS |
| 13 |
.Nm apsfillterrc |
| 14 |
.Sh DESCRIPTION |
| 15 |
.Nm Apsfilterrc |
| 16 |
is a configuration file for printers controlled by the |
| 17 |
.Xr apsfilter 1 |
| 18 |
magic filter. |
| 19 |
.Pp |
| 20 |
Every apsfilter printer in |
| 21 |
.Xr printcap 5 |
| 22 |
has an |
| 23 |
.Nm |
| 24 |
file of its own. |
| 25 |
.Pp |
| 26 |
There is one global apsfilterrc file that controls print |
| 27 |
characteristics for all printer. The printer-specific |
| 28 |
.Nm |
| 29 |
files have preference over the global one. |
| 30 |
.Pp |
| 31 |
Reasons for using an |
| 32 |
.Nm |
| 33 |
file are if it turns out, that you have to type in some commandline |
| 34 |
options too often or if an application is unable to parameterize |
| 35 |
the print command, so that you have to hardcode the print characteristic |
| 36 |
for such dumb applications. |
| 37 |
.Pp |
| 38 |
An enhancement to this concept are user-specific |
| 39 |
config files, that have preference over the global and |
| 40 |
the printer-specific config file. This allows configuration |
| 41 |
of print characteristics on a per-user basis. |
| 42 |
.Pp |
| 43 |
You should make use of user-specific config files instead |
| 44 |
of using the deprecated USE_USER_CODE variable, which |
| 45 |
compromises system security and is only an option on |
| 46 |
a single-user machine, see below. |
| 47 |
.Ss Capabilities |
| 48 |
.Bl -tag -width THIS_MUCH_SPACE |
| 49 |
.It Nm QUALITY |
| 50 |
Select print quality (draft, lo|low, med|medium, hi|high, photo). |
| 51 |
.It Nm SWEEP |
| 52 |
Print uni- or bidirectional (uni, bi). |
| 53 |
.It Nm MEDIA |
| 54 |
Select paper type (plain, coated, glossy, premium, trans). |
| 55 |
.It Nm COLOR |
| 56 |
Select color mode (color|colour, gray|grey, mono). |
| 57 |
.It Nm METHOD |
| 58 |
Choose apsfilters method of data processing (auto, ascii, raw). |
| 59 |
Automatic file type recognition and automatic conversion to Postscript |
| 60 |
is apsfilters default processing method. If you want to print mostly |
| 61 |
files `as is', you can set the default to 'raw', this disables any kind |
| 62 |
of file type recognition and conversion. If you want to print mostly |
| 63 |
everything as ASCII text, then you can set this option to 'ascii'. |
| 64 |
.It Nm PAPERSIZE |
| 65 |
Set the default paper size (a3, a4, legal, ledger, tabloid). |
| 66 |
.It Nm ASCII_FILTER |
| 67 |
Text file filter to use, when printing ASCII documents |
| 68 |
(a2ps, mpage, enscript, recode). |
| 69 |
.It Nm PAPERTRAY |
| 70 |
Paper feed tray number (tray0...tray9). |
| 71 |
.It Nm PRETTY_PRINTING |
| 72 |
a2ps highlight level for pretty-printing when using a2ps or enscript |
| 73 |
as ascii filter (0, 1, 2). See also ASCII_FILTER. |
| 74 |
.It Nm ASCII_HEADER |
| 75 |
Whether you want headers in your text prints when using a2ps, mpage |
| 76 |
or enscript as ascii filter (header, noheader). |
| 77 |
.It Nm ASCII_BORDER |
| 78 |
Whether you want borders in your text prints when using a2ps, mpage |
| 79 |
or enscript as ascii filter (border, noborder). |
| 80 |
.It Nm PS_NUP|ASCII_PPS |
| 81 |
Pages per sheet (1pps, 2pps, 4pps, 8pps). |
| 82 |
.It Nm LANDSCAPE|ASCII_LANDSCAPE |
| 83 |
Paper orientation (landscape, portrait). |
| 84 |
.It Nm PS_BOOK |
| 85 |
Output pages in "book" format, implies commandline options |
| 86 |
"2pps,duplex,shortbind". Related options: PS_NUP, ASCII_PPS, |
| 87 |
DUPLEX, BINDING. |
| 88 |
.It Nm DUPLEX |
| 89 |
Whether to use duplex mode or not (duplex, simplex). |
| 90 |
.It Nm BINDING |
| 91 |
Paper binding edge (shortbind, longbind). |
| 92 |
.It Nm COPIES |
| 93 |
Number of copies (copies=N). |
| 94 |
.It Nm USE_USER_CODE |
| 95 |
Enabling this option is a big potential security hole !!! |
| 96 |
If you don't understand this, DO NOT USE IT. |
| 97 |
It makes user manageable |
| 98 |
.Nm |
| 99 |
files possible which will be sourced (included/executed) |
| 100 |
during runtime of a printjob under the permissions of the |
| 101 |
calling process (lpd). |
| 102 |
This option is only valid for typical "single-user" systems, |
| 103 |
where a user wants direct access to an apsfilterrc without |
| 104 |
having to become root to make changes. |
| 105 |
A more conveniant way on a multi-user system, where security |
| 106 |
is an issue, is that a system administrator creates user-specific |
| 107 |
.Nm |
| 108 |
files. Additional informations can be found in the apsfilter |
| 109 |
handbook and in the apsfilterrc file together with some examples. |
| 110 |
.Sh FILES |
| 111 |
.Bl -tag -width THIS_MUCH_SPACE -compact |
| 112 |
.It Pa @sysconfdir@/apsfilter/apsfilterrc |
| 113 |
apsfilter |
| 114 |
.Em global |
| 115 |
config file, settings are overwriteable by more specific |
| 116 |
printer config files, see below. |
| 117 |
.It Pa @sysconfdir@/apsfilter/QUEUE/apsfilterrc |
| 118 |
apsfilter config file on a |
| 119 |
.Em per printer queue |
| 120 |
basis. This file has preference over the global config file. |
| 121 |
.It Pa @sysconfdir@/apsfilter/QUEUE/apsfilterrc.USER |
| 122 |
apsfilter config file on a |
| 123 |
.Em per user |
| 124 |
basis (per print queue). This file has preference over the global |
| 125 |
and the printer queue specific config file. |
| 126 |
.It Pa $HOME/.apsfilter/apsfilterrc.QUEUE |
| 127 |
A |
| 128 |
.Em user defineable |
| 129 |
config file on a per printer queue basis. This file has |
| 130 |
preference over the global, the printer queue specific and the central |
| 131 |
per user config file, which is administered by a system administrator. |
| 132 |
Enabling this has a deep impact on your systems security, |
| 133 |
.Em should NOT be used, |
| 134 |
especially on multi-user systems and is therefore |
| 135 |
.Em disabled by default. |
| 136 |
See comments to USE_USER_CODE variable. |
| 137 |
.Sh SEE ALSO |
| 138 |
.Xr apsfilter 1 , |
| 139 |
.Xr printcap 5 |
| 140 |
.Sh BUGS |
| 141 |
See apsfilter software center - |
| 142 |
.Li http://www.apsfilter.org/ |
| 143 |
- for new versions, bugfixes and known bugs. |
| 144 |
.Pp |
| 145 |
Please use the new tool |
| 146 |
.Xr apsfilter-bug 1 |
| 147 |
to release bug- or problem reports. It automatically presents you a |
| 148 |
.Nm form |
| 149 |
in an editor window which asks you some standard questions. |
| 150 |
If you save and quit the editor session, then this report is |
| 151 |
sent automatically via |
| 152 |
.Nm e-mail |
| 153 |
to the proper apsfilter mailinglist. |
| 154 |
.Pp |
| 155 |
If apsfilter fails to print something or prints it in a way |
| 156 |
you wouldn't expect and you want to report an apsfilter error |
| 157 |
then please save the debugging output of one print session |
| 158 |
using the new |
| 159 |
.Xr aps2file 1 |
| 160 |
utility by typing |
| 161 |
.Nm aps2file -D -Z options file > /dev/null 2> file.debug |
| 162 |
and including the debugging output in the file |
| 163 |
.Nm file.debug |
| 164 |
into the edit session of the |
| 165 |
.Nm apsfilter-bug |
| 166 |
utility, so that it is included into the mail to the apsfilter |
| 167 |
mailinglist. |
| 168 |
.Pp |
| 169 |
Please note that you need to run /bin/sh (Bourne Shell), bash |
| 170 |
or a compatible shell, so that the above mentioned output |
| 171 |
redirection works. Under C-shell (/bin/csh) or tcsh it would't |
| 172 |
work. If you don't know, then simply make sure you use the |
| 173 |
Bournce shell by typing |
| 174 |
.Nm /bin/sh |
| 175 |
or |
| 176 |
.Nm bash , |
| 177 |
then you should have no problems with redirection of |
| 178 |
.Nm stdout |
| 179 |
and |
| 180 |
.Nm stderr |
| 181 |
(> /dev/null 2> file.debug). |
| 182 |
.Sh DOCUMENTATION |
| 183 |
See official apsfilter homepage |
| 184 |
.Bl -tag -width XXXXXXXXXXXXXTHIS_MUCH_SPACEXXXXXXXXXXX -compact |
| 185 |
.It Pa http://www.apsfilter.org/handbook.html |
| 186 |
Apsfilter Handbook including the Frequently Asked Questions (FAQ) |
| 187 |
.Sh USER FORUM |
| 188 |
Please send questions to the official apsfilter help channel |
| 189 |
.Ic [email protected] . |
| 190 |
The above section |
| 191 |
.Nm BUGS |
| 192 |
and the file |
| 193 |
.Ic HOWTO-BUGREPORTS |
| 194 |
tells you how to report bugs. |
| 195 |
If you want to know how to troubleshoot your apsfilter installation, |
| 196 |
please read the manpage |
| 197 |
.Xr aps2file 1 |
| 198 |
and |
| 199 |
.Xr apsfilter-bug 1 |
| 200 |
as well as the |
| 201 |
.Ic Apsfilter Handbook |
| 202 |
carefully. |
| 203 |
.Sh HISTORY |
| 204 |
.Nm Apsfilter |
| 205 |
developement started in 1994. |
| 206 |
.Pp |
| 207 |
The |
| 208 |
.Nm |
| 209 |
file on a "per printer queue" basis appeared in apsfilter 5.4.0. |