I'm getting stack overflow excpetion when converting DOCX to PDF.
Here is my method (I call it in loop):
- Code: Select all
public void ConvertDocxToPdf(string fileIn, string fileOut)
{
var doc = new Document();
doc.LoadFromFile(fileIn);
doc.SaveToFile(fileOut, FileFormat.PDF);
}
After converting first file (successfully) it throws:
An unhandled exception of type 'System.StackOverflowException' occurred in Spire.Doc.dll
I use NET4.0 ClientProfile dll in .net framework 4.5 project.