22.03.2015 Views

DLI Implementation and Reference Guide - Datalogics

DLI Implementation and Reference Guide - Datalogics

DLI Implementation and Reference Guide - Datalogics

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Annotations <strong>and</strong> Links 13.3<br />

Actions<br />

Actions can be specified in a number of ways, depending on the complexity of the<br />

action.<br />

<strong>DLI</strong> directly supports the most basic forms of annotations, <strong>and</strong> returns the created<br />

CosObj for all annotations, so that your application can easily construct more<br />

complex forms by modifying the basic forms provided here.<br />

Borders<br />

Borders may be placed around an annotation hot spot to highlight it to the user. Prior<br />

to version v4.0, the Adobe PDF Library allowed a definition of a border as an array<br />

of three ASFixed values:<br />

• Horizontal Corner Radius<br />

• Overcall Corner Radius<br />

• Border Width<br />

When Border Width is zero, the border is not drawn.<br />

<strong>DLI</strong> directly supports this definition only. In the following methods, a reference to<br />

borders is presumably to a NULL pointer, in which case the border is omitted, or a<br />

pointer to an array of three ASFixed values, interpreted as above.<br />

Annotation <strong>and</strong> Link Colors<br />

Color has a different meaning for each type of annotation:<br />

• For text annotations, it is the color to be used for the background of the closed<br />

annotation.<br />

• For links, it is the border color.<br />

Prior to v4.0 of the Adobe PDF Library, colors could be specified only as an array of<br />

three ASFixed values, representing an RGB color. When used below, color means a<br />

pointer to such an array, or NULL. If NULL, then the viewer will select a color.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!