How to know the highlight color of the symbol in the document using python?

In the pdf document need to know the color selection of each symbol. Where to dig to solve this problem? Pdfminer comes up(I read that it is not about color). PyPDF, python-docx(convert pdf to docx, formatting) - can't find the desired functionality.
April 16th 20 at 10:31
1 answer
April 16th 20 at 10:33
Found something (only for .docx):
import docx
doc = docx.Document('1.docx')
for p in doc.paragraphs:
 for r in p.runs:
 print(r.font.highlight_color, r.text)

Find more questions by tags WordPDFWork with colorPython