Q: How can we change the default color of a text annotation? It’s always red.

A: There is a package called com.qoppa.pdfNotes.settings that contains classes allowing to change the default behavior of all our annotations tools.

So for instance, to set the default color for the free text annotation (also called typewriter annotation), you would call

// the methods are static and the value will be used next time the tool is being used
// change default text color 
FreeTextTool.setDefaultColor(Color.blue);
// change default border color
FreeTextTool.setDefaultBorderColor(Color.black);
// change default fill / background color
FreeTextTool.setDefaultFillColor(Color.gray);