Show
Ignore:
Timestamp:
02/08/06 09:31:42 (18 years ago)
Author:
jerome
Message:

1.76 is out.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • pkpgcounter/trunk/pkpgpdls/postscript.py

    r308 r314  
    8585        previousline = "" 
    8686        notrust = 0 
    87         kpdl = 0 # Kyocera Mita 
     87        prescribe = 0 # Kyocera's Prescribe commands 
    8888        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") : 
    9090                notrust = 1 # Let this stuff be managed by GhostScript, but we still extract number of copies 
    91             elif line.startswith("/KPDLBASE") : 
    92                 kpdl = 1 
     91            elif line.startswith("!R!") : 
     92                prescribe = 1 
    9393            elif line.startswith(r"%%Page: ") or line.startswith(r"(%%[Page: ") : 
    9494                proceed = 1