File: link.ps

package info (click to toggle)
ruby-rghost 0.9.9-5
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,188 kB
  • sloc: ruby: 3,374; makefile: 6; sh: 1
file content (22 lines) | stat: -rwxr-xr-x 404 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
/:fh{ currentfont /FontMatrix get 3 get 1000 mul } def
/:link_str () def
/:link_uri () def
/:link_rect 4 array def

/:link_make{
 :link_rect 0 X put
 :link_rect 1 Y put
 :link_rect 2 :link_str stringwidth pop X add put
 :link_rect 3 :fh  Y add put
:link_rect 

[ /Rect :link_rect
  /Action /Launch
  /Border [0 0 0]
  /Color [0 0 0]
  /URI :link_uri
  /Subtype /Link
  /ANN pdfmark
 :link_str show

} def