Remove Attachments
This command removes previously attached files from a PDF document. Have a look at some examples.
Usage
pdfcpu attachments remove [-v(erbose)|vv] [-upw userpw] [-opw ownerpw] inFile [file...]
Flags
name | description | required |
---|---|---|
verbose | turn on logging | no |
vv | verbose logging | no |
upw | user password | no |
opw | owner password | no |
Arguments
name | description | required |
---|---|---|
inFile | PDF input file | yes |
file… | one or more attachments to be removed | yes |
Examples
Remove a specific attachment from container.pdf
:
pdfcpu attach remove container.pdf pdfcpu.zip
removing 1 attachments from container.pdf ...
writing container.pdf ...
Remove all attachments:
pdfcpu attach remove container.pdf *
removing 9 attachments from container.pdf ...
writing container.pdf ...