Hi. Is there a way in docx4j to convert fields to static text? This is the functionality that is provided for in Word when you press Ctrl+Shift+F9 with fields selected.
Thanks.
Vikram
It is currently Sat Jan 04, 2025 9:34 pm
WordprocessingMLPackage wordMLPackage=null;
wordMLPackage = WordprocessingMLPackage.load(is);
OutputStream os=null;
wordMLPackage.save(os);
ByteArrayOutputStream memoryStream=null;
WordprocessingMLPackage wordMLPackage=null;
wordMLPackage = WordprocessingMLPackage.load(is);
wordMLPackage.save(memoryStream);
StyleDefinitionsPart sdp = wordMLPackage.getMainDocumentPart().getStyleDefinitionsPart();
List<Style> styleList = sdp.getJaxbElement().getStyle();
for (Style style : styleList) {
System.out.println(style.getName().getVal());
}
Normal
Default Paragraph Font
Normal Table
No List
Total posts 10115 • Total topics 2845 • Total members 2076