[185] | 1 | # $Id$ |
---|
| 2 | |
---|
| 3 | pkpgcounter : a generic Page Description Language parser |
---|
| 4 | |
---|
[303] | 5 | (c) 2003, 2004, 2005, 2006 Jerome Alet <alet@librelogiciel.com> |
---|
[185] | 6 | This program is free software; you can redistribute it and/or modify |
---|
| 7 | it under the terms of the GNU General Public License as published by |
---|
| 8 | the Free Software Foundation; either version 2 of the License, or |
---|
| 9 | (at your option) any later version. |
---|
| 10 | |
---|
| 11 | This program is distributed in the hope that it will be useful, |
---|
| 12 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
---|
| 13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
---|
| 14 | GNU General Public License for more details. |
---|
| 15 | |
---|
| 16 | You should have received a copy of the GNU General Public License |
---|
| 17 | along with this program; if not, write to the Free Software |
---|
[211] | 18 | Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
---|
[185] | 19 | |
---|
| 20 | ============================================================================= |
---|
| 21 | |
---|
| 22 | pkpgcounter is a generic Page Description Language parser. |
---|
| 23 | |
---|
| 24 | It can currently compute the number of pages in several types of files : |
---|
| 25 | |
---|
| 26 | - PostScript (both DSC compliant and binary) |
---|
| 27 | |
---|
| 28 | - PDF |
---|
| 29 | |
---|
| 30 | - PCL3/4/5 |
---|
| 31 | |
---|
| 32 | - PCLXL (aka PCL6) |
---|
| 33 | |
---|
| 34 | - ESC/P2 |
---|
| 35 | |
---|
[221] | 36 | - DVI |
---|
| 37 | |
---|
| 38 | - TIFF |
---|
| 39 | |
---|
[340] | 40 | - OpenDocument (ISO/IEC DIS 26300) |
---|
[229] | 41 | |
---|
[329] | 42 | - Zenographics ZjStream |
---|
[229] | 43 | |
---|
[185] | 44 | When launched, pkpgcounter prints on its standard output a single |
---|
| 45 | integer representing the total number of pages in all the files |
---|
| 46 | which filenames you've passed on the command line. |
---|
| 47 | |
---|
| 48 | With no argument, or with a single dash in non-option arguments, |
---|
| 49 | pkpgcounter reads datas to parse from its standard input in addition |
---|
| 50 | to other non-options arguments which are treated as filenames |
---|
| 51 | representing the files to parse. |
---|
| 52 | |
---|
| 53 | In the future other possibilities will be added. |
---|
| 54 | |
---|
| 55 | ============================================================================= |
---|
| 56 | |
---|
| 57 | Installation : |
---|
| 58 | -------------- |
---|
| 59 | |
---|
| 60 | 0 - Download pkpgcounter from : |
---|
| 61 | |
---|
[336] | 62 | http://www.pykota.com/software/pkpgcounter/download |
---|
[185] | 63 | |
---|
| 64 | and extract it : |
---|
| 65 | |
---|
| 66 | $ tar -zxf pkpgcounter-x.yy.tar.gz |
---|
| 67 | |
---|
| 68 | where x.yy is pkpgcounter' version number. |
---|
| 69 | |
---|
[204] | 70 | 1 - Run the installation script : |
---|
[185] | 71 | |
---|
[204] | 72 | $ python setup.py install |
---|
[185] | 73 | |
---|
[204] | 74 | This will usually install the pkpgcounter into /usr/bin and |
---|
[235] | 75 | the library into /usr/lib/python2.?/site-packages/pkpgpdls/ |
---|
[204] | 76 | |
---|
[185] | 77 | 2 - Use pkpgcounter : |
---|
| 78 | |
---|
| 79 | $ pkpgcounter file1.ps file2.pclxl ... <fileN.escp2 |
---|
| 80 | |
---|
| 81 | pkpgcounter will display the total size in pages of all the files |
---|
| 82 | passed on the command line. |
---|
| 83 | |
---|
| 84 | 3 - That's all ! |
---|
| 85 | |
---|
| 86 | ============================================================================= |
---|
| 87 | |
---|
| 88 | Troubleshooting : |
---|
| 89 | ----------------- |
---|
| 90 | |
---|
| 91 | If pkpgcounter gives incorrect results to you, please make an incorrectly |
---|
| 92 | parsed data file available to us on some website, and tell us which |
---|
| 93 | driver was used. |
---|
| 94 | |
---|
[247] | 95 | If pkpgcounter complain about your system lacking the Python Psyco module, |
---|
| 96 | please consider installing it to speedup file parsing. However, don't forget |
---|
| 97 | that Psyco currently only runs on the 32 bits x86 platform, so no need to |
---|
| 98 | install it if you've got another system type. |
---|
| 99 | |
---|
[185] | 100 | ============================================================================= |
---|
| 101 | |
---|
[286] | 102 | The PCL3/4/5 parser included in pkpgcounter is a Python backport of an early |
---|
| 103 | release of the PCLCount software by Eduardo Gielamo Oliveira and Rodolfo Broco |
---|
| 104 | Manin. |
---|
| 105 | |
---|
| 106 | Although this IS NOT needed for pkpgcounter to work, you can download the |
---|
| 107 | original PCLCount software from : |
---|
| 108 | |
---|
| 109 | http://www.fea.unicamp.br/pclcount/ |
---|
| 110 | |
---|
| 111 | Their software is distributed under either the terms of a BSD-like license, |
---|
| 112 | or the terms of the GNU General Public License of the Free Software Foundation. |
---|
| 113 | |
---|
| 114 | Over time both software evolved following different paths, and the accounting |
---|
| 115 | results they give may differ depending on the printer driver being used. |
---|
| 116 | We know that pkpgcounter's PCL3/4/5 parser sometimes is not accurate, |
---|
| 117 | and we are working on improving the situation. We currently don't know how |
---|
| 118 | PCLCount would behave with the same input files. |
---|
| 119 | |
---|
| 120 | pkpgcounter's PCLXL (aka PCL6) parser doesn't originate from PCLCount, but |
---|
| 121 | was written from scratch. |
---|
| 122 | |
---|
| 123 | ============================================================================= |
---|
| 124 | |
---|
[185] | 125 | Please e-mail bugs to : alet@librelogiciel.com (Jerome Alet) |
---|