Show
Ignore:
Timestamp:
02/15/06 14:00:46 (19 years ago)
Author:
jerome
Message:

Launches gs less often when acroread is used to print.
v1.78 is out.

Files:
1 modified

Legend:

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

    r314 r321  
    8686        notrust = 0 
    8787        prescribe = 0 # Kyocera's Prescribe commands 
     88        acrobatmarker = 0 
    8889        for line in self.infile.xreadlines() :  
    89             if (not prescribe) and line.startswith(r"%%BeginResource: procset pdf") : 
     90            if (not prescribe) and line.startswith(r"%%BeginResource: procset pdf") \ 
     91               and not acrobatmarker : 
    9092                notrust = 1 # Let this stuff be managed by GhostScript, but we still extract number of copies 
     93            elif line.startswith(r"%ADOPrintSettings: L3") : 
     94                acrobatmarker = 1 
    9195            elif line.startswith("!R!") : 
    9296                prescribe = 1