!184 修复office转换加密文档 PDF不生成密码问题

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

View File

@ -50,7 +50,7 @@ public class OfficeToPdfService {
if(ConfigConstants.getOfficeExportNotes()){
filterData.put("ExportNotes", true); //批注作为PDF的注释
}
if(!ConfigConstants.getOfficeDocumentOpenPasswords()){
if(ConfigConstants.getOfficeDocumentOpenPasswords()){
filterData.put("DocumentOpenPassword", fileAttribute.getFilePassword()); //给PDF添加密码
}
Map<String, Object> customProperties = new HashMap<>();