> ## Documentation Index
> Fetch the complete documentation index at: https://docs.abbyy.com/llms.txt
> Use this file to discover all available pages before exploring further.

# PDFAttachments Object (IPDFAttachments Interface)

This object represents a collection of PDF attachments of a document (PDFAttachment objects). It contains methods for getting the number of attachments in the collection, accessing a single element of the collection and iterating through the collection. The collection is accessible via the [FRDocument](/fine-reader/engine/api-reference/document-related-objects/frdocument) object.

* The indexing of ABBYY FineReader Engine collections starts with 0.
* The foreach statement in C# (for each in Visual Basic .NET) can be used to manipulate the collection.

## Properties

| Name                                                                                                                  | Type                                                                                                                                                                                                                        | Description                                            |
| --------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------ |
| Application                                                                                                           | [Engine](/fine-reader/engine/api-reference/engine-object-iengine-interface), [read-only](/fine-reader/engine/guided-tour/advanced-techniques/programming-aspects/working-with-properties#readonly_properties)               | Returns the Engine object.                             |
| Count                                                                                                                 | [int](/fine-reader/engine/guided-tour/advanced-techniques/programming-aspects/working-with-properties), read-only                                                                                                           | Stores the number of elements in the collection.       |
| [Element](/fine-reader/engine/visual-components-reference/supplementary-objects/spellwordcollection/element-property) | [PDFAttachment](/fine-reader/engine/api-reference/document-related-objects/pdfattachment), [read-only](/fine-reader/engine/guided-tour/advanced-techniques/programming-aspects/working-with-properties#readonly_properties) | Provides access to a single element of the collection. |

## Methods

| Name                                                                                                                                                   | Description                                                                                                           |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ | --------------------------------------------------------------------------------------------------------------------- |
| [AddFromFile](/fine-reader/engine/api-reference/document-related-objects/pdfattachments/addfromfile-method)                                            | Adds a specified file to the collection of PDF attachments.                                                           |
| [AddFromMemory](/fine-reader/engine/api-reference/document-related-objects/pdfattachments/addfrommemory-method) <br /><br /> **Note:** *Windows only.* | Adds a file from the global memory, where it was previously loaded by the user, to the collection of PDF attachments. |
| [DeleteAll](/fine-reader/engine/visual-components-reference/supplementary-objects/spellwordcollection/deleteall-method)                                | Removes all the elements from the collection.                                                                         |
| [DeleteAt](/fine-reader/engine/visual-components-reference/supplementary-objects/spellwordcollection/deleteat-method)                                  | Removes an element from the collection.                                                                               |
| [Item](/fine-reader/engine/visual-components-reference/supplementary-objects/spellwordcollection/item-method)                                          | Provides access to a single element of the collection.                                                                |

## Related objects

<img src="https://mintcdn.com/abbyy/i-EfCQVmseNiPQcp/images/fine-reader/engine/pdfattachments.gif?s=7c80d0e254c67fbef66b0551475a067f" alt="PDFAttachments" width="166" height="93" data-path="images/fine-reader/engine/pdfattachments.gif" />[](/fine-reader/engine/api-reference/document-related-objects/frdocument#pdfattachments)[](/fine-reader/engine/visual-components-reference/supplementary-objects/spellwordcollection/element-property)[](/fine-reader/engine/api-reference/document-related-objects/pdfattachment)[](/fine-reader/engine/api-reference/document-related-objects/frdocument)

[Object Diagram](/fine-reader/engine/api-reference/object-diagram)

## See also

[FRDocument](/fine-reader/engine/api-reference/document-related-objects/frdocument)

[PDFExportFeatures](/fine-reader/engine/api-reference/parameter-objects/export-parameters/pdfexportfeatures)
