Implements

Constructors

  • Create a Form instance. Instead of creating an instance in new mode, use create to create an instance.

    Parameters

    • options: Options

      Create a Form instance with the specified options.

    Returns Form

     const form = await Form.create();
    

Properties

options: Options

The options to create a Menu instance.

Methods

  • Calculate the bounding box of the form.

    Returns Promise<Rect>

    Return the bounding box.

  • Destroy the current object.

    Returns Promise<void>

  • Get the count of the form.

    Returns Promise<number>

    Return the count of the form.

  • Get the index of the object in the form.

    Parameters

    • obj: PageObjectType

      The input PDF form object. The passed parameter is a certain pageObject within the current form, not a pageObject under other forms or peer pageObjects of the current form

    Returns Promise<number>

    Return the object index.

  • Create a Form instance.

    Parameters

    • Optionaloptions: Options

      Create a Form instance with the specified options.

    Returns Promise<FormType>

    Return a Form instance.

     const form = await Form.create();