Page Background Color #2276
-
Can PyMuPDF extract background color of a page or text? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 7 replies
-
No, because you cannot define this in a unique way, can you? But you can create a pixmap of the bbox of some text and check whether it is unicolor (only one color), whether there is a predominant color: |
Beta Was this translation helpful? Give feedback.
-
Can you let me know how a pixmap of bbox of text can be created using PyMuPDF? |
Beta Was this translation helpful? Give feedback.
-
How to get RGB value from pix.color_topusage().? |
Beta Was this translation helpful? Give feedback.
Can you let me know how a pixmap of bbox of text can be created using PyMuPDF?