When the attached file Harzt-ghost.pdf is interpreted with the Ghostscript ( for example: gs -sDEVICE=tiffg4 -dNOPAUSE -o out.tif Harzt-ghost.pdf ) , the processing fails after the 41. page with a typecheck.
Created attachment 5181 [details] Harzt-ghost.pdf
The file has the following invalid reference: 395 0 obj <</Type/ExtGState /SMask 0 0 R>> endobj Probably, Ghostscript should check for "0 0 R" and consider the attribute undefined. This check won't slow PDF interpreter too much if "knownoget" procedure is ported to C.
Add a check for a null value of SMask attribute in ExtGState. This also works for invalid SMask reference, which is already converted to null. The following patch has been committed as a rev. 9839. http://ghostscript.com/pipermail/gs-cvs/2009-July/009518.html Regression testing shows no differences.
Changing customer bugs that have been resolved more than a year ago to closed.