I am using Aspose.Word version 220.127.116.11 for my 64 bit windows 2003 / vs 2005 . After document to pdf using Aspose.Pdf version 18.104.22.168 when I open I get the following error
" Acrobat could not open because it is either not a supported file type or because the file has been damaged wasn't correctly decoded "
Document doc = new document (stream1)
//Save the document in Aspose.Pdf.Xml format into a memory stream.
MemoryStream stream = new MemoryStream();
//Load the document into an XmlDocument
XmlDocument xmlDoc = new XmlDocument();
//Load the XML document into Aspose.Pdf
Aspose.Pdf.Pdf pdf = new Aspose.Pdf.Pdf();
//Set Font Map for better performance
pdf.IsTruetypeFontMapCached = true;
pdf.TruetypeFontMapPath = System.IO.Path.GetTempPath();
//Now produce the PDF file.
pdf.Save(new stream) ;