summaryrefslogtreecommitdiff
path: root/support/extractpdfmark/test/utf16.tex
blob: c2ac8060394849e3174dfb5200f0e8a9b3f107f5 (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
% Check for UTF-16 destination names

%\pdfobjcompresslevel=0
\pdfcatalog{/PageMode /UseOutlines}

\catcode0=12

% UTF-16
\def\furone{^^fe^^ff^^00f^^00^^fc^^00r^^00 ^^00o^^00n^^00e}% f\"ur one
\def\furtwo{^^fe^^ff^^00f^^00^^fc^^00r^^00 ^^00t^^00w^^00o}% f\"ur two

% UTF-16 can be used for both destination name and title.
\pdfoutline goto name{\furone} {\furone}
\pdfoutline goto name{\furtwo} {\furtwo}

\pdfdest name{\furone} xyz
page 1

\vfill
\eject

\pdfdest name{\furtwo} xyz
page 2

\vfill
\end