By Jetformat
The attachment is stored in the PDF catalog. Use this when distributing a supporting file with a document rather than displaying an attachment icon at a page location.
Steps
- Start with a local PDF. Replace the sample paths and identifiers with your own.
- Run the command below. Save to a new output path so the source remains available for comparison.
- Check the result as described below before using it in another job.
jetformat pdf attach book.pdf --file notes.txt -o attached.pdf
Options for this task
| Option | Meaning |
|---|---|
--file |
Path of the file to embed |
--output |
Output PDF path (required) |
Check the result
Run pdf attachments on the result and confirm the intended file is listed.
Notes and limits
This operation uses page-based credits. Review the billing guide before processing a large document.
The examples keep the original file. Add --force only when you intend to overwrite an existing output. Run jetformat pdf attach --help to compare options with your installed version.
See the pdf command reference for the surrounding workflow.