Show
Ignore:
Timestamp:
09/15/05 09:37:46 (19 years ago)
Author:
jerome
Message:

Improved the PCL3/4/5 parser a bit.

Files:
1 modified

Legend:

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

    r258 r262  
    309309            sys.stderr.write("escstart : %s\n" % escstart) 
    310310         
    311         if resets == ejects == mediasourcecount == mediasizecount == escstart == 1 : 
    312             pagecount = orientationcount 
     311        if pagecount and (pagecount == orientationcount) : 
     312            pass 
     313        elif resets == ejects == mediasourcecount == mediasizecount == escstart == 1 : 
     314            if (startgfx and endgfx) and (startgfx != endgfx) : 
     315                pagecount = orientationcount 
     316            else :      
     317                pagecount += 1 
     318        elif (ejects == mediasourcecount == orientationcount) and (startgfx == endgfx) :      
     319            pass 
    313320        elif pagecount == mediasourcecount == escstart :  
    314321            pass        # should be OK.