Changeset 308
- Timestamp:
- 02/07/06 10:36:13 (19 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
pkpgcounter/trunk/pkpgpdls/postscript.py
r303 r308 85 85 previousline = "" 86 86 notrust = 0 87 kpdl = 0 # Kyocera Mita 87 88 for line in self.infile.xreadlines() : 88 if line.startswith(r"%%BeginResource: procset pdf") :89 if (not kpdl) and line.startswith(r"%%BeginResource: procset pdf") : 89 90 notrust = 1 # Let this stuff be managed by GhostScript, but we still extract number of copies 91 elif line.startswith("/KPDLBASE") : 92 kpdl = 1 90 93 elif line.startswith(r"%%Page: ") or line.startswith(r"(%%[Page: ") : 91 94 proceed = 1