Apache OpenOffice (AOO) Bugzilla – Issue 18723
transparency converted to pink when exporting to pdf
Last modified: 2004-02-03 12:37:22 UTC
In the attached example, images are left out of the PDF export.
Created attachment 8805 [details] The attached zip contains an example sxw file and the PDF export illustrating the bug
Unable to confirm reported behavior. Opening OOo document and PDF document provided, the images are present in both. WinXPPro/1.1rc3
Unable to confirm _reported_ behaviour (1.1RC3/Redhat 9). However I do notice that the transparency in the images is converted to purple. (A bug seen more in programs unable to handle transparency).
Created attachment 8839 [details] Screenshot of the reported bug
Please check attached screenshot.
changed summary (original: Images left ou in PDF export) This is related to issue 10388 since jpeg cannot handle transparency. The color is used by many programs to communicate to the user: "This area is transparent, but I don't know what to display as background. To make it easy to distinguish from the real image, I use a seldomly used color" So these programs actually "know of" transparency but lack of the background. Some can be configured to use another color or some kind of grid (like the gimp). This shows in the pdf contained in the attached zip when viewed with different applications. (will attach screenshots) XPDF: doesn't change the image -> displays transparent area as pink ggv: does a good job recognizing transparent parts -> no pink visible acroread: not as good as ggv -> pink borders around image But recognizes the parts as transparent: check "[x] Display Transparency Grid" in the preferences. I tend to resolving this as worksforme, since this is the best thing OOo can do at the moment. But for the moment, I'm confirming the issue.
Created attachment 8906 [details] test.pdf viewed with different applications that handle the pink more or less as transparent
Created attachment 8907 [details] the same in acroread with transparency grid enabled: the surroundings of the image are correctly displayed as transparent
I have found a similar issue with transparent PNG's. When exporting a document with a transparent PNG, the entire background is rendered in black in xpdf and ggv. The reasons for this are probably the same as the rest of this issue. Craig A. Adams
cp->pl: i wouldn't assume that acroread is completeley unable to handle transparency ? please have a look if there's an issue for us.
Actually the transparent image is put into the PDF file with a 1-bit mask that if it were applied would mask out the purple portions. Acroread does this, but doesn't scale the mask exactly the same way it does the image (that's why the purple edges get smaller if you apply a higher zoom factor); this artifact is vanishes as soon as you switch off "smooth images" in the settings of acroread. xpdf does not seem to handle masks at all as far as i can see; that should be fixed in xpdf, no doubt. Since the PDF does exactly what it's supposed to, i think there's no OOo issue left.
I hear no disagreement, so i'll close the issue
Created attachment 12855 [details] comparison of jpeg/jpeg/png