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.

Syntax

C++

HRESULT AddFromMemory(
  __int64          HGlobal,
  BSTR             FileName,
  BSTR             Description,
  IPDFAttachment** Result
);
    

C#

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
    

Parameters

HGlobal
[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.
FileName
[in] Specifies the name of the attachment file. The name must contain file extension.
Description
[in] Contains a user-defined description of the attachment file. This parameter is optional and may be empty string.
Result
[out, retval] A pointer to IPDFAttachment* pointer variable that receives the interface pointer of the object representing the added attachment.

Return values

This method has no specific return values. It returns the standard return values of ABBYY FineReader Engine functions.

Remarks

This method does not work if the Engine object is created using the OutprocLoader object.

See also

PDFAttachments

9/17/2024 3:14:40 PM

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.