2025-11-18 20:31:13 +05:30
|
|
|
declare const coherentpdf: typeof import('../../src/types/coherentpdf.global').coherentpdf;
|
|
|
|
|
|
|
|
|
|
interface AddAttachmentsMessage {
|
|
|
|
|
command: 'add-attachments';
|
|
|
|
|
pdfBuffer: ArrayBuffer;
|
|
|
|
|
attachmentBuffers: ArrayBuffer[];
|
|
|
|
|
attachmentNames: string[];
|
2026-01-27 15:26:11 +05:30
|
|
|
cpdfUrl?: string;
|
2025-11-18 20:31:13 +05:30
|
|
|
}
|
|
|
|
|
|
|
|
|
|
interface AddAttachmentsSuccessResponse {
|
|
|
|
|
status: 'success';
|
|
|
|
|
modifiedPDF: ArrayBuffer;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
interface AddAttachmentsErrorResponse {
|
|
|
|
|
status: 'error';
|
|
|
|
|
message: string;
|
|
|
|
|
}
|
|
|
|
|
|
2026-01-27 15:26:11 +05:30
|
|
|
type AddAttachmentsResponse =
|
|
|
|
|
| AddAttachmentsSuccessResponse
|
|
|
|
|
| AddAttachmentsErrorResponse;
|