Show
Ignore:
Timestamp:
02/15/06 20:21:48 (18 years ago)
Author:
jerome
Message:

Fixed a problem with PS files produced by dvips and embedded EPS figures.
v1.79 is out.

Location:
pkpgcounter/trunk/pkpgpdls
Files:
2 modified

Legend:

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

    r321 r323  
    8686        notrust = 0 
    8787        prescribe = 0 # Kyocera's Prescribe commands 
    88         acrobatmarker = 0 
     88        acrobatmarker = 0 
    8989        for line in self.infile.xreadlines() :  
    9090            if (not prescribe) and line.startswith(r"%%BeginResource: procset pdf") \ 
    91                and not acrobatmarker : 
     91               and not acrobatmarker : 
    9292                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 
     93            elif line.startswith(r"%ADOPrintSettings: L3") : 
     94                acrobatmarker = 1 
    9595            elif line.startswith("!R!") : 
    9696                prescribe = 1 
     
    100100                    newpagenum = int(line.split(']')[0].split()[1]) 
    101101                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 
    104105                    if newpagenum == oldpagenum : 
    105106                        proceed = 0 
    106107                    else : 
    107108                        oldpagenum = newpagenum 
    108                 if proceed :         
     109                if proceed and not notinteger :         
    109110                    pagecount += 1 
    110111                    self.pages[pagecount] = { "copies" : self.pages[pagecount-1]["copies"] } 
  • pkpgcounter/trunk/pkpgpdls/version.py

    r321 r323  
    2020# 
    2121 
    22 __version__ = "1.78" 
     22__version__ = "1.79" 
    2323 
    2424__doc__ = """pkpgcounter : a generic Page Description Languages parser."""