Hello all, I’m trying to modify the color of a given string/word in PDF documents (automatically). I have tried to render a blank rectangle and then render the string with the same font, style, size and position with the desired color.
This works partially : the method is not 100% reliable. For some documents and fonts, some glyphs fail to render. So I’d like to use another technic : simply tell PDFBox to set the color of the glyphs without having to render them. As if I was opening a PDF editor, change the color and save. Is there a way to do achieve this programatically ? Thanks for your answers, Best regards
