feat: enable loading of encrypted PDFs by adding ignoreEncryption option
This commit is contained in:
@@ -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