Bug 690609

Summary: Lines missing for ripped PDF file
Product: Ghostscript Reporter: Marcos H. Woehrmann <marcos.woehrmann>
Component: PDF InterpreterAssignee: Alex Cherepanov <alex>
Status: NOTIFIED FIXED    
Severity: normal    
Priority: P1    
Version: master   
Hardware: Macintosh   
OS: MacOS X   
Customer: 531 Word Size: ---
Attachments: Nordwest_d.pdf
comparison.png
dflt-stroke-after-fill.pdf - simplified sample file

Description Marcos H. Woehrmann 2009-07-07 15:34:36 UTC
The customer reports and I've verified that the attached PDF file is missing all of the vertical lines when 
ripped by Ghostscript as compared to Acrobat Pro 9.  

The command line I'm using:

  bin/gs -sDEVICE=tiff24nc -r600 -o test.tif ./Nordwest_d.pdf
Comment 1 Marcos H. Woehrmann 2009-07-07 15:35:20 UTC
Created attachment 5192 [details]
Nordwest_d.pdf
Comment 2 Marcos H. Woehrmann 2009-07-07 15:36:45 UTC
Created attachment 5193 [details]
comparison.png

Comparison of Adobe Acrobat Pro 9 output (top) to Ghostscript output (bottom). 
Both output files are at 600 dpi.
Comment 3 Alex Cherepanov 2009-07-07 19:03:35 UTC
Created attachment 5194 [details]
dflt-stroke-after-fill.pdf - simplified sample file

The sample file is rather simple.
The file selects a fill color, fills an object, and strokes a line
with default color.
  q 1 1 1 rg  0 0 8 8 re f 0.75 w 2 J 0 0 m 0 8 l S Q
Ghostscript appears to use the fill color for stroking.

This bug exists on all versions of Ghostscript. It should be quite easy to fix.
Comment 4 Alex Cherepanov 2009-07-08 18:26:49 UTC
Set default color and colorspace for colored pattern stream that relies on
default values; keep the color unset as required for uncolored pattern.

The following patch has been committed as a rev. 9850.
http://ghostscript.com/pipermail/gs-cvs/2009-July/009547.html
Regression testing shows no differences.

The simplified file dflt-stroke-after-fill.pdf has been added to the public
test suite by the rev. 9851.
Comment 5 Marcos H. Woehrmann 2011-09-18 21:46:48 UTC
Changing customer bugs that have been resolved more than a year ago to closed.