pdfcpu

Logo

PDF tooling for Go and the command line.

View the Project on GitHub pdfcpu/pdfcpu


Changelog
Future Directions

Extract Portfolio Entries

This command extracts entries from a PDF portfolio. If you want to remove an extracted entry you can do this using portfolio remove. Have a look at some examples.

Usage

pdfcpu portfolio extract inFile outDir [ file... ] [flags]

Common Flags


Arguments

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

Examples

Extract a specific portfolio entry from portfolio.pdf into out:

$ pdfcpu portfolio extract portfolio.pdf out sketch.pdf

Extract all portfolio entries of portfolio.pdf into out:

$ pdfcpu portfolio extract portfolio.pdf out

Extract a portfolio entry from a streamed PDF into a local output directory:

$ aws s3 cp s3://acme-dataroom/package.pdf - \
   | pdfcpu portfolio extract - ./portfolio-entries contract.pdf