Debian Codegraph @

upstream/debian-unstable/man1/ps2ascii.1

raw
1 .TH PS2ASCII 1 "18 Sept 2024" 10.04.0 "Ghostscript Tools" \" -*- nroff -*-
2 .SH NAME
3 ps2ascii \- Ghostscript translator from PostScript or PDF to text
4 .SH SYNOPSIS
5 \fBps2ascii\fR [ \fIinput.ps\fR [ \fIoutput.txt\fR ] ]
6 .br
7 \fBps2ascii\fR \fIinput.pdf\fR [ \fIoutput.txt\fR ]
8 .SH DESCRIPTION
9 \fBps2ascii\fR uses \fBgs\fR(1) to extract text from
10 \fBPostScript\fR(tm) or Adobe \fBPortable Document Format\fR (PDF)
11 files. If no files are specified on the command line, \fBgs\fR reads from
12 standard input. If no output file is specified, the ASCII text is written
13 to standard output.
14 .PP
15 The old \fBps2ascii.ps\fR program was deprecated and removed some years
16 ago, the scripts now use the \fBtxtwrite\fR device to extract text from the
17 input. This does a generally better job than the old PostScript program
18 and can extract Unicode not just ASCII. However it no longer supports the
19 \fBCOMPLEX\fR feature.
20
21 .SH SEE ALSO
22 Further documentation on the txtwrite device can be found at
23 https://ghostscript.readthedocs.io/en/latest/Devices.html#text-output
24
25 .SH VERSION
26 This document was last revised for Ghostscript version 10.04.0.
27 .SH AUTHOR
28 Artifex Software, Inc. are the
29 primary maintainers of Ghostscript.
30 David M. Jones <[email protected]> made substantial improvements
31 to \fBps2ascii\fR.