修改拆分表格包公式
This commit is contained in:
+9
-3
@@ -568,7 +568,9 @@ public class OnlyOfficeController {
|
||||
Document doc = new Document(filePath + ossFile.getUrl());
|
||||
doc.getSections().get(0).getPageSetup().setPageNumberStyle(PageNumberStyle.Roman_Upper);
|
||||
doc.getSections().get(0).getPageSetup().setOrientation(PageOrientation.Portrait);//纵向
|
||||
doc.getSections().get(1).getPageSetup().setOrientation(PageOrientation.Portrait);//纵向
|
||||
if(doc.getSections().getCount() > 1){
|
||||
doc.getSections().get(1).getPageSetup().setOrientation(PageOrientation.Portrait);//纵向
|
||||
}
|
||||
|
||||
String downloadDocxFileTempUrl = filePath + "/downloadDocxFileTemp";
|
||||
File downloadDocxFileTempUrlFile = new File(downloadDocxFileTempUrl);
|
||||
@@ -732,7 +734,9 @@ public class OnlyOfficeController {
|
||||
Document doc = new Document(filePath + ossFile.getUrl());
|
||||
doc.getSections().get(0).getPageSetup().setPageNumberStyle(PageNumberStyle.Roman_Upper);
|
||||
doc.getSections().get(0).getPageSetup().setOrientation(PageOrientation.Portrait);//纵向
|
||||
doc.getSections().get(1).getPageSetup().setOrientation(PageOrientation.Portrait);//纵向
|
||||
if(doc.getSections().getCount() > 1){
|
||||
doc.getSections().get(1).getPageSetup().setOrientation(PageOrientation.Portrait);//纵向
|
||||
}
|
||||
|
||||
String downloadDocxFileTempUrl = filePath + "/downloadDocxFileTemp";
|
||||
File downloadDocxFileTempUrlFile = new File(downloadDocxFileTempUrl);
|
||||
@@ -785,7 +789,9 @@ public class OnlyOfficeController {
|
||||
Document doc = new Document(ossFile.getUrl());
|
||||
doc.getSections().get(0).getPageSetup().setPageNumberStyle(PageNumberStyle.Roman_Upper);
|
||||
doc.getSections().get(0).getPageSetup().setOrientation(PageOrientation.Portrait);//纵向
|
||||
doc.getSections().get(1).getPageSetup().setOrientation(PageOrientation.Portrait);//纵向
|
||||
if(doc.getSections().getCount() > 1){
|
||||
doc.getSections().get(1).getPageSetup().setOrientation(PageOrientation.Portrait);//纵向
|
||||
}
|
||||
|
||||
String downloadDocxFileTempUrl = filePath + "/downloadDocxFileTemp";
|
||||
File downloadDocxFileTempUrlFile = new File(downloadDocxFileTempUrl);
|
||||
|
||||
Reference in New Issue
Block a user