AddRelativeLinkToFileDestA
Annotations and hotspot links
Description
O sufixo A indica o ponto de entrada ANSI (char) da DLL; a superfície ActiveX/COM expõe apenas a forma Unicode. O comportamento é idêntico ao de AddRelativeLinkToFileDest e os argumentos de cadeia de caracteres são interpretados com base na página de código atual definida por SetAnsiMode
Adds a clickable hotspot rectangle to the selected named destination which links to a specific page and position in another PDF document, using relative path.
Use the SetAnnotBorderColor function to change the color of the hotspot border.
Syntax
Delphi
Function DLAddRelativeLinkToFileDestA(InstanceID: Integer; Left, Top, Width, Height: Double; FileName, NamedDest: PAnsiChar; Position: Double; NewWindow, Options: Integer): Integer;
DLL
int DLAddRelativeLinkToFileDestA(int InstanceID, double Left, double Top, double Width, double Height, const char * FileName, const char * NamedDest, double Position, int NewWindow, int Options);
Parameters
Left
The horizontal co-ordinate of the left edge of the hotspot rectangle
Top
The vertical co-ordinate of the top edge of the hotspot rectangle
Width
The width of the hotspot rectangle
Height
The height of the hotspot rectangle
The full absolute path and file name of the PDF document to link to, it will be converted to relative path.
FileName
The Named Destination string in the destination document to link to
NamedDest
The vertical co-ordinate on the destination page to link to
Position
NewWindow
0 = Fechar o documento atual e depois abrir o novo documento
1 = Abrir o documento atual numa nova janela
Options
Specifies the appearance of the link:
0 = Sem margem
1 = Desenhar uma margem