IllegalArgumentException: Parameter name: pageCount when saving Word as PDF

Hi,


I’m using Aspose.Words 16.2 for jdk1.6 in Linux. Source document is attached.
Stacktrace below:
Caused by: java.lang.IllegalArgumentException: Parameter name: pageCount
at com.aspose.words.Document.zzZt(Unknown Source)
at com.aspose.words.zz3U.zzZ(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)
Hi Evgeny,

Thanks for your inquiry. We have converted the shared document to Pdf using latest version of Aspose.Words for Java 16.3.0 and have not found the shared exception. Please use Aspose.Words for Java 16.3.0. We have attached the output Pdf with this post for your kind reference.

Hi Tahir,


I’ve tested on my side with Aspose.Words 16.3 for jdk 1.6 (both OS: Linux, Windows) and issue still reproduces. You can find the actual stacktrace below:

Caused by: java.lang.IllegalArgumentException: Parameter name: pageCount
at com.aspose.words.Document.zzZs(Unknown Source)
at com.aspose.words.zz3H.zzZ(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)

How can we continue investigate this issue?
What additional information is required to study the problem?
Hi Evgeny,

Thanks for your inquiry. Please create a standalone Java application (source code without compilation errors) that helps us to reproduce your problem on our end and attach it here for testing. Thanks for your cooperation.