Details
-
Type: Improvement
-
Status: Closed
-
Priority: 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.
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
Patrick Corless
created issue -
Tyler Johnson
made changes -
Field | Original Value | New Value |
---|---|---|
Salesforce Case | [50070000009KeIU] |
Patrick Corless
made changes -
Fix Version/s | 3.2 [ 10212 ] |
Patrick Corless
made changes -
Status | Open [ 1 ] | In Progress [ 3 ] |
Repository | Revision | Date | User | Message |
ICEsoft Public SVN Repository | #19522 | Wed Oct 28 11:59:16 MDT 2009 | patrick.corless | |
Files Changed | ||||
MODIFY
/icepdf/trunk/icepdf/viewer/src/org/icepdf/ri/util/SearchTextTask.java
MODIFY /icepdf/trunk/icepdf/viewer/src/org/icepdf/ri/common/SearchPanel.java MODIFY /icepdf/trunk/icepdf/core/src/org/icepdf/core/pobjects/graphics/text/WordText.java |
Repository | Revision | Date | User | Message |
ICEsoft Public SVN Repository | #19598 | Wed Nov 04 08:48:31 MST 2009 | patrick.corless | |
Files Changed | ||||
DEL
/icepdf/trunk/icepdf/viewer/src/org/icepdf/ri/common/search/SearchTerm.java
MODIFY /icepdf/trunk/icepdf/viewer/src/org/icepdf/ri/common/search/DocumentSearchModelImpl.java ADD /icepdf/trunk/icepdf/core/src/org/icepdf/core/search/SearchTerm.java ADD /icepdf/trunk/icepdf/core/src/org/icepdf/core/search/DocumentSearchController.java MODIFY /icepdf/trunk/icepdf/viewer/src/org/icepdf/ri/common/search/DocumentSearchControllerImpl.java |
Repository | Revision | Date | User | Message |
ICEsoft Public SVN Repository | #19608 | Wed Nov 04 14:52:58 MST 2009 | patrick.corless | |
Files Changed | ||||
MODIFY
/icepdf/trunk/icepdf/core/src/org/icepdf/core/search/DocumentSearchController.java
MODIFY /icepdf/trunk/icepdf/viewer/src/org/icepdf/ri/common/search/DocumentSearchControllerImpl.java |
Repository | Revision | Date | User | Message |
ICEsoft Public SVN Repository | #19642 | Mon Nov 09 04:39:01 MST 2009 | patrick.corless | |
Files Changed | ||||
MODIFY
/icepdf/trunk/icepdf/viewer/src/org/icepdf/ri/common/search/DocumentSearchControllerImpl.java
|
Patrick Corless
made changes -
Status | In Progress [ 3 ] | Resolved [ 5 ] |
Resolution | Fixed [ 1 ] |
Repository | Revision | Date | User | Message |
ICEsoft Public SVN Repository | #19964 | Fri Dec 11 12:17:46 MST 2009 | patrick.corless | |
Files Changed | ||||
MODIFY
/icepdf/trunk/icepdf/viewer/src/org/icepdf/ri/resources/MessageBundle.properties
|
Ken Fyten
made changes -
Fix Version/s | 4.0 [ 10222 ] |
Ken Fyten
made changes -
Status | Resolved [ 5 ] | Closed [ 6 ] |
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.