Files
cheatsheet-tldr/tldr/linux/pdfattach
2025-04-20 00:20:58 +00:00

27 lines
631 B
Plaintext

---
syntax: markdown
tags: [tldr, linux]
source: https://github.com/tldr-pages/tldr.git
---
# 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`