PDFium Delphi Component Docs

RenderPageSkiaByIndex method

Component: TPdf  ·  Unit: PDFium
Render any page onto a Skia canvas without changing the current page.

Syntax

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

CanvasFPDF_SKIA_CANVAS. Handle passed into Skia as an SkCanvas.
PageNumberInteger. One-based page number to draw.
Width, HeightInteger. Size of the render area in canvas units.
DrawFormOverlayBoolean. Draw form widgets on top when a form layer is active. Defaults to True.

Description

The by-index counterpart of RenderPageSkia: it draws the requested page without moving PageNumber or disturbing the loaded page, so a thumbnail strip or a continuous-scroll view does not fight with the editing state

Requires the same Skia-enabled PDFium module as the current-page overload

Page numbers are one-based, matching PageCount

See Also

RenderPageSkia, RenderPageByIndex, RenderPageThumbnail