Quick PDF logo

AddLinkToEmbeddedFile

Document properties, Annotations and hotspot links

Version history

This function was introduced in Quick PDF Library version 7.11.

Description

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

Files can be embedded into the PDF using the AddEmbeddedFile function.

Syntax

Delphi

function TQuickPDF0813.AddLinkToEmbeddedFile(Left, Top, Width, Height: Double; 
  EmbeddedFileID: Integer; Title: WideString; Options: Integer): Integer;

ActiveX

Function QuickPDF0813.PDFLibrary::AddLinkToEmbeddedFile(Left As Double,
  Top As Double, Width As Double, Height As Double,
  EmbeddedFileID As Long, Title As String, Options As Long) As Long

DLL

int QuickPDFAddLinkToEmbeddedFile(int InstanceID, double Left, double Top,
  double Width, double Height, int EmbeddedFileID, wchar_t * Title,
  int Options)

Parameters

Left The horizontal co-ordinate of the left edge of the hotspot rectangle
Top The vertical co-ordinate of the top of the hotspot rectangle
Width The width of the hotspot rectangle
Height The height of the hotspot rectangle
EmbeddedFileID The value returned from the AddEmbeddedFile function
Title The title of the attachment that should appear in the PDF viewer
Options 0 = Standard icon
1 = Disk icon

Return values

0 The EmbeddedFileID parameter was invalid
1 The link was created successfully

Copyright © 2011 Debenu. All rights reserved. AboutContactBlogNewsletterSupportBuyForum