how can I get color info for a PDF file I want to check color contrast for text. For that I need foreground and background colors. Currently I am using pdfminer. But with pdfminer this information is not possible to extract. Do you know if any other that can be used with python for handling pdf files. Please help.