ps2ascii - Ghostscript translator from PostScript or PDF to text
Contents
Description
ps2ascii uses gs(1) to extract text from PostScript(tm) or Adobe PortableDocumentFormat (PDF) files. If
no files are specified on the command line, gs reads from standard input. If no output file is
specified, the ASCII text is written to standard output.
The old ps2ascii.ps program was deprecated and removed some years ago, the scripts now use the txtwrite
device to extract text from the input. This does a generally better job than the old PostScript program
and can extract Unicode not just ASCII. However it no longer supports the COMPLEX feature.
Name
ps2ascii - Ghostscript translator from PostScript or PDF to text
See Also
Further documentation on the txtwrite device can be found at
https://ghostscript.readthedocs.io/en/latest/Devices.html#text-output
Synopsis
ps2ascii [ input.ps [ output.txt ] ]
ps2asciiinput.pdf [ output.txt ]
Version
This document was last revised for Ghostscript version 10.04.0.
