2025-11-08 13:17:29 +05:30
|
|
|
declare const coherentpdf: typeof import('../../src/types/coherentpdf.global').coherentpdf;
|
2025-11-08 12:37:10 +05:30
|
|
|
|
|
|
|
|
interface GenerateTOCMessage {
|
|
|
|
|
command: 'generate-toc';
|
|
|
|
|
pdfData: ArrayBuffer;
|
|
|
|
|
title: string;
|
|
|
|
|
fontSize: number;
|
|
|
|
|
fontFamily: number;
|
|
|
|
|
addBookmark: boolean;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
interface TOCSuccessResponse {
|
|
|
|
|
status: 'success';
|
|
|
|
|
pdfBytes: ArrayBuffer;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
interface TOCErrorResponse {
|
|
|
|
|
status: 'error';
|
|
|
|
|
message: string;
|
|
|
|
|
}
|
|
|
|
|
|
2025-11-08 13:17:29 +05:30
|
|
|
type TOCResponse = TOCSuccessResponse | TOCErrorResponse;
|