We are evaluating Spire.Doc to see if it is a product we wish to buy.
We are feeding in a WordML (.xml) file and trying to covert it to PDF.
Unfortunatly when we use the following code:
- Code: Select all
Document mydoc = new Document();
mydoc.LoadFromFile("test2.xml", FileFormat.WordML);
mydoc.SaveToFile("Spire.pdf", FileFormat.PDF);
The program crashed with the following error:
System.StackOverflowException was unhandled
Message: An unhandled exception of type 'System.StackOverflowException' occurred in Spire.Doc.dll
If we convert to FileFormat.DOC - it works, however fails to convert the images (are images not supported in WordML with Spire?
Please can you advise:
A) why won't it convert to PDF
B) are images supported when converting from WordML?
If you would like us to provide a sample WordML file that we are using - please can you provide an email to send it to? Thanks