PDFium Delphi Component Docs

OnFormGoToAction 이벤트

컴포넌트: TPdf  ·  유닛: PDFium
폼 필드가 go-to 액션을 일으킬 때 발생합니다

Syntax

property OnFormGoToAction: TPdfFormGoToActionEvent read FOnFormGoToAction write FOnFormGoToAction;

Description

OnFormGoToAction은 대화형 폼 레이어가 go-to 액션을 일으킬 때 발생합니다. 핸들러는 0 기반 PageNumber, 네이티브 ZoomMode, 선택적인 뷰 파라미터 Positions 배열, var Handled 플래그를 받습니다

Handled = True로 설정하면 호스트 내비게이션으로 점프를 수행합니다. 예를 들어 자체 페이지 캐시를 관리하는 뷰어로 라우팅할 수 있습니다

Remarks

    • 핸들러 시그니처: procedure(Sender: TObject; PageNumber, ZoomMode: Integer; const Positions: TPdfSingleArray; var Handled: Boolean) of object
    • PageNumber는 네이티브 레이어 기준 0 기반으로, TPdf.Page가 쓰는 1 기반 페이지 번호와 다릅니다

Example

procedure TMain.Pdf1FormGoToAction(Sender: TObject; PageNumber, ZoomMode: Integer; const Positions: TPdfSingleArray; var Handled: Boolean);
begin
  PdfView1.PageNumber := PageNumber + 1;
  Handled := True;
end;

See Also