File converted = File.createTempFile("aspdf-", ".pdf");
Document doc = new Document("TwoChartsFailToConvert.docx");
doc.getChildNodes(NodeType.COMMENT, true).clear();
doc.save(converted.getAbsolutePath(), saveOptions);
You will see get the following error:
java.lang.RuntimeException: java.lang.RuntimeException: java.lang.ArithmeticException: / by zeroTwoChartsFailToConvert.zip (17.0 KB)
@sbwillwest,
We tested the scenario and have managed to reproduce the same problem on our end. For the sake of correction, we have logged this problem in our issue tracking system. The ID of this issue is WORDSNET-15847. Our product team will further look into the details of this problem and we will keep you updated on the status of correction. We apologize for your inconvenience.
We updated this version and still not resolved
@asposeglp,
We are unable to reproduce any exception on our end during converting “TwoChartsFailToConvert.docx” to PDF format by using latest 20.12 version of Aspose.Words for Java. Are you observing this problem with another document? If yes, then please ZIP and upload your input Word document you are getting this problem with here for testing. We will then investigate the issue on our end and provide you more information.