pdfcpu

Logo

A PDF processor written in Go.

View the Project on GitHub pdfcpu/pdfcpu


Changelog

Add Attachments

This command embeds one or more files by attaching them to a PDF input file. Have a look at some examples.

Usage

pdfcpu attachments add inFile file... [flags]

Common Flags


Arguments

namedescriptionrequired
inFilePDF input fileyes
file…one or more files to be attachedyes

Examples

Attach pictures to a coverpage PDF for easy content delivery:

$ pdfcpu attach add album.pdf *.png
adding img1.png
adding img2.png
adding img3.png

Attach a file including a description:

$ pdfcpu attach add invoice.pdf 'invoice.doc, my 1st desc'
adding invoice.doc

$ pdfcpu attach list invoice.pdf
invoice.doc (my 1st desc)