PDFium Delphi Component Docs

GetWidgetAdditionalActionJavaScript メソッド

コンポーネント: TPdf  ·  ユニット: PDFium
フォームフィールドウィジェットに付いた 1 つの追加アクションの JavaScript を読み取ります

構文

function GetWidgetAdditionalActionJavaScript(AnnotIndex: Integer; EventType: Integer): WString;

AnnotIndexInteger. Zero-based index of the widget annotation on the current page.
EventTypeInteger. Which additional action to read, one of the FPDF_ANNOT_AACTION_* values: FPDF_ANNOT_AACTION_KEY_STROKE (12), FPDF_ANNOT_AACTION_FORMAT (13), FPDF_ANNOT_AACTION_VALIDATE (14), FPDF_ANNOT_AACTION_CALCULATE (15).
ResultWString. The script source, or an empty string when the widget has no such action.

説明

フォームフィールドはイベントごとのスクリプト(ISO 32000-1 12.6.3)を持つことができます。キーストロークフィルタ、フィールドの表示を書き換えるフォーマットルーチン、検証ルーチン、他のフィールドから 1 つのフィールドを導出する計算です。これはその 1 つのソースを読み取ります

監査と移行のための読み取り専用ビューです。スクリプトはテキストとして返され、実行されません。ドキュメントレベルのスクリプトは代わりに JavaScriptActions で列挙します

空の結果は、フォームレイヤーがアクティブでない、または PDFium ビルドにエントリポイントがないケースもカバーします。区別が必要な呼び出し側は FormHandle を先に確認するべきです

関連項目

JavaScriptActions, JavaScriptAction, FormFieldInfo, FormHandle