Delete All Attachments from PDF
Contents[ Hide ]
As well as adding attachments, Aspose.Cells can remove attachments from PDF files.
A PDF document’s attachments are held in the Document object’s EmbeddedFiles collection.
To delete all attachments associated with a PDF file:
- Call the EmbeddedFiles collection’s delete(..) method.
- Save the updated file using the Document object’s save method.
The following code snippet shows how to delete all the attachments from a PDF document.