We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Exception while saving document in PDF format using Aspose.Words API

Hi Aspose Support Team,


We are facing some issue while saving the document in to PDF format.
Below is the error message coming on to the console :-

<div style=“box-sizing: inherit; font-family: “Default Sans Serif”, Verdana, Arial, Helvetica, sans-serif; font-size: small; background-color: rgb(255, 255, 255);”>Error:- [4/25/17 17:33:46:517 IST] 0000002c SystemOut O java.lang.IllegalStateException: Cannot translate from ‘2’ in ‘1’ to ‘72000’.
<div style=“box-sizing: inherit; font-family: “Default Sans Serif”, Verdana, Arial, Helvetica, sans-serif; font-size: small; background-color: rgb(255, 255, 255);”> at com.aspose.words.zzZD8.zzZ(Unknown Source)<div style=“box-sizing: inherit; font-family: “Default Sans Serif”, Verdana, Arial, Helvetica, sans-serif; font-size: small; background-color: rgb(255, 255, 255);”> at com.aspose.words.zzZD8.zzZE7(Unknown Source)<div style=“box-sizing: inherit; font-family: “Default Sans Serif”, Verdana, Arial, Helvetica, sans-serif; font-size: small; background-color: rgb(255, 255, 255);”> at com.aspose.words.zzZQA.zzV(Unknown Source)<div style=“box-sizing: inherit; font-family: “Default Sans Serif”, Verdana, Arial, Helvetica, sans-serif; font-size: small; background-color: rgb(255, 255, 255);”>
Jave Code that I have used :-

com.aspose.words.Document doc = new com.aspose.words.Document(stream);
doc.save({file_path}, SaveFormat.PDF);

Aspose.Words API Version:- aspose-words-16.3.0

Please suggest some solution to resolve the issue.

Thank you.

Hi,


Thanks for your inquiry. Please upgrade to the latest version of Aspose.Words for Java 17.4 and see how it goes on your end? Hope, this helps.

Download latest version of Aspose.Words for Java

In case the problem still remains, please attach your input Word document here for testing. We will investigate the issue on our end and provide you more information.

Best regards,