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 Sat Apr 26, 2025 10:41 pm
WordprocessingMLPackage 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 image
Total posts 10160 • Total topics 2859 • Total members 2089