Changeset 387 for pkpgcounter/trunk/pkpgpdls/pdf.py
- Timestamp:
- 09/05/06 23:44:49 (18 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
pkpgcounter/trunk/pkpgpdls/pdf.py
r371 r387 45 45 totiffcommand = 'gs -sDEVICE=tiff24nc -dPARANOIDSAFER -dNOPAUSE -dBATCH -dQUIET -r%(dpi)i -sOutputFile="%(fname)s" -' 46 46 def isValid(self) : 47 """Returns 1 if data is PDF, else 0."""47 """Returns True if data is PDF, else False.""" 48 48 if self.firstblock.startswith("%PDF-") or \ 49 49 self.firstblock.startswith("\033%-12345X%PDF-") or \ … … 51 51 (self.firstblock.find("%PDF-") != -1) : 52 52 self.logdebug("DEBUG: Input file is in the PDF format.") 53 return 153 return True 54 54 else : 55 return 055 return False 56 56 57 57 def getJobSize(self) :