Show
Ignore:
Timestamp:
11/28/07 16:50:55 (17 years ago)
Author:
jerome
Message:

Added support for ink accounting of MS Word documents through abiword (because contrarily
to OpenOffice?.org it doesn't refuse to print to a file from the command line !)

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • pkpgcounter/trunk/pkpgpdls/mscrap.py

    r523 r525  
    3131class Parser(pdlparser.PDLParser) : 
    3232    """A parser for that MS crap thing.""" 
    33     totiffcommands = [ ] 
     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"' ] 
    3434    def isValid(self) :     
    3535        """Returns True if data is MS crap, else False.