SetFormFieldAction

フォームフィールド、注釈とホットスポットリンク

説明

既存のアクション辞書をフォームフィールドトリガーへ結び付けます

構文

Delphi

Function TPDFlib.SetFormFieldAction(Index: Integer; Const ActionType: WideString; ActionID: Integer): Integer;

DLL

int DLSetFormFieldAction(int InstanceID, int Index, const wchar_t * ActionType, int ActionID);

パラメータ

Index1 ベースのフォームフィールドインデックス
ActionTypeトリガー名。E、X、D、U、Fo、Bl、K、F、V、C のいずれか
ActionIDGetAnnotActionID、GetOutlineActionID、GetFormFieldActionID が返したアクションハンドル

戻り値

0フィールド、トリガー、アクションハンドルが不正か、PDF/X-6 モードが有効です
1アクションがコピーされ、フィールドトリガーに割り当てられました

備考

アクション辞書は、フィールドに割り当てられる前に選択されたドキュメントへコピーされるため、元のアクションへの後の編集がフィールドトリガーを変更することはありません 主要なマウスアップ起動アクションには

ActionType に U を使用します。これは GetFormFieldActionID(Index, 'U') が読み取るアクションに一致します トリガーをクリアするには

RemoveFormFieldAction を、割り当てられたアクションを GetFormFieldActionInfo を通じて調べるには TPDFlibActionInfo を使用します