ICEpdf
  1. ICEpdf
  2. PDF-929

Square and Circle Annotation Handler fill colour not being respected.

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 6.0
    • Fix Version/s: 6.0.1
    • Component/s: Viewer RI
    • Labels:
      None
    • Environment:
      PRO, 6.0 and earlier.

      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.

        Activity

        Hide
        Patrick Corless added a comment -

        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.

        Show
        Patrick Corless added a comment - 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.
        Hide
        Patrick Corless added a comment -

        Marking as fixed.

        Show
        Patrick Corless added a comment - Marking as fixed.

          People

          • Assignee:
            Patrick Corless
            Reporter:
            Patrick Corless
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: