Hi,
What's the replacement for PdfSettings, since it's deprecated?
I'm using docx4j - 3.2.1
Thanks.
It is currently Tue Nov 26, 2024 4:49 am
wordMLPackage.getMainDocumentPart().getContent() .addAll(XHTMLImporter.convert(body, null, wordMLPackage));
// Run time value
String body ="<html><font face="Arial, Verdana"><span style="font-size: 13.3333330154419px;">Word template test</span></font></html>";
XHTMLImporter importer = new XHTMLImporterImpl(wordMLPackage);
wordMLPackage.getMainDocumentPart().getContent().addAll(importer.convert(body, null));
WorksheetPart sheet = xlsUtils.createWorkSheet(pkg);
Styles styles = new Styles(new PartName("/xl/styles.xml"));
styles.setJaxbElement(sb.createStyleSheet());
Total posts 10111 • Total topics 2842 • Total members 2074