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 ή πεδίου φόρμας

Syntax

Delphi

Function DLAddActionNextJavaScriptA(InstanceID, ActionID: Integer; JavaScript: PAnsiChar): Integer;

DLL

int DLAddActionNextJavaScriptA(int InstanceID, int ActionID, const char * JavaScript);

Parameters

ActionIDAn ActionID as returned by GetAnnotActionID, GetOutlineActionID, or GetFormFieldActionID
JavaScriptΟ πηγαίος κώδικας JavaScript που θα εκτελεστεί μετά την κύρια ενέργεια

Τιμές επιστροφής

0Το ActionID ήταν άκυρο, η συμβολοσειρά JavaScript ήταν κενή, ή το επιλεγμένο έγγραφο είναι σε λειτουργία PDF/A
1Η επόμενη ενέργεια JavaScript προσαρτήθηκε επιτυχώς

Remarks

The function writes the PDF action /Next entry without replacing the primary action, preserving any existing chained actions

Use GetActionNextCount and GetActionNextInfo to inspect the chained actions after creation or after loading an existing PDF