Bug 703180

Summary: The -dHaveTransparency option converts the whole document into plain images, not just the transparent objects
Product: Ghostscript Reporter: Andres Gomez <tanty>
Component: PDF WriterAssignee: Default assignee <ghostpdl-bugs>
Status: RESOLVED FIXED    
Severity: normal CC: sphinx.pinastri
Priority: P4    
Version: 9.27   
Hardware: PC   
OS: Linux   
Customer: Word Size: ---
Attachments: Igalia logo with tagline

Description Andres Gomez 2020-11-25 14:58:26 UTC
Created attachment 20228 [details]
Igalia logo with tagline

The VectorDevices.htm#PDFWRITE documentation states:

"
-dHaveTransparency=boolean
With CompatibilityLevel ≥ 1.4 it specifies whether the target viewer can handle PDF 1.4 transparency objects. If not, transparency objects are converted into plain images. Default value is true.
"

However, if I run the following command against a 1.4 PDF with some transparent objects the result is completely rasterized 1.4 PDF output:

$ gs -dQUIET -dBATCH -dNOPAUSE \
   -dHaveTransparency=false -dCompatibilityLevel=1.4 \
   -sDEVICE=pdfwrite \
   -sOutputFile=out.pdf igalia-tagline_-_CMYK.pdf

The documentation suggests that only the transparent objects should be rasterized, however, the whole document is rasterized.

I'd love this working as explained in the documentation but, if not possible, at least the documentation should be corrected.
Comment 1 Peter Cherepanov 2021-01-02 21:15:12 UTC
The issue is confirmed in the current master branch.
Comment 2 Ray Johnston 2021-08-13 21:11:36 UTC
Fixed in commit 53c578001c4295229105788af0b05ed5bb2ec86f