How to load an existing PDFDocument in a memoryblock back to a PDFDocument Object?

I’m creating PDFDocument’s and using PDFDocument.ToData to place the contexts in a database or use elsewhere, sometimes doing a PDFDocument.Save(f). However, if I have a memoryblock of a PDFDocument, how do I get that memory block back into a PDFDocument for further manipulation or saving? (i.e. Something like PDFDocument.FromData?)

Thats not possible with PDFDocument. PDFDocument.ToData has been added to save PDF Files into Databases. Reading and editing existing PDFs is currently not possible in Xojo without plugins.

Thank you for the insight. I’ll piggyback on DynaPDF, then.

1 Like