Graphics Programs Reference
In-Depth Information
Example 7-3. A Text annotation
6 0 obj
<<
/Subtype /Text
/Open true
/Contents (An example text annotation)
/Type /Annot
/Rect [400 100 500 200]
/C [1 1 1] RGB (1, 1, 1) i.e., White
>>
/Annots [6 0 R] Extra entry in page dictionary
The result in Adobe Reader is shown in Figure 7-2 . Note that Adobe Reader ignores
the /Rect entry here—other viewers may use it.
Figure 7-2. Example PDF with text annotation on page 1 in Adobe Reader
Now, let's try a link annotation, to build a hyperlink from page one to page three. A
link annotation has subtype /Link and a /Dest entry giving the destination (described
in “Destinations” on page 90 ). The /Rect entry defines the area of the hyperlink.
The code is shown in Example 7-4 .
 
Search WWH ::




Custom Search