Is there a way to create a PDFDoc from in memory byte array?

We have a pdf content received from the response. We want to create a PDFDoc instance out of it without writing it to a temp file. Is there a way to do this in Ruby using PDFNet SDK.

You can find sample Ruby code for instantiating a PDFDoc from a memory buffer at

There is a PDFDoc constructor that takes a memory buffer as input: