Show
Ignore:
Timestamp:
02/07/06 10:36:13 (19 years ago)
Author:
jerome
Message:

Does not launch ghostscript in the case the page description language used
is KPDL (Kyocera Mita "enhanced" PostScript?) : it is not needed since
the internal parser is OK.

Files:
1 modified

Legend:

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

    r303 r308  
    8585        previousline = "" 
    8686        notrust = 0 
     87        kpdl = 0 # Kyocera Mita 
    8788        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") : 
    8990                notrust = 1 # Let this stuff be managed by GhostScript, but we still extract number of copies 
     91            elif line.startswith("/KPDLBASE") : 
     92                kpdl = 1 
    9093            elif line.startswith(r"%%Page: ") or line.startswith(r"(%%[Page: ") : 
    9194                proceed = 1