Red Hat Bugzilla – Bug 510210
evince fails to handle /Decode in PDF files
Last modified: 2014-09-08 08:15:50 EDT
Description of problem:
When trying to convert LZW compressed TIFF image to pdf with inverted colors (-i option) the output is a blank - white pdf.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Get a TIFF LZW compressed image (attached lzw.tif)
2. tiff2pdf -i lzw.tif -o lzw.pdf
3. view lzw.pdf with a viewer (e.g. evince)
White - blank pdf.
PDF with inverted colors image as with not compressed TIFF image.
When converting TIFF without a compression the output is ok. This bug appers on RHEL-4, RHEL-5 and also in FEDORA (tested on FC11).
Created attachment 350916 [details]
LZW compressed TIFF image
As near as I can tell, this is not a libtiff bug. What tiff2pdf does with -i is just to put a line like this into the output:
/Decode [ 1 0 1 0 1 0 1 0 ]
so it's just relying on the PDF viewer to perform the color transformation. I don't have a "real" Adobe PDF reader at hand, but when I look at the resulting file with Apple's Preview, the colors do get inverted. So I think what you've got here is a viewer deficiency, and you should complain about whatever PDF viewer you're using. I concur that evince in particular isn't getting it right, so I'll reassign this bug there.
BTW, I don't observe any effect at all of compressing or not compressing the image, when testing this with libtiff 3.9.2. Possibly there was some issue there with older releases.
This bug/component is not included in scope for RHEL-5.11.0 which is the last RHEL5 minor release. This Bugzilla will soon be CLOSED as WONTFIX (at the end of RHEL5.11 development phase (Apr 22, 2014)). Please contact your account manager or support representative in case you need to escalate this bug.
Thank you for submitting this request for inclusion in Red Hat Enterprise Linux 5. We've carefully evaluated the request, but are unable to include it in RHEL5 stream. If the issue is critical for your business, please provide additional business justification through the appropriate support channels (https://access.redhat.com/site/support).