Source code for textract.parsers.ps_parser

from ..shell import run


[docs]def extract(filename, **kwargs): """Extract text from postscript files using pstotext command. """ stdout, stderr = run('pstotext %(filename)s' % locals()) return stdout