Re: Bookmarks corrupted under pdf/ua-2
Mikael Sundqvist <[email protected]> Wed, 17 Jun 2026 10:26:40 +0200
| Newsgroups | gmane.comp.tex.context |
|---|---|
| Message-ID | <CAHy-LL-GiodSHjGVgq=XuJkGdH2Dv8wy3yNYx-joAzmvRSyCpg@mail.gmail.com> |
Hi, On Tue, 16 Jun 2026 at 18:47, Steffen Wolfrum <[email protected]> wrote: > > As I need to produce tagged PDF I am using \setupbackend[format={pdf/ua-2}] > The tagged PDF is great. > > Only the bookmarks are corrupted when non-ASCII is used: > > > \setupinteraction[state=start] > > \setupbackend[format={pdf/ua-2}] > %\setupbackend[format={pdf/ua-1}] > > \placebookmarks[chapter][] > > \starttext > > \chapter{Äpfel – Öl} > > \stoptext > The reason there is a change is not the tagging per se, but that one goes into pdf 2. After reading in the pdf 2 spec again, we cannot find that one shall not be allowed to use utf8 in bookmarks (outlines). We checked a few readers, and it works in firefox/chrome/mupdf(newer)/sumatra, but not in the poppler(?) based ones okular/evince/xpdf. Luckily there is a way to disable the utf8 string: \disabledirectives[backend.pdf.utf] By the way according to tagging-basic.pdf (in the distribution) you could try \setuptagging[state=start,preset=basic,option=interaction] with option=interaction only since you enable interaction. Beware, links and tagging don't play too well together... /Mikael ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : [email protected] / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___________________________________________________________________________________