PDFium Delphi Component Docs

Canvas property

Component: TPdfView  ·  Unit: PDFium
Drawing canvas exposed by the control after a page is rendered

Syntax

property Canvas: TCanvas; // read only

Description

Read-only runtime drawing canvas exposed by the viewer control

Use inside an OnPaint handler to draw custom overlays on top of the rendered PDF page

Remarks

Example

begin
  PdfView1.Active := True;
  PdfView1.Canvas.TextOut(10, 10, 'Preview');
end;

See Also

Active, Pdf, Options, Zoom