Files
med-notes/.pnpm-store/v10/files/d8/1eadaac33bb0aa59b11920dd8db4ec9540aa0550db9409da0e36c1e5f4bf58e6b012122aae96ebe86e0771b5ddf6297154e0e84def0542655a73a29ccc5076
2025-05-09 05:30:08 +02:00

40 lines
1.7 KiB
Plaintext

export type PDFPageProxy = import("../src/display/api").PDFPageProxy;
export type AnnotationStorage = import("../src/display/annotation_storage").AnnotationStorage;
export type PageViewport = import("../src/display/display_utils").PageViewport;
export type IPDFLinkService = import("./interfaces").IPDFLinkService;
export type XfaLayerBuilderOptions = {
pdfPage: PDFPageProxy;
annotationStorage?: import("../src/display/annotation_storage").AnnotationStorage | undefined;
linkService: IPDFLinkService;
xfaHtml?: Object | undefined;
};
/**
* @typedef {Object} XfaLayerBuilderOptions
* @property {PDFPageProxy} pdfPage
* @property {AnnotationStorage} [annotationStorage]
* @property {IPDFLinkService} linkService
* @property {Object} [xfaHtml]
*/
export class XfaLayerBuilder {
/**
* @param {XfaLayerBuilderOptions} options
*/
constructor({ pdfPage, annotationStorage, linkService, xfaHtml, }: XfaLayerBuilderOptions);
pdfPage: import("../src/display/api").PDFPageProxy;
annotationStorage: import("../src/display/annotation_storage").AnnotationStorage;
linkService: import("./interfaces").IPDFLinkService;
xfaHtml: Object;
div: HTMLDivElement | null;
_cancelled: boolean;
/**
* @param {PageViewport} viewport
* @param {string} intent (default value is 'display')
* @returns {Promise<Object | void>} A promise that is resolved when rendering
* of the XFA layer is complete. The first rendering will return an object
* with a `textDivs` property that can be used with the TextHighlighter.
*/
render(viewport: PageViewport, intent?: string): Promise<Object | void>;
cancel(): void;
hide(): void;
}