ICEpdf
  1. ICEpdf
  2. PDF-121

Support search highlighting painting during printing

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 4.0 - Beta
    • Fix Version/s: 4.0
    • Component/s: Core/Parsing
    • Labels:
      None
    • Environment:
      Search for a term using search highlight and print a page that has a hit on it. The printed page should have the search highlight words on it.

      Description

      This came in though the forums. When I wrote the search highlight code I was only considering the screen representation and didn't cut the paint code in the rendering code and as a result search terms are not show when printing. As the form post suggested, this would be a nice feature have a available when printing.

        Activity

        Hide
        Patrick Corless added a comment -

        Updated the Page.paint method to take an optional boolean var to control whether or not the page is responsible for painting the text highlight state, this flag is similar to annotation painting flag. The reason for the two flags is that the interactive features search highlight and annotation editing that takes place PageViewComponentImp is best handled by the view and not the core.

        However for printing and page captures we need to print the annotation and highlight state via the core and thus the flags can be enabled. If a page paint method does not specify boolean paintAnnotations or boolean paintSearchHighlight properties then it is assumed that the annotation and search hightlight graphcis are painted if present.

        Show
        Patrick Corless added a comment - Updated the Page.paint method to take an optional boolean var to control whether or not the page is responsible for painting the text highlight state, this flag is similar to annotation painting flag. The reason for the two flags is that the interactive features search highlight and annotation editing that takes place PageViewComponentImp is best handled by the view and not the core. However for printing and page captures we need to print the annotation and highlight state via the core and thus the flags can be enabled. If a page paint method does not specify boolean paintAnnotations or boolean paintSearchHighlight properties then it is assumed that the annotation and search hightlight graphcis are painted if present.

          People

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

            Dates

            • Created:
              Updated:
              Resolved: