# $Id$ pkpgcounter : a generic Page Description Language parser (c) 2003, 2004, 2005, 2006, 2007 Jerome Alet This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see . ============================================================================= pkpgcounter is a generic Page Description Language parser which can either compute the number of pages in a document, or compute the percent of ink coverage needed to print each page, in different colorspaces. pkpgcounter currently recognizes the following document formats : - PostScript (both DSC compliant and binary) - PDF - PCL3/4/5 - PCLXL (aka PCL6) - DVI - Plain text - TIFF - ESC/P2 - OpenDocument (ISO/IEC DIS 26300) - Zenographics ZjStream - Samsung QPDL (aka SPL2) - Samsung SPL1 The five latter ones, as well as some TIFF documents, are currently only supported in page counting mode. By default, when launched pkpgcounter prints on its standard output a single integer representing the total number of pages in all the files which filenames you've passed on the command line. With no argument, or with a single dash in non-option arguments, pkpgcounter reads datas to parse from its standard input in addition to other non-options arguments which are treated as filenames representing the files to parse. See pkpgcounter --help for details and examples. ============================================================================= Installation : -------------- 0 - Download pkpgcounter from : http://www.pykota.com/software/pkpgcounter/download and extract it : $ tar -zxf pkpgcounter-x.yy.tar.gz where x.yy is pkpgcounter' version number. 1 - Run the installation script : $ python setup.py install This will usually install the pkpgcounter into /usr/bin and the library into /usr/lib/python2.?/site-packages/pkpgpdls/ 2 - Use pkpgcounter : $ pkpgcounter file1.ps file2.pclxl ...