ps2ascii(1)

ps2ascii1

Ghostscript translator from postscript or pdf to text

Usage

ps2ascii [input.ps [output.txt]]

ps2ascii input.pdf [output.txt]

Overview

ps2ascii uses gs(1) to extract text from PostScript(tm) or Adobe Portable Document Format (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.

Version

This document was last revised for Ghostscript version 10.04.0.

Releases

16 releases since Debian 2.0 (Hamm); the text changed 13 times.

  1. 2.0
  2. 2.1–2.2
  3. 3.0
  4. 3.1
  5. 4.0
  6. 5.0
  7. 6.0
  8. 7
  9. 8
  10. 9
  11. 10
  12. 11
  13. 12
  14. 13–Arch

Author

Artifex Software, Inc. are the primary maintainers of Ghostscript. David M. Jones <[email protected]> made substantial improvements to ps2ascii.

From ghostscript 10.08.0-1 in Arch Linux 2026-11-01. Parsed by carta from the page's man source.