Files
bentopdf/public/workers/json-to-pdf.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
477 B
TypeScript

declare const coherentpdf: typeof import('../../src/types/coherentpdf.global').coherentpdf;
interface ConvertJSONToPDFMessage {
command: 'convert';
fileBuffers: ArrayBuffer[];
fileNames: string[];
}
interface JSONToPDFSuccessResponse {
status: 'success';
pdfFiles: Array<{ name: string; data: ArrayBuffer }>;
}
interface JSONToPDFErrorResponse {
status: 'error';
message: string;
}
type JSONToPDFResponse = JSONToPDFSuccessResponse | JSONToPDFErrorResponse;