Changeset 2316

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

Location:
pykota/trunk
Files:
3 modified

Legend:

Unmodified
Added
Removed
  • pykota/trunk/NEWS

    r2311 r2316  
    2222PyKota NEWS : 
    2323        
     24    - 1.23alpha11 : 
     25     
     26        - Small fix to the PCL3/4/5 parser for some drivers. 
     27         
    2428    - 1.23alpha10 : 
    2529     
  • 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) 
  • pykota/trunk/pykota/version.py

    r2311 r2316  
    2222# 
    2323 
    24 __version__ = "1.23alpha10_unofficial" 
     24__version__ = "1.23alpha11_unofficial" 
    2525 
    2626__doc__ = "PyKota : a complete Printing Quota Solution for CUPS and LPRng."