MemoryStream xmlDoc = new MemoryStream();
presentationDoc.SaveToPdf(xmlDoc);
Aspose.Pdf.Pdf pdf = new Aspose.Pdf.Pdf();
pdf.BindXML(xmlDoc, null);
Here I am getting the exception on the fourth line.
{pdf.BindXML(xmlDoc,null)}
The data at the root level is invalid. Line 1, position 1.
Here presentationDoc is Aspose.Slides.Presentation type.
Dear Ujju,
<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />
Thanks for considering Aspose.Slides.
Presentation.SaveToPdf does not generate XML, it generates pdf document that is the reason, you are getting exception.
Thanks for Reply, MSfiaz
Can you suggest a way in which .ppt file in sharepoint library can be converted to a pdf.