On Fri, May 20, 2016 at 04:16:23AM -0700, Ryo Furue wrote:
>Is this a bug?
>
>\pdfminorversion=7
>\documentclass{beamer}
>\setbeamercolor{normal text}{fg=white}%<<<comment out this line
>\begin{document}
>\begin{frame}
>\includegraphics[height=0.5\textwidth]{test}% a PDF image.
>\end{frame}
>\end{document}
>
>
>I've found that the setbeamercolor command changes the color of some text
>in the included PDF image, which I'm attaching to this message. If you
>comment out the setbeamercolor command, the text in question is printed in
>its original color.
>
>The PDF file was edited with Adobe Acrobat Pro (I think it's version IX or
>was it XI ?) and in PDF version 1.6.
No. This is a bug in the included image test.pdf. It does not set the
colour for stroking and nonstroking operations at the beginning of its
contents and inherits these attributes from the preceeding content.
There are two ways to cope with this situation:
1.) the workaround:
{\color{black}\includegraphics[height=0.5\textwidth]{test}}
2.) repair test.pdf:
Add `q 0 g 0 G' at the start of the content
stream of test.pdf and `Q' at its end. This sets stroking and non-stroking colours
to black. The graphics-state operators `q' and `Q' encapsulate this
setting which prevents the colour from leaking into the content that follows test.pdf.
This (2.) can be done on the uncompressed test.pdf (using e. g. pdftk)
within a text editor.
Attached: test2.pdf (repaired)