You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm finding this project to be highly valuable. Thanks for making it available.
One thing I've run into is that I can only change the background color of pdf text annotations, not the color of the text itself. The former seems to be possible within poppler-qt5, but isn't wrapped here?
SetTextFont is wrapped, but the QFont class passed into that doesn't include the text color. If textColor and setTextColor could be accessible via this Python interface then that would be great.
The text was updated successfully, but these errors were encountered:
I had a crack at wrapping these myself which was pretty straightforward. I can submit a PR if that's useful.
Changing the colour of text via setTextColor and writing the document to file results in a new pdf which can be parsed. Reading the textColor of the annotations within returns the new colour, but no pdf reader I've tried actually renders them in that colour.
After digging a little into how various readers encode the font colour of text annotations it seems there's no real standard, so perhaps this isn't worth pursuing.
I'm finding this project to be highly valuable. Thanks for making it available.
One thing I've run into is that I can only change the background color of pdf text annotations, not the color of the text itself. The former seems to be possible within poppler-qt5, but isn't wrapped here?
https://people.freedesktop.org/~aacid/docs/qt5/classPoppler_1_1TextAnnotation.html
SetTextFont is wrapped, but the QFont class passed into that doesn't include the text color. If textColor and setTextColor could be accessible via this Python interface then that would be great.
The text was updated successfully, but these errors were encountered: