Quick PDF logo

AddLinkToLocalFile

Annotations and hotspot links

Version history

This function was introduced in Quick PDF Library version 7.19.

Description

Adds a clickable hotspot rectangle to the selected page which links to a local file.

The file doesn't have to exist when the PDF is created but should exist when the PDF is viewed for the link to work.

Use the SetAnnotBorderColor function to change the color of the hotspot border.

Syntax

Delphi

function TQuickPDF0813.AddLinkToLocalFile(Left, Top, Width, Height: Double; 
  FileName: WideString; Options: Integer): Integer;

ActiveX

Function QuickPDF0813.PDFLibrary::AddLinkToLocalFile(Left As Double, Top As Double,
  Width As Double, Height As Double, FileName As String,
  Options As Long) As Long

DLL

int QuickPDFAddLinkToLocalFile(int InstanceID, double Left, double Top,
  double Width, double Height, wchar_t * FileName, int Options)

Parameters

Left The left edge of the hotspot rectangle
Top The top edge of the hotspot rectangle
Width The width of the hotspot rectangle
Height The height of the hotspot rectangle
FileName The relative or absolute path to the local file.
Options Specifies the appearance of the link and whether the target is opened in a new window or the same window:
0 = No border, same window
1 = Draw a border, same window
2 = No border, new window
3 = Draw a border, new window

Copyright © 2011 Debenu. All rights reserved. AboutContactBlogNewsletterSupportBuyForum