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

Shunsaku Hirata shunsaku.hirata74 at gmail.com
Tue Jun 23 17:13:11 CEST 2020


The following example should work:

\documentclass[dvipdfmx]{article}
\begin{document}
Some \special{pdf:bann <<
  /Type /Annot
  /Subtype /Link
  /Dest [@page1 /Fit]
>>
}{\Huge\phantom{text}}\special{pdf:eann} goes here
\end{document}


Thanks,
Shunsaku Hirata

2020年6月23日(火) 23:59 Shunsaku Hirata <shunsaku.hirata74 at gmail.com>:
>
> Sorry this was just an example to illustrate what happens inside a DVI file.
>
> pdf:bann actually requires a valid PDF dictionary object for annotation.
>
> Thanks,
> Shunsaku Hirata
>
> 2020年6月23日(火) 22:18 Philip Taylor <P.Taylor at hellenic-institute.uk>:
> >
> > And whilst LaTeX will compile the example without complaint, the driver then complains :
> >
> > Document Class: article 2019/12/20 v1.4l Standard LaTeX document class
> > (c:/TeX/Live/2020/texmf-dist/tex/latex/base/size10.clo))
> > (c:/TeX/Live/2020/texmf-dist/tex/latex/l3backend/l3backend-dvipdfmx.def)
> > No file untitled-1.aux.
> > [1] (./untitled-1.aux) )
> > Output written on untitled-1.dvi (1 page, 260 bytes).
> > Transcript written on untitled-1.log.
> >
> > C:\Users\Philip Taylor_2\Dropbox (Personal)\WBH\Menus\2020\Take-away\Final (Post
> >  15-Jun-2020)>dvipdfmx untitled-1
> > untitled-1 -> untitled-1.pdf
> > [1
> > dvipdfmx:warning: Ignoring annotation with invalid dictionary.
> > dvipdfmx:warning: Interpreting special command bann (pdf:) failed.
> > dvipdfmx:warning: >> at page="1" position="(175.279, 701.844)" (in PDF)
> > dvipdfmx:warning: >> xxx "pdf:bann"
> > dvipdfmx:warning: Tried to end an annotation without starting one!
> > dvipdfmx:warning: Interpreting special command eann (pdf:) failed.
> > dvipdfmx:warning: >> at page="1" position="(214.923, 701.844)" (in PDF)
> > dvipdfmx:warning: >> xxx "pdf:eann"
> > ]
> > 2893 bytes written
> >
> >
> > Philip Taylor
> >



More information about the dvipdfmx mailing list.