← 返回命令列表

Linux command

pdfdetach 命令

文本

复制后可按需替换文件名、目录或参数。

常用示例

List

pdfdetach -list input.pdf

Save

pdfdetach -save 1 input.pdf

Example

pdfdetach -savefile filename input.pdf

Example

pdfdetach -saveall input.pdf

Example

pdfdetach -save 1 -o output.txt input.pdf

Example

pdfdetach -save 1 -upw password input.pdf

Example

pdfdetach -list -enc UTF-8 input.pdf

说明

pdfdetach lists or extracts embedded files (attachments) from a PDF file. It is part of the poppler-utils package.

参数

-list
List all embedded files in the PDF
-save NUMBER
Save embedded file by its index number
-savefile FILENAME
Save embedded file by its filename
-saveall
Save all embedded files using their original names
-o PATH
Set output file name or directory for saved files
-enc ENCODING
Specify text encoding for filenames (default: UTF-8)
-opw PASSWORD
Owner password for encrypted PDF
-upw PASSWORD
User password for encrypted PDF
-v
Display version information
-h, --help
Display usage information

FAQ

What is the pdfdetach command used for?

pdfdetach lists or extracts embedded files (attachments) from a PDF file. It is part of the poppler-utils package.

How do I run a basic pdfdetach example?

Run `pdfdetach -list input.pdf` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does -list do in pdfdetach?

List all embedded files in the PDF