ICEpdf
  1. ICEpdf
  2. PDF-990

Improve text selection accuracy

    Details

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

      Description

      A client has asked us to enhance the text selection capabilities of the Viewer RI. The current implementation defines a selected region by using a selection box that is created with a mouse press and drag. This approach work OK for paragraph selection but for selecting a sentence it can get a little unyielding.

      The new approach will map the first and last word of a selection and fill in the words in between.

        Activity

        Hide
        Patrick Corless added a comment -

        A tone of work has been done to make text selection feel more natural. The new algorithm allows a users to select a paragraph as define by a start and end glyph range. The older method of intersection with selection box has been removed in favour of the new method.

        Further enhancements have been made to allow for text selection starting on one page and then continuing on to two or more pages. This feature was available in version 4.x but was removed until now.

        There is also the ability to manually set exclusion zones. The purpose of this is to avoid selecting text that may repeat in a header or footer. The features is turned off by default but can be turned on with the system property -Dorg.icepdf.core.views.page.marginExclusion.enabled=true

        The margins are controlled with the properties -Dorg.icepdf.core.views.page.marginExclusion.top and -Dorg.icepdf.core.views.page.marginExclusion.bottom. An integer value in pixels represent each margin. The default values are 75 and 75. And finaly it's possible to show the margins visually on the page for testing purposes with the property -Dorg.icepdf.core.views.page.marginExclusionBorder.enabled=true.

        Show
        Patrick Corless added a comment - A tone of work has been done to make text selection feel more natural. The new algorithm allows a users to select a paragraph as define by a start and end glyph range. The older method of intersection with selection box has been removed in favour of the new method. Further enhancements have been made to allow for text selection starting on one page and then continuing on to two or more pages. This feature was available in version 4.x but was removed until now. There is also the ability to manually set exclusion zones. The purpose of this is to avoid selecting text that may repeat in a header or footer. The features is turned off by default but can be turned on with the system property -Dorg.icepdf.core.views.page.marginExclusion.enabled=true The margins are controlled with the properties -Dorg.icepdf.core.views.page.marginExclusion.top and -Dorg.icepdf.core.views.page.marginExclusion.bottom. An integer value in pixels represent each margin. The default values are 75 and 75. And finaly it's possible to show the margins visually on the page for testing purposes with the property -Dorg.icepdf.core.views.page.marginExclusionBorder.enabled=true.
        Hide
        Patrick Corless added a comment -

        Marking as fixed. Future bugs and enhancements will be filed under a new jira.

        Show
        Patrick Corless added a comment - Marking as fixed. Future bugs and enhancements will be filed under a new jira.

          People

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

            Dates

            • Created:
              Updated:
              Resolved: