ICEpdf
  1. ICEpdf
  2. PDF-584

FreeTextAnnotationComponent facade position is slightly of from generated content stream

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 5.0.1
    • Fix Version/s: 5.0.7
    • Component/s: Core/Parsing, Viewer RI
    • Labels:
      None
    • Environment:
      any

      Description

      The FreeTextAnnotationComponent uses JTextArea component to facilitate the editing of FreeText annotations content. The facade's text is then converted to PostScript and during this process the some location information isn't correctly converted to PostScript. So in short our wysiwyg editor is a little off.

      On thought I've had is that we could/should hide the facade when the component no longer has focus.

        Activity

        Patrick Corless created issue -
        Hide
        Patrick Corless added a comment - - edited

        The PDF file is malformed. A parsing error occurs when the following content is encountered by the parser:
        16 0 obj
        <<
        13 0 obj
        <<

        When 16 0 obj is parse there is no closing >> or endobj token. My guess is that there is a bug in the PDF generation tool PDF_XChange when there is no content for a page. I can put in a check to avoid the class cast but would be hesitant to try and get the lexer to correct for a such a corner case.

        Show
        Patrick Corless added a comment - - edited The PDF file is malformed. A parsing error occurs when the following content is encountered by the parser: 16 0 obj << 13 0 obj << When 16 0 obj is parse there is no closing >> or endobj token. My guess is that there is a bug in the PDF generation tool PDF_XChange when there is no content for a page. I can put in a check to avoid the class cast but would be hesitant to try and get the lexer to correct for a such a corner case.
        Repository Revision Date User Message
        ICEsoft Public SVN Repository #35626 Mon May 27 16:23:40 MDT 2013 patrick.corless PDF-584 updated border offset code to help make the jtextarea a closer representation of the generated content stream.
        Files Changed
        Commit graph MODIFY /icepdf/branches/icepdf-5.0.1/icepdf/core/src/org/icepdf/core/pobjects/annotations/Annotation.java
        Commit graph MODIFY /icepdf/branches/icepdf-5.0.1/icepdf/viewer/src/org/icepdf/ri/common/views/annotations/FreeTextAnnotationComponent.java
        Commit graph MODIFY /icepdf/branches/icepdf-5.0.1/icepdf/core/src/org/icepdf/core/pobjects/annotations/FreeTextAnnotation.java
        Hide
        Patrick Corless added a comment -

        I've added a fix the 5.0.1 branch as well as the trunk. There is still some slight shifting but all and all the facade is pretty close to the actual rendered content. I think the slight shift no might be related to different fonts being used between the JTextArea and the font reference in the file.

        Show
        Patrick Corless added a comment - I've added a fix the 5.0.1 branch as well as the trunk. There is still some slight shifting but all and all the facade is pretty close to the actual rendered content. I think the slight shift no might be related to different fonts being used between the JTextArea and the font reference in the file.
        Patrick Corless made changes -
        Field Original Value New Value
        Status Open [ 1 ] Resolved [ 5 ]
        Fix Version/s 5.0.2 [ 10972 ]
        Fix Version/s 5.1 [ 10675 ]
        Resolution Fixed [ 1 ]
        Patrick Corless made changes -
        Fix Version/s 5.0.7 [ 11470 ]
        Fix Version/s 5.1 [ 10675 ]
        Fix Version/s 5.0.2 [ 10972 ]
        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: