Without saving the document file in my location I wanted to open in a browser

And, for going further in coding or detail only I wanted to know from your end(answer in yes or no) whether the below point is possible using Aspose or not :

  1. Do you have any on fly(i.e. without saving the document file in my location I wanted to open in a browser) conversion of word documents to PDF document? Because I am successfully able to convert the word file into PDF file using Aspose but need to store that PDF file into a physical location.
    It is really appreciable, If you will guide me on the above points.
    thx.
    irfan.

Hi Irfan,

Thanks for your inquiry. Sure, you can send the output Pdf document to the browser and present an option to save the document to disk or open inside the browser. Please try run the following code snippet:

Document doc = new Document(@"C:\Temp\in.doc");
doc.Save(Response, "out.pdf", ContentDisposition.Inline, null);

This overload of Document.Save method is available in net2.0 dll of Aspose.Words and is used to send the document to the client browser.

I hope, this helps.

Best regards,