[dvipdfmx] missing annotation rectangle if the box contains no glyph

Ulrike Fischer news3 at nililand.de
Mon Sep 16 16:51:34 CEST 2019


As been discussed in a hyperref issue
https://github.com/ho-tex/hyperref/issues/16 the pdf:bann and pdf:eann
specials for creating line-breakable PDF annotations require typeset
glyphs in between to compute a non-zero annotation rectangle.

hyperref has a special command which inserts a small glyph to force
a non-zero rectangle, but I wonder if dvipdfmx could be adjusted to
avoid this work-around.


\documentclass{article}
\usepackage{hyperref}

\begin{document}

\hypertarget{name}{text} \hypertarget{name2}{text}
\clearpage
\hyperlink{name}{\phantom{text}}text 

\hyperlink{name2}{\XeTeXLinkBox{\phantom{text}}}text2

\end{document}



-- 
Mit freundlichen Grüßen
Ulrike Fischer




More information about the dvipdfmx mailing list