Show
Ignore:
Timestamp:
09/07/05 20:30:56 (19 years ago)
Author:
jerome
Message:

Forgot to commit this afternoon !

Files:
1 modified

Legend:

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

    r256 r258  
    309309            sys.stderr.write("escstart : %s\n" % escstart) 
    310310         
    311 #        if not pagecount : 
    312 #            pagecount = (pagecount or ((resets - 3) * (resets > 2))) 
    313 #        else :     
    314 #            # here we add counters for other ways new pages may have 
    315 #            # been printed and ejected by the printer 
    316 #            pagecount += ejects + backsides 
    317 #         
    318 #        # now handle number of copies for each page (may differ). 
    319 #        # in duplex mode, number of copies may be sent only once. 
    320 #        for pnum in range(pagecount) : 
    321 #            # if no number of copies defined, take the preceding one else the one set before any page else 1. 
    322 #            page = pages.get(pnum, pages.get(pnum - 1, pages.get(0, { "copies" : 1 }))) 
    323 #            pagecount += (page["copies"] - 1) 
    324 #             
    325 #        # in PCL3 files, there's one Start Gfx tag per page 
    326 #        if ispcl3 : 
    327 #            if endgfx == int(startgfx / 2) : # special case for cdj1600 
    328 #                pagecount = endgfx  
    329 #            elif startgfx : 
    330 #                pagecount = startgfx 
    331 #            elif endgfx :     
    332 #                pagecount = endgfx 
    333                  
    334              
    335311        if resets == ejects == mediasourcecount == mediasizecount == escstart == 1 : 
    336312            pagecount = orientationcount 
     
    342318            pass 
    343319        elif (not startgfx) and (not endgfx) : 
    344             if ejects : 
    345                 pagecount = ejects 
     320            pass 
    346321        elif (resets == 2) and (startgfx == endgfx) and (mediasourcecount == 1) : 
    347322            pass