The xml part created from Word is
- Code: Select all
<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>
and my java code is
org.docx4j.wml.ObjectFactory wFactory = new org.docx4j.wml.ObjectFactory();
P p = wFactory.createP();
mdp.getContent().add(p);
R r = wFactory.createR(); ...