Changeset 375
- Timestamp:
- 08/27/06 00:27:47 (18 years ago)
- Location:
- pkpgcounter/trunk
- Files:
-
- 4 modified
Legend:
- Unmodified
- Added
- Removed
-
pkpgcounter/trunk/bin/pkpgcounter
r374 r375 38 38 colorspaces for several file formats. 39 39 40 pkpgcounter currently recognizes the following document formats for 41 page counting : 40 pkpgcounter currently recognizes the following document formats : 42 41 43 42 * PostScript (both DSC compliant and binary) … … 51 50 * Zenographics ZjStream 52 51 53 pkpgcounter currently recognizes the following document formats 54 for the computation of ink coverage : 55 56 * PostScript (both DSC compliant and binary) 57 * PDF 58 * DVI 59 * TIFF (some TIFF files don't work) 52 The three latter ones, as well as some TIFF documents, are currently 53 only supported in page counting mode. 60 54 61 55 command line usage : -
pkpgcounter/trunk/pkpgpdls/pcl345.py
r357 r375 34 34 class Parser(pdlparser.PDLParser) : 35 35 """A parser for PCL3, PCL4, PCL5 documents.""" 36 totiffcommand = 'pcl6 -sDEVICE=pdfwrite -dPARANOIDSAFER -dNOPAUSE -dBATCH -dQUIET -sOutputFile=- - | gs -sDEVICE=tiff24nc -dPARANOIDSAFER -dNOPAUSE -dBATCH -dQUIET -r%(dpi)i -sOutputFile="%(fname)s" -' 36 37 mediasizes = { # ESC&l####A 37 38 0 : "Default", -
pkpgcounter/trunk/pkpgpdls/pclxl.py
r357 r375 34 34 class Parser(pdlparser.PDLParser) : 35 35 """A parser for PCLXL (aka PCL6) documents.""" 36 totiffcommand = 'pcl6 -sDEVICE=pdfwrite -dPARANOIDSAFER -dNOPAUSE -dBATCH -dQUIET -sOutputFile=- - | gs -sDEVICE=tiff24nc -dPARANOIDSAFER -dNOPAUSE -dBATCH -dQUIET -r%(dpi)i -sOutputFile="%(fname)s" -' 36 37 mediasizes = { 37 38 0 : "Letter", -
pkpgcounter/trunk/README
r374 r375 20 20 ============================================================================= 21 21 22 pkpgcounter is a generic Page Description Language parser. 22 pkpgcounter is a generic Page Description Language parser which can either 23 compute the number of pages in a document, or compute the percent of 24 ink coverage needed to print each page, in different colorspaces. 23 25 24 It can currently compute the number of pages in several types of files :26 pkpgcounter currently recognizes the following document formats : 25 27 26 28 - PostScript (both DSC compliant and binary) … … 32 34 - PCLXL (aka PCL6) 33 35 34 - ESC/P235 36 36 - DVI 37 37 38 38 - TIFF 39 40 - ESC/P2 39 41 40 42 - OpenDocument (ISO/IEC DIS 26300) … … 42 44 - Zenographics ZjStream 43 45 44 In addition to counting pages, pkpgcounter can also compute the 45 ink 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 55 Other formats will be supported in the future for ink coverage. 46 The three latter ones, as well as some TIFF documents, are currently 47 only supported in page counting mode. 56 48 57 49 By default, when launched pkpgcounter prints on its standard output … … 64 56 representing the files to parse. 65 57 66 See pkpgcounter --help for details .58 See pkpgcounter --help for details and examples. 67 59 68 60 ============================================================================= … … 106 98 software which must be installed. These third party software are : 107 99 108 - GhostScript .100 - GhostScript (this one is needed for all file formats). 109 101 110 - The Python Imaging Library (PIL). 102 - The Python Imaging Library, aka PIL (this one is needed for all 103 file formats). 111 104 105 - GhostPCL (this one is needed for the PCL3/4/5 and PCLXL formats) 106 112 107 - The LaTeX typesetting software, in particular the dvips command 113 (this one is onlyneeded for the DVI file format).108 (this one is needed for the DVI file format). 114 109 115 110 =============================================================================