diff --git a/server/src/main/java/cn/keking/service/OfficeToPdfService.java b/server/src/main/java/cn/keking/service/OfficeToPdfService.java index 576a7ece..e82e80d7 100644 --- a/server/src/main/java/cn/keking/service/OfficeToPdfService.java +++ b/server/src/main/java/cn/keking/service/OfficeToPdfService.java @@ -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 customProperties = new HashMap<>();