1pdfdetach(1) General Commands Manual pdfdetach(1)
2
3
4
6 pdfdetach - Portable Document Format (PDF) document embedded file
7 extractor (version 3.03)
8
10 pdfdetach [options] [PDF-file]
11
13 Pdfdetach lists or extracts embedded files (attachments) from a Porta‐
14 ble Document Format (PDF) file.
15
17 Some of the following options can be set with configuration file com‐
18 mands. These are listed in square brackets with the description of the
19 corresponding command line option.
20
21 -list List all of the embedded files in the PDF file. File names are
22 converted to the text encoding specified by the "-enc" switch.
23
24 -save number
25 Save the specified embedded file. By default, this uses the
26 file name associated with the embedded file (as printed by the
27 "-list" switch); the file name can be changed with the "-o"
28 switch.
29
30 -saveall
31 Save all of the embedded files. This uses the file names asso‐
32 ciated with the embedded files (as printed by the "-list"
33 switch). By default, the files are saved in the current direc‐
34 tory; this can be changed with the "-o" switch.
35
36 -o path
37 Set the file name used when saving an embedded file with the
38 "-save" switch, or the directory used by "-saveall".
39
40 -enc encoding-name
41 Sets the encoding to use for text output (embedded file names).
42 This defaults to "UTF-8".
43
44 -opw password
45 Specify the owner password for the PDF file. Providing this
46 will bypass all security restrictions.
47
48 -upw password
49 Specify the user password for the PDF file.
50
51 -v Print copyright and version information.
52
53 -h Print usage information. (-help and --help are equivalent.)
54
56 The Xpdf tools use the following exit codes:
57
58 0 No error.
59
60 1 Error opening a PDF file.
61
62 2 Error opening an output file.
63
64 3 Error related to PDF permissions.
65
66 99 Other error.
67
69 The pdfinfo software and documentation are copyright 1996-2011 Glyph &
70 Cog, LLC.
71
73 pdffonts(1), pdfimages(1), pdfinfo(1), pdftocairo(1), pdftohtml(1),
74 pdftoppm(1), pdftops(1), pdftotext(1) pdfseparate(1), pdfsig(1), pdfu‐
75 nite(1)
76
77
78
79 15 August 2011 pdfdetach(1)