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 Sun Sep 20, 2026 12:25 pm
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