According to a recent Xojo blog by Javier Menendez, the release of Xojo 2021r1 offers additional support for PDFDocument. The blog indicates that it is now possible to retrieve the full PDF data from the document as a MemoryBlock using the ToData method. Using this method a PDF can be opened without the need to save the PDF document to a file.
The Xojo “PDFDocument.ToData” documentation does not include an example.
I have attempted, without successs, to use the new method:
Var mb As MemoryBlock = MyPDF.ToData
Var f As FolderItem = FolderItem(mb)
f.Open
This code does not work. Does anyone have any ideas?