[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#941074: ghostscript: ps2pdf SAFER and transparency interference



Hi Markus,

Quoting Markus Demleitner (2019-09-24 11:36:09)
> ps2pdf14 as delivered in buster will only produce PDF transparency 
> when run with -dNOSAFER.  This deviates from previous releases (I'm 
> quite sure about jessie), when transparency was produced without 
> further configuration.  Although I *might* see some relationship to 
> accepting pdfmarks, the connection between SAFER and transparent 
> colours frankly strikes me as just a little non-intuitive (but that 
> may be because I don't know what's going on when producing 
> transparency in PDFs).
> 
> Because of this, I'd suggest that if turning off PDF transparency 
> without -dNOSAFER is intentional, that should be documented in the 
> NEWS, even more so as I couldn't make out that fact in the upstream 
> Use.htm that the current 9.28~~rc1~dfsg-1 NEWS item refers to.  
> Perhaps that particular item could be amended with saying something 
> like "Note that that has some rather unexpected consequences (e.g., 
> PDF transparency is now lost without -dNOSAFER)."
>
> Here's my minimal working example:
> 
> With the LaTeX document
> 
>         \documentclass{article}
>         \usepackage{pstricks}
>         \begin{document}
> 
>         \psframebox*[linecolor=white,fillcolor=red,fillstyle=solid,
>         opacity=0.85,framesep=4mm]{abc}
>         \vskip -9mm
>         \psframebox*[fillcolor=white, opacity=0.5,strokeopacity=0.5,
>         fillstyle=solid,framesep=4mm,linewidth=3pt,linecolor=black]{abc}
> 
>         \end{document}
> 
> in a.tex, run
> 
>         latex a;dvips a;ps2pdf a.ps
> 
> and the second white box obscures most of the red box in the background
> (i.e., pstricks opacity is ignored).  Run
> 
>         latex a;dvips a;ps2pdf -dNOSAFER a.ps
> 
> and the two boxes blend as expected.

Thanks for reporting this issue.

Above minimal code is processed by LaTeX, not Ghostscript directly.

Please provide a (minimal, preferrably) example of date and commands 
directly involving Ghostscript.


 - Jonas

-- 
 * Jonas Smedegaard - idealist & Internet-arkitekt
 * Tlf.: +45 40843136  Website: http://dr.jones.dk/

 [x] quote me freely  [ ] ask before reusing  [ ] keep private

Attachment: signature.asc
Description: signature


Reply to: