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 -savefile filename
31 Save the specified embedded file. By default, this uses the
32 file name associated with the embedded file (as printed by the
33 "-list" switch); the file name can be changed with the "-o"
34 switch.
35
36 -saveall
37 Save all of the embedded files. This uses the file names asso‐
38 ciated with the embedded files (as printed by the "-list"
39 switch). By default, the files are saved in the current direc‐
40 tory; this can be changed with the "-o" switch.
41
42 -o path
43 Set the file name used when saving an embedded file with the
44 "-save" switch, or the directory used by "-saveall".
45
46 -enc encoding-name
47 Sets the encoding to use for text output (embedded file names).
48 This defaults to "UTF-8".
49
50 -opw password
51 Specify the owner password for the PDF file. Providing this
52 will bypass all security restrictions.
53
54 -upw password
55 Specify the user password for the PDF file.
56
57 -v Print copyright and version information.
58
59 -h Print usage information. (-help and --help are equivalent.)
60
62 The Xpdf tools use the following exit codes:
63
64 0 No error.
65
66 1 Error opening a PDF file.
67
68 2 Error opening an output file.
69
70 3 Error related to PDF permissions.
71
72 99 Other error.
73
75 The pdfinfo software and documentation are copyright 1996-2011 Glyph &
76 Cog, LLC.
77
79 pdffonts(1), pdfimages(1), pdfinfo(1), pdftocairo(1), pdftohtml(1),
80 pdftoppm(1), pdftops(1), pdftotext(1) pdfseparate(1), pdfsig(1), pdfu‐
81 nite(1)
82
83
84
85 15 August 2011 pdfdetach(1)