Changeset 555 for pkpgcounter/trunk/pkpgpdls/pdf.py
- Timestamp:
- 12/09/07 15:26:15 (17 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
pkpgcounter/trunk/pkpgpdls/pdf.py
r527 r555 46 46 required = [ "gs" ] 47 47 openmode = "rU" 48 format = "PDF" 48 49 def isValid(self) : 49 50 """Returns True if data is PDF, else False.""" … … 52 53 ((self.firstblock[:128].find("\033%-12345X") != -1) and (self.firstblock.upper().find("LANGUAGE=PDF") != -1)) or \ 53 54 (self.firstblock.find("%PDF-") != -1) : 54 self.logdebug("DEBUG: Input file is in the PDF format.")55 55 return True 56 56 else :