!185 修复PDF解密加密文件 转换成功后台报错问题

Merge pull request !185 from 高雄/pdf2
pull/186/MERGE
陈精华 2023-07-24 03:30:26 +00:00 committed by Gitee
commit 16fca7ec61
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
1 changed files with 1 additions and 1 deletions

View File

@ -264,7 +264,7 @@ public class FileHandlerService {
imageUrls.add(imageUrl);
}
try {
pdfReader = new PdfReader(pdfFilePath); //读取PDF文件
pdfReader = new PdfReader(pdfFilePath,filePassword.getBytes()); //读取PDF文件
} catch (Exception e) { //获取异常方法 判断是否有加密字符串
Throwable[] throwableArray = ExceptionUtils.getThrowables(e);
for (Throwable throwable : throwableArray) {