Multiple calls to Pdf.Save()

Hi,

We recently purchased Aspose for a new project, so I am extremely new to the API. We are currently trying to create the same pdf twice, one in the users browser and another times saving it directly to the server

/* init pdf object with letter data */
pdf.Save("Letters.pdf", Aspose.Pdf.SaveType.OpenInAcrobat, httpResponse); // open in browser

pdf.Save(filename); // save on the server

But this is giving me an ApplicationException. When creating Word documents i was able to do a similiar approach calling the Save method twice in succession.

Is anyone able to provide me with some information around why i cant call the Save() method twice in succession for pdf's.

Thanks
- Justin

Hi,

Thank you for considering Aspose.

I have been able to reproduce the problem. I will discuss this with the developers and we will inform you of a solution as soon as possible.

Thanks.

Adeel Ahmad
Support Developer
Aspose Changsha Team
http://www.aspose.com/Wiki/default.aspx/Aspose.Corporate/ContactChangsha.html

Dear Justin,

This is a known issue and we will try to fix it soon. As a workaround you can save the pdf into a memory stream and then you can save the stream into web browser and file without error.