From 929de3eb046c90605963355ceb76e918707111d0 Mon Sep 17 00:00:00 2001 From: caihaohan Date: Sat, 20 Apr 2024 23:24:27 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=88=A0=E9=99=A4=E5=9C=A8=E7=BA=BF?= =?UTF-8?q?=E7=BC=96=E8=BE=91=E6=96=87=E4=BB=B6=E4=B8=8B=E8=BD=BD=E8=AE=BE?= =?UTF-8?q?=E7=BD=AE=E6=96=87=E6=9C=AC=E6=96=B9=E5=90=91=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../modules/onlyoffice/controller/OnlyOfficeController.java | 2 -- 1 file changed, 2 deletions(-) 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);