Remove Attachments

This command removes previously attached files from a PDF document. Have a look at some examples.

Usage

  1. pdfcpu attachments remove [-v(erbose)|vv] [-upw userpw] [-opw ownerpw] inFile [file...]

Flags

namedescriptionrequired
verboseturn on loggingno
vvverbose loggingno
upwuser passwordno
opwowner passwordno

Arguments

namedescriptionrequired
inFilePDF input fileyes
file…one or more attachments to be removedyes

Examples

Remove a specific attachment from container.pdf:

  1. pdfcpu attach remove container.pdf pdfcpu.zip
  2. removing 1 attachments from container.pdf ...
  3. writing container.pdf ...

Remove all attachments:

  1. pdfcpu attach remove container.pdf *
  2. removing 9 attachments from container.pdf ...
  3. writing container.pdf ...