Changeset 323 for pkpgcounter/trunk
- Timestamp:
- 02/15/06 20:21:48 (19 years ago)
- Location:
- pkpgcounter/trunk
- Files:
-
- 3 modified
Legend:
- Unmodified
- Added
- Removed
-
pkpgcounter/trunk/man/pkpgcounter.1
r321 r323 1 .\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.3 6.1 .\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.35. 2 2 .TH PKPGCOUNTER "1" "February 2006" "C@LL - Conseil Internet & Logiciels Libres" "User Commands" 3 3 .SH NAME 4 pkpgcounter \- manual page for pkpgcounter 1.7 84 pkpgcounter \- manual page for pkpgcounter 1.79 5 5 .SH DESCRIPTION 6 pkpgcounter v1.7 8(c) 2003, 2004, 2005, 2006 Jerome Alet6 pkpgcounter v1.79 (c) 2003, 2004, 2005, 2006 Jerome Alet 7 7 .PP 8 8 pkpgcounter is a generic Page Description Language parser. -
pkpgcounter/trunk/pkpgpdls/postscript.py
r321 r323 86 86 notrust = 0 87 87 prescribe = 0 # Kyocera's Prescribe commands 88 88 acrobatmarker = 0 89 89 for line in self.infile.xreadlines() : 90 90 if (not prescribe) and line.startswith(r"%%BeginResource: procset pdf") \ 91 91 and not acrobatmarker : 92 92 notrust = 1 # Let this stuff be managed by GhostScript, but we still extract number of copies 93 94 93 elif line.startswith(r"%ADOPrintSettings: L3") : 94 acrobatmarker = 1 95 95 elif line.startswith("!R!") : 96 96 prescribe = 1 … … 100 100 newpagenum = int(line.split(']')[0].split()[1]) 101 101 except : 102 pass 103 else : 102 notinteger = 1 # It seems that sometimes it's not an integer but an EPS file name 103 else : 104 notinteger = 0 104 105 if newpagenum == oldpagenum : 105 106 proceed = 0 106 107 else : 107 108 oldpagenum = newpagenum 108 if proceed :109 if proceed and not notinteger : 109 110 pagecount += 1 110 111 self.pages[pagecount] = { "copies" : self.pages[pagecount-1]["copies"] } -
pkpgcounter/trunk/pkpgpdls/version.py
r321 r323 20 20 # 21 21 22 __version__ = "1.7 8"22 __version__ = "1.79" 23 23 24 24 __doc__ = """pkpgcounter : a generic Page Description Languages parser."""