Skip to content
Discussion options

You must be logged in to vote

The best start is going from page.get_text("dict"). This is a dictionary of stacked dictionaries described in detail here. It contains a very complete information of text properties, including text color.

If you want to see a sophisticated example, look at the font replacing scripts here.

The "words" extraction is of limited use here, because you do not have the font and the insertion point.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by binodil
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants