interface PDFLinkType {
    destroy: () => Promise<void>;
    getLinkAtPoint: (
        linkAtPoint: LinkAtPointType,
    ) => Promise<null | PDFLinkType>;
    getLinksCount: (doc: DocType, page: PageType) => Promise<number>;
    options?: Options;
}

Implemented by

Properties

destroy: () => Promise<void>

Destroys the pdfLink object.

Type declaration

    • (): Promise<void>
    • Returns Promise<void>

      A promise that resolves when the object is destroyed.

getLinkAtPoint: (linkAtPoint: LinkAtPointType) => Promise<null | PDFLinkType>

Retrieves the link at the specified point.

Type declaration

getLinksCount: (doc: DocType, page: PageType) => Promise<number>

Retrieves the number of links in the document.

Type declaration

    • (doc: DocType, page: PageType): Promise<number>
    • Parameters

      Returns Promise<number>

      A promise that resolves to the number of links.

options?: Options