Debian Codegraph @

libs/xpdf/xpdf-src/doc/pdfdetach.1

raw
1 .\" Copyright 2013-2025 Glyph & Cog, LLC
2 .TH pdfdetach 1 "14 Nov 2025"
3 .SH NAME
4 pdfdetach \- Portable Document Format (PDF) document embedded file
5 extractor (version 4.06)
6 .SH SYNOPSIS
7 .B pdfdetach
8 [options]
9 .RI [ PDF-file ]
10 .SH DESCRIPTION
11 .B Pdfdetach
12 lists or extracts embedded files (attachments) from a Portable
13 Document Format (PDF) file.
14 .SH CONFIGURATION FILE
15 Pdfdetach reads a configuration file at startup. It first tries to
16 find the user's private config file, ~/.xpdfrc. If that doesn't
17 exist, it looks for a system-wide config file, typically /etc/xpdfrc
18 (but this location can be changed when pdfinfo is built). See the
19 .BR xpdfrc (5)
20 man page for details.
21 .SH OPTIONS
22 Some of the following options can be set with configuration file
23 commands. These are listed in square brackets with the description of
24 the corresponding command line option.
25 .TP
26 .B \-list
27 List all of the embedded files in the PDF file. File names are
28 converted to the text encoding specified by the "\-enc" switch.
29 .TP
30 .BI \-save " number"
31 Save the specified embedded file. By default, this uses the file name
32 associated with the embedded file (as printed by the "\-list" switch);
33 the file name can be changed with the "\-o" switch.
34 .TP
35 .BI \-saveall
36 Save all of the embedded files. This uses the file names associated
37 with the embedded files (as printed by the "\-list" switch). By
38 default, the files are saved in the current directory; this can be
39 changed with the "\-o" switch.
40 .TP
41 .BI \-o " path"
42 Set the file name used when saving an embedded file with the "\-save"
43 switch, or the directory used by "\-saveall".
44 .TP
45 .BI \-enc " encoding-name"
46 Sets the encoding to use for text output (embedded file names). The
47 .I encoding\-name
48 must be defined with the unicodeMap command (see
49 .BR xpdfrc (5)).
50 This defaults to "Latin1" (which is a built-in encoding).
51 .RB "[config file: " textEncoding ]
52 .TP
53 .BI \-opw " password"
54 Specify the owner password for the PDF file. Providing this will
55 bypass all security restrictions.
56 .TP
57 .BI \-upw " password"
58 Specify the user password for the PDF file.
59 .TP
60 .BI \-cfg " config-file"
61 Read
62 .I config-file
63 in place of ~/.xpdfrc or the system-wide config file.
64 .TP
65 .B \-v
66 Print copyright and version information.
67 .TP
68 .B \-h
69 Print usage information.
70 .RB ( \-help
71 and
72 .B \-\-help
73 are equivalent.)
74 .SH EXIT CODES
75 The Xpdf tools use the following exit codes:
76 .TP
77 0
78 No error.
79 .TP
80 1
81 Error opening a PDF file.
82 .TP
83 2
84 Error opening an output file.
85 .TP
86 3
87 Error related to PDF permissions.
88 .TP
89 98
90 Out of memory.
91 .TP
92 99
93 Other error.
94 .SH AUTHOR
95 The pdfinfo software and documentation are copyright 1996-2025 Glyph &
96 Cog, LLC.
97 .SH "SEE ALSO"
98 .BR xpdf (1),
99 .BR pdftops (1),
100 .BR pdftotext (1),
101 .BR pdftohtml (1),
102 .BR pdfinfo (1),
103 .BR pdffonts (1),
104 .BR pdftoppm (1),
105 .BR pdftopng (1),
106 .BR pdfimages (1),
107 .BR xpdfrc (5)
108 .br
109 .B http://www.xpdfreader.com/