feat(toc): implement table of contents generation feature

- Added a new page for generating a table of contents from PDF bookmarks.
- Introduced a web worker to handle the TOC generation process in the background.
- Updated TypeScript definitions for coherentpdf integration.
- Enhanced the Vite configuration to include necessary headers and exclude specific dependencies.
- Modified tsconfig to include WebWorker library and updated file inclusion paths.
- Added a new script for handling TOC logic and user interactions.
This commit is contained in:
abdullahalam123
2025-11-08 12:37:10 +05:30
parent 9befab7758
commit 661c030ae1
9 changed files with 716 additions and 3 deletions

View File

@@ -83,6 +83,12 @@ export const categories = [
icon: 'bookmark',
subtitle: 'Add, edit, import, delete and extract PDF bookmarks.',
},
{
href: '/src/pages/table-of-contents.html',
name: 'Table of Contents',
icon: 'list',
subtitle: 'Generate a table of contents page from PDF bookmarks.',
},
{
id: 'add-page-numbers',
name: 'Page Numbers',