Implements

Constructors

  • Parameters

    • Optionaloptions: Options

      不再使用 'new' 来创建,而是使用 create

    Returns Action

    const action = await Action.create();
    

Methods

  • 销毁一个 PDF 动作。

    Returns Promise<void>

  • 获取 PDF 操作的文件完整路径。

    Returns Promise<string>

    • PDF 操作的文件完整路径
  • 获取操作的类型。

    Returns Promise<number>

    • 操作的类型。
  • 获取 PDF 动作的类型名称。

    Returns Promise<string>

    PDF 动作的类型名称

  • 设置 PDF 动作的目标。

    Parameters

    Returns Promise<void>

  • 设置文件的完整路径。

    Parameters

    • filePath: string

      输入文件的完整路径。

    • isURL: boolean

      文件路径是否为 URL。

    Returns Promise<void>

  • 创建一个 PDF 动作。

    Parameters

    • Optionaloptions: Options

      必需的配置选项,包括必要的初始化信息。

    Returns Promise<ActionType>

    • 一个 PDF 动作
    // If `dict` is provided, the action is created based on the PDF dictionary.
    {
    dict: pdfDictionary
    }
    // If `doc` and `actionType` (both must be provided) are passed, the action is created based on `actionType`.
    {
    doc: doc,
    actionType: Enum.FPD_ActionType
    }