Bug 702993

Summary: Markup annotation opacity is not respected
Product: MuPDF Reporter: Zachary Travis <ztravis>
Component: mupdfAssignee: MuPDF bugs <mupdf-bugs>
Status: RESOLVED FIXED    
Severity: normal CC: sebastian.rasmussen
Priority: P4    
Version: master   
Hardware: PC   
OS: Linux   
Customer: Word Size: ---
Attachments: Example PDF

Description Zachary Travis 2020-10-15 21:10:34 UTC
Created attachment 19955 [details]
Example PDF

Mupdf does not respect the "CA" entry that is allowed for all "markup annotations" (which includes most annotation types, e.g. square, etc). This is evident in some of the annotations on a sample PDF I found on another bug, which I'll attach here - see for example the pink-colored text box on page four, or the filled oval on page 12.

I have a patch to fix this which I am happy to provide - the main reason I am not doing so now is that we aren't handling the "Resource" dictionary in the cleanest way - some annotation types need to e.g. add fonts, etc - and so it might make sense to refactor that first.
Comment 1 Sebastian Rasmussen 2021-05-11 16:29:32 UTC
I'll close the bug, but it was fixed by Tor in

commit 7644c1347ddef5c519e4722e93ed934eb4cdeab2
Author: Tor Andersson <tor.andersson@artifex.com>
Date:   Fri May 7 17:02:18 2021 +0200

    Bug 702993: Support annotation opacity for all markup annotation types.
Comment 2 Zachary Travis 2021-05-11 17:29:54 UTC
Thank you!