Feat: Reverse-pages for mulit-pdf

- Added new state pdfDocs: [ ]
- Made tweaks for new state in fileHandler.ts
This commit is contained in:
divy-11 committed 2025-10-19 18:36:57 +05:30
1 parent caf23b0ab9
commit 2e2c634b41
5 files changed
+30 -20

No files matched your search

+1 -1
View File
@@ -969,7 +969,7 @@ export const toolTemplates = {
'reverse-pages': () => `
<h2 class="text-2xl font-bold text-white mb-4">Reverse PDF Pages</h2>
<p class="mb-6 text-gray-400">Flip the order of all pages in your document, making the last page the first.</p>
${createFileInputHTML()}
${createFileInputHTML({ multiple: true, accept: 'application/pdf', showControls: true })}
<div id="file-display-area" class="mt-4 space-y-2"></div>
<button id="process-btn" class="hidden btn-gradient w-full mt-6">Reverse & Download</button>
`,