Implements

Constructors

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

    Parameters

    • Optionaloptions: Options

      Create a GeneralState instance with the specified options.

    Returns GeneralState

    const generalState = await GeneralState.create();
    

Properties

options?: Options

Methods

  • Destroys the PDFName object.

    Returns Promise<void>

    A promise that resolves when the object is destroyed.

  • Set the fill alpha value.

    Parameters

    • fillAlpha: number

      The fill alpha value to be set. 0 - 100

    Returns Promise<void>

    A promise that resolves when the fill alpha value is set.

  • Set the stroke alpha value.

    Parameters

    • strokeAlpha: number

      The stroke alpha value to be set. 0 - 100

    Returns Promise<void>

    A promise that resolves when the stroke alpha value is set.

  • Creates an instance of PDFName.

    Parameters

    • Optionaloptions: Options

      Create a GeneralState instance with the specified options.

    Returns Promise<GeneralStateType>

    A promise that resolves to a GeneralStateType instance.