Free Support Forum - aspose.com

Pdf to byte array

Hi,

I am using aspose.pdf to generate pdf doc using pdf.BindXml() method.

Now i am able to save the pdf doc to disk.

is there any way to convert the generated pdf to byte array without saving to disk.

Please reply ASAP.

Thanks.

Aspose.PDF can not save result directly to a byte array. However you could firstly save to a Stream object and transfer to byte array later.

Please refer to http://www.aspose.com/Products/Aspose.Pdf/Api/Aspose.Pdf.Pdf.Save_overload_3.html.