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 Tue Aug 04, 2026 1:01 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 10234 • Total topics 2888 • Total members 2109