The code:
Aspose.Words.Document doc = new Aspose.Words.Document(@"C:\michael_fe\dev_2010\Letters\BizTalk_Version2.0\Xml instances\ 300020410534. doc ");
Aspose.Words.Saving.PdfSaveOptions pdfOptions = new Aspose.Words.Saving.PdfSaveOptions();
pdfOptions.UseHighQualityRendering = true; pdfOptions.EmbedFullFonts = false;
pdfOptions.EmbedStandardWindowsFonts = false; pdfOptions.PreserveFormFields = false;
pdfOptions.PrettyFormat = true; pdfOptions.UseCoreFonts = true;
doc.Save(@"C:\michael_fe\dev_2010\Letters\BizTalk_Version2.0\Xml instances\300020410534.pdf", pdfOptions);
When it reaches the save line it hangs forever and the CPU reaches almost 100% while a PDF file is created but stays on 0 size.
To things need to be solved. In case of a problem converting, the process shouldn’t hang forever and reach 100% CPU but stop processing the DOC and raise an exception. The second, why does it happen?
The DOC is attach and doesn’t appear to have an unusual things inside.