PDFiumVCL Docs

OnPageNumberChanged event

Bu API girdisi tanımlayıcıları, imzaları, kod bloklarını ve PDF terimlerini özgün biçiminde korur.
Component: TPdfView  ·  Unit: PDFium
Fired when the visible page number changes due to scrolling.

Syntax

property OnPageNumberChanged: TNotifyEvent;

Description

Fired when the visible page number changes due to scrolling. 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: notify a navigation control that the user is now reading a different page in continuous mode. 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.PdfViewOnPageNumberChanged(Sender: TObject);
begin
  // notify a navigation control that the user is now reading a different page in continuous mode
  Caption := Format('OnPageNumberChanged on page %d', [PdfView1.PageNumber]);
end;

See Also

OnClick, OnPageChange, OnMouseDown, PageNumber