AddLinkToDestination
Anmerkungen und Hotspot-Links, Seiteneigenschaften
Beschreibung
Fügt der ausgewählten Seite ein anklickbares Hotspot-Rechteck hinzu, das auf eine andere Seite im selben Dokument verlinkt. Zielseite, Position und Zoomstufe werden über ein Zielobjekt festgelegt, das sich mit der Funktion NewDestination erstellen lässt.
Die Farbe des Hotspot-Rahmens ändern Sie mit der Funktion SetAnnotBorderColor.
Syntax
Delphi
Function TPDFlib.AddLinkToDestination(Left, Top, Width, Height: Double; DestID, Options: Integer): Integer;
ActiveX
Function PDFlib::AddLinkToDestination(Left As Double, Top As Double, Width As Double, Height As Double, DestID As Long, Options As Long) As Long
DLL
int DLAddLinkToDestination(int InstanceID, double Left, double Top, double Width, double Height, int DestID, int Options);
Parameter
| Left | Der linke Rand des Hotspot-Rechtecks |
|---|---|
| Top | Der obere Rand des Hotspot-Rechtecks |
| Width | Die Breite des Hotspot-Rechtecks |
| Height | Die Höhe des Hotspot-Rechtecks |
| DestID | Die DestID eines Zielobjekts |
| Options | Legt das Erscheinungsbild des Links fest: 0 = Kein Rahmen 1 = Rahmen zeichnen |
Rückgabewerte
| 0 | Die Eigenschaft DestID war ungültig |
|---|---|
| 1 | Die Linkanmerkung wurde erfolgreich erstellt |