UNPKG

document-scanner-vue

Version:

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

16 lines 662 B
export interface ProcessedPageData { imageDataURL: string; width: number; height: number; } /** * Generates a PDF document from an array of processed page images. * Each image is placed on a new page in the PDF, fitting the page * while maintaining its aspect ratio. * * @param pages An array of objects, each containing the processed image data URL, * its width, and its height. * @returns A Promise that resolves to a Blob containing the PDF data, or null if generation fails. */ export declare function generatePdfFromProcessedPages(pages: ProcessedPageData[]): Promise<Blob | null>; //# sourceMappingURL=pdfGenerator.d.ts.map