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

pull/185/head
gaoxiongzaq 2023-07-24 09:41:00 +08:00
parent 54750f4e06
commit 4ebee74f70
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) {