Implements

Constructors

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

    Parameters

    Returns Annot

    const annot = await Annot.create();
    

Properties

options: Options

Methods

  • Destroys an annotation.

    Returns Promise<void>

  • Gets the annotation border style.

    Returns Promise<number>

    • The border style of the annotation.
  • Gets the annotation border width.

    Returns Promise<number>

    • The border width of the annotation.
  • Gets the annotation flags.

    Returns Promise<number>

    • The annotation flags.
  • Gets annotation bounding box in user space.

    Returns Promise<Rect>

    • The bounding box of the annotation.
  • Gets the annotation sub-type name.

    Returns Promise<string>

    • The annotation sub-type name
  • Gets the type of the input UI layer annotation object.

    Returns Promise<string>

    • The type of the annotation.
  • Checks whether the input UI layer annotation object is selected.

    Returns Promise<boolean>

    • TRUE If the input UI layer annotation object is selected, otherwise not.
  • Sets the annotation border width.

    Parameters

    • width: number

      The border width to set.

    Returns Promise<void>

    await annot.setBorderWidth(1);
    
  • Sets the input UI layer annotation object to be visible or not.

    Parameters

    • show: boolean

      It indicates whether the annotation is visible.

    Returns Promise<void>

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

    Parameters

    Returns Promise<AnnotType>

    Create an annotation instance with the specified options.

    const annot = await Annot.create();