Option to set text colour

Bug #1682971 reported by acar burak on 2017-04-14
This bug affects 1 person
Affects Status Importance Assigned to Milestone

Bug Description

If not a big trouble to implement, an option to set text colour would be fine as one could set a dark background colour and a lighter text colour as opposed to the "white" text colour of the "Invert colours" option which creates a very high contrast hurting eyes.

Many thanks for this very useful application.

acar burak (acarbura) on 2017-04-14
description: updated
Adam Reichold (adamreichold) wrote :

Hello Acar,

this is sadly rather hard to implement since qpdfview does never get to handle the text as such (or the background for that matter). This is done by the backend libraries like Poppler which for example allows us to set a background only. In any case, setting a text color is complicated by the fact that text is often just vector graphics without any means for the library to know that it has semantical relevance. And then there are scanned documents which have no machine-readable structure at all.

What you could try is to use version 0.4.15 or later which should support composition modes for the chosen background color, i.e. you can darken or lighten the whole rendered image with the paper color. This is meant for scanned documents where only this blending can be used to change the background, but maybe it is helpful in your case as well?

Best regards, Adam.

P.S.: If you think, we need other composition modes in addition to lighten and darken, we can certainly add anyone from here: https://doc.qt.io/qt-4.8/qpainter.html#CompositionMode-enum

Changed in qpdfview:
status: New → Opinion
acar burak (acarbura) wrote :

Thanks very much for the detailed info. Not a real issue anyway. I can set semi dark background and black text which is fine enough.

All the best…

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers