How do I stream the wordMLPackage to outputstream? My requirement is quite simple i.e. to render the generated doc in browser without having to store and read the file from the disk.
Many thanks for your help!!
It is currently Fri Sep 18, 2026 2:20 am
News of Forums
mappings.put("INTFCONTENT", paraFragment);
Object obj = XmlUtils.unmarshallFromTemplate(xml, mappings);
org.docx4j.wml.ObjectFactory factory = new org.docx4j.wml.ObjectFactory();
org.docx4j.wml.CTBookmark bookmarkStart = factory.createCTBookmark();
bookmarkStart.setName("something");
Total posts 10255 • Total topics 2893 • Total members 2109