Changeset 410 for pkpgcounter/trunk
- Timestamp:
- 09/13/06 11:40:37 (18 years ago)
- Location:
- pkpgcounter/trunk/pkpgpdls
- Files:
-
- 2 modified
Legend:
- Unmodified
- Added
- Removed
-
pkpgcounter/trunk/pkpgpdls/analyzer.py
r386 r410 30 30 31 31 import version, pdlparser, postscript, pdf, pcl345, pclxl, \ 32 escp2, dvi, tiff, ooo, zjstream, qpdl 32 escp2, dvi, tiff, ooo, zjstream, qpdl, spl1 33 33 import inkcoverage 34 34 … … 172 172 pdf, \ 173 173 qpdl, \ 174 spl1, \ 174 175 pcl345, \ 175 176 escp2, \ -
pkpgcounter/trunk/pkpgpdls/spl1.py
r409 r410 31 31 import pdlparser 32 32 import pjl 33 import version 33 34 34 35 ESCAPECHARS = (chr(0x1b), chr(0x24)) … … 112 113 else : 113 114 if not self.isbitmap : 114 raise pdlparser.PDLParserError, "Unfortunately this file format is incompletely recognized. Parsing aborted."115 raise pdlparser.PDLParserError, "Unfortunately SPL1 is incompletely recognized. Parsing aborted. Please report the problem to %s" % version.__authoremail__ 115 116 offset = unpack(self.unpackLong, minfile[pos:pos+4])[0] 116 117 sequencenum = unpack(self.unpackShort, minfile[pos+4:pos+6])[0] 117 118 codesop = " ".join([ "%02x" % ord(v) for v in minfile[pos+6:pos+12]]) 118 119 if codesop != "06 00 00 80 13 40" : 119 raise pdlparser.PDLParserError, "Unfortunately this file format is incompletely recognized. Parsing aborted." 120 self.logdebug("%08x ==> %04x ==> %s" % (pos, sequencenum, codesop)) 120 raise pdlparser.PDLParserError, "Unfortunately SPL1 is incompletely recognized. Parsing aborted. Please report the problem to %s" % version.__authoremail__ 121 121 if not sequencenum : 122 122 self.pagecount += 1