function V8FeaturesAvailable: Boolean;
Returns True when the loaded PDFium build embeds the V8 JavaScript engine
Some PDFium DLL variants ship without V8 to reduce footprint; JavaScript actions then become no-ops
Unit-level function in the PDFium unit; safe to call before any document is opened
PDFium; can be called without creating a TPdf instance
if PDFium.V8FeaturesAvailable then
Memo1.Lines.Add('V8FeaturesAvailable = True')
else
Memo1.Lines.Add('V8FeaturesAvailable = False');