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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

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

identify them by their relevance to the context, rather than their position within the<br />

document.<br />

For example, you might create a name of "Maintaining Backup Files," rather than<br />

"Chapter 2," using the text of the title rather than its sequential position, so you can<br />

preserve the link even if the document chapters are later reorganized.<br />

This method is intended to permit linkages by names within a document. Making a<br />

link between documents is fairly straightforward:<br />

• The first 4 parameters are the same as the previous two methods.<br />

• The fifth parameter is a string giving the name of the destination.<br />

From the full example of adding annotations:<br />

"C" Example: Creating A Link To A Named Destination<br />

DLPDFPAGE *Page2<br />

ASFixedRect BBLink2;<br />

ASFixed Border[3], Color[3];<br />

Border[0] = fixedFive; /* A box with elliptical corners */<br />

Border[1] = fixedTen; /* longer horizontal than vert. */<br />

Border[2] = fixedTwo; /* Two points in thickness */<br />

Color[0] = Color[2] = 0; /* Its color will be black */<br />

Color[1] = 0;<br />

dlpdfpageaddlinkannotationfromname (Page2, &BBLink2,<br />

Border, Color, "Link1");<br />

dlpdfpageaddwebannotation<br />

This procedure supports adding a link structure which is identical in appearance to a<br />

link annotation, but which references a URI (Uniform Resource Indicator, equivalent<br />

to a URL) passed as the last character string. This method is used to place hyperlinks<br />

to external documents, on the World Wide Web for example, within a PDF document.<br />

NOTE: You should have your internet browser running before calling this<br />

procedure or you may receive a “browser is busy” error. Your browser can be<br />

specified in Acrobat via File->Preferences->Weblink.

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

Saved successfully!

Ooh no, something went wrong!