PDFiumVCL Docs

OnPageChange event

Denna API-post behåller identifierare, signaturer, kodblock och PDF-termer i ursprunglig form.
Component: TPdfView  ·  Unit: PDFium
Fired when the current page changes for any reason.

Syntax

property OnPageChange: TNotifyEvent;

Description

Fired when the current page changes for any reason. The Sender parameter references the TPdfView instance that raised the event, so a single handler can serve multiple views by inspecting Sender.

Typical uses include: update an external "Page X of Y" label or sync a side-by-side thumbnail panel. Because the handler runs on the VCL main thread, you can update form controls and call other VCL APIs directly.

Handlers must return quickly — PDFium rendering and form filling occur on the same thread, and any delay here postpones the next page repaint.

Remarks

Example

procedure TForm1.PdfViewOnPageChange(Sender: TObject);
begin
  // update an external "Page X of Y" label or sync a side-by-side thumbnail panel
  Caption := Format('OnPageChange on page %d', [PdfView1.PageNumber]);
end;

See Also

OnClick, OnMouseDown, PageNumber