
PDF tooling for Go and the command line.
View the Project on GitHub pdfcpu/pdfcpu
This command adds one or more files to a PDF input file aka the PDF portfolio. Have a look at some examples .
pdfcpu portfolio add inFile file [ , desc ]... [flags]
| name | description | required |
|---|---|---|
| inFile | PDF input file, use - to read from stdin | yes |
| file… | one or more files to be attached | yes |
| desc | description | no |
Portfolio entry paths may use Go-style glob patterns such as *.jpg, scan-?.png, or appendix-[A-C].pdf.
An unmatched or malformed pattern is reported as an error.
A description supplied after a comma is preserved for every file matched by that pattern.
Add pictures to a PDF portfolio for easy content delivery:
$ pdfcpu portfolio add portfolio.pdf *.jpg
writing portfolio.pdf ...
Add a portfolio entry while reading the PDF from stdin:
$ aws s3 cp s3://acme-dataroom/package.pdf - \
| pdfcpu portfolio add - contract.pdf > package-with-contract.pdf