mirror of
https://github.com/alam00000/bentopdf.git
synced 2026-11-13 17:54:19 +01:00
feat: enable loading of encrypted PDFs by adding ignoreEncryption option
This commit is contained in:
1 parent
816dc311ae
commit
9d362b1cf8
24 files changed
+56
-17
No files matched your search
@@ -229,6 +229,7 @@ async function updateUI() {
|
||||
result.pdf.destroy();
|
||||
pageState.file = result.file;
|
||||
pageState.pdfDoc = await PDFLibDocument.load(result.bytes, {
|
||||
ignoreEncryption: true,
|
||||
throwOnInvalidObject: false,
|
||||
});
|
||||
hideLoader();
|
||||
|
||||
Reference in new issue
Block a user