PDFium Delphi Component Docs

RenderPageSkia method

Component: TPdf  ·  Unit: PDFium
Render the current page straight onto a Skia canvas, with the form overlay on top.

Syntax

procedure RenderPageSkia(Canvas: FPDF_SKIA_CANVAS; Width, Height: Integer; DrawFormOverlay: Boolean = True);

CanvasFPDF_SKIA_CANVAS. Handle passed into Skia as an SkCanvas. nil raises EPdfError.
Width, HeightInteger. Size of the render area in canvas units. Both must be positive.
DrawFormOverlayBoolean. When True and a form layer is active, form widgets are drawn on top of the page. Defaults to True.

Description

Draws through the Skia backend rather than into a bitmap, which lets an application that already composites with Skia keep the page in the same pipeline instead of blitting a rasterised copy

Both the page render and the form overlay require a pdfium.dll built with the Skia backend. When the loaded module does not export them, the call raises EPdfError naming which part is missing rather than drawing nothing

The render lock is held for the call, so it is safe against concurrent rendering on the same component

See Also

RenderPageSkiaByIndex, RenderPage, FormHandle