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

Free Support Forum - aspose.com

Error during Pdf Conversion

Dear Aspose.

We can see such stact trace:

at com.aspose.words.zzZMZ.zzX(Unknown Source)
at com.aspose.words.zzZ2B.zzZex(Unknown Source)
at com.aspose.words.zzZ2B.zzZ(Unknown Source)
at com.aspose.words.zzZHJ.zzV(Unknown Source)
at com.aspose.words.zzZHJ.zzZ(Unknown Source)
at com.aspose.words.zzXI.zzsH(Unknown Source)
at com.aspose.words.zzXI.zzsI(Unknown Source)
at com.aspose.words.zzXI.zzX(Unknown Source)
at com.aspose.words.zzZB5.zzJ(Unknown Source)
at com.aspose.words.zzZB5.zzS(Unknown Source)
at com.aspose.words.zzZAN.zzy(Unknown Source)
at com.aspose.words.zzZ0K.zzSe(Unknown Source)
at com.aspose.words.zz9V.zzXH(Unknown Source)
at com.aspose.words.zz9W.zz3B(Unknown Source)
at com.aspose.words.zzZO3.zzZ(Unknown Source)
at com.aspose.words.Document.updatePageLayout(Unknown Source)
at com.aspose.words.Document.zzXL(Unknown Source)
at com.aspose.words.Document.zz4h(Unknown Source)
at com.aspose.words.Document.getPageCount(Unknown Source)
at com.aspose.words.zzZZ7.zzY(Unknown Source)
at com.aspose.words.zzZZ7.zzZ(Unknown Source)
at com.aspose.words.Document.zzZ(Unknown Source)
at com.aspose.words.Document.save(Unknown Source)

For code:

com.aspose.words.PdfSaveOptions opt = new com.aspose.words.PdfSaveOptions();
java.io.File targetContent = new java.io.File(path, fileName);

doc.save(targetContent.getCanonicalPath(), opt);

Of course it is not for all contents, but for some of them.

If we play with document itself to get root cause we can see another stack trace:

java.lang.IllegalStateException: Infinite loop detected.
at com.aspose.words.zzZ3R.zzAH(Unknown Source)
at com.aspose.words.zzZ3R.zzSu(Unknown Source)
at com.aspose.words.zzDE.zzXV(Unknown Source)
at com.aspose.words.zzDF.zz9k(Unknown Source)
at com.aspose.words.zzZR4.zzZ(Unknown Source)
at com.aspose.words.Document.updatePageLayout(Unknown Source)
at com.aspose.words.Document.zzXZ(Unknown Source)
at com.aspose.words.Document.zza0(Unknown Source)
at com.aspose.words.Document.getPageCount(Unknown Source)
at com.aspose.words.zz2O.zzY(Unknown Source)
at com.aspose.words.zz2O.zzZ(Unknown Source)
at com.aspose.words.Document.zzZ(Unknown Source)
at com.aspose.words.Document.save(Unknown Source)

It is seen that this is issue is connected to layout and footnotes at least that original one.

If you need example document we can provide that, but it should be transfered secure
way and hidden from public.

It is tested also on "aspose-words-14.10.0-jdk16.jar", but original problem is still there.


- mentioned exception

- result PDF is almost empty file and Adobe PDF Reader report "There was an error..."

Thank you in advance for support.

Hi Anne,

Thanks for your inquiry. Could you please attach your input Word documents you're getting these problems with here for testing? We will investigate the issue(s) on our end and provide you more information.

Best regards,


where should I place the example document? It should be sent in a secure way.



Hi Anne,

Thanks for your inquiry. It is safe to attach files in the forum. If you attach your documents here, only you and Aspose staff members can download them. To attach these resources, please zip them and Click ‘Reply’ button that will bring you to the ‘reply page’ and there at the bottom you can include any attachments with that post by clicking the ‘Add/Update’ button.

Also you can zip and send the files to my e-mail as described here:

Best regards,


here’s the example. It is a plain document (sensitive text removed), but it contains all the elements that seem to be the reason for the PDF conversion failure.

Hi Anne,

Thanks for your inquiry.

While using the latest version of Aspose.Words i.e. 14.10.0, I managed to reproduce this issue on my side. I have logged this issue in our bug tracking system. The ID of this issue is WORDSNET-11122. Your request has also been linked to this issue and you will be notified as soon as it is resolved. Sorry for the inconvenience.

Best regards,

The issues you have found earlier (filed as WORDSNET-11122) have been fixed in this .NET update and this Java update.

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

It seems that it is fixed such issue.