Show
Ignore:
Timestamp:
12/09/07 15:26:15 (16 years ago)
Author:
jerome
Message:

Each parser now has a 'format' attribute containing its short name.

Files:
1 modified

Legend:

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

    r527 r555  
    4646    required = [ "gs" ] 
    4747    openmode = "rU" 
     48    format = "PDF" 
    4849    def isValid(self) :     
    4950        """Returns True if data is PDF, else False.""" 
     
    5253           ((self.firstblock[:128].find("\033%-12345X") != -1) and (self.firstblock.upper().find("LANGUAGE=PDF") != -1)) or \ 
    5354           (self.firstblock.find("%PDF-") != -1) : 
    54             self.logdebug("DEBUG: Input file is in the PDF format.") 
    5555            return True 
    5656        else :