pdfcpu

Logo

A PDF processor written in Go.

View the Project on GitHub pdfcpu/pdfcpu


Changelog

Remove Attachments

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

Usage

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

Common Flags


Arguments

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

Examples

Remove a specific attachment from container.pdf:

$ pdfcpu attach remove container.pdf pdfcpu.zip
removing pdfcpu.zip

Remove all attachments:

$ pdfcpu attach remove container.pdf
removing all attachments