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 Document.Save | Aspose.PDF for .NET API Reference.