Straight line not rendered at rotation=45
Depending on the zoom level, evince and pdftocairo do not render the PDF correctly (this PDF) which is generated from the following latex source:
\documentclass[a4paper]{article}
\usepackage{tikz,geometry}
\begin{document}
Depending on the zoom level, the line in the following box is
rendered or not:
\begin{tikzpicture}
\node[draw,rotate=45] {
\begin{tikzpicture}
\draw[-] (0cm,0cm) -- (1cm,0cm);
\end{tikzpicture}
};
\end{tikzpicture}
The issue does not arise with other rotation angles.
\end{document}
In order to reproduce, compile the above linemissingmwe.tex
and render it at different resolutions via pdftocairo:
pdflatex linemissingmwe.tex
pdftocairo -r 127 -png linemissingmwe.pdf zoom-127 # hides the line
pdftocairo -r 128 -png linemissingmwe.pdf zoom-128 # shows the line
All resolutions lower than 127 seem to hide the line, and all resultions higher than 128 render it correctly. I am using the following poppler version on arch linux:
$ pdftocairo -v
pdftocairo version 0.90.1
Copyright 2005-2020 The Poppler Developers - http://poppler.freedesktop.org
Copyright 1996-2011 Glyph & Cog, LLC
The issue only arises in pdftocairo and evince (version 3.36.7 here), but not in other poppler-based pdf viewers (okular, katarakt are both fine); pdftoppm (0.90.1) also shows the line consistently.
Experimenting with the latex source, I found out that it is really crucial here that the rotation is 45 here.
I don't know how this might be related to other misrendering issues of the cairo backend. Even if this is a duplicate, I hope this issue is helpful because the minimal working example is smaller than the other PDFs I've seen when looking through the existing issues for a possible duplicate.