AddLinkToEmbeddedFile

Document properties, Annotations and hotspot links

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

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

The title of the attachment that should appear in the PDF viewer.

Title

Contents

The text to use for the contents of the popup

IconType

0 = Standard icon (PushPin)

1 = 28x28 disk image

2 = No icon

3 = Graph

4 = Paperclip

5 = Tag

6 = Solid white rectangle

Transpareny

The transparency percentage to apply ranging from 0 to 100. A value of 0 indicates 0% transparency which is fully opaque (no transparency). A value of 100 indicates 100% transparency which would make the icon invisible.

Return values

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