Show
Ignore:
Timestamp:
06/15/05 20:44:13 (19 years ago)
Author:
jerome
Message:

Small fix for the PCL3/4/5 parser because of some drivers

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • pykota/trunk/pykota/pdlanalyzer.py

    r2302 r2316  
    467467#                pagecount = endgfx 
    468468                 
    469              
    470469        if pagecount == mediasourcecount == escstart :  
    471470            pass        # should be OK. 
     
    476475        elif startgfx == (endgfx - 1) :     
    477476            pagecount = startgfx 
     477        elif (startgfx == 1) and not endgfx :     
     478            pass 
    478479        else :     
    479480            pagecount = abs(startgfx - endgfx) 
     
    972973        # Try to detect file type by reading first block of datas     
    973974        self.infile.seek(0) 
    974         firstblock = self.infile.read(4 * KILOBYTE) 
     975        firstblock = self.infile.read(16 * KILOBYTE) 
    975976        try : 
    976977            self.infile.seek(-LASTBLOCKSIZE, 2)