Hello all,
The comments for `FPDF_LoadMemDocument` and `FPDF_LoadMemDocument64` state the following:
The memory buffer must remain valid when the document is open.
Is this comment accurate? My understanding is that I am expected to not delete the pointer passed to the first parameter of the aforementioned functions.
Suppose the above is accurate, is there a reason why this is necessary, whereas `
FPDF_LoadDocument` and `
FPDF_CreateNewDocument` are able to manage memory on their own? I am just looking to trim down memory usage where possible.
Cheers,
JD