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>

销毁 pdfLink 对象。

Type declaration

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

      在对象销毁后完成的 Promise。

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

获取指定点位置的链接。

Type declaration

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

获取文档中的链接数量。

Type declaration

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

      Returns Promise<number>

      一个解析为链接数量的 Promise。

options?: Options