Summary
Remove password protection from a PDF.
Files to create/edit
src/pages/tools/PdfUnlock.tsx → create
src/App.tsx → add import + route /tools/pdf-unlock
src/pages/Tools.tsx → add to allTools[]
Implementation notes
- Use
pdfjs-dist with password input to decrypt
- Re-save without encryption using
pdf-lib
- Show error if wrong password entered
Summary
Remove password protection from a PDF.
Files to create/edit
src/pages/tools/PdfUnlock.tsx→ createsrc/App.tsx→ add import + route/tools/pdf-unlocksrc/pages/Tools.tsx→ add toallTools[]Implementation notes
pdfjs-distwith password input to decryptpdf-lib