Example code follows:
%!
/TimesNewRomanPS-BoldMT 10 selectfont
/TestString (Testing 123) def
1 setlinecap 1 setlinejoin [] 0 setdash
/DoIt
{
[7 3 1 0]
{
setlinewidth
/thisgray 1 thisgray sub def
thisgray setgray
X 42 moveto
currentlinewidth 0 gt
{
TestString false charpath
WhichVariant {stroke} {strokepath fill} ifelse
}
{
TestString
WhichVariant {show} {true charpath fill} ifelse
} ifelse
} forall
} def
[ false true]
{
/WhichVariant exch def
/X WhichVariant {10} {120} ifelse def
/thisgray 0.25 def
DoIt
0.875 setgray
X 10 100 30
clipsave
4 copy rectfill rectclip
/thisgray 0 def
DoIt
cliprestore
} forall
showpage
(pstack start) ==
pstack
(pstack done) ==
> I've had a variety of related rendering problems, which have been
> fixed by distilling with Apple's Preview (which presumably calls
> Ghostscript)
I do not think that's true, and here's a shell transcript to show why:
pmg5 $ uname -a
Darwin jldg5 8.8.0 Darwin Kernel Version 8.8.0: Fri Sep 8 17:18:57
PDT 2006; root:xnu-792.12.6.obj~1/RELEASE_PPC Power Macintosh
powerpc
pmg5 $ whence pstopdf
/usr/bin/pstopdf
pmg5 $ pstopdf -i
executive
^D
PostScript(r) Version 3011.104
(c) Copyright 1984-1999 Adobe Systems Incorporated.
All Rights Reserved.
PS>^D
%%[ Warning: PostScript error. No PDF file produced. ] %%
pstopdf failed on PS read from stdin with error code -31000
pmg5 $
> rather than the Adobe product. I'm surprised that Adobe
> has been out-qualitied, but live and learn.
--
> WYSIWYG-type user not familar with shell scripts would welcome
> explanation.
Well, my point was just that the standard MacOSX pstopdf (not the same
as ghostscript's ps2pdf) is a PS interpreter that is (apparently)
copyright Adobe Systems.
Therefore, I think it's unlikely that Preview uses ghostscript.
--