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

Free Support Forum - aspose.com

Get a stream from aspose.pdf Document

I have the below code:

HtmlLoadOptions options = new HtmlLoadOptions();
com.aspose.pdf.Document doc = new com.aspose.pdf.Document(html_stream, options);

Now instead of saving this doc as a pdf file, I would like to get the pdf byte stream(or any pdf stream) of this doc. ls there any way I could get this?


The multiple save methods of the Document class helps to save the document in the stream instance. Please refer to this help topic: Document Class.