Files
bentopdf/public/workers/pdf-to-json.worker.d.ts
alam00000 2c85ca74e9 feat: separate AGPL libraries and add dynamic WASM loading
- Add WASM settings page for configuring external AGPL modules
- Implement dynamic loading for PyMuPDF, Ghostscript, and CoherentPDF
- Add Cloudflare Worker proxy for serving WASM files with CORS
- Update all affected tool pages to check WASM availability
- Add showWasmRequiredDialog for missing module configuration

Documentation:
- Update README, licensing.html, and docs to clarify AGPL components
  are not bundled and must be configured separately
- Add WASM-PROXY.md deployment guide with recommended source URLs
- Rename "CPDF" to "CoherentPDF" for consistency
2026-01-27 15:26:26 +05:30

21 lines
497 B
TypeScript

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