We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Pdf to byte array


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.


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 https://reference.aspose.com/pdf/net/aspose.pdf/document/methods/save.