AddActionNextJavaScript
JavaScript, Annotations and hotspot links
תיאור
מוסיפה פעולת JavaScript הבאה לפעולה קיימת של הערה, outline או שדה טופס
תחביר
Delphi
Function TPDFlib.AddActionNextJavaScript(ActionID: Integer; Const JavaScript: WideString): Integer;
DLL
int DLAddActionNextJavaScript(int InstanceID, int ActionID, const wchar_t * JavaScript);
פרמטרים
| ActionID | An ActionID as returned by GetAnnotActionID, GetOutlineActionID, or GetFormFieldActionID |
|---|---|
| JavaScript | The JavaScript source to execute after the primary action |
ערכי החזרה
| 0 | The ActionID was invalid, the JavaScript string was empty, or the selected document is in PDF/A mode |
|---|---|
| 1 | The JavaScript next-action was appended successfully |
הערות
הפונקציה כותבת את רשומת /Next של הפעולה ב-PDF בלי להחליף את הפעולה הראשית, תוך שימור פעולות שרשוריות קיימות
השתמשו ב-GetActionNextCount וב-GetActionNextInfo כדי לבחון את הפעולות השרשוריות אחרי היצירה או אחרי טעינת PDF קיים