It’s described in several posts (e.g. How to change the highlight color in pdf using fitz module in python) how to mark text in a pdf using fitz. However, I didn’t manage to highlight the keywords throught the entire document but only on certain pages. What do I need to change in
page = doc to mark text in the whole document?
Source: Python Questions