feat: enhance PDF tools with new features and UI improvements

- Added 'Extract Attachments' and 'Edit Attachments' functionalities to manage embedded files in PDFs.
- Introduced new splitting options: by bookmarks and by a specified number of pages (N times).
- Updated the user interface to include new options and improved layout for better usability.
- Enhanced the GitHub link display with dynamic star count retrieval.
- Bumped version to 1.4.0 and updated footer to reflect the new version.
- Refactored existing code for better maintainability and added new TypeScript definitions for the new features.
This commit is contained in:
abdullahalam123
2025-11-10 18:41:48 +05:30
parent 4b5b29bf9a
commit 0634600073
20 changed files with 3719 additions and 306 deletions

View File

@@ -6,7 +6,6 @@ export const singlePdfLoadTools = [
'pdf-to-jpg',
'pdf-to-png',
'pdf-to-webp',
'compress',
'pdf-to-greyscale',
'edit-metadata',
'remove-metadata',
@@ -38,6 +37,7 @@ export const singlePdfLoadTools = [
'posterize',
'remove-blank-pages',
'add-attachments',
'edit-attachments',
'sanitize-pdf',
'remove-restrictions',
'bookmark-pdf',
@@ -65,4 +65,7 @@ export const multiFileTools = [
'alternate-merge',
'linearize',
'reverse-pages',
'txt-to-pdf',
'compress',
'extract-attachments',
];

View File

@@ -312,6 +312,24 @@ export const categories = [
icon: 'paperclip',
subtitle: 'Embed one or more files into your PDF.',
},
{
id: 'extract-attachments',
name: 'Extract Attachments',
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.',
},
{
href: '/src/pages/pdf-multi-tool.html',
name: 'PDF Multi Tool',
icon: 'layers',
subtitle: 'Full-featured PDF editor with page management.',
},
{
id: 'split',
name: 'Split PDF',