Hi,
I am using Aspose.Word version 5.0.0.0 for my 64 bit windows 2003 / vs 2005 . After document to pdf using Aspose.Pdf version 3.6.2.0 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 "
Code
Document doc = new document (stream1)
//Save the document in Aspose.Pdf.Xml format into a memory stream.
MemoryStream stream = new MemoryStream();
doc.Save(stream, SaveFormat.AsposePdf);
stream.Seek(0, SeekOrigin.Begin);
//Load the document into an XmlDocument
XmlDocument xmlDoc = new XmlDocument();
xmlDoc.Load(stream);
//Load the XML document into Aspose.Pdf
Aspose.Pdf.Pdf pdf = new Aspose.Pdf.Pdf();
pdf.BindXML(xmlDoc, null);
//Set Font Map for better performance
pdf.IsTruetypeFontMapCached = true;
pdf.TruetypeFontMapPath = System.IO.Path.GetTempPath();
//Now produce the PDF file.
pdf.Save(new stream) ;
}
Cheers
Cheers
Sriram