-
Description of the bugI expect to get a new page with just the annotation How to reproduce the bugWhen I try to get the raw attributes of an annotation, like color, rotation.
But the output rotation is always [1.0, 1.0, 1.0] and -1. output :
I did this because I merged two pages using PyMuPDF version1.24.0 Operating systemMacOS Python version3.10 |
Beta Was this translation helpful? Give feedback.
Answered by
JorjMcKie
Apr 3, 2024
Replies: 1 comment 6 replies
-
This is not a bug, but a question. Converting to a Discussions items. |
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
No - here is a misconception:
PDF only supports 2 different colors in all of its object definitions (i.e. including annotations): Stroke color and fill color. So, by design of PDF, there is no way to specify (or inquire) all 3 desired colors: border, fill and text color.
The text color specifically must be inquired by extracting the text in the normal way.
You could of course extract the
/RC
,/DS
contents (XML/HTML formatted strings). Then use some package to parse them. This is beyond PyMuPDF`s scope.