PDFAttachment Object (IPDFAttachment Interface)
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.
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. Note: 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 method. |
FileName | BSTR, read-only | Returns the original file name. |
Methods
Name | Description |
---|---|
SaveToFile | Saves the attached file on disk. |
Related objects
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 method of the PDFAttachments object.
See also
03.07.2024 8:50:25