root / pkpgcounter / trunk / README @ 373

Revision 373, 5.2 kB (checked in by jerome, 18 years ago)

The computation of ink coverage now works for the DVI file format.

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