AddActionNextJavaScript

JavaScript, annotaties en hotspotkoppelingen

Beschrijving

Voegt een JavaScript next-action toe aan een bestaande annotatie-, outline- of form-field-actie

Syntaxis

Delphi

Function TPDFlib.AddActionNextJavaScript(ActionID: Integer; Const JavaScript: WideString): Integer;

ActiveX

Function PDFlib::AddActionNextJavaScript(ActionID As Long, JavaScript As String) As Long

Beschikbaar op IPDFlibrary5 vanaf type library-versie 3.6

DLL

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

Parameters

ActionIDEen ActionID zoals geretourneerd door GetAnnotActionID, GetOutlineActionID of GetFormFieldActionID
JavaScriptDe JavaScript-broncode die na de primaire actie wordt uitgevoerd

Retourwaarden

0De ActionID was ongeldig, de JavaScript-string was leeg, of het geselecteerde document staat in de PDF/A-modus
1De JavaScript-next-actie is toegevoegd

Opmerkingen

De functie schrijft de PDF action /Next-entry weg zonder de primaire actie te vervangen, met behoud van bestaande geketende acties

Gebruik GetActionNextCount en GetActionNextInfo om de geketende acties te inspecteren na het aanmaken of na het laden van een bestaande PDF