[XeTeX] xdvipdfmx: Background color white reset to transparent

Nico Schlömer nico.schloemer at gmail.com
Fri Jun 24 17:48:55 CEST 2022


Hi everyone,

I'm trying to track down a bug in the TeX ecosystem. The problem: I
would like to set the background color from transparent to opaque
white in a XeTeX-compiled PDF, such that my PDF-to-SVG conversion tool
(dvisvgm [1]) picks it up. Unfortunately, in xdvipdfmx, white
backgrounds are unconditionally converted back to transparent; see [2]
for the respective line of code.

pdflatex does not reset the background color.

Is this a bug?

Cheers,
Nico

[1] https://github.com/mgieseki/dvisvgm
[2] https://www.tug.org/svn/texlive/trunk/Build/source/texk/dvipdfm-x/pdfdoc.c?revision=57915&view=markup#l2416


More information about the XeTeX mailing list.