Initializing Pdf.Document from html stream closes the stream

I’ve tried to convert html document to PDF following the example at Convert HTML to PDF in .NET|Aspose.PDF for .NET.
Conversion works fine, however if I pass html document as stream to Aspose.Pdf.Document constructor, stream gets closed once constructor finishes. There are other operations I would like to perform on same stream, is there any way to prevent this behaviour, other than copying input stream to temporary MemoryStream beforehand?

Hi Klemen,


Thanks for your inquiry. I have noticed the reported issue and logged an investigation ticket PDFNEWNET-39166 for further investigation and resolution. We will keep you updated about the issue resolution progress within this forum thread.

We are sorry for the inconvenience caused.

Best Regards,