summaryrefslogtreecommitdiff
path: root/Build/source/texk/dvipdf-x/tests/resrc.tex
blob: d82af96a1b5a7e8a1bbd2abf7750a00713c87908 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
%
\special{papersize=10cm,10cm}

\special{pdf:obj @pgfcolorspaces <<>>}

\special{pdf:obj @pgfpatterns <<>>}

\special{pdf:put @resources
  <</Pattern @pgfpatterns /Colorspace @pgfcolorspaces>>}

\special{pdf:put @pgfcolorspaces
  <</pgfprgb [/Pattern /DeviceRGB]>>}

\special{pdf:put @pgfpatterns
  <</pgfpat6 @pgf@paternobject@6>>}

\special{pdf:stream @pgf@paternobject@6 (q 0.3985 w 3.08846 0.0 m Q)
  <</Type/Pattern>>}

\bye

\special{pdf:out 1
  <</Title(Contents)/A<</S/GoTo/D(contents)>>>>}
\special{pdf:out 1
  <</Title(1 First section)/A<</S/GoTo/D(section.1)>>>>}
\special{pdf:out 2
  <</Title(1.1 First subsection)/A<</S/GoTo/D(subsection.1.1)>>>>}
\special{pdf:out 1
  <</Title(2 Second section)/A<</S/GoTo/D(section.2)>>>>}

\noindent Contents
\special{pdf:dest (contents) [@thispage /XYZ @xpos @ypos null]}

\vskip 5mm

\hbox to 60mm{%
\special{pdf:bann<</Type/Annot/Subtype/Link/Border[0 0 0]/C[1 0 0]
  /A<</S/GoTo/D(section.1)>>>>}1 First section\special{pdf:eann}
\hfill 2}

\hbox to 60mm{\hskip 5mm%
\special{pdf:bann<</Type/Annot/Subtype/Link/Border[0 0 0]/C[1 0 0]
  /A<</S/GoTo/D(subsection.1.1)>>>>}1.1 First subsection\special{pdf:eann}
\hfill 3}

\hbox to 60mm{%
\special{pdf:bann<</Type/Annot/Subtype/Link/Border[0 0 0]/C[1 0 0]
  /A<</S/GoTo/D(section.2)>>>>}2 Second section\special{pdf:eann}
\hfill 4}

\vfill\break

\noindent 1 First section
\special{pdf:dest (section.1) [@thispage /XYZ @xpos @ypos null]}

\vskip 5mm

\noindent The first section

\vfill\break

\noindent 1.1 First subsection
\special{pdf:dest (subsection.1.1) [@thispage /XYZ @xpos @ypos null]}

\vskip 5mm

\noindent The first subsection

\vfill\break

\noindent 2 Second section
\special{pdf:dest (section.2) [@thispage /XYZ @xpos @ypos null]}

\vskip 5mm

\noindent The second section

\bye