The condition I'm trying to check is
- Code: Select all
if (!((javax.xml.bind.JAXBElement)((org.docx4j.wml.Text) o).getParent()).getName().getLocalPart().equalsIgnoreCase("instrText"))
It is currently Thu Jan 09, 2025 7:54 pm
if (!((javax.xml.bind.JAXBElement)((org.docx4j.wml.Text) o).getParent()).getName().getLocalPart().equalsIgnoreCase("instrText"))
<w:p w14:paraId="67A261C9" w14:textId="0AE29CEA" w:rsidR="008E71E3" w:rsidRPr="008E71E3" w:rsidRDefault="008E71E3" w:rsidP="008E71E3">
<w:r>
<w:rPr>
<w:noProof/>
</w:rPr>
<w:pict w14:anchorId="4E50C000">
<v:line
id="Straight Connector 2"
o:spid="_x0000_s1027"
style="position:absolute;z-index:251659264;visibility:visible;mso-wrap-style:square;mso-wrap-distance-left:9pt;mso-wrap-distance-top:0;mso-wrap-distance-right:9pt;mso-wrap-distance-bottom:0;mso-position-horizontal:absolute;mso-position-horizontal-relative:text;mso-position-vertical:absolute;mso-position-vertical-relative:text"
from="0,8.5pt"
to="270pt,8.5pt"
o:gfxdata="..."
strokecolor="black [3213]"
strokeweight="2pt">
<v:shadow on="t" opacity="24903f" mv:blur="40000f" origin=",.5" offset="0,20000emu"/>
</v:line>
</w:pict>
</w:r>
</w:p>
InputStream stream = this.getClass().getResourceAsStream("test.docx");
WordprocessingMLPackage a = WordprocessingMLPackage.load(stream);
org.docx4j.openpackaging.exceptions.Docx4JException: Error processing zip file (is it a zip file?)
FileInputStream fStream = new FileInputStream("C:\\test.docx");
WordprocessingMLPackage a = WordprocessingMLPackage.load(fStream);
http://converter-eval.plutext.com:80/v1/00000000-0000-0000-0000-000000000000/convert
Total posts 10116 • Total topics 2845 • Total members 2076