Changeset 478 for pkpgcounter/trunk/pkpgpdls/pclxl.py
- Timestamp:
- 09/29/07 07:13:02 (17 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
pkpgcounter/trunk/pkpgpdls/pclxl.py
r463 r478 83 83 def isValid(self) : 84 84 """Returns True if data is PCLXL aka PCL6, else False.""" 85 if (( self.firstblock[:128].find("\033%-12345X") != -1) and \85 if (((self.firstblock[:128].find("\033%-12345X") != -1) and \ 86 86 (self.firstblock.find(" HP-PCL XL;") != -1) and \ 87 87 ((self.firstblock.find("LANGUAGE=PCLXL") != -1) or \ 88 (self.firstblock.find("LANGUAGE = PCLXL") != -1))) : 88 (self.firstblock.find("LANGUAGE = PCLXL") != -1)))) \ 89 or ((self.firstblock.startswith(chr(0xcd)+chr(0xca)) and (self.firstblock.find(" HP-PCL XL;") != -1))) : 89 90 self.logdebug("DEBUG: Input file is in the PCLXL (aka PCL6) format.") 90 91 return True