Word to PDF bugs

Hi,

I have created a word document and tried to convert it to a PDF using the following code:

Aspose.Word.Document wordDoc = new Aspose.Word.Document(wordDocName);

MemoryStream stream = new MemoryStream();
wordDoc.Save(stream, Aspose.Word.SaveFormat.FormatAsposePdf);
stream.Seek(0, SeekOrigin.Begin);
XmlDocument xmlDoc = new XmlDocument();
xmlDoc.Load(stream);

Aspose.Pdf.Pdf pdf = new Aspose.Pdf.Pdf();
pdf.IsImagesInXmlDeleteNeeded = true;
pdf.BindXML(xmlDoc, null);

pdf.Save(pdfDocName);


However, the pdf created contains a large number of errors ranging from extra page insertion, to incorrect header and footer text.

Can you let me know how to resolve these issues - a sample word document is attached.

Thanks.

T.

Hi,

Thank you for considering Aspose.

I can't see the attachment. Did you forget to attach it?