Skip to main content
Skip table of contents

Embedded files

Examples for adding and removing embedded files in PDFs. These examples were written in answer to the question Click How to delete attachments in PDF using iText?


addembeddedfile

##GITHUB:https://github.com/itext/i5js-sandbox/blob/master/src/main/java/sandbox/annotations/AddEmbeddedFile.java##

##GITHUB:https://github.com/itext/i7ns-samples/blob/develop/itext/itext.samples/itext/samples/sandbox/annotations/AddEmbeddedFile.cs##


addembeddedfiles

##GITHUB:https://github.com/itext/i5js-sandbox/blob/master/src/main/java/sandbox/annotations/AddEmbeddedFiles.java##

##GITHUB:https://github.com/itext/i7ns-samples/blob/develop/itext/itext.samples/itext/samples/sandbox/annotations/AddEmbeddedFiles.cs##


removeembeddedfile

##GITHUB:https://github.com/itext/i5js-sandbox/blob/master/src/main/java/sandbox/annotations/RemoveEmbeddedFile.java##

##GITHUB:https://github.com/itext/i7ns-samples/blob/develop/itext/itext.samples/itext/samples/sandbox/annotations/RemoveEmbeddedFile.cs##

removeembeddedfiles

##GITHUB:https://github.com/itext/i5js-sandbox/blob/master/src/main/java/sandbox/annotations/RemoveEmbeddedFiles.java##

##GITHUB:https://github.com/itext/i7ns-samples/blob/develop/itext/itext.samples/itext/samples/sandbox/annotations/RemoveEmbeddedFiles.cs##

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.