unpack_files
Unpack file attachments
Usage
pdftl
<input>unpack_files[output<dir>]
Details
The unpack_files operation unpacks files attached to the input
PDF file, if there are any. The directory to save attachments in
defaults to the working directory, any may be controlled by adding
output <directory>.
Warning This command will silently overwrite any existing files with clashing filenames.
Examples
Save all files attached to a.pdf in the current directory
pdftl a.pdf unpack_files
Save all files attached to a.pdf in /tmp/
pdftl a.pdf unpack_files output /tmp/
Prompt for a directory in which to save all files attached to a.pdf
pdftl a.pdf unpack_files output PROMPT
Tags: attachments
Source: pdftl.operations.attachments
Read online: https://pdftl.readthedocs.io/en/stable/operations/unpack_files.html
Type: Operation