function ExecuteDocumentLifecycleAction(Action: TPdfDocumentLifecycleAction; out ErrorMessage: string): Boolean;
ExecuteDocumentLifecycleAction은 문서 수준 액션 dlaJavaScript, dlaOpen, dlaWillClose, dlaWillSave, dlaDidSave, dlaWillPrint, dlaDidPrint 중 하나를 실행하고, 액션이 실행되면 True를 반환합니다
결과가 False이면 ErrorMessage가 실패 이유를 받습니다. 예를 들어 LifecycleActionPolicy가 lapDisabled이거나 액션이 존재하지 않는 경우입니다
LifecycleActionPolicy = lapAutomatic이면 컴포넌트가 이미 해당 시점에 이 액션들을 실행합니다. 수동 실행은 lapManual 호스트를 위한 것입니다dlaJavaScript는 문서 수준 JavaScript 이름 트리 액션을 실행합니다if not Pdf1.ExecuteDocumentLifecycleAction(dlaOpen, Err) then
Log(Err);