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

Shunsaku Hirata shunsaku.hirata74 at gmail.com
Thu Jun 25 12:08:11 CEST 2020


Sorry if I misunderstand.

> But couldn't there be a generic special that describes an area and that
> xdvipdfmx simply ignores outside bann/eann but takes into account
> inside the annotation?
>
> E.g.
>
> \special{pdf:rule width 32pt height 9pt depth 1pt} %ignore
> ....
> \special{pdf:bann ...}
> \special{pdf:rule width 32pt height 9pt depth 1pt} %
> some other stuff   \special{pdf:rule width 32pt height 15pt depth 0pt} %
> more other stuff
> \special{pdf:eann ...}

My suggested new special pdf:xann (not pdf:ann) is for such purpose.
The following special

  \special{pdf:xann width 32pt height 9pt depth 1pt}

within pdf:bann and pdf:eann block tells dvipdfmx to treat it as a box
with size width 32pt, height 9pt, and depth 1pt, located at current
point. But meaningful only for annotation region calculation and no
graphics object drawn.


Thanks,
Shunsaku Hirata


More information about the dvipdfmx mailing list.