mirror of
https://github.com/alam00000/bentopdf.git
synced 2026-11-11 09:23:36 +01:00
feat: add PDF password prompt and centralized pdf-lib loader with auto-repair
This commit is contained in:
1 parent
9278774b8a
commit
bd44108296
19 files changed
+89
-78
No files matched your search
@@ -94,9 +94,7 @@ async function handleFile(file: File) {
|
||||
}
|
||||
showLoader('Loading PDF...');
|
||||
deleteState.file = result.file;
|
||||
deleteState.pdfDoc = await loadPdfDocument(result.bytes, {
|
||||
throwOnInvalidObject: false,
|
||||
});
|
||||
deleteState.pdfDoc = await loadPdfDocument(result.bytes);
|
||||
deleteState.pdfJsDoc = result.pdf;
|
||||
deleteState.totalPages = deleteState.pdfDoc.getPageCount();
|
||||
deleteState.pagesToDelete = new Set();
|
||||
|
||||
Reference in new issue
Block a user