I have a .doc file which I want to convert to pdf. The code I’m using (in
VB.NET) can be shown in a simplified form bellow. After the document is converted to AsposePdf format and called to save the pdf, it hangs on pdf.save. I never get an exception and the current CPU core is at 100%, permanently. This problem came up only in some of the files I was trying to convert and I’ve managed to narrow it down to a comment(included in the doc file attached). I cannot send the original file, but this small doc reproduces the same issue. The version of Aspose.Pdf I’m using is 18.104.22.168 and it was tested in both Windows Server 2008 and XP with the same results, both in runtime as well as in debug mode.
Dim aDoc As Aspose.Words.Document = New Aspose.Words.Document("FA.doc") aDoc.Save("FA.xml", SaveFormat.AsposePdf) Dim aPdf As Aspose.Pdf.Pdf = New Aspose.Pdf.Pdf aPdf.BindXML("FA.xml", Nothing) aPdf.Save("FA.pdf")
I don’t care about keeping the comment in any form, but I must not modify the original documents.
Thanks in advance