Changeset 208 for pkpgcounter/trunk/pdlanalyzer/postscript.py
- Timestamp:
- 04/12/05 08:16:35 (20 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
pkpgcounter/trunk/pdlanalyzer/postscript.py
r202 r208 64 64 pagecount = 0 65 65 for line in self.infile.xreadlines() : 66 if line.startswith( "%%Page: ") :66 if line.startswith(r"%%Page: ") : 67 67 pagecount += 1 68 elif line.startswith( "%%Requirements: numcopies(") :68 elif line.startswith(r"%%Requirements: numcopies(") : 69 69 try : 70 70 number = int(line.strip().split('(')[1].split(')')[0]) … … 74 74 if number > self.copies : 75 75 self.copies = number 76 elif line.startswith( "%%BeginNonPPDFeature: NumCopies ") :76 elif line.startswith(r"%%BeginNonPPDFeature: NumCopies ") : 77 77 # handle # of copies set by some Windows printer driver 78 78 try :