AddActionNextJavaScriptA
JavaScript, Annotations and hotspot links
תיאור
The trailing A denotes the ANSI (char) DLL entry point; the ActiveX/COM surface exposes only the Unicode form. Behaviour is identical to AddActionNextJavaScript and string arguments are interpreted using the current SetAnsiMode code page
מוסיפה פעולת JavaScript הבאה לפעולה קיימת של הערה, outline או שדה טופס
תחביר
Delphi
Function DLAddActionNextJavaScriptA(InstanceID, ActionID: Integer; JavaScript: PAnsiChar): Integer;
DLL
int DLAddActionNextJavaScriptA(int InstanceID, int ActionID, const char * 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 קיים