chore: update image sources and version bump to 1.2.0

- Changed image sources for GDPR, CCPA, and HIPAA compliance logos to local paths.
- Updated package version to 1.2.0 in package-lock.json.
- Enhanced README and SIMPLE_MODE documentation with Docker usage instructions.
- Improved table-of-contents worker and related TypeScript definitions for better clarity and functionality.
- Refactored CSS styles for consistency and improved UI elements.
This commit is contained in:
abdullahalam123
2025-11-08 13:17:29 +05:30
parent 661c030ae1
commit bc181c8c96
16 changed files with 652 additions and 320 deletions

View File

@@ -1,4 +1,4 @@
declare const coherentpdf: typeof import("../../src/types/coherentpdf.global").coherentpdf;
declare const coherentpdf: typeof import('../../src/types/coherentpdf.global').coherentpdf;
interface GenerateTOCMessage {
command: 'generate-toc';
@@ -19,4 +19,4 @@ interface TOCErrorResponse {
message: string;
}
type TOCResponse = TOCSuccessResponse | TOCErrorResponse;
type TOCResponse = TOCSuccessResponse | TOCErrorResponse;

View File

@@ -19,7 +19,8 @@ function generateTableOfContentsInWorker(
coherentpdf.deletePdf(pdf);
self.postMessage({
status: 'error',
message: 'This PDF does not have any bookmarks. Please add bookmarks first using the Bookmark tool.',
message:
'This PDF does not have any bookmarks. Please add bookmarks first using the Bookmark tool.',
});
return;
}
@@ -39,7 +40,10 @@ function generateTableOfContentsInWorker(
} catch (error) {
self.postMessage({
status: 'error',
message: error instanceof Error ? error.message : 'Unknown error occurred during table of contents generation.',
message:
error instanceof Error
? error.message
: 'Unknown error occurred during table of contents generation.',
});
}
}
@@ -54,4 +58,4 @@ self.onmessage = (e) => {
e.data.addBookmark
);
}
};
};