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

Free Support Forum - aspose.com

"Stack Empty" Exception when saving as PDF

With Aspose.Words for .NET 16.1, a “Stack Empty” exception is thrown when converting a DOCX file to PDF if the resulting document has a Structured Document Tag that spans multiple pages.

We previously used Aspose 15.7 and it does not have this issue.

Attached is an example C# project with DOCX files that can be used to reproduce this issue.

Hi Jonathan,

Thanks for your inquiry. We have tested the scenario using latest version of Aspose.Words for .NET 16.2.0 and have not found the shared issue. Please use Aspose.Words for .NET 16.2.0. We have attached the output Docx and Pdf files with this post for your kind reference.

Thank for the update. I was able to confirm that this issue is resolved with our use case. This ticket can be closed.