Implements

Constructors

  • Parameters

    • Optionaloptions: Options

      No longer use 'new' to create, but use create instead

    Returns Action

    const action = await Action.create();
    

Methods

  • Gets the file full path of the PDF Action.

    Returns Promise<string>

    • The file full path of the PDF Action
  • Gets the type of the action.

    Returns Promise<number>

    • The type of the action.
  • Gets the type name of the PDF action.

    Returns Promise<string>

    The type name of the PDF action

  • Sets the destination of PDF action.

    Parameters

    • dest: DestType

      Refer to a PDF destination

    Returns Promise<void>

  • Sets the file full path.

    Parameters

    • filePath: string

      The input file full path.

    • isURL: boolean

      Whether the file path is a URL or not.

    Returns Promise<void>

  • Creates a PDF action.

    Parameters

    • Optionaloptions: Options

      The required configuration options, including necessary initialization information.

    Returns Promise<ActionType>

    • a PDF action
    // 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
    }