feat: implement PDF attachment editing functionality with web worker support

- Added a new worker script to handle editing of embedded attachments in PDF files.
- Created TypeScript definitions for message structures and response types related to attachment editing.
- Updated the main logic to utilize the worker for improved performance and responsiveness during attachment management.
- Integrated the editing feature into the UI, allowing users to view, remove, or replace attachments in their PDFs.
- Enhanced error handling and user feedback during the editing process.
This commit is contained in:
abdullahalam123
2025-11-11 12:21:11 +05:30
parent 85ce0c97b5
commit 842d940801
5 changed files with 399 additions and 195 deletions

View File

@@ -324,12 +324,12 @@ export const categories = [
icon: 'download',
subtitle: 'Extract all embedded files from PDF(s) as a ZIP.',
},
// {
// id: 'edit-attachments',
// name: 'Edit Attachments',
// icon: 'file-edit',
// subtitle: 'View, remove, or replace attachments in your PDF.',
// },
{
id: 'edit-attachments',
name: 'Edit Attachments',
icon: 'file-edit',
subtitle: 'View or remove attachments in your PDF.',
},
{
href: '/src/pages/pdf-multi-tool.html',
name: 'PDF Multi Tool',