function CreateCoreSnapshot(const Options: TPdfDocumentCoreOptions): TPdfDocumentCore;
Hands back an independently owned FPdfDocumentCore snapshot of the active classic component, working against the native runtime it already has configured rather than initialising PDFium afresh
The caller owns the returned object; the source TPdf and viewer objects may be torn down whilst the core carries on extracting, rendering or editing its private document
Core edits leave the original wrapper untouched; once a review has taken place, its SaveBytes output can be loaded through the existing TPdf.LoadDocument byte-array API
The snapshot follows the wrapper's current nonincremental native save semantics and has to fit within Options.MaxDocumentBytes; invalid options, cancellation or a failed load never produce a partial core
The module lease blocks an explicit UnloadLibrary until every related core runtime has been released; let the cores go before application or unit finalisation
Options := TPdfDocumentCoreOptions.Default; Core := Pdf.CreateCoreSnapshot(Options); try Pixels := Core.RenderPage(0, 800, 600); Text := Core.PageText(0); finally Core.Free; end;