UNPKG

ngx-extended-pdf-viewer

Version:

Embedding PDF files in your Angular application. Highly configurable viewer including the toolbar, sidebar, and all the features you're used to.

34 lines (33 loc) 1.17 kB
export interface FindOptions { highlightAll?: boolean; matchCase?: boolean; wholeWords?: boolean; ignoreAccents?: boolean; findMultipleSearchTexts?: boolean; fuzzySearch?: boolean; } export interface PDFExportScaleFactor { width?: number; height?: number; scale?: number; } export declare class NgxExtendedPdfViewerService { constructor(); findMultiple(text: Array<string>, options?: FindOptions): boolean; find(text: string, options?: FindOptions): boolean; findNext(): boolean; findPrevious(): boolean; print(printRange?: any): boolean; removePrintRange(): void; setPrintRange(printRange: any): void; filteredPageCount(pageCount: number, range: any): number; isInPDFPrintRange(pageIndex: number, printRange: any): void; getPageAsText(pageNumber: number): Promise<string>; getCurrentDocumentAsBlob(): Promise<Blob>; getFormData(): Promise<Array<Object>>; addPageToRenderQueue(pageIndex: number): boolean; isRenderQueueEmpty(): boolean; hasPageBeenRendered(pageIndex: number): boolean; numberOfPages(): number; getCurrentlyVisiblePageNumbers(): Array<number>; }