Implements

Constructors

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

    Parameters

    • Optionaloptions: Options

      Create a PDFLink instance with the specified options.

    Returns PDFLink

    const pdfLink = await PDFLink.create();
    

Properties

options: Options

An optional PDF object associated with the document.

const options = {
pdfObject: pdfObject,
key: value
};

Methods

  • Destroys the pdfLink object.

    Returns Promise<void>

    A promise that resolves when the object is destroyed.

  • Retrieves the number of links in the document.

    Parameters

    Returns Promise<number>

    A promise that resolves to the number of links.

  • Creates an instance of PDFLink.

    Parameters

    • Optionaloptions: Options

      pdfObject: The PDFObject instance to create the link.

    Returns Promise<PDFLinkType>

    A promise that resolves to a PDFLinkType instance.

    const pdfLink = await PDFLink.create();