Bug 702993 - Markup annotation opacity is not respected
Summary: Markup annotation opacity is not respected
Status: RESOLVED FIXED
Alias: None
Product: MuPDF
Classification: Unclassified
Component: mupdf (show other bugs)
Version: master
Hardware: PC Linux
: P4 normal
Assignee: MuPDF bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-10-15 21:10 UTC by Zachary Travis
Modified: 2021-05-11 17:29 UTC (History)
1 user (show)

See Also:
Customer:
Word Size: ---


Attachments
Example PDF (228.27 KB, application/pdf)
2020-10-15 21:10 UTC, Zachary Travis
Details

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