UNPKG

@pdf-viewer/react

Version:

A react-pdf-viewer component for React and Next.js. Suitable for react-pdf document.

12 lines (11 loc) 505 B
import { PDFDocumentProxy } from 'pdfjs-dist/types/src/display/api.js'; import { PdfPage, RPSrc, CharacterMap, LoadPDFOptions, ErrorType } from '../types'; export declare const useLoadPdf: (src?: RPSrc, characterMap?: CharacterMap, options?: LoadPDFOptions) => { pdf: PDFDocumentProxy | undefined; pages: Map<number, PdfPage>; loading: boolean; error: ErrorType | undefined; loadingProgress: number; passwordRequired: boolean | undefined; passwordError: string | undefined; };