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.


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 (see the code sample below).

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 or SaveToMemory method.

FileName BSTR, read-only Returns the original file name.


Name Description
SaveToFile Saves the attached file on disk.
SaveToMemory 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 methods of the PDFAttachments object.


C++ (COM) code

See also


ZUGFeRD-compliant electronic invoices

24.03.2023 8:51:52

Usage of Cookies. In order to optimize the website functionality and improve your online experience ABBYY uses cookies. You agree to the usage of cookies when you continue using this site. Further details can be found in our Privacy Notice.