Considering Aspose for Server Side application- I need help

I am working on a project that takes in bunch of formats such as .doc, pdf, image formats,xls, rtf and txt and it converts all the formats into png files.


This will be a web service used by many users concurrently, whats the best way to use Aspose with this application?

I also need to take in stream of png images and convert/insert all the images into one pdf file, can Aspose do that? Is there sample code for this?


Thanks

Hi

Thank you for your interest in Aspose components. I am representative of Aspose.Words team. Using Aspose.Words, you can easily convert your MS Word documents to PNG images. Code is quite simple:

// Open document.

Document doc = new Document(@"Test001\in.docx");

ImageSaveOptions options = new ImageSaveOptions(SaveFormat.Png);

options.PageCount = 1;

// Save each page of the document as PNG.

for (int i = 0; i < doc.PageCount; i++)

{

options.PageIndex = i;

doc.Save(string.Format(@"Test001\out_{0}.png", i), options);

}

In your case, you will use Aspose components in multiple threads because there can be concurrent requests to your service. Aspose.Words is multithread safe as long as only one thread works on a document at a time. It is a typical scenario to have one thread working on one document. Different threads can safely work on different documents at the same time.

Using Aspose.Words you can convert images to PDF. You can find a simple code example that demonstrates how to achieve this in our documentation:

http://www.aspose.com/documentation/.net-components/aspose.words-for-.net/howto-convert-an-image-to-pdf.html

Best regards,

Hi,


I am a representative of Aspose.Cells product, you may use the product to convert Excel sheets to Image files (e.g in formats like Png, Bmp, Emf, Jpeg etc.), see the document:
http://www.aspose.com/documentation/.net-components/aspose.cells-for-.net/converting-worksheet-to-image.html

Thank you.