Changeset 387 for pkpgcounter/trunk/pkpgpdls/escp2.py
- Timestamp:
- 09/05/06 23:44:49 (18 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
pkpgcounter/trunk/pkpgpdls/escp2.py
r357 r387 31 31 """A parser for ESC/P2 documents.""" 32 32 def isValid(self) : 33 """Returns 1 if data is ESC/P2, else 0."""33 """Returns True if data is ESC/P2, else False.""" 34 34 if self.firstblock.startswith("\033@") or \ 35 35 self.firstblock.startswith("\033*") or \ … … 37 37 self.firstblock.startswith("\0\0\0\033\1@EJL") : # ESC/P Raster ??? Seen on Stylus Photo 1284 38 38 self.logdebug("DEBUG: Input file is in the ESC/P2 format.") 39 return 139 return True 40 40 else : 41 return 041 return False 42 42 43 43 def getJobSize(self) :