AddLinkToFile

הערות וקישורים חמים (hotspot links)

תיאור

מוסיף מלבן hotspot לחיץ לעמוד הנבחר שמקשר לעמוד ומיקום ספציפיים במסמך PDF אחר

השתמשו ב-SetAnnotBorderColor כדי לשנות את צבע גבול ה-hotspot אחרי שההערה נוצרה

תחביר

Delphi

Function TPDFlib.AddLinkToFile(Left, Top, Width, Height: Double; Const FileName: WideString; Page: Integer; Position: Double; NewWindow, Options: Integer): Integer;

ActiveX

Function PDFlib::AddLinkToFile(Left As Double, Top As Double, Width As Double, Height As Double, FileName As String, Page As Long, Position As Double, NewWindow As Long, Options As Long) As Long

DLL

int DLAddLinkToFile(int InstanceID, double Left, double Top, double Width, double Height, const wchar_t * FileName, int Page, double Position, int NewWindow, int Options);

פרמטרים

LeftThe horizontal coordinate of the left edge of the hotspot rectangle.
TopThe vertical coordinate of the top edge of the hotspot rectangle.
WidthThe width of the hotspot rectangle.
HeightThe height of the hotspot rectangle.
FileNameThe path and file name of the PDF document to link to.
Pageמספר הדף המבוסס על 1 במסמך היעד
PositionThe vertical position on the destination page to open.
NewWindow0 closes the current document before opening the target document; 1 opens the target in a new window.
OptionsSpecifies the link appearance: 0 = no border, 1 = draw a border.

ערכי החזרה

0The link could not be created, usually because the destination page number is invalid.
1The link annotation was created successfully.