function V8FeaturesAvailable: Boolean;
Gives True when the loaded PDFium build ships with the V8 JavaScript engine embedded
Certain PDFium DLL variants omit V8 to keep the footprint down; JavaScript actions then turn into no-ops
A unit-level routine in the PDFium unit; safe to call before any document is open
PDFium; can be called without creating a TPdf instance
if PDFium.V8FeaturesAvailable then
Memo1.Lines.Add('V8FeaturesAvailable = True')
else
Memo1.Lines.Add('V8FeaturesAvailable = False');