[1103] | 1 | <!-- $Id$ --> |
---|
[1099] | 2 | |
---|
| 3 | <chapter> |
---|
[2115] | 4 | <title id="pykotme">Get print quotes before printing for real with <command>pykotme</command></title> |
---|
[1099] | 5 | <para>Last modified on $Date$</para> |
---|
| 6 | |
---|
| 7 | <para> |
---|
[2115] | 8 | PyKota features a print quote generator, named <command>pykotme</command>. |
---|
[1099] | 9 | This command line tool can be used to learn in advance how much a print job |
---|
| 10 | will cost to you if you really send it to a printer. |
---|
| 11 | You can then decide if printing your document is a good idea or not, and do it |
---|
| 12 | knowingly. |
---|
| 13 | </para> |
---|
| 14 | |
---|
| 15 | <para> |
---|
[2115] | 16 | To get a print quote, you have to launch <command>pykotme</command> |
---|
[1099] | 17 | from the command line, passing your print job's content in the PostScript |
---|
| 18 | format, either in the form of one or more file names on the command line, |
---|
| 19 | or on its standard input (i.e. in a shell pipe or redirection). |
---|
| 20 | </para> |
---|
| 21 | |
---|
| 22 | <para> |
---|
[2115] | 23 | Without any command line argument, <command>pykotme</command> |
---|
[1099] | 24 | automatically reads your job's data from its standard input. |
---|
| 25 | </para> |
---|
| 26 | |
---|
| 27 | <para> |
---|
[2115] | 28 | By default, <command>pykotme</command> |
---|
[1099] | 29 | will display a quote for your job on all printers. You can restrict |
---|
| 30 | this by using the <literal>-p | --printer</literal> command line |
---|
| 31 | option followed with either a printer's name or a wildcard |
---|
| 32 | which will be used to search all printers which name matches. |
---|
[1166] | 33 | You can pass more than one printer name wildcard, separating |
---|
| 34 | them with commas. |
---|
[1099] | 35 | </para> |
---|
| 36 | |
---|
| 37 | <sect1> |
---|
| 38 | <title>Examples</title> |
---|
| 39 | <para> |
---|
[2115] | 40 | Here are some examples of <command>pykotme</command> usage. |
---|
[1099] | 41 | </para> |
---|
| 42 | |
---|
| 43 | <para> |
---|
| 44 | The simplest form : |
---|
| 45 | <screen> |
---|
| 46 | port50-2:~$ pykotme pykota.ps |
---|
| 47 | Your account balance : 16.25 |
---|
| 48 | Job size : 22 pages |
---|
| 49 | Cost on printer apple : 1.35 |
---|
| 50 | port50-2:~$ |
---|
| 51 | </screen> |
---|
| 52 | </para> |
---|
| 53 | |
---|
| 54 | <para> |
---|
| 55 | More complex, with printer name wildcard and within a pipe : |
---|
| 56 | <screen> |
---|
| 57 | port50-2:~$ a2ps -o - pykota/README | pykotme --printer "a*" |
---|
| 58 | [pykota/README (plain): 6 pages on 3 sheets] |
---|
| 59 | [Total: 6 pages on 3 sheets] sent to the standard output |
---|
| 60 | Your account balance : 16.25 |
---|
| 61 | Job size : 3 pages |
---|
| 62 | Cost on printer apple : 0.40 |
---|
| 63 | port50-2:~$ |
---|
| 64 | </screen> |
---|
| 65 | </para> |
---|
| 66 | </sect1> |
---|
[1101] | 67 | |
---|
| 68 | <sect1> |
---|
| 69 | <title>Reference</title> |
---|
| 70 | <para> |
---|
| 71 | <cmdsynopsis> |
---|
| 72 | <command>pykotme</command> |
---|
| 73 | <group choice="opt"><arg>-v</arg><arg>--version</arg></group> |
---|
| 74 | <group choice="opt"><arg>-h</arg><arg>--help</arg></group> |
---|
| 75 | <group choice="opt"> |
---|
| 76 | <arg>-P <replaceable>printername</replaceable></arg> |
---|
| 77 | <arg>--printer <replaceable>printername</replaceable></arg> |
---|
| 78 | </group> |
---|
| 79 | <group choice="opt"> |
---|
| 80 | <arg><replaceable>filename1</replaceable></arg> |
---|
| 81 | <arg><replaceable>filename2</replaceable></arg> |
---|
| 82 | <arg><replaceable>...</replaceable></arg> |
---|
| 83 | <arg><replaceable>filenameN</replaceable></arg> |
---|
| 84 | </group> |
---|
| 85 | </cmdsynopsis> |
---|
| 86 | </para> |
---|
| 87 | </sect1> |
---|
[1099] | 88 | </chapter> |
---|
| 89 | |
---|
| 90 | <!-- |
---|
| 91 | |
---|
| 92 | $Log$ |
---|
[2115] | 93 | Revision 1.6 2005/02/28 00:07:37 jalet |
---|
| 94 | Added pkmail's doc. |
---|
| 95 | Used the <command> tag instead of <application> for commands. |
---|
| 96 | Fixed some typos. |
---|
| 97 | Added some missing command line options in the commands reference. |
---|
| 98 | |
---|
[1166] | 99 | Revision 1.5 2003/10/12 20:47:51 jalet |
---|
| 100 | Doc enhanced. |
---|
| 101 | |
---|
[1103] | 102 | Revision 1.4 2003/07/25 13:18:44 jalet |
---|
| 103 | Typos |
---|
| 104 | |
---|
[1102] | 105 | Revision 1.3 2003/07/25 13:16:44 jalet |
---|
| 106 | Typo |
---|
| 107 | |
---|
[1101] | 108 | Revision 1.2 2003/07/25 13:10:58 jalet |
---|
| 109 | Improved documentation |
---|
| 110 | |
---|
[1099] | 111 | Revision 1.1 2003/07/25 10:41:30 jalet |
---|
| 112 | Better documentation. |
---|
| 113 | pykotme now displays the current user's account balance. |
---|
| 114 | Some test changed in ldap module. |
---|
| 115 | |
---|
| 116 | |
---|
| 117 | --> |
---|