AddFromMemory Method of the PDFAttachments Object
This method adds a file from the global memory, where it was previously loaded by the user, to the collection of PDF attachments.
HRESULT AddFromMemory( __int64 HGlobal, BSTR FileName, BSTR Description, IPDFAttachment** Result );
IPDFAttachment AddFromMemory( Int64 HGlobal, string FileName, string Description );
Visual Basic .NET
Function AddFromMemory( _ HGlobal As Int64, _ FileName As String, _ [Description As String = "0"] _ ) As IPDFAttachment
- [in] Specifies the HGLOBAL handle of the memory block which contains the attachment file. The handle is passed as __int64. This handle should be valid.
- [in] Specifies the name of the attachment file. The name must contain file extension.
- [in] Contains a user-defined description of the attachment file. This parameter is optional and may be empty string.
- [out, retval] A pointer to IPDFAttachment* pointer variable that receives the interface pointer of the object representing the added attachment.
This method has no specific return values. It returns the standard return values of ABBYY FineReader Engine functions.
This method does not work if the Engine object is created using the OutprocLoader object.