ICEpdf
  1. ICEpdf
  2. PDF-1005

Ink Annotation painted in incorrect location

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 6.2
    • Component/s: None
    • Labels:
      None
    • Environment:
      any

      Description

      A community memory has submitted a PDF created with MS word. The PDF has an ink annotation that appears to have a translation issue when painted using 6.1.2 however this appears to be a regression compared to 5.x.

      We've had trouble with this issue in the past perhaps this test file will shed a little more light on the issue. If I re-save the PDF with acrobat the offset issue is fixed and renders correctly in ICEpdf.

        Activity

        Hide
        Patrick Corless added a comment -

        The 5.x release we would regenerate an annotation appearance stream when an annotation was initialized. This proved to be problematic as some annotation types didn't include enough information to correctly regenerate the appearance stream. As a result the call to resetAppearanceStream(new AffineTransform()); was removed from the InkAnnotation's init() method.

        When the annotation is moved for the first time the call to resetAppearanceStream(new AffineTransform()); is called and ICEpdf corrects the appearance stream. I'm hesitant to put the code back for just one test case, will re-evaluate at a later date.

        Show
        Patrick Corless added a comment - The 5.x release we would regenerate an annotation appearance stream when an annotation was initialized. This proved to be problematic as some annotation types didn't include enough information to correctly regenerate the appearance stream. As a result the call to resetAppearanceStream(new AffineTransform()); was removed from the InkAnnotation's init() method. When the annotation is moved for the first time the call to resetAppearanceStream(new AffineTransform()); is called and ICEpdf corrects the appearance stream. I'm hesitant to put the code back for just one test case, will re-evaluate at a later date.
        Hide
        Patrick Corless added a comment -

        As part of fixes for PDF-1098 the ink annotation is now correctly drawn and manipulated. Marking as fixed.

        Show
        Patrick Corless added a comment - As part of fixes for PDF-1098 the ink annotation is now correctly drawn and manipulated. 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: