Considering Aspose for Server Side application, I need help

Last post 11-10-2011, 2:59 AM by Amjad Sahi. 2 replies.
Sort Posts: Previous Next
  •  11-08-2011, 5:28 PM 340918

    Considering Aspose for Server Side application, I need help .NET

    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
     
  •  11-10-2011, 2:50 AM 341280 in reply to 340918

    Re: Considering Aspose for Server Side application, I need help

    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,


    Alexey Noskov
    Developer/Technical Support
    Aspose Auckland Team
     
  •  11-10-2011, 2:59 AM 341283 in reply to 341280

    Re: Considering Aspose for Server Side application, I need help

    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:

    Thank you.

    Amjad Sahi
    Support Developer,
    Aspose Sialkot Team
    Contact Us
     
View as RSS news feed in XML