File: binary.tex

package info (click to toggle)
extractpdfmark 1.1.1-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 464 kB
  • sloc: cpp: 1,859; makefile: 145; sh: 127
file content (31 lines) | stat: -rw-r--r-- 679 bytes parent folder | download | duplicates (4)
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
% Check for binary (broken UTF-16) destination names

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

\catcode0=12

% US-ASCII for title
\def\furonetitle{fur one}
\def\furtwotitle{fur two}

% binary (broken UTF-16) for destination name
\def\furonename{^^ff^^fe^^00f^^00^^fc^^00r^^00 ^^00o^^00n^^00e}
\def\furtwoname{^^ff^^fe^^00f^^00^^fc^^00r^^00 ^^00t^^00w^^00o}

% Destination name could be binary.
% title shuld be PDFDocEncoding (also US-ASCII) or UTF-16.
\pdfoutline goto name{\furonename} {\furonetitle}
\pdfoutline goto name{\furtwoname} {\furtwotitle}

\pdfdest name{\furonename} xyz
page 1

\vfill
\eject

\pdfdest name{\furtwoname} xyz
page 2

\vfill
\end