ICEpdf
  1. ICEpdf
  2. PDF-1161

Hightlight annotation not drawing in correct location in some instances

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 6.2.4
    • Fix Version/s: 6.2.5
    • Component/s: Viewer RI
    • Labels:
      None
    • Environment:
      Any

      Description

      A community memory submitted this issue. When using the highlight annotation tool at zoom levels other then 100% there say what seemed like randomly occurring location issues with the output of the highlight effect.

      The issue took quite a bit of time to track down as it is related to support we added to scale annotations rectangles against their bbox. The new code exposed a long running rounding error that can occurs when moving from a Rectangle2D to a plain old rectangle.

        Activity

        Patrick Corless created issue -
        Patrick Corless made changes -
        Field Original Value New Value
        Fix Version/s 6.2.5 [ 13102 ]
        Repository Revision Date User Message
        ICEsoft Public SVN Repository #51660 Mon Jun 19 14:54:27 MDT 2017 patrick.corless PDF-1161 touched up a rounding issue that was causing highlight annotation
        content streams be incorrectly scaled and drawn in an incorrect location.
        Files Changed
        Commit graph MODIFY /icepdf/branches/icepdf-6.2.0/icepdf/viewer/src/org/icepdf/ri/common/tools/HighLightAnnotationHandler.java
        Repository Revision Date User Message
        ICEsoft Public SVN Repository #51661 Mon Jun 19 14:54:37 MDT 2017 patrick.corless PDF-1161 touched up a rounding issue that was causing highlight annotation
        content streams be incorrectly scaled and drawn in an incorrect location.
        Files Changed
        Commit graph MODIFY /icepdf/trunk/icepdf/viewer/viewer-awt/src/main/java/org/icepdf/ri/common/tools/HighLightAnnotationHandler.java
        Hide
        Patrick Corless added a comment -

        The rounding error has been corrected and the highlight annotation is being created as expected.

        Show
        Patrick Corless added a comment - The rounding error has been corrected and the highlight annotation is being created as expected.
        Patrick Corless made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Patrick Corless made changes -
        Status Resolved [ 5 ] Closed [ 6 ]

          People

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

            Dates

            • Created:
              Updated:
              Resolved: