A PDF processor written in Go.
View the Project on GitHub pdfcpu/pdfcpu
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...
name | description | values |
---|---|---|
v(erbose) | turn on logging | |
vv | verbose logging | |
q(uiet) | quiet mode | |
-o(ffline) | disable http traffic | |
c(onf) | config dir | $path, disable |
opw | owner password | |
upw | user password | |
u(nit) | display unit | po(ints),in(ches),cm,mm |
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)