Changeset 454 for pkpgcounter

Show
Ignore:
Timestamp:
06/22/07 12:59:10 (17 years ago)
Author:
jerome
Message:

Added some notes and debugging information

Location:
pkpgcounter/trunk/pkpgpdls
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • pkpgcounter/trunk/pkpgpdls/pclxl.py

    r449 r454  
    189189            # of copies is an unsigned 16 bits integer 
    190190            try : 
    191                 self.pages[self.pagecount]["copies"] = unpack(self.unpackShort, minfile[pos3-2:pos3])[0] 
     191                nbcopies = unpack(self.unpackShort, minfile[pos3-2:pos3])[0] 
     192                self.logdebug("Number of copies : %i" % nbcopies) 
     193                self.pages[self.pagecount]["copies"] = nbcopies 
    192194            except KeyError :     
    193195                self.logdebug("It looks like this PCLXL file is corrupted.") 
  • pkpgcounter/trunk/pkpgpdls/pjl.py

    r443 r454  
    2424"""This modules implements a really minimalist PJL parser.""" 
    2525 
     26# NOTES : QTY= is the number of collated copies for a job. 
     27# NOTES : COPIES= is the number of uncollated copies for each page of a job 
     28 
    2629import sys 
    2730 
     
    3740class PJLParser : 
    3841    """A parser for PJL documents. 
     42     
     43       Information extracted for bpl11897_PJL-Reference.pdf which was 
     44       downloaded from Hewlett-Packard's website. 
    3945     
    4046       Only extracts the PJL SET variables. Ignore other statements.