Hi,
Im new to docx4j
Can you please provide and example to intergrate OpenDope addin with Docx4j in java
Thanks,
Vis
It is currently Sat Jun 28, 2025 10:34 pm
<base>./</base>
<font metrics-url="servlet-context:/fonts/DejaVuSerif-Bold.xml" embed-url="servlet-context:/WEB-INF/fonts/DejaVuSerif-Bold.ttf" kerning="yes">
<font-triplet name="DejaVuSerif-Bold" style="normal" weight="normal" />
</font>
FOSettings foSettings = Docx4J.createFOSettings();
foSettings.setWmlPackage(wordMLPackage);
ClassPathResource cpr = new ClassPathResource("fop.conf");
InputStream inputStream = cpr.getInputStream();
StringWriter writer = new StringWriter();
IOUtils.copy(inputStream, writer, "UTF-8");
String conf = writer.toString();
<w:p><w:r><w:t xml:space="preserve">1 Example 3a (bold) 1</w:t></w:r></w:p>
<block font-size="10.5pt" line-height="100%" space-after="0in" space-before="0in" text-align="justify"><inline><inline font-family="Times New Roman">1 Example 3a (bold) 1</inline></inline></block>
<w:p>
<w:r>
<w:pict>
<v:shape type="#_x0000_t75" style="position:absolute;margin-left:0;margin-top:0;width:113.35pt;height:67.61475716064757pt;z-index:-251657216;mso-position-horizontal:center;mso-position-horizontal-relative:margin;mso-position-vertical:center;mso-position-vertical-relative:margin" o:hralign="left" o:allowincell="f" o:insetmode="custom" o:connectortype="straight">
<v:imagedata o:title="watermark" r:id="rId3" gain="19661f" blacklevel="22938f"/>
</v:shape>
</w:pict>
</w:r>
</w:p>
Total posts 10181 • Total topics 2864 • Total members 2095