feat: add JSON to PDF and PDF to JSON conversion tools

- Introduced new pages and logic for converting JSON files to PDF and vice versa.
- Implemented web workers for handling conversion processes in the background.
- Updated Vite configuration to include new HTML pages for the conversion tools.
- Enhanced user interface with file upload sections and status messages for conversion progress.
- Added TypeScript definitions for worker communication and response handling.
This commit is contained in:
abdullahalam123
2025-11-08 15:19:56 +05:30
parent 5b7c09ddf3
commit 0999163d3c
11 changed files with 706 additions and 27 deletions

View File

@@ -214,6 +214,12 @@ export const categories = [
icon: 'file-pen',
subtitle: 'Convert a plain text file into a PDF.',
},
{
href: '/src/pages/json-to-pdf.html',
name: 'JSON to PDF',
icon: 'file-code',
subtitle: 'Convert JSON files to PDF format.',
},
// { id: 'md-to-pdf', name: 'Markdown to PDF', icon: 'file-text', subtitle: 'Convert a Markdown file into a PDF.' },
// { id: 'scan-to-pdf', name: 'Scan to PDF', icon: 'camera', subtitle: 'Use your camera to create a scanned PDF.' },
// { id: 'word-to-pdf', name: 'Word to PDF', icon: 'file-text', subtitle: 'Convert .docx documents to PDF.' },
@@ -258,6 +264,12 @@ export const categories = [
icon: 'palette',
subtitle: 'Convert all colors to black and white.',
},
{
href: '/src/pages/pdf-to-json.html',
name: 'PDF to JSON',
icon: 'file-code',
subtitle: 'Convert PDF files to JSON format.',
},
// { id: 'pdf-to-markdown', name: 'PDF to Markdown', icon: 'file-pen', subtitle: 'Extract text into a Markdown file.' },
],
},