mirror of
https://github.com/alam00000/bentopdf.git
synced 2026-11-13 17:54:19 +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
@@ -99,9 +99,7 @@ async function updateUI() {
|
||||
pageState.pdfBytes = new Uint8Array(result.bytes);
|
||||
pageState.pdfjsDoc = result.pdf;
|
||||
|
||||
pageState.pdfDoc = await loadPdfDocument(pageState.pdfBytes, {
|
||||
throwOnInvalidObject: false,
|
||||
});
|
||||
pageState.pdfDoc = await loadPdfDocument(pageState.pdfBytes);
|
||||
|
||||
hideLoader();
|
||||
|
||||
|
||||
Reference in new issue
Block a user