SetOutlineJavaScript
Description
Specifies the JavaScript to run when the user clicks on the outline item (bookmark).
Syntax
Delphi
function TQuickPDF0813.SetOutlineJavaScript(OutlineID: Integer;
JavaScript: WideString): Integer;
ActiveX
Function QuickPDF0813.PDFLibrary::SetOutlineJavaScript(OutlineID As Long,
JavaScript As String) As Long
DLL
int QuickPDFSetOutlineJavaScript(int InstanceID, int OutlineID, wchar_t * JavaScript)
Parameters
| OutlineID | The ID of the outline as returned by the NewOutline function. Alternatively, use the GetOutlineID function to get a valid outline ID. |
| JavaScript | The JavaScript to execute. |
Return values
| 0 | The OutlineID was invalid |
| 1 | The JavaScript action was successfully added to the outline ID |