Quick and hopefully easy question. Is there a way to apply fading both to the filling and to the border of a tikz path?
mwe
\documentclass{standalone}
\usepackage{tikz}
\usetikzlibrary{fadings}
\begin{document}
\begin{tikzpicture}
\node at (1, 0.5) {\Large\bfseries fading};
\draw[ultra thick, fill=purple, path fading=east] (0,0) rectangle (2,1);
\end{tikzpicture}
\end{document}
result
I'd like the black border to fade to alpha in the same way of the filling.
EDIT: Reading the comments it seems something specific to my setup, probably poppler/Evince, with chrome-integrated reader it works fine.
Here's the pdf: https://www.dropbox.com/s/vn402eaw7kil3cj/fade.pdf?dl=0
and the log file: https://www.dropbox.com/s/lhz9fclot9n0qpx/fade.log?dl=0
So, is there a way to make it work with all PDF readers? Not sure it matters, but I can draw something similar with inkscape (just setting border fill to gradient) and it works fine.


popplerdevs. What I'm saying is that I'm looking for a solution that works around it that works with any pdf reader, if there isn't one I can easily enough live without fading ;-) – filippo Jan 26 '18 at 15:11