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:
|
Changes:
| Field |
Old Value |
Date |
By |
| Resolution | Accepted | 2008-01-14 21:55 | oneiros |
| status_id | Open | 2008-01-14 21:55 | oneiros |
| close_date | 1970-01-01 05:30 | 2008-01-14 21:55 | oneiros |
| Group | v1.40.3 | 2007-12-30 02:40 | oneiros |
| Category | PDF inclusion | 2007-12-30 02:35 | oneiros |
| File Added | 474: stefan_255_rgba.png | 2007-12-30 01:45 | zsd |
| File Added | 473: stefan_255_rgba-neither.pdf | 2007-12-30 01:44 | zsd |
| File Added | 472: stefan_255_rgba-i.pdf | 2007-12-30 01:43 | zsd |
| File Added | 471: stefan_255_rgba-a.pdf | 2007-12-30 01:42 | zsd |
| Group | None | 2007-12-30 01:38 | oneiros |
| Category | None | 2007-12-30 01:38 | oneiros |
| Resolution | None | 2007-12-30 01:38 | oneiros |
| assigned_to | none | 2007-12-30 01:38 | oneiros |
| File Added | 470: beamer.pdf | 2007-12-30 01:30 | zsd | |
|