How to create a PFD document with a file stream

We have a method that returns an Aspose.Pdf.Pdf document that we want to be able to just pass in a byte array of file. Since the new Apose.Pdf.Pdf expects a FileStream, how can we create a PDF just by passing in the byte array of the file BUT not the file itself??

Thanks,

Hi,

Thank you for considering Aspose.

You can use the GetBuffer method to get the byte array of the PDF generated by Aspose.Pdf. But Aspose.Pdf can’t take a byte array or stream as input to generate PDF document.