Details
Description
A client is using our Viewer RI implementation to write square annotations. They have discovered that the SquareAnnotaitonHandler and CircleAnnotaitonHander can not have there fill colour defined.
I've take a closer look and this is true, the system property org.icepdf.core.views.page.annotation.squareCircle.fill.color is actually being set but we don't do anything with it. Geometric shaped annotations also need a flag to indicate that a fill colour should be used.
I've take a closer look and this is true, the system property org.icepdf.core.views.page.annotation.squareCircle.fill.color is actually being set but we don't do anything with it. Geometric shaped annotations also need a flag to indicate that a fill colour should be used.
Turns out the SquareAnnotationhandler implementation was not quite complete and when the system property org.icepdf.core.views.page.annotation.squareCircle.fill.color is used nothing will happen. I've made a few code changes to insure the property will be respected. The first is the addition of the boolean system property org.icepdf.core.views.page.annotation.squareCircle.fill.enabled which is false by default. So in order to enable a black filled box by default the following system properties should be used.
org.icepdf.core.views.page.annotation.squareCircle.stroke.color=#000000
org.icepdf.core.views.page.annotation.squareCircle.fill.enabled = true
org.icepdf.core.views.page.annotation.squareCircle.fill.color=#000000
A news system property, org.icepdf.core.views.page.annotation.squareCircle.stroke.width=3.0 has been added to change the default stroke width.