A PDF processor written in Go.

View the Project on GitHub pdfcpu/pdfcpu


Add Attachments

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


pdfcpu attachments add inFile file...

Common Flags

name description values
v(erbose) turn on logging  
vv verbose logging  
q(uiet) quiet mode  
u(nit) display unit po(ints),in(ches),cm,mm
c(onf) config dir $path, disable
upw user password  
opw owner password  


name description required
inFile PDF input file yes
file… one or more files to be attached yes


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)