vue-pdf-kit
Version:
A high-definition PDF preview component that supports both Vue 2 and Vue 3.
14 lines (13 loc) • 606 B
TypeScript
import type { OnProgressParameters } from 'pdfjs-dist';
export type InitPdfOptions = {
props: {
source: ArrayBuffer | Array<number> | string;
password: string;
cMapUrl?: string;
};
onProgress?: (parameter: OnProgressParameters) => void | undefined;
onPassword?: (func: (password: string) => void, passwordResponses: number) => void | undefined;
};
export declare function useInitPdfDocument({ props, onProgress, onPassword }: InitPdfOptions): {
doc: Readonly<import("vue-demi").ShallowRef<import("pdfjs-dist/types/src/display/api").PDFDocumentProxy | null>>;
};