ICEpdf
  1. ICEpdf
  2. PDF-6

Search result text highlighting

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 3.0
    • Fix Version/s: 4.0 - Beta, 4.0
    • Component/s: API, Core/Parsing, Viewer RI
    • Labels:
      None
    • Environment:
      None

      Description

      This is an enhancement bug to track the implementation progress of text selection highlight and search API.
       
      Currently PDF text is searched in the Viewer RI leveraging the text extraction call. When a search is complete a list is show showing the number of occurrences of the search string on each page that had at least one hit.

      What I would like to see happen is that the respective search text on each page is highlighted. Also, I would to see a core search API that allows for; highlight all, match case, next and previous cursors and configurable selection colour overlays. Research should also be done into optimal algorithms for searching text. There are numerous performance issues that should be kept in mind; page parsing times and page disposal considerations when search large documents.

        Activity

        Hide
        Patrick Corless added a comment -

        The code/functionality has held up well during testing and I feel pretty comfortable with marking this a fixed. There is a new system property that can be used to change the highlight colour, org.icepdf.core.views.page.text.highlightColor and the default value is #CC00FF.

        The search highlight code is done lazily as pages come into view. If one is not using the search highlighting via the view then the search must be applied manually to each page. See the class org.icepdf.ri.common.search.DocumentSearchControllerImpl for more information on using the api.

        Show
        Patrick Corless added a comment - The code/functionality has held up well during testing and I feel pretty comfortable with marking this a fixed. There is a new system property that can be used to change the highlight colour, org.icepdf.core.views.page.text.highlightColor and the default value is #CC00FF. The search highlight code is done lazily as pages come into view. If one is not using the search highlighting via the view then the search must be applied manually to each page. See the class org.icepdf.ri.common.search.DocumentSearchControllerImpl for more information on using the api.

          People

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

            Dates

            • Created:
              Updated:
              Resolved: