UNPKG

pdfjs-dist

Version:

Generic build of Mozilla's PDF.js library.

40 lines (39 loc) • 1.19 kB
export type PDFPageProxy = import("../src/display/api").PDFPageProxy; export type StructTreeLayerBuilderOptions = { pdfPage: PDFPageProxy; rawDims: object; }; /** * @typedef {object} StructTreeLayerBuilderOptions * @property {PDFPageProxy} pdfPage * @property {object} rawDims */ export class StructTreeLayerBuilder { /** * @param {PDFPageProxy} pdfPage * @param {object} rawDims */ constructor(pdfPage: PDFPageProxy, rawDims: object); /** * @returns {Promise<void>} */ render(): Promise<void>; /** * @param {string} annotationId * @param {object} [options] * @param {boolean} [options.enableLinkOwnership] * @returns {Promise<Map<string, string>|null|undefined>} */ getAriaAttributes(annotationId: string, { enableLinkOwnership }?: { enableLinkOwnership?: boolean | undefined; }): Promise<Map<string, string> | null | undefined>; /** * Get the ids of annotations owned by the structure tree. * @returns {Promise<Set<string>|null>} */ getAnnotationIds(): Promise<Set<string> | null>; hide(): void; show(): void; updateTextLayer(): void; #private; }