跳转到主要内容
此方法会将指定文件添加到 PDF 附件集合中。

语法

C++

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

C#

IPDFAttachment AddFromFile(
  string Path,
  string FileName,
  string Description
);

Visual Basic .NET

Function AddFromFile( _
  Path As String, _
  [FileName As String = "0"], _
  [Description As String = "0"] _
) As IPDFAttachment

参数

Path [in] 指定附件文件的完整路径。 FileName [in] 指定附件文件的名称。此参数为可选参数,也可以是空 string;在这种情况下,文件名将从路径中获取。 Description [in] 包含用户定义的附件文件说明。此参数为可选参数,也可以是空 string。 Result [out, retval] 指向 IPDFAttachment* 指针变量的指针,该变量接收表示已添加附件的对象的接口指针。

返回值

此方法没有特定的返回值。它会返回 ABBYY FineReader Engine 函数的标准返回值

另请参见

PDFAttachments