Show
Ignore:
Timestamp:
09/13/05 10:07:37 (19 years ago)
Author:
jerome
Message:

Improved postscript parser wrt number of copies

Files:
1 modified

Legend:

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

    r256 r261  
    8383            if line.startswith(r"%%Page: ") : 
    8484                pagecount += 1 
    85                 pages[pagecount] = { "copies" : 1 } 
     85                pages[pagecount] = { "copies" : pages[pagecount-1]["copies"] } 
    8686            elif line.startswith(r"(%%[Page: ") : 
    8787                pagecount += 1 
    88                 pages[pagecount] = { "copies" : 1 } 
     88                pages[pagecount] = { "copies" : pages[pagecount-1]["copies"] } 
    8989            elif line.startswith(r"%%Requirements: numcopies(") :     
    9090                try :