Hi all,
with the commit 1754 the method getNumberXmlNode of the class AbstractHtmlExporter changed his signature but the docx2xhtmlNG2.xslt still uses the old signature.
Am I missing something?
Thanks,
Emiliano Albiani
It is currently Sat Apr 05, 2025 7:42 am
for (Object key : templateProperties.keySet()) {
textValue = textValue.replaceAll(key.toString().toUpperCase(),(String) templateProperties.get(key));
}
String docx= "/report_templates/MyDoc.xml";
JAXBContext jc = Context.jcXmlPackage;
Unmarshaller u = jc.createUnmarshaller();
u.setEventHandler(new org.docx4j.jaxb.JaxbValidationEventHandler());
InputStream iStream = getClass().getResourceAsStream(docx);
org.docx4j.xmlPackage.Package wmlPackageEl = (org.docx4j.xmlPackage.Package)((JAXBElement)u.unmarshal(new javax.xml.transform.stream.StreamSource(iStream))).getValue();
org.docx4j.convert.in.FlatOpcXmlImporter xmlPackage = new org.docx4j.convert.in.FlatOpcXmlImporter( wmlPackageEl);
WordprocessingMLPackage wordMLPackage = (WordprocessingMLPackage)xmlPackage.get();
org.docx4j.wml.Pict objWmlPicture = (Pict) XmlUtils.unmarshalString(sXmlData);
Total posts 10157 • Total topics 2857 • Total members 2087