LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

pdfattach

adds a new embedded file to an existing PDF file

TLDR

Add attachment to PDF
$ pdfattach input.pdf file_to_attach output.pdf
copy
Replace existing attachment with same name
$ pdfattach -replace input.pdf file_to_attach output.pdf
copy
Display help
$ pdfattach --help
copy
Display version
$ pdfattach -v
copy

SYNOPSIS

pdfattach [options] PDF-file file-to-attach output-PDF-file

DESCRIPTION

pdfattach adds a new embedded file (attachment) to an existing PDF file. The attachment is stored inside the PDF and can be extracted using pdfdetach.

PARAMETERS

-replace

Replace an existing attachment with the same name if it exists
-h, --help
Display usage information
-v
Display version information

INSTALL

sudo apt install poppler-utils
copy
sudo dnf install poppler-utils
copy
sudo apk add poppler-utils
copy
nix profile install nixpkgs#poppler-utils
copy

CAVEATS

The original PDF file is not modified; a new output file is created with the attachment. To update a file in place, output to a temporary file and then rename it.

HISTORY

pdfattach is part of poppler-utils, a set of command-line utilities based on the Poppler PDF rendering library for working with PDF files.

SEE ALSO

Braincup
Open source brain training for math, memory and focus
Braincup mini-games
41 mini-games · Apache-2.0
No ads · No tracking
Play in browser
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid
276 stars
From the maker of Linux Command Library
Copied to clipboard
Braincup
Open source brain training for math, memory and focus. 41 mini-games, from mental arithmetic to Sudoku, N-Back and Solo Chess.
Apache-2.0 licensed · No ads · No tracking · No account
From the maker of Linux Command Library
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid