Changeset 1683
- Timestamp:
- 08/27/04 11:08:22 (20 years ago)
- Location:
- pykota/trunk
- Files:
-
- 2 modified
Legend:
- Unmodified
- Added
- Removed
-
pykota/trunk/NEWS
r1681 r1683 24 24 - 1.20alpha3 : 25 25 26 - Small improvement in PostScript parser to avoid being 27 fooled by a change in number of copies : 28 The user can't ask for 200 copies of page 1 and 1 copy 29 of page 2 to fool PyKota anymore : 30 this would have been accounted for as 1 copy only, but 31 now the maximum value seen is used. 32 26 33 - Relax checks for PCL5 header to accomodate some strange 27 34 printer drivers. -
pykota/trunk/pykota/pdlanalyzer.py
r1682 r1683 22 22 # 23 23 # $Log$ 24 # Revision 1.34 2004/08/27 09:08:22 jalet 25 # Improvement in PostScript parser to avoid being fooled by clever "students" 26 # 24 27 # Revision 1.33 2004/08/27 09:02:34 jalet 25 28 # Forgot to remove some special debugging code... … … 197 200 pass 198 201 else : 199 if number > 1:202 if number > self.copies : 200 203 self.copies = number 201 204 elif line.startswith("1 dict dup /NumCopies ") : … … 206 209 pass 207 210 else : 208 if number > 1:211 if number > self.copies : 209 212 self.copies = number 210 213 return pagecount * self.copies