How can i extract all charts from docx file and save it into localstore as images.
Is this possible using docx4j api (java)?
can anybody provide me code for this.
It is currently Mon Dec 29, 2025 11:59 pm
News of docx4jWordprocessingMLPackage wordMLPackage;
try {
wordMLPackage = WordprocessingMLPackage.load(template);
MainDocumentPart documentPart = wordMLPackage.getMainDocumentPart();
Document wmlDocumentEl = documentPart.getJaxbElement(); // failing on this line with several NumberFormatExceptions
Body body = wmlDocumentEl.getBody(); // wmlDocumentEl is null
MergeDoc returned an error:Source 1 is unsupported document - contains reference to NULL imageTotal posts 10218 • Total topics 2879 • Total members 2103