Bug 691106 - pdfwriter removes semi transparent image
Summary: pdfwriter removes semi transparent image
Status: RESOLVED WORKSFORME
Alias: None
Product: Ghostscript
Classification: Unclassified
Component: PDF Writer (show other bugs)
Version: 8.62
Hardware: PC Linux
: P4 major
Assignee: Ken Sharp
URL: http://www.makeweb.no/brosjyre.pdf
Keywords:
Depends on:
Blocks:
 
Reported: 2010-02-12 01:02 UTC by Michael Sløgedal
Modified: 2010-09-24 14:56 UTC (History)
0 users

See Also:
Customer:
Word Size: ---


Attachments
that test file, attached here (969.05 KB, application/pdf)
2010-02-12 01:07 UTC, Hin-Tak Leung
Details
foo8.pdf.bz2 (26.45 KB, application/octet-stream)
2010-02-13 15:15 UTC, Alex Cherepanov
Details

Note You need to log in before you can comment on or make changes to this bug.
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.