Skip to content

Commit

Permalink
Revert "fix #603"
Browse files Browse the repository at this point in the history
This reverts commit d462c11.
  • Loading branch information
plutext committed Jan 24, 2025
1 parent d462c11 commit 190f802
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .classpath
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@
<attribute name="maven.pomderived" value="true"/>
</attributes>
</classpathentry>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/java-15-openjdk"/>
<classpathentry kind="output" path="bin"/>
</classpath>
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public static void main(String[] args) throws Exception {
try {
getInputFilePath(args);
} catch (IllegalArgumentException e) {
inputfilepath = System.getProperty("user.dir") + "/shapes.docx";
inputfilepath = System.getProperty("user.dir") + "/sample-docs/sample-docx.docx";
}
System.out.println(inputfilepath);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@
import org.docx4j.openpackaging.packages.WordprocessingMLPackage;
import org.docx4j.openpackaging.parts.WordprocessingML.MainDocumentPart;
import org.docx4j.wml.Body;
import org.docx4j.wml.P;


/**
Expand Down Expand Up @@ -78,19 +77,15 @@ public static void main(String[] args) throws Exception {
getInputFilePath(args);
} catch (IllegalArgumentException e) {
inputfilepath = System.getProperty("user.dir")
+ "/hello.docx";
+ "/sample-docs/sample-docx.docx";
}

WordprocessingMLPackage wordMLPackage = WordprocessingMLPackage
.load(new java.io.File(inputfilepath));
MainDocumentPart documentPart = wordMLPackage.getMainDocumentPart();

// P p = (P)documentPart.getContent().get(1);
// p.getPPr().getRPr().getRPrChange()


// Uncomment to see the raw XML
System.out.println(XmlUtils.marshaltoString(documentPart.getJaxbElement(), true, true));
//System.out.println(XmlUtils.marshaltoString(documentPart.getJaxbElement(), true, true));

org.docx4j.wml.Document wmlDocumentEl = (org.docx4j.wml.Document) documentPart
.getJaxbElement();
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<version>${revision}</version>

<properties>
<revision>11.5.2</revision>
<revision>11.5.2-SNAPSHOT</revision>
<packaging.type>jar</packaging.type>

<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
Expand Down

0 comments on commit 190f802

Please sign in to comment.