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       -enc encoding-name
63              Sets the encoding to use  for  text  output.  This  defaults  to
64              "UTF-8".
65
66       -listenc
67              Lits the available encodings
68
69       -eol unix | dos | mac
70              Sets the end-of-line convention to use for text output.
71
72       -nopgbrk
73              Don't insert page breaks (form feed characters) between pages.
74
75       -opw password
76              Specify  the  owner  password  for the PDF file.  Providing this
77              will bypass all security restrictions.
78
79       -upw password
80              Specify the user password for the PDF file.
81
82       -q     Don't print any messages or errors.
83
84       -v     Print copyright and version information.
85
86       -h     Print usage information.  (-help and --help are equivalent.)
87

BUGS

89       Some PDF files contain fonts whose encodings have been  mangled  beyond
90       recognition.  There is no way (short of OCR) to extract text from these
91       files.
92

EXIT CODES

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

AUTHOR

107       The pdftotext software and documentation are copyright 1996-2011  Glyph
108       & Cog, LLC.
109

SEE ALSO

111       pdfdetach(1),  pdffonts(1),  pdfimages(1),  pdfinfo(1),  pdftocairo(1),
112       pdftohtml(1), pdftoppm(1), pdftops(1)
113
114
115
116                                15 August 2011                    pdftotext(1)
Impressum