Bug 691106

Summary: pdfwriter removes semi transparent image
Product: Ghostscript Reporter: Michael Sløgedal <michael>
Component: PDF WriterAssignee: Ken Sharp <ken.sharp>
Status: RESOLVED WORKSFORME    
Severity: major    
Priority: P4    
Version: 8.62   
Hardware: PC   
OS: Linux   
URL: http://www.makeweb.no/brosjyre.pdf
Customer: Word Size: ---
Attachments: that test file, attached here
foo8.pdf.bz2

Description Michael Sløgedal 2010-02-12 01:02:00 UTC
gs -dNOPAUSE -sDEVICE=pdfwrite -sOutputFile=brosjyrea.pdf -dBATCH brosjyre.pdf

The logo on the bottom of first page is missing in the resulting pdf (view 
original file in adobe reader 9+ to see.)

Reports from irc says that it works in x11 but not pdfwrite, also acrobat 7/8 
removes the logo the same way - only works in acrobat 9 (but this is 
acceptable behaviour)
Comment 1 Hin-Tak Leung 2010-02-12 01:07:18 UTC
Created attachment 5946 [details]
that test file, attached here

Just the pdf attached here directly.

Reproduced with 8.70 and also a recent svn HEAD.

The files renders alright with the png16m device and x11, but have some
graphics missing with pdfwrite, and cause x11alpha to die. Acroread 9 on linux
shows the missing graphics at the bottom right corner correctly, but xpdf also
has trouble with it.
Comment 2 Alex Cherepanov 2010-02-13 15:15:16 UTC
Created attachment 5953 [details]
foo8.pdf.bz2

Simplified sample file.

ps2pdf generates sample file that has the logo repeated many times.
This happens because the pattern doesn't account for '0.1 0 0 0.1 0 0 cm'
inserted by GS at the beginning of the stream. Commenting out this line
restores normal rendering.

Surprisingly, commenting out '/s8 6 0 R' in foo8.pdf also results in generation

of a good-looking file although /s8 is not used anywhere.
Comment 3 Ken Sharp 2010-09-24 14:56:15 UTC
This has been resolved by the recent work on transparency and Patterns inside Form XObjects. I'm not sure which revision exactly, but the recently released version 9.0 should work correctly.