Changeset 555 for pkpgcounter/trunk/pkpgpdls/escp2.py
- Timestamp:
- 12/09/07 15:26:15 (17 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
pkpgcounter/trunk/pkpgpdls/escp2.py
r522 r555 29 29 class Parser(pdlparser.PDLParser) : 30 30 """A parser for ESC/P2 documents.""" 31 format = "ESC/P2" 31 32 def isValid(self) : 32 33 """Returns True if data is ESC/P2, else False.""" … … 35 36 self.firstblock.startswith("\n\033@") or \ 36 37 self.firstblock.startswith("\0\0\0\033\1@EJL") : # ESC/P Raster ??? Seen on Stylus Photo 1284 37 self.logdebug("DEBUG: Input file is in the ESC/P2 format.")38 38 return True 39 39 else :