property OnJavaScriptResponse: TPdfJavaScriptResponseEvent read FOnJavaScriptResponse write FOnJavaScriptResponse;
Occurs when scripts executing within the PDF document trigger dialog responses (such as alert inputs, passwords, or confirmations)
| Sender | The component that triggered the event |
| Question | The message prompt text supplied by the script |
| Title | The title text suggested for the dialog |
| Default_ | The default value provided for input queries |
| cLabel | A custom label string associated with the action |
| bPassword | True if the response text should be masked as a password input |
| Response_ | Output parameter to return the host's textual response back to the script engine |
| Handled | Set this to True to indicate that the event has been handled and suppress default no-op behavior |
procedure TForm1.Pdf1JavaScriptResponse(Sender: TObject; const Question, Title, Default_, cLabel: WString;
bPassword: Boolean; out Response_: WString; var Handled: Boolean);
begin
Response_ := InputBox(Title, Question, Default_);
Handled := True;
end;