Feature Request: add drawSelection() implementation to Qt bindings
TextOutput.h implements the drawSelection()
interface (https://gitlab.freedesktop.org/poppler/poppler/-/blob/master/poppler/TextOutputDev.h#L636), which is useful for applications to set highlight areas with text selection.
However, this interface is not available in Qt binding. Specifically, QPainterOutputDev.h doesn't include this interface. As a result, Qt applications that relies on poppler for PDF rendering (notably, Okular) can't correctly display highlighted text area, because the font text can't be correctly inverted in a dark background. Below shows the text selection result on Okular (using QPainterOutputDev):
Meanwhile, Atril uses TextOutputDev, which renders the correct result: