PCQRSCANER/venv/Lib/site-packages/textract/parsers/ps_parser.py

11 lines
253 B
Python
Raw Normal View History

2019-12-22 21:51:47 +01:00
from .utils import ShellParser
class Parser(ShellParser):
"""Extract text from postscript files using ps2ascii command.
"""
def extract(self, filename, **kwargs):
stdout, _ = self.run(['ps2ascii', filename])
return stdout