Changeset 526 for pkpgcounter/trunk/pkpgpdls/ooo.py
- Timestamp:
- 11/28/07 16:53:05 (17 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
pkpgcounter/trunk/pkpgpdls/ooo.py
r522 r526 30 30 class Parser(pdlparser.PDLParser) : 31 31 """A parser for OpenOffice.org documents.""" 32 totiffcommands = [ 'xvfb-run -a abiword --import-extension=.odt --print="| gs -sDEVICE=tiff24nc -dPARANOIDSAFER -dNOPAUSE -dBATCH -dQUIET -r\"%(dpi)i\" -sOutputFile=\"%(outfname)s\" -" "%(infname)s"' ] 32 33 def isValid(self) : 33 34 """Returns True if data is OpenDocument, else False.""" 34 35 if self.firstblock[:2] == "PK" : 35 36 try : 36 self.archive = zipfile.ZipFile(self. infile)37 self.archive = zipfile.ZipFile(self.filename) 37 38 self.contentxml = self.archive.read("content.xml") 38 39 self.metaxml = self.archive.read("meta.xml")