Bug 690184 - Table in PDF rendered black or with horizontal lines at higher resolutions
Summary: Table in PDF rendered black or with horizontal lines at higher resolutions
Status: NOTIFIED INVALID
Alias: None
Product: Ghostscript
Classification: Unclassified
Component: PDF Interpreter (show other bugs)
Version: master
Hardware: Macintosh MacOS X
: P1 normal
Assignee: Marcos H. Woehrmann
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-11-26 08:10 UTC by Marcos H. Woehrmann
Modified: 2014-02-17 04:46 UTC (History)
1 user (show)

See Also:
Customer: 531
Word Size: ---


Attachments
t3f.pdf (89.93 KB, application/pdf)
2008-11-26 08:10 UTC, Marcos H. Woehrmann
Details
t3f_300_Acrobat_8.0.tiff (95.85 KB, image/tiff)
2009-05-27 09:33 UTC, Henry Stiles
Details
t3f-acrobat9-219dpi.tif (840 bytes, image/tiff)
2009-05-27 09:44 UTC, Ken Sharp
Details
t3f-acrobat9-300dpi.tif (1.11 KB, image/tiff)
2009-05-27 09:45 UTC, Ken Sharp
Details
t3f-acrobat9-600dpi.tif (2.53 KB, image/tiff)
2009-05-27 09:45 UTC, Ken Sharp
Details
t3f-acrobat9-1200dpi.tif (72.69 KB, image/tiff)
2009-05-27 09:46 UTC, Ken Sharp
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Marcos H. Woehrmann 2008-11-26 08:10:14 UTC
The attached PDF file contains a table that is is rendered as a black rectangle or with extra horizontal lines 
with Ghostscript head (r9237) and earlier versions at 220 dpi and higher.  The file is rendered correctly at 
219 dpi and lower.  At 300 DPI the table is rendered as an entirely black rectangle.

The command line I'm using for testing:

  bin/gs -sDEVICE=tiff24nc -o test.tif -r300 ./t3f.pdf
Comment 1 Marcos H. Woehrmann 2008-11-26 08:10:45 UTC
Created attachment 4623 [details]
t3f.pdf
Comment 2 Ray Johnston 2008-11-26 10:34:12 UTC
This is something we've seen before. The file paints a rectangle and fills it
with black, then it uses a single line image (width=2775, h=1) to paint over
it (with some white). Unfortunately the width of the black fill for the next
line up paints over the image leaving the area black.

This looks like a duplicate of bug 689364, which was never satisfactorily
resolved, and was closed as invalid based on Igor's comment #15 in that bug.

This is not a PDF interpreter issue, so I am assigning this to myself (as
for 689364).
Comment 3 Ray Johnston 2008-11-27 09:56:55 UTC
Note that this file appears to have been created for 600 dpi, since at that
scaling, the image size is (almost) one image pixel per device dot.

This file converts correctly at resolutions slightly off from 600 and 300 dpi
such as 600.22 -> 600.29 and 300.12 -> 300.15

This file is clearly very resolution sensitive. Note that with Adobe Acrobat
Reader 7, turning on "Edit" / "Preferences" / "Smooth line art" will result in
output like Ghostscript -- black lines at some scale factors and all black
at 90% scale factor. Without 'smooth line art', AR7 displays without black
lines up to about 615%, then the lines start appearing.

I'm wondering what 'fill' and 'image' scan conversion Adobe is doing when
'smooth line art' is off, and whether Ghostscript can emulate it.


Comment 4 Ray Johnston 2009-04-05 23:58:23 UTC
See also bug 690357.
Comment 5 Henry Stiles 2009-05-26 14:42:13 UTC
Adobe Acrobat 8 renders a black box at 300 dpi.  FWIW -dGraphicsAlphaBits=4
makes the table visible, but the background is a gray shade.
Comment 6 Henry Stiles 2009-05-26 20:31:24 UTC
The background output in apple preview is gray until antialiasing is turned off,
then it is a black box.  Matching gs with and without -dGraphicsAlphaBits, as
expected.  

Do we have a "rendering" say to a tiff or jpeg file from adobe that works, or
are we just looking at the Acrobat screen display?  As I said in comment #9
Acrobat 8 produces a black box when rendering at 300 dpi.
Comment 7 Ray Johnston 2009-05-27 09:14:47 UTC
With Adobe Acrobat 7 "Save As..." to TIFF at 300 or 400 dpi both render the same
as the screen preview. Note that changing the preferences for "Smooth images" and
"Smooth line art" have no effect on the screen preview (or the rendered output).

I never see a gray background with Acrobat 7. Clearly, Acrobat 8 graphics engine
is different than 7's.
Comment 8 Henry Stiles 2009-05-27 09:33:20 UTC
Created attachment 5049 [details]
t3f_300_Acrobat_8.0.tiff

Acrobat 8.0 tiff 300 dpi rendering - a black box.
Comment 9 Ken Sharp 2009-05-27 09:44:17 UTC
Created attachment 5050 [details]
t3f-acrobat9-219dpi.tif

t3f.pdf from Acrobat 9 to TIFF at 219 dpi
Comment 10 Ken Sharp 2009-05-27 09:45:10 UTC
Created attachment 5051 [details]
t3f-acrobat9-300dpi.tif

t3f.pdf from Acrobat 9 save as TIFF at 300 dpi
Comment 11 Ken Sharp 2009-05-27 09:45:46 UTC
Created attachment 5052 [details]
t3f-acrobat9-600dpi.tif

t3f.pdf from Acrobat 9 save as TIFF at 600 dpi
Comment 12 Ken Sharp 2009-05-27 09:46:30 UTC
Created attachment 5053 [details]
t3f-acrobat9-1200dpi.tif

t3f.pdf from Acrobat 9 save as TIFF at 1200 dpi
Comment 13 Marcos H. Woehrmann 2011-09-18 21:47:14 UTC
Changing customer bugs that have been resolved more than a year ago to closed.