Changeset 375 for pkpgcounter/trunk

Show
Ignore:
Timestamp:
08/27/06 00:27:47 (18 years ago)
Author:
jerome
Message:

The computation of ink coverage now works for both the PCL3/4/5
and PCLXL file formats, through ghostpcl.

Location:
pkpgcounter/trunk
Files:
4 modified

Legend:

Unmodified
Added
Removed
  • pkpgcounter/trunk/bin/pkpgcounter

    r374 r375  
    3838colorspaces for several file formats. 
    3939 
    40 pkpgcounter currently recognizes the following document formats for 
    41 page counting : 
     40pkpgcounter currently recognizes the following document formats : 
    4241 
    4342    * PostScript (both DSC compliant and binary) 
     
    5150    * Zenographics ZjStream 
    5251 
    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) 
     52The three latter ones, as well as some TIFF documents, are currently  
     53only supported in page counting mode.  
    6054 
    6155command line usage : 
  • pkpgcounter/trunk/pkpgpdls/pcl345.py

    r357 r375  
    3434class Parser(pdlparser.PDLParser) : 
    3535    """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" -' 
    3637    mediasizes = {  # ESC&l####A 
    3738                    0 : "Default", 
  • pkpgcounter/trunk/pkpgpdls/pclxl.py

    r357 r375  
    3434class Parser(pdlparser.PDLParser) : 
    3535    """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" -' 
    3637    mediasizes = {  
    3738                    0 : "Letter", 
  • pkpgcounter/trunk/README

    r374 r375  
    2020============================================================================= 
    2121 
    22 pkpgcounter is a generic Page Description Language parser. 
     22pkpgcounter is a generic Page Description Language parser which can either 
     23compute the number of pages in a document, or compute the percent of 
     24ink coverage needed to print each page, in different colorspaces. 
    2325 
    24 It can currently compute the number of pages in several types of files : 
     26pkpgcounter currently recognizes the following document formats : 
    2527 
    2628        - PostScript (both DSC compliant and binary) 
     
    3234        - PCLXL (aka PCL6) 
    3335         
    34         - ESC/P2 
    35          
    3636        - DVI 
    3737         
    3838        - TIFF 
     39         
     40        - ESC/P2 
    3941         
    4042        - OpenDocument (ISO/IEC DIS 26300) 
     
    4244        - Zenographics ZjStream 
    4345         
    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.         
     46The three latter ones, as well as some TIFF documents, are currently  
     47only supported in page counting mode.  
    5648 
    5749By default, when launched pkpgcounter prints on its standard output  
     
    6456representing the files to parse. 
    6557 
    66 See pkpgcounter --help for details. 
     58See pkpgcounter --help for details and examples. 
    6759 
    6860============================================================================= 
     
    10698software which must be installed. These third party software are : 
    10799 
    108         - GhostScript. 
     100        - GhostScript (this one is needed for all file formats). 
    109101         
    110         - The Python Imaging Library (PIL). 
     102        - The Python Imaging Library, aka PIL (this one is needed for all 
     103          file formats). 
    111104         
     105        - GhostPCL (this one is needed for the PCL3/4/5 and PCLXL formats) 
     106           
    112107        - The LaTeX typesetting software, in particular the dvips command 
    113           (this one is only needed for the DVI file format). 
     108          (this one is needed for the DVI file format). 
    114109         
    115110=============================================================================