Changeset 454
- Timestamp:
- 06/22/07 12:59:10 (17 years ago)
- Location:
- pkpgcounter/trunk/pkpgpdls
- Files:
-
- 2 modified
Legend:
- Unmodified
- Added
- Removed
-
pkpgcounter/trunk/pkpgpdls/pclxl.py
r449 r454 189 189 # of copies is an unsigned 16 bits integer 190 190 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 192 194 except KeyError : 193 195 self.logdebug("It looks like this PCLXL file is corrupted.") -
pkpgcounter/trunk/pkpgpdls/pjl.py
r443 r454 24 24 """This modules implements a really minimalist PJL parser.""" 25 25 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 26 29 import sys 27 30 … … 37 40 class PJLParser : 38 41 """A parser for PJL documents. 42 43 Information extracted for bpl11897_PJL-Reference.pdf which was 44 downloaded from Hewlett-Packard's website. 39 45 40 46 Only extracts the PJL SET variables. Ignore other statements.