pdfcpu

Logo

PDF tooling for Go and the command line.

View the Project on GitHub pdfcpu/pdfcpu


Changelog
Future Directions

Remove Portfolio Entries

This command removes previously added entries from a PDF portfolio. Have a look at some examples.

Usage

pdfcpu portfolio remove inFile [ file... ] [flags]

Common Flags


Arguments

namedescriptionrequired
inFilePDF input file, use - to read from stdinyes
file…one or more entries to be removedno

Examples

Remove a specific entry from portfolio.pdf:

$ pdfcpu portfolio remove portfolio.pdf pdfcpu.zip
writing portfolio.pdf ...

Remove all portfolio entries:

$ pdfcpu portfolio remove portfolio.pdf
writing portfolio.pdf ...

Remove a portfolio entry while reading the PDF from stdin:

$ cat package-with-contract.pdf \
   | pdfcpu portfolio remove - contract.pdf > package-without-contract.pdf