1pdftotext(1)                General Commands Manual               pdftotext(1)
2
3
4

NAME

6       pdftotext  -  Portable Document Format (PDF) to text converter (version
7       3.03)
8

SYNOPSIS

10       pdftotext [options] [PDF-file [text-file]]
11

DESCRIPTION

13       Pdftotext converts Portable Document Format (PDF) files to plain text.
14
15       Pdftotext reads the PDF file, PDF-file, and writes a text  file,  text-
16       file.   If  text-file  is not specified, pdftotext converts file.pdf to
17       file.txt.  If text-file is ´-', the text is sent to stdout.
18

OPTIONS

20       -f number
21              Specifies the first page to convert.
22
23       -l number
24              Specifies the last page to convert.
25
26       -r number
27              Specifies the resolution, in DPI.  The default is 72 DPI.
28
29       -x number
30              Specifies the x-coordinate of the crop area top left corner
31
32       -y number
33              Specifies the y-coordinate of the crop area top left corner
34
35       -W number
36              Specifies the width of crop area in pixels (default is 0)
37
38       -H number
39              Specifies the height of crop area in pixels (default is 0)
40
41       -layout
42              Maintain (as best as possible) the original physical  layout  of
43              the  text.   The  default is to ´undo' physical layout (columns,
44              hyphenation, etc.) and output the text in reading order.
45
46       -fixed number
47              Assume fixed-pitch (or tabular) text, with the specified charac‐
48              ter width (in points).  This forces physical layout mode.
49
50       -raw   Keep  the  text  in  content stream order.  This is a hack which
51              often "undoes" column formatting, etc.  Use of raw  mode  is  no
52              longer recommended.
53
54       -htmlmeta
55              Generate  a  simple  HTML  file, including the meta information.
56              This simply wraps the text in <pre> and </pre> and prepends  the
57              meta headers.
58
59       -bbox  Generate  an  XHTML file containing bounding box information for
60              each word in the file.
61
62       -bbox-layout
63              Generate an XHTML file containing bounding box  information  for
64              each block, line, and word in the file.
65
66       -enc encoding-name
67              Sets  the  encoding  to  use  for  text output. This defaults to
68              "UTF-8".
69
70       -listenc
71              Lits the available encodings
72
73       -eol unix | dos | mac
74              Sets the end-of-line convention to use for text output.
75
76       -nopgbrk
77              Don't insert page breaks (form feed characters) between pages.
78
79       -opw password
80              Specify the owner password for the  PDF  file.   Providing  this
81              will bypass all security restrictions.
82
83       -upw password
84              Specify the user password for the PDF file.
85
86       -q     Don't print any messages or errors.
87
88       -v     Print copyright and version information.
89
90       -h     Print usage information.  (-help and --help are equivalent.)
91

BUGS

93       Some  PDF  files contain fonts whose encodings have been mangled beyond
94       recognition.  There is no way (short of OCR) to extract text from these
95       files.
96

EXIT CODES

98       The Xpdf tools use the following exit codes:
99
100       0      No error.
101
102       1      Error opening a PDF file.
103
104       2      Error opening an output file.
105
106       3      Error related to PDF permissions.
107
108       99     Other error.
109

AUTHOR

111       The  pdftotext software and documentation are copyright 1996-2011 Glyph
112       & Cog, LLC.
113

SEE ALSO

115       pdfdetach(1),  pdffonts(1),  pdfimages(1),  pdfinfo(1),  pdftocairo(1),
116       pdftohtml(1), pdftoppm(1), pdftops(1), pdfseparate(1), pdfsig(1), pdfu‐
117       nite(1)
118
119
120
121                                15 August 2011                    pdftotext(1)
Impressum