ICEpdf
  1. ICEpdf
  2. PDF-478

Text selection results are out of order

    Details

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

      Description


      A user has posted a test file that has content stream containing text that is layed out in a non contiguous fashion. When text selection is used to extract text the order is that of the content stream and not that of what the users sees on the screen. Interestingly enough Acrobat has a similar problem.

      A future enhancement for use would be to sort the PageText LineText children based on the bounding box's y coordinate.

        Activity

        Migration created issue -
        Migration made changes -
        Field Original Value New Value
        Reporter Migration [ remote ] Patrick Corless [ patrick.corless ]
        Hide
        Patrick Corless added a comment -

        A community memory has submitted a patch which looks like a promising patch. http://www.icesoft.org/JForum/posts/list/21264.page

        Show
        Patrick Corless added a comment - A community memory has submitted a patch which looks like a promising patch. http://www.icesoft.org/JForum/posts/list/21264.page
        Patrick Corless made changes -
        Fix Version/s 5.0.1 [ 10872 ]
        Hide
        Patrick Corless added a comment -

        Applied patch which is a basic vertical sort of Abstract text positions.

        Show
        Patrick Corless added a comment - Applied patch which is a basic vertical sort of Abstract text positions.
        Patrick Corless made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Repository Revision Date User Message
        ICEsoft Public SVN Repository #34533 Thu Apr 25 11:18:17 MDT 2013 patrick.corless PDF-478 addition of text position comparator which attempts to sort text that may be out of order vertical when compared from a top down reading of the text.
        Files Changed
        Commit graph MODIFY /icepdf/trunk/icepdf/core/src/org/icepdf/core/pobjects/graphics/text/PageText.java
        Commit graph MODIFY /icepdf/trunk/icepdf/core/src/org/icepdf/core/pobjects/graphics/text/LineText.java
        Commit graph ADD /icepdf/trunk/icepdf/core/src/org/icepdf/core/pobjects/graphics/text/TextPositionComparator.java
        Patrick Corless made changes -
        Status Resolved [ 5 ] Closed [ 6 ]

          People

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

            Dates

            • Created:
              Updated:
              Resolved: