【发布时间】:2023-03-16 18:24:01
【问题描述】:
我在我的 Angular 应用程序中使用 pdfjs-dist 来呈现 pdf。但我无法打开受密码保护的 pdf。 有没有其他方法可以验证文档的密码并打开它。
【问题讨论】:
-
请分享您的代码
-
我使用 pdfjs-dist 的 getDocument 函数,比如 getDocument(fileData, null, '12345') 这里 '12345' 是我的 pdf 文件的密码
-
getDocument(fileData) 适用于普通 pdf,但无法打开受密码保护的 pdf
标签: angular pdf password-protection pdf.js pdfjs-dist