[XeTeX] How to add ExtGState to xdvipdfmx?

Paul Isambert zappathustra at free.fr
Sun May 13 07:03:40 CEST 2012

Zdenek Wagner <zdenek.wagner at gmail.com> a écrit:
> Hello,
> I have an ExtGState defined as:
>   \special{pdf: object @opoff << /Type /ExtGState /op false /OP false /OPM 0 >>}
>   \special{pdf: object @opon << /Type /ExtGState /op true /OP true /OPM 1 >>}
>   \special{pdf: object @extgs << /GSko @opoff /GSop @opon >>}
>   \special{pdf: object @ExtGS << /ExtGState @extgs >>}
> These commands go to the PDF exactly as in a pdftex file which works.
> Now I need to define @ExtGS in /Resources at each page where I use
> /GSko or /GSop. I tried several ways but all seem to be wrong, it was
> not written to the PDF file. Can someone write me how to do it?

According to the doc you get with "texdoc dvipdfmx" (also available
here: http://tug.org/TUGboat/tb30-1/tb94cho.pdf), the operation is:

  \special{pdf:put @resources << /ExtGState @extgstate >>}


More information about the XeTeX mailing list