Hi ,
Im new to Docx4j
I need to convert RTF to DOCx
Can we do this uisng docx4j.
Please help
Thanks,
Vcs
It is currently Sat Jan 11, 2025 3:47 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();
Total posts 10116 • Total topics 2845 • Total members 2076