This object represents a PDF attachment. It provides access to the original file name, description added by the author, and the type of binding of the attachment. It also exposes methods that allow you to access the attached file by saving it on disk or into the global memory.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.
Properties
| Name | Type | Description |
|---|---|---|
| Application | Engine, read-only | Returns the Engine object. |
| Binding | PDFAttachmentBindingEnum, read-only | Specifies if the attached file is associated with one annotation, PDF Portfolio, or the document in general. For an attachment added via FineReader Engine API, this property value is always PAB\_Document. |
| Description | BSTR, read-only | Returns the description given to the file when it was attached. |
| FileFormat | ImageFileFormatEnum, read-only | Returns the original file format defined after its opening by ABBYY FineReader Engine. If the attachment format is not equal to IFF\_UnknownFormat, then it can be used in the AddImageFileFromAttachment method. Otherwise, you can save the attachment using the SaveToFile or SaveToMemory (Win) method. |
| FileName | BSTR, read-only | Returns the original file name. |
Methods
| Name | Description |
|---|---|
| SaveToFile | Saves the attached file on disk. |
| SaveToMemory Note: Windows only. | Saves the attached file into the global memory. |
Related objects
Object Diagram
Input parameter
This object is passed as an input parameter to the AddImageFileFromAttachment method.Output parameter
This object is the output parameter of the AddFromFile, AddFromMemory (Win) methods of the PDFAttachments object.Samples
C++ (COM) code
C++ (COM) code
