How to convert a stream into a PDF on a webserver

I have a need to convert a stream which has the docx formating into a PDF file for download on a web server. I was looking at documentation and that tells me about rendering on a server and nothing much is there other than that one can render as a stream.

any ideas?

Hello,
Thank you for your inquiry.
To create an object from a stream please use the constructor Document(stream).

And to save to HttpResponse use this method Document.Save.

If you still have questions, please ask.