diff --git a/laws-modules/src/main/java/com/jero/modules/onlyoffice/controller/OnlyOfficeController.java b/laws-modules/src/main/java/com/jero/modules/onlyoffice/controller/OnlyOfficeController.java index d97d063b..bcef934b 100644 --- a/laws-modules/src/main/java/com/jero/modules/onlyoffice/controller/OnlyOfficeController.java +++ b/laws-modules/src/main/java/com/jero/modules/onlyoffice/controller/OnlyOfficeController.java @@ -371,9 +371,7 @@ public class OnlyOfficeController { // 加载文档 Document doc = new Document(filePath + path); doc.getSections().get(0).getPageSetup().setPageNumberStyle(PageNumberStyle.Roman_Upper); - doc.getSections().get(0).getPageSetup().setOrientation(PageOrientation.Portrait);//纵向 doc.getSections().get(1).getPageSetup().setPageNumberStyle(PageNumberStyle.Roman_Upper); - doc.getSections().get(1).getPageSetup().setOrientation(PageOrientation.Portrait);//纵向 String downloadDocxFileTempUrl = filePath + "/downloadDocxFileTemp"; File downloadDocxFileTempUrlFile = new File(downloadDocxFileTempUrl);