Sarovar.org
     Advanced search
Login
New Account
  
 
Home My Page Project Tree Code Snippets Project Openings pdftex
 
 
Summary Tracker Docs News Files
 

Bugs: Browse | Download .csv

[#896] including an image (pdf or png) with transparency messes up other colours on that page

Please login

State:
Closed
Date:
2007-12-30 01:30
Priority:
3
Submitted By:
Jim Diamond (zsd)
Assigned To:
Martin Schröder (oneiros)
Summary:
including an image (pdf or png) with transparency messes up other colours on that page

Detailed description
Download
http://www.libpng.org/pub/png/img_png/stefan_255_rgba.png
(which has a transparent background) and run it through
png2pdf as follows:
png2pdf -i stefan_255_rgba.png stefan_255_rgba-i.pdf
png2pdf -a stefan_255_rgba.png stefan_255_rgba-a.pdf
png2pdf stefan_255_rgba.png stefan_255_rgba-neither.pdf

Then run the following through pdflatex (pdfTeXk,
Version 3.141592-1.40.3 (Web2C 7.5.6))

\documentclass{beamer}
\mode<presentation>
{
  \usetheme{Madrid}
  \setbeamercovered{transparent}
}

\usepackage{ifpdf}
\usepackage{graphicx}
\usepackage{color}
\ifpdf
\hypersetup{%
  pdfpagemode=FullScreen,
  pdfpagetransition={Wipe /Di 0 /D 0.5}
}
\fi

\title[Beamer and png2pdf]{Using png2pdf with the
beamer class}
\author[Krause]{D.~Krause}
\subject{png2pdf}

\begin{document}
\beamertemplateshadingbackground{yellow!50}{magenta!50}

\begin{frame}
\frametitle{NO Image over background}
This is some text
\end{frame}

\begin{frame}
\frametitle{Original stefan... png image over background}
\includegraphics{stefan_255_rgba.png}%
\end{frame}

\begin{frame}
\frametitle{png2pdf -a stefan... image over background}
\includegraphics{stefan_255_rgba-a.pdf}%
\end{frame}

\begin{frame}
\frametitle{png2pdf -i stefan... image over background}
\includegraphics{stefan_255_rgba-i.pdf}%
\end{frame}

\begin{frame}
\frametitle{png2pdf stefan... over background}
\includegraphics{stefan_255_rgba-neither.pdf}%
\end{frame}

\end{document}

Now look at the resulting PDF (attached) with Acroread
7.0.9 or 8.1.1 on Linux.  On the page which includes
the PNG and also on the page which includes the png2pdf
-a version,
the other colours on the page are messed up somewhat.

This also happens on Acroread 8.? running on Windoze xp
under vmware, although it seems a bit less noticeable.

There is no apparent problem when looking at the file
with xpdf or kpdf (Slackware 12.0 Linux).

It's not clear to me whether this is an acroread bug or
a pdftex bug, but Martin Schröder suggested I open a
bug here.

Cheers.
              Jim

Followup

Message
Date: 2008-01-14 21:55
Sender: Martin Schröder

Logged In: YES 
user_id=421

A fix for this will be included in the next release
(1.40.6/1.50.0).
Date: 2007-12-31 20:37
Sender: Martin Schröder

Logged In: YES 
user_id=421

Our contact at adobe confirms that pages with transparent
objects on them (like pngs) must have a /Group entry in the
/Page object. I'll fix that next year.
Date: 2007-12-30 02:35
Sender: Martin Schröder

Logged In: YES 
user_id=421

This is not related to #764, as there are no page Groups.

It also happens only with the png or rgba-a. I'll ask our
contact at Adobe.
Date: 2007-12-30 02:33
Sender: Jim Diamond

Logged In: YES 
user_id=4814

I just d/l'ed and compiled pdftex Version 3.141592-1.40.5
(Web2C 7.5.6)

The pdf files (1.40.3 and 1.40.5 versions) are slightly
different (when compared as text) but when viewed with
acroread 7.0.9 they look identical (as far as my eyes can tell).

Date: 2007-12-30 01:45
Sender: Jim Diamond

Logged In: YES 
user_id=4814

Done
Date: 2007-12-30 01:38
Sender: Martin Schröder

Logged In: YES 
user_id=421

Please attach the pdfs from png2pdf.

Attached Files:

Name Download
beamer.pdf Download
stefan_255_rgba-a.pdf Download
stefan_255_rgba-i.pdf Download
stefan_255_rgba-neither.pdf Download
stefan_255_rgba.png Download

Changes:

Field Old Value Date By
ResolutionAccepted2008-01-14 21:55oneiros
status_idOpen2008-01-14 21:55oneiros
close_date1970-01-01 05:302008-01-14 21:55oneiros
Groupv1.40.32007-12-30 02:40oneiros
CategoryPDF inclusion2007-12-30 02:35oneiros
File Added474: stefan_255_rgba.png2007-12-30 01:45zsd
File Added473: stefan_255_rgba-neither.pdf2007-12-30 01:44zsd
File Added472: stefan_255_rgba-i.pdf2007-12-30 01:43zsd
File Added471: stefan_255_rgba-a.pdf2007-12-30 01:42zsd
GroupNone2007-12-30 01:38oneiros
CategoryNone2007-12-30 01:38oneiros
ResolutionNone2007-12-30 01:38oneiros
assigned_tonone2007-12-30 01:38oneiros
File Added470: beamer.pdf2007-12-30 01:30zsd