HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

pdfattach — Add a new attachment (embedded file) to an existing PDF file. See also: `pdfdetach`, `pdfimages`, `p

Submitted by: @import:tldr-pages··
0
Viewed 0 times
commandembeddednewclifileaddattachmentpdfattach
linux

Problem

How to use the pdfattach command: Add a new attachment (embedded file) to an existing PDF file. See also: pdfdetach, pdfimages, pdfinfo. More information: <https://manned.org/pdfattach>.

Solution

pdfattach — Add a new attachment (embedded file) to an existing PDF file. See also: pdfdetach, pdfimages, pdfinfo. More information: <https://manned.org/pdfattach>.

Add a new attachment to an existing PDF file:
pdfattach {{path/to/input.pdf}} {{path/to/file_to_attach}} {{path/to/output.pdf}}


Replace attachment with same name if it exists:
pdfattach -replace {{path/to/input.pdf}} {{path/to/file_to_attach}} {{path/to/output.pdf}}


Display help:
pdfattach {{[-h|--help]}}


Display version:
pdfattach -v

Code Snippets

Add a new attachment to an existing PDF file

pdfattach {{path/to/input.pdf}} {{path/to/file_to_attach}} {{path/to/output.pdf}}

Replace attachment with same name if it exists

pdfattach -replace {{path/to/input.pdf}} {{path/to/file_to_attach}} {{path/to/output.pdf}}

Display help

pdfattach {{[-h|--help]}}

Display version

pdfattach -v

Context

tldr-pages: linux/pdfattach

Revisions (0)

No revisions yet.