mirror of
https://github.com/alam00000/bentopdf.git
synced 2026-11-08 16:57:14 +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
@@ -108,7 +108,9 @@ async function handleFileUpload(file: File) {
|
||||
if (!result) return;
|
||||
showLoader('Loading PDF...');
|
||||
result.pdf.destroy();
|
||||
pageState.pdfDoc = await PDFDocument.load(result.bytes);
|
||||
pageState.pdfDoc = await PDFDocument.load(result.bytes, {
|
||||
ignoreEncryption: true,
|
||||
});
|
||||
pageState.file = result.file;
|
||||
updateFileDisplay();
|
||||
document.getElementById('options-panel')?.classList.remove('hidden');
|
||||
|
||||
Reference in new issue
Block a user