ICEpdf
  1. ICEpdf
  2. PDF-76

Add ability to create new link annotations from a subset of search results in a document

    Details

      Description

      Need the ability to generate multiple new link annotations for a user-selected sub-set (or complete set) of results matching a text search.

      This would be special variant of the standard text-search panel. Users would begin by performing a standard text search. Once the results were displayed they could select/deselect individual matches (or select deselect all matches at once). Each match from the selected search result subset would then have a new link annotation created for it, based on a single set of link annotation properties specified by the user (they would all have the same attributes).

      The thinking is that a wizard UI model would work well for this:
      1. Search
      2. Select matches to create annotations for.
      3. Enter annotation attributes for all selected matches.
      4. Create annotations.




        Activity

        Ken Fyten created issue -
        Ken Fyten made changes -
        Field Original Value New Value
        Salesforce Case []
        Description Need the ability to generate multiple new link annotations for a user-selected sub-set (or complete set) of results matching a text search.

        This would be special variant of the standard text-search panel. Users would begin by performing a standard text search. Once the results were displayed they could select/deselect individual matches (or select deselect all matches at once). Each match from the selected search result subset would then have a new link annotation created for it, based on a single set of link annotation properties specified by the user (they would all have the same attributes).



        Need the ability to generate multiple new link annotations for a user-selected sub-set (or complete set) of results matching a text search.

        This would be special variant of the standard text-search panel. Users would begin by performing a standard text search. Once the results were displayed they could select/deselect individual matches (or select deselect all matches at once). Each match from the selected search result subset would then have a new link annotation created for it, based on a single set of link annotation properties specified by the user (they would all have the same attributes).

        The thinking is that a wizard UI model would work well for this:
        1. Search
        2. Select matches to create annotations for.
        3. Enter annotation attributes for all selected matches.
        4. Create annotations.




        Hide
        Ken Fyten added a comment -

        Create annotation from search mockup image.

        Show
        Ken Fyten added a comment - Create annotation from search mockup image.
        Ken Fyten made changes -
        Attachment Picture 8.png [ 12090 ]
        Ken Fyten made changes -
        Salesforce Case []
        Fix Version/s 4.0 [ 10212 ]
        Patrick Corless made changes -
        Status Open [ 1 ] In Progress [ 3 ]
        Repository Revision Date User Message
        ICEsoft Public SVN Repository #19921 Thu Dec 10 05:06:57 MST 2009 patrick.corless PDF-76 fixed null pointer error when clearing search results for a page that has no hits in the search results cache.
        Files Changed
        Commit graph MODIFY /icepdf/trunk/icepdf/viewer/src/org/icepdf/ri/common/search/DocumentSearchModelImpl.java
        Repository Revision Date User Message
        ICEsoft Public SVN Repository #19922 Thu Dec 10 05:08:44 MST 2009 patrick.corless PDF-76 updated add, update and delete annotation calls to insure that the annotation dictionary has property been initialized when called. A null pointer was occuring when using the annotation manipulator calls whith out a gui. The gui initialized the page for use and as a result haddent seen this until the example was created.
        Files Changed
        Commit graph MODIFY /icepdf/trunk/icepdf/core/src/org/icepdf/core/pobjects/Page.java
        Repository Revision Date User Message
        ICEsoft Public SVN Repository #19923 Thu Dec 10 05:09:40 MST 2009 patrick.corless PDF-76 addition of new example that converts the wordText bounds of a search result into annotations.
        Files Changed
        Commit graph ADD /icepdf/trunk/icepdf/examples/annotation/NewAnnotation.java
        Repository Revision Date User Message
        ICEsoft Public SVN Repository #19924 Thu Dec 10 06:22:08 MST 2009 patrick.corless PDF-76 updated single page views so that the PageComponent .setDocumentCallback is called for all pages in the doucment not just the first page. This insures PageComonents are in a valid state to add annotation components.
        Files Changed
        Commit graph MODIFY /icepdf/trunk/icepdf/viewer/src/org/icepdf/ri/common/views/TwoPageView.java
        Commit graph MODIFY /icepdf/trunk/icepdf/viewer/src/org/icepdf/ri/common/views/OnePageView.java
        Repository Revision Date User Message
        ICEsoft Public SVN Repository #19925 Thu Dec 10 06:22:42 MST 2009 patrick.corless PDF-76 addition of new annotation example that creates annotation after the GUI has been constructed.
        Files Changed
        Commit graph ADD /icepdf/trunk/icepdf/examples/annotation/NewAnnotationPostPageLoad.java
        Repository Revision Date User Message
        ICEsoft Public SVN Repository #19926 Thu Dec 10 06:23:06 MST 2009 patrick.corless PDF-76 renamed annotation example that creates annotation before the GUI has been constructed.
        Files Changed
        Commit graph DEL /icepdf/trunk/icepdf/examples/annotation/NewAnnotation.java
        Commit graph ADD /icepdf/trunk/icepdf/examples/annotation/NewAnnotationPrePageLoad.java
        Hide
        Patrick Corless added a comment -

        The twoexample has been created and I must say is pretty slick. Here are a couple important notes about the demos, this is also in the class javadoc.

        new example is located in ./examples/annotation/NewAnnotationPrePageLoad.java

        • example show how to build a new annotation out of search results word bounds and the addition of an annotation action, URI or Goto.
        • This example code is meant for non visual annotation creation and runs before the view is created. .

        new example is located in ./examples/annotation/NewAnnotationPostPageLoad.java

        • example show how to build a new annotation out of search results word bounds and the addition of an annotation action, URI or Goto.
        • This example code is meant to show how visual annotation creation works and runs after the view is created. .
        Show
        Patrick Corless added a comment - The twoexample has been created and I must say is pretty slick. Here are a couple important notes about the demos, this is also in the class javadoc. new example is located in ./examples/annotation/NewAnnotationPrePageLoad.java example show how to build a new annotation out of search results word bounds and the addition of an annotation action, URI or Goto. This example code is meant for non visual annotation creation and runs before the view is created. . new example is located in ./examples/annotation/NewAnnotationPostPageLoad.java example show how to build a new annotation out of search results word bounds and the addition of an annotation action, URI or Goto. This example code is meant to show how visual annotation creation works and runs after the view is created. .
        Hide
        Patrick Corless added a comment -

        New examples have been added and check in.

        Show
        Patrick Corless added a comment - New examples have been added and check in.
        Patrick Corless made changes -
        Status In Progress [ 3 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Ken Fyten made changes -
        Fix Version/s 4.0 [ 10222 ]
        Ken Fyten made changes -
        Status Resolved [ 5 ] Closed [ 6 ]

          People

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

            Dates

            • Created:
              Updated:
              Resolved: