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

Shunsaku Hirata shunsaku.hirata74 at gmail.com
Thu Jun 25 22:54:26 CEST 2020

> And what happens if there are more than one of such a \special inside
> a bann/eann. E.g. imagine a link (perhaps even going over two lines)
> with a number of \phantom inside:
> \special{pdf:bann ...}
> \phantom{hello} world \phantom{some more} text!
> \special{pdf:eann ...}
> If we add the \special to the \phantom, then there will be more than
> one such \special and additionally also normal text.
> Will it then be able to figure out the annotation area?

Yes the annotation area will be determined correctly as far as
correct sizes are given to pdf:xann. When dvipdfmx encounters
pdf:xann the annotation area grows by the amount specified.

Dvipdfmx just add an area specified by pdf:xann to the current
annotation area it is calculating. There are no problems if multiple
\phantom are used and line breaks occur.

Shunsaku Hirata

More information about the dvipdfmx mailing list.