Changeset 246 for pkpgcounter
- Timestamp:
- 07/23/05 00:10:10 (19 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
pkpgcounter/trunk/pkpgpdls/pclxl.py
r245 r246 45 45 11 : "JB5", 46 46 12 : "B5Envelope", 47 12 : "B5", 47 48 14 : "JPostcard", 48 49 15 : "JDoublePostcard", … … 50 51 17 : "A6", 51 52 18 : "JB6", 53 19 : "JIS8K", 54 20 : "JIS16K", 55 21 : "JISExec", 56 96 : "Default", 52 57 } 53 58 … … 68 73 2 : "ReversePortrait", 69 74 3 : "ReverseLandscape", 75 4 : "Default", 70 76 } 71 77 … … 250 256 endpos = pos + 9 251 257 endmark = chr(0x0c) + chr(0x00) 252 while self.minfile[endpos] not in endmark : 258 asciilimit = chr(0x80) 259 while (self.minfile[endpos] not in endmark) and (self.minfile[endpos] < asciilimit) : 253 260 endpos += 1 254 261 … … 271 278 Protocol Class 2.0 272 279 http://www.hpdevelopersolutions.com/downloads/64/358/xl_ref20r22.pdf 280 281 Protocol Class 2.1 Supplement 282 xl_ref21.pdf 283 284 Protocol Class 3.0 Supplement 285 xl_refsup30r089.pdf 273 286 """ 274 287 self.iscolor = None … … 293 306 raise pdlparser.PDLParserError, "This file doesn't seem to be PCLXL (aka PCL6)" 294 307 308 # Initialize Media Sources 309 for i in range(8, 256) : 310 self.mediasources[i] = "ExternalTray%03i" % (i - 7) 311 295 312 # Initialize table of tags 296 313 self.tags = [ 0 ] * 256 … … 362 379 self.tags[0xbd] = self.reservedForFutureUse # reserved 363 380 self.tags[0xbe] = self.reservedForFutureUse # reserved 364 self.tags[0xbf] = self.reservedForFutureUse # reserved365 381 366 382 self.tags[0xc0] = 1 # ubyte