xdvipdfmx-20200116 : additional q/Q bracket around BT...ET

Zdenek Wagner zdenek.wagner at gmail.com
Sat Feb 29 00:41:18 CET 2020


so 29. 2. 2020 v 0:30 odesílatel Alexander Grahn <A.Grahn at web.de> napsal:
>
> Dear all,
>
> current xdvipdfmx, version 2020-01-16, adds a q-Q-bracket around text (BT
> ... ET) in the page stream.
>
> This prevents glyph outlines from being added to the clipping path in the
> graphics state.
>
> Below is a code example that puts the first text string into clipping mode in
> order to add it to the clipping path. This allows the glyphs outlines to be
> filled with colour afterwards. But with the current xdvipdfmx it isn't
> possible anymore.
>
> This method is used by the ocgx2 package to create colour links that are
> printed in normal text colour on paper. Could the previous behaviour
> please be restored?
>
I also vote for restoring the previous behaviour because th q-Q
bracket used to be added by \special{pdf:put ...}. There is a dirty
trick how to remove these q-Q but the previous behaviour will be
better.

> Regards,
> Alexander
>
> * * *
>
> \special{pdf:code q 7 Tr} % add text path to clipping path
> Text in rendering mode `for clipping'.
> \special{pdf:code 0 0 1 RG 0 0 1 rg -88888 -88888 99999 99999 re f Q} % fill text clipping path
>
> Normal Text (rendering mode `fill').
>
> \bye
>
>

Zdeněk Wagner
http://ttsm.icpf.cas.cz/team/wagner.shtml
http://icebearsoft.euweb.cz



More information about the tex-live mailing list.