AddLinkToJavaScript
JavaScript, annotaties en hotspotkoppelingen
Beschrijving
Voegt een klikbare hotspotrechthoek toe aan de geselecteerde pagina die naar een JavaScript-actie verwijst
Gebruik de functie SetAnnotBorderColor om de kleur van de hotsperrand te wijzigen
De functie wordt geweigerd in PDF/A en PDF/X-1a, PDF/X-3 of PDF/X-4, maar PDF/X-6-modussen staan deze direct geactiveerde Link-actie toe; JavaScript op document, pagina en formulierveld blijft verboden in PDF/X-6
Syntaxis
Delphi
Function TPDFlib.AddLinkToJavaScript(Left, Top, Width, Height: Double; Const JavaScript: WideString; Options: Integer): Integer;
ActiveX
Function PDFlib::AddLinkToJavaScript(Left As Double, Top As Double, Width As Double, Height As Double, JavaScript As String, Options As Long) As Long
DLL
int DLAddLinkToJavaScript(int InstanceID, double Left, double Top, double Width, double Height, const wchar_t * JavaScript, int Options);
Parameters
| Left | De horizontale coördinaat van de linkerrand van de hotspotrechthoek |
|---|---|
| Top | De verticale coördinaat van de bovenrand van de hotspotrechthoek |
| Width | De breedte van de hotspotrechthoek |
| Height | De hoogte van de hotspotrechthoek |
| JavaScript | De uit te voeren JavaScript |
| Options | Bepaalt de weergave van de koppeling: 0 = Geen rand 1 = Rand tekenen int Options); |