This technical tip shows how to work with attachment in a PDF document using Aspose.Pdf. Java & Android Developers can add, delete, get attachment from a PDF file. In order to add attachment in a PDF document, you need to create a FileSpecification object with the file, which needs to be added, and the file description. After that the FileSpecification object can be added to EmbeddedFiles collection of Document object using add(..) method of EmbeddedFiles collection. The EmbeddedFiles collection contains all the attachments added in the PDF file.