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

pull/184/head
gaoxiongzaq 1 year ago
parent fe5ad49008
commit 54750f4e06

@ -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<>();

Loading…
Cancel
Save