StackOverflow when saving to XPS

I’m trying to convert DOC to XPS, but with one of my documents I’m getting a stack overflow: “An unhandled exception of type ‘System.StackOverflowException’ occurred in Aspose.Words.dll”

This is a farily large one – 7MB long, 354 pages, 188853 words, with lots of tables and internal links.

Code to reproduce:

Aspose.Words.Document doc = new Aspose.Words.Document(@“c:\filename.doc”);
doc.SaveToXps(@“c:\filename.xps”);

SaveToPdf has the same problem, although we don’t plan to use that feature.

I can send you the sample document via private email.

Thanks,

Tamas Demjen

Hi

Thanks for your request. Could you please attach the document, which causes this problem, here for testing? I will check the issue on my side and provide you more information.

Best regards.

Hi Tamas,

Thank you for additional information. I received your document and managed to reproduce the problem on my side. Your request has been linked to the appropriate issue. You will be notified as soon as it is resolved.

Best regards.