3

I have a transparent PNG over a tikzpicture. This prints fine from TeXworks (left image), but from Adobe Reader the transparent area is noticeable (right image). Since most people use Reader, this is a problem.

Without matching the colours how do I prevent this?

The code for the images is as follows:

% document class
\documentclass[a4paper,11pt,final]{memoir}

% stuff
\pagestyle{empty}         % no page numbering
\setlength{\parindent}{0pt}     % no paragraph indentation

% required packages (add your own)
\usepackage{flowfram}                   % column layout
\usepackage[top=1cm,left=1cm,right=1cm,bottom=1cm]{geometry}% margins
\usepackage{graphicx}                   % figures
\usepackage[svgnames]{xcolor} % Call colours by their svgnames
\usepackage{tikz}
\usepackage{graphicx}
\graphicspath{ {images/} } %images are kept here


% Create column layout
% define length commands
\setlength{\vcolumnsep}{\baselineskip}
\setlength{\columnsep}{\vcolumnsep}

% frame setup (flowfram package)
% left frame
\newflowframe{0.24\textwidth}{\textheight}{0pt}{0pt}[left]
  \newlength{\LeftMainSep}
  \setlength{\LeftMainSep}{0.22\textwidth}
  \addtolength{\LeftMainSep}{2\columnsep}

% right frame
\newflowframe{0.7\textwidth}{\textheight}{\LeftMainSep}{0pt}[main01]

% define custom colours
\definecolor{PaleGrey}{RGB}{99,99,99}

\begin{document}

%Dagger
\begin{tikzpicture}[remember picture, overlay]
\fill [fill=PaleGrey!10] (0,0.8cm) -- (0,-23cm) -- (5cm,-26.5cm) -- (5cm,0.8cm) -- cycle;
\end{tikzpicture}

\hspace*{\parindent}% text in specimen is set into page somewhat
\begin{minipage}[c]{5.1cm}% adjust to taste
\begin{center}

%Picture
\includegraphics{logo}

% Three Blind Mice

% end justify center
\end{center}\normalsize
\framebreak
\end{minipage}
% End of mini page

\end{document}

And the image itself is here:

enter image description here

15
  • Could you provide the code you used to generate the picture? – Claudio Fiandrino Nov 13 '14 at 13:51
  • 1
    Might also be an idea to provide the png to be downloaded from somewhere (thee are loads of services for this). – daleif Nov 13 '14 at 14:12
  • 1
    Hmm, interesting. AR is known to have problems with images that are transparent. I'll search the archives to see if there is a solution. – daleif Nov 13 '14 at 14:54
  • 1
    The problem seems to come from the alpha channel in the PNG (presumably) plus the generated PDF version. Current pdflatex generate PDF 1.5, if you set \pdfminorversion 7 it seems to work, at least in my test with AR 9.5 on linux. Found here: forums.adobe.com/thread/395348 – daleif Nov 13 '14 at 15:09
  • That didn't work. It looks good in acroreader but when printed out onto paper, the bounding box of the image is obvious. – Ghoul Fool Nov 13 '14 at 15:50

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.