Changeset 205
- Timestamp:
- 04/08/05 01:16:29 (20 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
pkpgcounter/trunk/pdlanalyzer/pclxl.py
r202 r205 132 132 return 0 133 133 134 def setColorSpace(self) : 135 """Changes the color space.""" 136 if self.minfile[self.pos-4:self.pos-1] == (chr(0x02) + chr(0xf8) + chr(0x03)) : 137 self.isColor = 1 138 return 0 139 134 140 def array_8(self) : 135 141 """Handles byte arrays.""" … … 230 236 http://www.hpdevelopersolutions.com/downloads/64/358/xl_ref20r22.pdf 231 237 """ 238 self.isColor = None 232 239 self.endianness = None 233 240 found = 0 … … 260 267 self.tags[0x43] = self.beginPage # BeginPage 261 268 self.tags[0x44] = self.endPage # EndPage 269 270 self.tags[0x6a] = self.setColorSpace 262 271 263 272 self.tags[0xc0] = 1 # ubyte … … 317 326 318 327 # now handle number of copies for each page (may differ). 328 if self.debug : 329 sys.stderr.write("Color mode : %s\n" % self.isColor) 319 330 for pnum in range(1, self.pagecount + 1) : 320 331 # if no number of copies defined, take 1, as explained