Changeset 387 for pkpgcounter/trunk/pkpgpdls/qpdl.py
- Timestamp:
- 09/05/06 23:44:49 (18 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
pkpgcounter/trunk/pkpgpdls/qpdl.py
r386 r387 73 73 74 74 def isValid(self) : 75 """Returns 1 if data is PCLXL aka PCL6, else 0."""75 """Returns True if data is QPDL aka SPL2, else False.""" 76 76 if ((self.firstblock[:128].find("\033%-12345X") != -1) and \ 77 77 ((self.firstblock.find("LANGUAGE=QPDL") != -1) or \ 78 78 (self.firstblock.find("LANGUAGE = QPDL") != -1))) : 79 79 self.logdebug("DEBUG: Input file is in the QPDL (aka SPL2) format.") 80 return 180 return True 81 81 else : 82 return 082 return False 83 83 84 84 def beginPage(self, nextpos) :