diff --git a/exam-module-judgement/exam-module-judgement-biz/pom.xml b/exam-module-judgement/exam-module-judgement-biz/pom.xml
index fa618c20..db916edc 100644
--- a/exam-module-judgement/exam-module-judgement-biz/pom.xml
+++ b/exam-module-judgement/exam-module-judgement-biz/pom.xml
@@ -153,6 +153,37 @@
2.4.2-SNAPSHOT
compile
+
+ org.docx4j
+ docx4j-core
+ 11.5.3
+
+
+ org.docx4j
+ docx4j-JAXB-MOXy
+ 11.5.3
+
+
+
+ org.docx4j
+ docx4j-JAXB-Internal
+ 8.3.9
+
+
+
+
+ org.eclipse.persistence
+ org.eclipse.persistence.moxy
+ 3.0.2
+
+
+
+
+ jakarta.xml.bind
+ jakarta.xml.bind-api
+ 3.0.1
+
+
diff --git a/exam-module-judgement/exam-module-judgement-biz/src/main/java/pc/exam/pp/module/judgement/controller/admin/Wps/WpsController.java b/exam-module-judgement/exam-module-judgement-biz/src/main/java/pc/exam/pp/module/judgement/controller/admin/Wps/WpsController.java
index 75bb7434..42a2fa5c 100644
--- a/exam-module-judgement/exam-module-judgement-biz/src/main/java/pc/exam/pp/module/judgement/controller/admin/Wps/WpsController.java
+++ b/exam-module-judgement/exam-module-judgement-biz/src/main/java/pc/exam/pp/module/judgement/controller/admin/Wps/WpsController.java
@@ -45,6 +45,11 @@ public class WpsController {
JudgementWpsPptxService judgementWpsPptxService;
@Resource
JudgementWpsExcelService judgementWpsExcelService;
+ @GetMapping("/docxMaster")
+ public CommonResult docxMaster() throws Exception {
+ judgementWpsWordService.docxMaster("D:\\Project\\Exam\\Software\\Temp\\1.docx");
+ return CommonResult.success("");
+ }
/**
* wps word
* @return 判分
diff --git a/exam-module-judgement/exam-module-judgement-biz/src/main/java/pc/exam/pp/module/judgement/service/wps_word/JudgementWpsWordService.java b/exam-module-judgement/exam-module-judgement-biz/src/main/java/pc/exam/pp/module/judgement/service/wps_word/JudgementWpsWordService.java
index 42bb5d14..ed630418 100644
--- a/exam-module-judgement/exam-module-judgement-biz/src/main/java/pc/exam/pp/module/judgement/service/wps_word/JudgementWpsWordService.java
+++ b/exam-module-judgement/exam-module-judgement-biz/src/main/java/pc/exam/pp/module/judgement/service/wps_word/JudgementWpsWordService.java
@@ -19,6 +19,7 @@ import java.util.List;
*/
public interface JudgementWpsWordService {
+ void docxMaster(String path) throws Exception;
/**
* 获取word文件内得考点及描述
* @param path minio文件路径
diff --git a/exam-module-judgement/exam-module-judgement-biz/src/main/java/pc/exam/pp/module/judgement/service/wps_word/JudgementWpsWordServiceImpl.java b/exam-module-judgement/exam-module-judgement-biz/src/main/java/pc/exam/pp/module/judgement/service/wps_word/JudgementWpsWordServiceImpl.java
index 980567ae..b3a63de8 100644
--- a/exam-module-judgement/exam-module-judgement-biz/src/main/java/pc/exam/pp/module/judgement/service/wps_word/JudgementWpsWordServiceImpl.java
+++ b/exam-module-judgement/exam-module-judgement-biz/src/main/java/pc/exam/pp/module/judgement/service/wps_word/JudgementWpsWordServiceImpl.java
@@ -19,6 +19,7 @@ import pc.exam.pp.module.judgement.service.auto_tools.AutoToolsService;
import pc.exam.pp.module.judgement.service.auto_tools.vo.SourceAndText;
import pc.exam.pp.module.judgement.utils.HtmlAppender;
import pc.exam.pp.module.judgement.utils.wps_word.WpsWordUtils;
+import pc.exam.pp.module.judgement.utils.wps_word.docx4j.DocxMaster;
import pc.exam.pp.module.judgement.utils.wps_word.vo.WordInfoReqVo;
import pc.exam.pp.module.judgement.utils.wps_word.vo.WordVO;
import pc.exam.pp.module.system.dal.dataobject.user.AdminUserDO;
@@ -47,6 +48,11 @@ public class JudgementWpsWordServiceImpl implements JudgementWpsWordService {
@Resource
private AdminUserService userService;
+ @Override
+ public void docxMaster(String path) throws Exception {
+ DocxMaster.docxMaster(path);
+ }
+
@Override
public List programmingWpsWord(String path) throws Exception {
String pathName = "";
diff --git a/exam-module-judgement/exam-module-judgement-biz/src/main/java/pc/exam/pp/module/judgement/utils/wps_word/docx4j/DocxMaster.java b/exam-module-judgement/exam-module-judgement-biz/src/main/java/pc/exam/pp/module/judgement/utils/wps_word/docx4j/DocxMaster.java
new file mode 100644
index 00000000..2f31a0d3
--- /dev/null
+++ b/exam-module-judgement/exam-module-judgement-biz/src/main/java/pc/exam/pp/module/judgement/utils/wps_word/docx4j/DocxMaster.java
@@ -0,0 +1,101 @@
+package pc.exam.pp.module.judgement.utils.wps_word.docx4j;
+
+import jakarta.xml.bind.JAXBElement;
+import org.docx4j.XmlUtils;
+import org.docx4j.model.structure.HeaderFooterPolicy;
+import org.docx4j.model.structure.SectionWrapper;
+import org.docx4j.openpackaging.exceptions.Docx4JException;
+import org.docx4j.openpackaging.packages.WordprocessingMLPackage;
+import org.docx4j.openpackaging.parts.WordprocessingML.HeaderPart;
+import org.docx4j.openpackaging.parts.WordprocessingML.NumberingDefinitionsPart;
+import org.docx4j.openpackaging.parts.WordprocessingML.StyleDefinitionsPart;
+import org.docx4j.wml.*;
+import pc.exam.pp.module.judgement.utils.wps_word.docx4j.paragraph.Convert;
+import pc.exam.pp.module.judgement.utils.wps_word.docx4j.paragraph.Paragraphs;
+import pc.exam.pp.module.judgement.utils.wps_word.docx4j.paragraph.RunText;
+import pc.exam.pp.module.judgement.utils.wps_word.docx4j.section.SectionPage;
+import pc.exam.pp.module.judgement.utils.wps_word.docx4j.vo.JudgementWordsVO;
+
+import java.io.File;
+import java.math.BigInteger;
+import java.util.ArrayList;
+import java.util.List;
+
+/**
+ * @author REN
+ */
+public class DocxMaster {
+
+ public static void docxMaster(String path) throws Docx4JException {
+
+ // 一共分为 段落
+ // 创建考点数组
+ List judgementWordsVOS = new ArrayList<>();
+ WordprocessingMLPackage wordMLPackage = WordprocessingMLPackage.load(new File(path));
+ List