11 lines
253 B
Python
11 lines
253 B
Python
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
|