Hi Alex, On 07/01/2014, at 12:56 PM, Alex Korobkin wrote:
> Adrian, > > 2014/1/6 Adrian Johnson <[email protected]> > I was looking at the imagemask-with-pattern.ps test case in > http://bugs.ghostscript.com/show_bug.cgi?id=689818 and noticed the "pop" > in the /PaintProc. > > Does this change fix the bug? > > - /PaintProc { CairoPattern } > + /PaintProc { pop CairoPattern } Well spotted! The pop is used to remove the Pattern dictionary pointer, which isn't being used by the CairoPattern procedure. The same result is given by putting the 'pop' at the beginning of CairoPattern : viz. /CairoPattern { pop .... } bind def Then /PaintProc { CairoPattern } is fine. > > > Wow, it does indeed solve the problem for the Distiller! I can certainly open > my china-visa-application file in Distiller with this modification, no errors > reported and the document looks correct. Glad you got this fixed, without my hacky "1 0 0 setrgbcolor". It seems the problem was really due to a faulty /Pattern Colorspace, whose PaintProc was leaving extra dictionary pointers on the stack. Ghostscript must be able to tolerate this, whereas Distill does not. > > I cannot test with a Ricoh printer right now, will report tomorrow. > -Alex All the best, Ross ------------------------------------------------------------------------ Ross Moore [email protected] Mathematics Department office: E7A-206 Macquarie University tel: +61 (0)2 9850 8955 Sydney, Australia 2109 fax: +61 (0)2 9850 8114 ------------------------------------------------------------------------
<<inline: logo.png>>
_______________________________________________ poppler mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/poppler
