Changeset 387 for pkpgcounter/trunk/pkpgpdls/postscript.py
- Timestamp:
- 09/05/06 23:44:49 (18 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
pkpgcounter/trunk/pkpgpdls/postscript.py
r384 r387 36 36 totiffcommand = 'gs -sDEVICE=tiff24nc -dPARANOIDSAFER -dNOPAUSE -dBATCH -dQUIET -r%(dpi)i -sOutputFile="%(fname)s" -' 37 37 def isValid(self) : 38 """Returns 1 if data is PostScript, else 0."""38 """Returns True if data is PostScript, else False.""" 39 39 if self.firstblock.startswith("%!") or \ 40 40 self.firstblock.startswith("\004%!") or \ … … 46 46 (self.firstblock.find("%!PS-Adobe") != -1) : 47 47 self.logdebug("DEBUG: Input file is in the PostScript format.") 48 return 148 return True 49 49 else : 50 return 050 return False 51 51 52 52 def throughGhostScript(self) :