Greetings for the day…!
We have requirement where we need to convert Word, Excel and Image to PDF doc. I will explain query related each one by one.
 Excel to PDF : In Excel to PDF we are converting entire data into Stream and created one pdf document using Pdf pdfdocument = new Pdf(); class Aspose.Pdf.generator.Pdf.
My data has been converted to stream successfully but when i try to bind the stream to PDF as created above using pdfdocument.BindXML(stream, null); it gives me exception " Data at the root level is invalid. Line 1, position 1.". It would be really helpful if you provide way using converting data to stream and then put it into PDF. Also please let me know multiple ways to bind excel generated data to pdf.
 Word to PDF : we are using same mechanism like above. Successfully converted all the data into stream and trying to bind all the using pdfdocument.BindXML(stream, null); and getting same exception.It would be really helpful if you provide way using converting data to stream and then put it into PDF. Also please let me know multiple ways to bind word generated data to pdf.
 Image to PDF : We have requirement to convert image to PDF. Please let me elaborate. We need to take image as input, create PDF document, Some sections, need to do some Page.Setup like page.height and page.width. Then using Aspose.Pdf.Image we need to put those into PDF document. Could you please provide multiple ways to do the same. This requirement also we are handling thru stream reader. It would be helpful if you provide details along with other multiple ways.