I am compiling a Beamer presentation on Ubuntu using PDF figures output from Inkscape. The colors on certain slides are wrong. This appears to be caused by including certain figures, and based on my inspection the presence of translucent and transparent objects may be the culprit.
An important clue is that I have the following lines at the top of my document
\let\mypdfximage\pdfximage
\def\pdfximage{\immediate\mypdfximage}
These lines were necessary to solve a separate bug discussed here (pdflatex: Too many open files). Removing these lines from the minimum working example seems to resolve the issue, but these lines are required to build the full presentation correctly.
This is not a duplicate of this question, as neither the \pdfpageattr nor the \usepackage[cmyk]{xcolor} solutions work. It is likely related to this question. Converting the offending PDFs using the gs -o fixed-image.pdf ... solution presented here also does not work. Running the PDFs through pdf2ps and then ps2pdf resolves the color issue, but rasterizes the figures and leading to (1) unpresentable quality (2) long slide load times with visible flickering during redraw. I am also seeing the warning multiple pdfs with page group included in a single page described here, which may be related. In other forums there is an argument that the incorrect color output is a bug in Adobe Reader, but I believe this must be treated as a bug in pdflatex. IIRC, Adobe Reader is poorly supported on Linux, but because it is the only viewer that can display \animategraphics commands, we need pdflatex to generate output that it can accept.
I've obtained a minimum working example, but I need to know how to attach files (in this case the offending PDF in question) to StackOverflow posts to complete it. I'll work on looking up how to do this, but for now here is the code:
\let\mypdfximage\pdfximage
\def\pdfximage{\immediate\mypdfximage}
\documentclass{beamer}
\usepackage[english]{babel}
\usetheme{Rochester}
\begin{document}
\title {Linux Adobe Reader 9 Color Bug Demo}
\author {}
\subtitle{}
\date {}
\begin{frame}\titlepage\end{frame}
\begin{frame}{Color mismatch}
\includegraphics{./test_figure_2.pdf}
\end{frame}
\end{document}
pdflatex. – Daniel Feb 18 '16 at 21:23\immediate\pdfximagemacro is added. I feel like what's happening is that this solution for theToo many open fileserror is interfering with graphics output. I would expect the true solution is a much more complex version of the\immediate\pdfximagemacro, but I don't have the skills to code this (and the fact that I might have to indicates a bug in pdflatex or one of the packages, in my opinion) – MRule Feb 18 '16 at 21:42