Changeset 555 for pkpgcounter/trunk/pkpgpdls/mscrap.py
- Timestamp:
- 12/09/07 15:26:15 (17 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
pkpgcounter/trunk/pkpgpdls/mscrap.py
r529 r555 33 33 totiffcommands = [ 'xvfb-run -a abiword --import-extension=.doc --print="| gs -sDEVICE=tiff24nc -dPARANOIDSAFER -dNOPAUSE -dBATCH -dQUIET -r\"%(dpi)i\" -sOutputFile=\"%(outfname)s\" -" "%(infname)s"' ] 34 34 required = [ "xvfb-run", "xauth", "abiword", "gs" ] 35 format = "Microsoft shitty" 35 36 def isValid(self) : 36 37 """Returns True if data is MS crap, else False. … … 46 47 or self.firstblock.startswith("\x31\xbe\x00\x00") \ 47 48 or self.firstblock[2112:].startswith("MSWordDoc") : 48 self.logdebug("DEBUG: Input file seems to be in a Microsoft shitty file format.")49 49 # Here we do the missing test because all commands will be needed even in page counting mode 50 50 if self.isMissing(self.required) :