Bug 689422

Summary: Does not draw anything in a given pdf
Product: Ghostscript Reporter: Albert Astals Cid <aacid>
Component: PDF InterpreterAssignee: Michael Vrhel <michael.vrhel>
Status: RESOLVED FIXED    
Severity: normal    
Priority: P3    
Version: 0.00   
Hardware: PC   
OS: Linux   
Customer: Word Size: ---
Attachments: The said pdf
AR7.jpg
GS860.jpg
rgb20x20.ppm
gray20x20.pgm

Description Albert Astals Cid 2007-08-27 13:54:15 UTC
With the pdf i'm going to attach GPL Ghostscript SVN PRE-RELEASE 8.61 
(2007-08-02) that comes with ubuntu developer version draws an empty page that 
is wrong.
Comment 1 Albert Astals Cid 2007-08-27 13:54:44 UTC
Created attachment 3319 [details]
The said pdf
Comment 2 Marcos H. Woehrmann 2007-08-27 16:46:37 UTC
With gshead (r8208) and -sDEVICE=ppmraw I get an image; it's not correct, but
it's not blank.
Comment 3 Ray Johnston 2007-08-28 10:25:46 UTC
Created attachment 3320 [details]
AR7.jpg

Image generated by Adobe Acrobat Reader 7
Comment 4 Ray Johnston 2007-08-28 10:26:32 UTC
Created attachment 3321 [details]
GS860.jpg

Image generated by Ghostscript 8.60
Comment 5 Ray Johnston 2007-08-28 10:47:48 UTC
Note ignore the border lines on the JPEG images -- they are a result of
manual cropping of screen snapshots.

The problem is in a rectangle that is filled with a PatternType 1 that
is filled with an DeviceRGB Image (res5) that has an SMask (a DeviceGray
Image -- object 3 0).

The GS results looks like the SMask is being ignored since the part of the
SMask that overlays the red triangle is gray (which should lighten the
red toward white) and the lower triangle of the SMask is black which should
make that part of the 'red/black' transparent (so it shows as white).

This is a nice simple example. Thanks to the submitter for such a simple case.

I've extracted the RGB image and the SMask and attached them as ppm and pgm
files respectively.
Comment 6 Ray Johnston 2007-08-28 10:48:38 UTC
Created attachment 3322 [details]
rgb20x20.ppm
Comment 7 Ray Johnston 2007-08-28 10:49:02 UTC
Created attachment 3323 [details]
gray20x20.pgm
Comment 8 leonardo 2008-03-09 11:23:41 UTC
Changing assigment since I work in this area.
Comment 9 leonardo 2008-10-28 08:36:28 UTC
Changing assignment to Michael since he wants to work on transparency.
Comment 10 Michael Vrhel 2009-01-07 15:37:52 UTC
Verified that this is a transparency issue and does not work correctly with 
the softmask branch.  Upon inspection I see that this has a knockout 
transparency group.  I suspect that is where the problem lies as it is the 
first one I have run across.
Comment 11 Michael Vrhel 2009-02-16 20:21:14 UTC
This currently renders properly with the soft mask branch.
Comment 12 Michael Vrhel 2009-04-28 15:14:17 UTC
Fixed with merge of soft mask branch