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

Hi,
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 https://github.com/PDFTron/PDFNetWrappers/blob/master/Samples/PDFDocMemoryTest/RUBY/PDFDocMemoryTest.rb.

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

C++ https://www.pdftron.com/pdfnet/docs/PDFNetC/d6/d3f/classpdftron_1_1_p_d_f_1_1_p_d_f_doc.html#a5f1e6bd9ad0037bcacc59744855a2c0a

Java: https://www.pdftron.com/pdfnet/docs/PDFNetJava/com/pdftron/pdf/PDFDoc.html#PDFDoc(byte[])