@vue-pdf-viewer/viewer
Version:
The PDF Viewer component for Vue 3 and Nuxt
11 lines (10 loc) • 484 B
TypeScript
import type { PDFDocumentProxy } from 'pdfjs-dist';
import { Ref, ShallowRef } from 'vue';
import type { PdfProperties, PDFSrc } from '@/utils/types';
type CMapSource = {
url: string;
cMapPacked: boolean;
cMapUrl: string;
};
declare const usePdfProperties: (pdfDoc: ShallowRef<PDFDocumentProxy | undefined>, source: Ref<PDFSrc | CMapSource>, filename: Ref<string | undefined>) => Ref<PdfProperties | undefined, PdfProperties | undefined>;
export default usePdfProperties;