Bug 703180 - The -dHaveTransparency option converts the whole document into plain images, not just the transparent objects
Summary: The -dHaveTransparency option converts the whole document into plain images, ...
Status: RESOLVED FIXED
Alias: None
Product: Ghostscript
Classification: Unclassified
Component: PDF Writer (show other bugs)
Version: 9.27
Hardware: PC Linux
: P4 normal
Assignee: Default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-11-25 14:58 UTC by Andres Gomez
Modified: 2021-08-13 21:11 UTC (History)
1 user (show)

See Also:
Customer:
Word Size: ---


Attachments
Igalia logo with tagline (16.03 KB, application/pdf)
2020-11-25 14:58 UTC, Andres Gomez
Details

Note You need to log in before you can comment on or make changes to this bug.
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