IllegalArgumentException: Parameter name: numberStyle

We have recently upgraded to version 16.12.0 from 16.1.0 of Aspose.Words (Java Version) and the following code no longer works and gives then following error.


<pre style=“background-color: rgb(255, 255, 255); font-family: “Courier New”; font-size: 9pt;”>this.document = new Document(new ByteArrayInputStream(source));<pre style=“background-color: rgb(255, 255, 255); font-family: “Courier New”; font-size: 9pt;”><pre style=“font-family: “Courier New”; font-size: 9pt;”>final ImageSaveOptions options = new ImageSaveOptions(SaveFormat.PNG);
options.setResolution(80);

final ByteArrayOutputStream outputStream = new ByteArrayOutputStream();
options.setPageIndex(0);
document.save(outputStream, options);
The error.

java.lang.IllegalArgumentException: Parameter name: numberStyle
at com.aspose.words.zzX.zzUg(Unknown Source)
at com.aspose.words.zzX.zzZ(Unknown Source)
at com.aspose.words.zzZKX.zzZ(Unknown Source)
at com.aspose.words.zzZKX.zzZ(Unknown Source)
at com.aspose.words.zzZKX.zzZ(Unknown Source)
at com.aspose.words.zzZKY.visitParagraphStart(Unknown Source)
at com.aspose.words.Paragraph.zzZ(Unknown Source)
at com.aspose.words.CompositeNode.acceptCore(Unknown Source)
at com.aspose.words.Paragraph.accept(Unknown Source)
at com.aspose.words.CompositeNode.acceptChildren(Unknown Source)
at com.aspose.words.CompositeNode.acceptCore(Unknown Source)
at com.aspose.words.Body.accept(Unknown Source)
at com.aspose.words.CompositeNode.acceptChildren(Unknown Source)
at com.aspose.words.CompositeNode.acceptCore(Unknown Source)
at com.aspose.words.Section.accept(Unknown Source)
at com.aspose.words.CompositeNode.acceptChildren(Unknown Source)
at com.aspose.words.CompositeNode.acceptCore(Unknown Source)
at com.aspose.words.Document.accept(Unknown Source)
at com.aspose.words.zzZKY.zzI(Unknown Source)
at com.aspose.words.zz79.zzY(Unknown Source)
at com.aspose.words.zzZME.zzZ(Unknown Source)
at com.aspose.words.Document.updatePageLayout(Unknown Source)
at com.aspose.words.zz2Z.perform(Unknown Source)
at com.aspose.words.zz30.zzMB(Unknown Source)
at com.aspose.words.zz04.zzYV(Unknown Source)
at com.aspose.words.zz04.zzZ(Unknown Source)
at com.aspose.words.zz04.zzZJ(Unknown Source)
at com.aspose.words.Document.zzZ(Unknown Source)
at com.aspose.words.Document.zzZ(Unknown Source)
at com.aspose.words.Document.zzZ(Unknown Source)
at com.aspose.words.Document.save(Unknown Source)
at …AsposeDocumentPageCreator.createPage(AsposeDocumentPageCreator.java:39)


This happens with both the attached Word documents.

Any help or advice would be much appreciated.

Thanks
Hi Stuart,

Thanks for your inquiry. We have tested the scenario and have managed to reproduce the same issue at our side. For the sake of correction, we have logged this problem in our issue tracking system as WORDSNET-14640. You will be notified via this forum thread once this issue is resolved.

We apologize for your inconvenience.

The issues you have found earlier (filed as WORDSNET-14640) have been fixed in this Aspose.Words for .NET 17.1.0 update and this Aspose.Words for Java 17.1.0 update.


This message was posted using Notification2Forum from Downloads module by aspose.notifier.