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

Free Support Forum - aspose.com

Stack overflow exception in Aspose.Words

Hi Aspose,


We are encountering a stack overflow exception on the attached type of Word documents, and have no way of checking what’s going on, as this type of exception cannot be handled in any way.

Can You please test the scenario with the attached document? It’s a straight forward doc 2 pdf conversion as below:

public string ConvertWordDocument(string inputPath)
{
var outputPath = SetOutputPath(inputPath);
var document = new Aspose.Words.Document(inputPath);
var saveOption = new Aspose.Words.Saving.PdfSaveOptions
{
FontEmbeddingMode = PdfFontEmbeddingMode.EmbedNonstandard,
UseHighQualityRendering = true
};
document.Unprotect();
document.Save(outputPath, saveOption);
return document.GetText();
}
Hi Morten,

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