Chinese Simplified (简体中文)

AddFromFile Method of the PDFAttachments Object

This method adds a specified file to the collection of PDF attachments.

Syntax

HRESULT AddFromFile(
  BSTR             Path,
  BSTR             FileName,
  BSTR             Description,
  IPDFAttachment** Result
);
    

Parameters

Path
[in] Specifies the full path to the attachment file.
FileName
[in] Specifies the name of the attachment file. This parameter is optional and may be empty string, in which case the filename is obtained from the path.
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.

See also

PDFAttachments

03.07.2024 8:50:25

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.