此 API 條目保留識別符號、簽名、程式碼塊和 PDF 術語的原始形式。
Component: TPdf · Unit: PDFium
Read-only flag — True when the loaded PDFium build embeds the V8 JavaScript engine.
Syntax
property 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
- Treat the value as immutable for the lifetime of the open document — reopening the file or changing pages may yield a different result.
- Surface this value in your UI to drive feature toggles (for example, disable accessibility export when
IsTagged is False).
- All scalar boolean / type properties on TPdf are inexpensive O(1) reads.
Example
if Pdf1.Active and Pdf1.V8FeaturesAvailable then
Memo1.Lines.Add('V8FeaturesAvailable = True')
else
Memo1.Lines.Add('V8FeaturesAvailable = False');
See Also