UNPKG

document-scanner-vue

Version:

Vue 3 Document Scanner with OpenCV.js - Mobile optimized with camera/gallery support

20 lines 764 B
import { type ComputedRef, type DeepReadonly, type Ref } from 'vue'; import type { Page } from '@/types'; export interface PdfGenerationOptions { pageManager: { pages: ComputedRef<DeepReadonly<Page[]>>; getPageById: (pageId: string) => Page | undefined; }; imageOperations: { isLoading: Ref<boolean>; applyPerspectiveTransformAndGetDataURL: (pageId: string) => Promise<string | null>; }; closeAfterPdfCreated: boolean; onPdfCreated: (pdfBlob: Blob) => void; onCloseScanner: () => void; } export declare function usePdfGeneration(options: PdfGenerationOptions): { isProcessingPdf: Ref<boolean, boolean>; createPdfFromAllPages: () => Promise<void>; }; //# sourceMappingURL=usePdfGeneration.d.ts.map