PDFium Delphi Component Docs

ExecuteDocumentLifecycleAction 메서드

컴포넌트: TPdf  ·  유닛: PDFium
문서 수준 라이프사이클 액션 하나를 필요할 때 실행합니다

Syntax

function ExecuteDocumentLifecycleAction(Action: TPdfDocumentLifecycleAction; out ErrorMessage: string): Boolean;

Description

ExecuteDocumentLifecycleAction은 문서 수준 액션 dlaJavaScript, dlaOpen, dlaWillClose, dlaWillSave, dlaDidSave, dlaWillPrint, dlaDidPrint 중 하나를 실행하고, 액션이 실행되면 True를 반환합니다

결과가 False이면 ErrorMessage가 실패 이유를 받습니다. 예를 들어 LifecycleActionPolicy가 lapDisabled이거나 액션이 존재하지 않는 경우입니다

Remarks

    • LifecycleActionPolicy = lapAutomatic이면 컴포넌트가 이미 해당 시점에 이 액션들을 실행합니다. 수동 실행은 lapManual 호스트를 위한 것입니다
    • dlaJavaScript는 문서 수준 JavaScript 이름 트리 액션을 실행합니다

Example

if not Pdf1.ExecuteDocumentLifecycleAction(dlaOpen, Err) then
  Log(Err);

See Also