PDFiumPas 文件

V8FeaturesAvailable 函式

元件: TPdf  ·  單元: PDFium
唯讀旗標,當載入的 PDFium build 內建 V8 JavaScript engine 時為 True

Syntax

function V8FeaturesAvailable: Boolean;

Description

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.

Class function; safe to call before any document is opened.

Remarks

Example

if Pdf1.Active and Pdf1.V8FeaturesAvailable then
  Memo1.Lines.Add('V8FeaturesAvailable = True')
else
  Memo1.Lines.Add('V8FeaturesAvailable = False');

See Also

JavaScriptActionCount, GetRecommendedV8Flags, XfaBStrHelpersAvailable