Changeset 2053 for pykota/trunk
- Timestamp:
- 02/13/05 22:26:34 (20 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
pykota/trunk/pykota/pdlanalyzer.py
r2026 r2053 22 22 # 23 23 # $Log$ 24 # Revision 1.52 2005/02/13 21:26:34 jalet 25 # Better detection of number of copies in PostScript parser 26 # 24 27 # Revision 1.51 2005/01/12 14:44:27 jalet 25 28 # Fixed a fuckingly strange exception by cleverly ignoring it entirely :-) … … 252 255 if line.startswith("%%Page: ") : 253 256 pagecount += 1 257 elif line.startswith("%%Requirements: numcopies(") : 258 try : 259 number = int(line.strip().split('(')[1].split(')')[0]) 260 except : 261 pass 262 else : 263 if number > self.copies : 264 self.copies = number 254 265 elif line.startswith("%%BeginNonPPDFeature: NumCopies ") : 255 266 # handle # of copies set by some Windows printer driver