Thank you. I have identified the operator SetNonStrokingColorOperator but I 
think I am missing something.

I have a pdf of sample Spot colours. I am loading it and reading all the 
colours from the ColorSpace resources.

Then I must read an inputPDF (that has no spot colors - i.e. no resources in 
the color space). 
I must simply apply a given spot color to all the elements within the inputPDF.
Then save it as outputPDF.

Is there an example that does anything remotely similar to that? 
I am happy to pay for consultancy here.

Best,
Ra



On 2020/08/14 10:46:56, Tilman Hausherr <t...@t-online.de> wrote: 
> 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> 
> 

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

Reply via email to