Am 14.08.2020 um 12:21 schrieb Pop, Rares:
Hi guys,

I am new to pdfbox and I am trying to modify the color of an existing text 
element.

My current understanding is that I need to parse the stream, iterate through 
the tokens and find the one I need to change the color for.
Then insert a Change Color Operator before it.

Is this the correct way and could you please show me how to create a change 
colour operator?


Yes, but it may be difficult to find the correct element. The best would be to have a look at that file with PDFDebugger, you can see all the operators there. When you hover the mouse over such a color operator it will show you the color.

Tilman


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@pdfbox.apache.org
For additional commands, e-mail: users-h...@pdfbox.apache.org

Reply via email to