Free Support Forum -

Read content various documents and convert to PDF


I have a requirement that user can upload files like .DOC, .PPT, .XLS and .VSD in my application.
I need to read the uploaded files and then add page by page to PDF. How can we do this?


Hi Karthik,

Thanks for your inquiry. I would like to address you regarding Aspose.Diagram product. Aspose Diagram is a class library for working with Microsoft Visio files. It allows developers to work with VSD, VSDX, VSS, VST, VSX, VTX, VDW and VDX files on C#, VB.NET, ASP.NET web applications, web services, Mono and Windows applications.

Based on your query, you can easily export diagrams (VSD, VSDX, VSS, VTX, VDX, VDW, VST and VSX) to PDF file format and then append to another Pdf file by using Aspose.Pdf component. For more details please visit suitable documentation links below:

Please do let me know in case of any confusion or questions.


Well, you would require to use multiple products for your task. For example, to convert the .doc file to PDF (page by page), you will use Aspose.Words component. Similarly for XLS file format conversion, you need Aspose.Cells product, for PPT conversion, you require Aspose.Slides and so on… And, above all, you will require Aspose.Pdf product, that would be needed to combine multiple PDFs into one file for your needs.
I will address your requirement from Aspose.Cells perspective. Please see the documents for your reference on how to convert Excel file to PDF and how you may convert to PDF, page by page etc.:±+Excel+to+Pdf+Conversion

Thank you.

Hi Karthik,

Thanks for inquiring Aspose.

I have observed the requirements shared and will help you regarding page by page export of PPT to PDF. I like to share that Aspose.Slides allows you to access the PPT as source file and as memory stream. You can use the following sample code further to generate the page by page PDF of the desired PPT. Please share, if I may help you further in this regard.

//Instantiate a Presentation from where the slide will be cloned
Presentation pres1 = new Presentation(“source.ppt”);

Presentation pres2 ;

//Creating SortedList object that is used to store the temporary information
//about the masters of PPT file. No value should be added to it.
SortedList sList = new SortedList();

for(int i=1;i<=pres.Slides.LastSlidePosition;i++)

//Instantiate a Presentation where the cloned slide will be added
pres2 = new Presentation();

//Accessing a slide using its slide position
Slide slide = pres1.GetSlideByPosition(i);

//Cloning the selected slide at the end of another presentation file
pres1.CloneSlide(slide, pres2.Slides.LastSlidePosition + 1, pres2, sList);

//Removing def
//Saving PDF


Many Thanks,

Thanks Imran Rafique, Amjad Sahi, Mudassir Fayyaz. Your answers useful. But what are the other kind of documents that aspose supports to convert into PDF? like the *.MSG, *.HTML, *.MHT, .XML,.PSD etc…


You can convert Doc, Docx, Rtf, Html etc files to Pdf file format by using Aspose.Words. You can load file formats mentioned in the following article into Aspose.Words DOM.

Once you have loaded a file of LoadFormat into Aspose.Words DOM, you can easily render it to Pdf. We suggest you please read the following article for more detail.

Convert a Document to PDF