Changeset 314 for pkpgcounter/trunk/pkpgpdls/postscript.py
- Timestamp:
- 02/08/06 09:31:42 (19 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
pkpgcounter/trunk/pkpgpdls/postscript.py
r308 r314 85 85 previousline = "" 86 86 notrust = 0 87 kpdl = 0 # Kyocera Mita87 prescribe = 0 # Kyocera's Prescribe commands 88 88 for line in self.infile.xreadlines() : 89 if (not kpdl) and line.startswith(r"%%BeginResource: procset pdf") :89 if (not prescribe) and line.startswith(r"%%BeginResource: procset pdf") : 90 90 notrust = 1 # Let this stuff be managed by GhostScript, but we still extract number of copies 91 elif line.startswith(" /KPDLBASE") :92 kpdl= 191 elif line.startswith("!R!") : 92 prescribe = 1 93 93 elif line.startswith(r"%%Page: ") or line.startswith(r"(%%[Page: ") : 94 94 proceed = 1