Files
bentopdf/public/workers/pdf-to-json.worker.d.ts
abdullahalam123 0999163d3c feat: add JSON to PDF and PDF to JSON conversion tools
- Introduced new pages and logic for converting JSON files to PDF and vice versa.
- Implemented web workers for handling conversion processes in the background.
- Updated Vite configuration to include new HTML pages for the conversion tools.
- Enhanced user interface with file upload sections and status messages for conversion progress.
- Added TypeScript definitions for worker communication and response handling.
2025-11-08 15:19:56 +05:30

21 lines
478 B
TypeScript

declare const coherentpdf: typeof import('../../src/types/coherentpdf.global').coherentpdf;
interface ConvertPDFToJSONMessage {
command: 'convert';
fileBuffers: ArrayBuffer[];
fileNames: string[];
}
interface PDFToJSONSuccessResponse {
status: 'success';
jsonFiles: Array<{ name: string; data: ArrayBuffer }>;
}
interface PDFToJSONErrorResponse {
status: 'error';
message: string;
}
type PDFToJSONResponse = PDFToJSONSuccessResponse | PDFToJSONErrorResponse;