PDFiumPas 文档

V8FeaturesAvailable 函数

此 API 条目保留标识符、签名、代码块和 PDF 术语的原始形式。
组件: TPdf  ·  单元: PDFium
只读标志——当已加载的 PDFium 构建包含 V8 JavaScript 引擎时为 True

语法

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.

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

备注

示例

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

另请参阅

JavaScriptActionCount, GetRecommendedV8Flags, XfaBStrHelpersAvailable