function CreateCoreSnapshot(const Options: TPdfDocumentCoreOptions): TPdfDocumentCore;
Creates an independently owned FPdfDocumentCore snapshot of the active classic component, using its currently configured native runtime without reinitializing PDFium
The caller owns the returned object; source TPdf/viewer objects can be destroyed while the core continues to extract, render or edit its private document
Core edits preserve the original wrapper; after review, its SaveBytes output can be loaded through the existing TPdf.LoadDocument byte-array API
The snapshot uses the wrapper's current nonincremental native save semantics, preserves encryption and forwards the active password when the source document is password-protected, and must fit Options.MaxDocumentBytes; invalid options, cancellation or failed load do not return a partial core
The module lease prevents explicit UnloadLibrary until all related core runtimes are released; release cores before application/unit finalization
Options := TPdfDocumentCoreOptions.Default; Core := Pdf.CreateCoreSnapshot(Options); try Pixels := Core.RenderPage(0, 800, 600); Text := Core.PageText(0); finally Core.Free; end;