[pstricks] Transparency not working here.

Herbert Voss Herbert.Voss at fu-berlin.de
Sun Oct 28 08:10:37 CET 2007


John Culleton schrieb:
> I have been away from pstricks for a while. I tried to get the transparency to 
> work but obviously I am doing something wrong, or else don't have all the 
> components. First I downloaded the new pstricks.tex 1.16b as cited in HVs 
> recent posts. Then I tried my test file (below) it in both tex and pdftex. 
> Here is my code, cribbed from HV of course:
> 
> \pdfoutput 0
> \input pstricks.tex
> x
> \vskip 3in
> %\begin{pspicture}(5,5)
>  \psset{fillstyle=solid}
>  \psframe[fillcolor=red](0,1)(3,4)
>  \psframe[fillcolor=blue,opacity=0.7](2,2)(5,5)
>  \psframe[fillcolor=green,opacity=0.7](1,0)(4,3)
>  \pscircle[fillcolor=cyan,
>  opacity=0.5](1.5,3.5){1.25}
> % \end{pspicture}
> \vfil
> \bye
> 
> The cyan circle is slightly transparent but has strange bands across it.  The 

\pscircle[linestyle=none,fillcolor=cyan, opacity=0.5](1.5,3.5){1.25}

> other colors show no transparency at all.  This is when viewed in xpdf and 
> kpdf. 
> 
> In acrobat Reader 8 there is no transparency at all.
> 
> I used dvips and then ps2pdf to get to a pdf file. My dvips is  
> version 5.96. 
> Do I need something else?

you need to run

ps2pdf -dCompatibilityLevel=1.4 file.ps

or alternative

ps2pdf14 file.ps

Herbert



More information about the PSTricks mailing list