UNPKG

@idscan/idvc2

Version:

component for the capturing documents

57 lines (56 loc) 1.66 kB
import type { Size } from '../helpers/image'; import type { PDFLocation } from '../types/pdf'; type Coordinate = { x: number; y: number; }; export declare class PdfModule { module: any; handle: any; bw: number; bh: number; src: any; out: any; isAllocate: boolean; worker: Worker; isProcessing: boolean; isInitialized: boolean; successCount: number; pdfCapturedCount: number; src2: any; locations: any; pdfCount: number; geometry: { angleBetweenTwoVectors: any; }; minPDFframes: number; cropSizes: Size; canvasSizes: Size; privateErrorId: number; constructor(worker: Worker, key: string, isNeedToLoadPDFWIthPreprocess: boolean); get errorId(): number; set errorId(id: number); get errorVal(): any; /** * * @param geometry * @param {number} minPDFframes - c.config.minPDFframes * @param {{width: number, height: number}} cropSize - c.config.cropSize * @param {{width: number, height: number}} canvasSizes - ui.borderCanvas */ init(geometry: any, minPDFframes: any, cropSize: any, canvasSizes: any): void; licenseError(): { error: boolean; errorType: string; errorVal: any; }; create(): void; setSizes(bw: any, bh: any): void; allocate(): void; calculateCords(locations: PDFLocation): Coordinate[]; processPDF(data: ImageData): Promise<Record<string, any>>; decodeSubmitString(obj: Record<string, any>): string; processPDFWithPreProcess(iData: ImageData): Promise<unknown>; readPDF(iData: any): Promise<unknown>; } export default PdfModule;