PDFium Delphi Component Docs

GetSkiaRenderCapabilities function

Unit: PDFium
Reports which optional Skia rendering entry points the loaded PDFium module exports

Syntax

function GetSkiaRenderCapabilities: TPdfSkiaRenderCapabilities;

Parameters

None

Return Value

TPdfSkiaRenderCapabilities

Description

GetSkiaRenderCapabilities loads the selected PDFium module where necessary and resolves the optional Skia exports present in that exact build

PageRender is True when FPDF_RenderPageSkia is exported, which enables the native Skia page-drawing path used by TPdf.RenderPageSkia and TPdf.RenderPageSkiaByIndex

FormOverlay is True when the separate FPDF_FFLDrawSkia export is available, so the form overlay can be painted after page content on the same Skia canvas

PageSceneCache mirrors PageRender and indicates that RenderPageSkiaByIndex can reuse the bounded parsed-page cache owned by TPdf rather than re-parsing the page

Remarks

Example

SkiaCaps := GetSkiaRenderCapabilities;
if SkiaCaps.PageRender then
  Pdf.RenderPageSkiaByIndex(SkCanvas, 1, 1200, 1600);

See Also

TPdf.RenderPageSkia, TPdf.RenderPageSkiaByIndex, TPdf.OptionalNativeRendering