ICEpdf
  1. ICEpdf
  2. PDF-7

Text selection and clipboard copy

    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

      Implement text selection via mouse and keyboard commands and corresponding clipboard interaction.

      This will likely be a four part implementations.
      - Ghyph selected state painting
      - Addition of mouse listeners for text selection
      - Addition of key listeners for text selection
      - Integration with clipboard.

      Once the mouse to glyph geometry is complete the adding the interactive layer should be relatively straight forward.

        Activity

        Patrick Corless created issue -
        Patrick Corless made changes -
        Field Original Value New Value
        Salesforce Case []
        Fix Version/s 3.2 [ 10212 ]
        Repository Revision Date User Message
        ICEsoft Public SVN Repository #19513 Tue Oct 27 12:58:36 MDT 2009 patrick.corless PDF-7 and PDF-6 - initial checkin of text selection and search highlight code base. Still a tune of work to todo but task can be brocken down in to small pieces now.
        Files Changed
        Commit graph ADD /icepdf/trunk/icepdf/core/src/org/icepdf/core/views/common/TextSelectionPageHandler.java
        Commit graph MODIFY /icepdf/trunk/icepdf/viewer/src/org/icepdf/ri/common/views/AbstractDocumentViewModel.java
        Commit graph ADD /icepdf/trunk/icepdf/viewer/src/org/icepdf/ri/images/text_d.gif
        Commit graph ADD /icepdf/trunk/icepdf/core/src/org/icepdf/core/views/common/AnnotationHandler.java
        Commit graph MODIFY /icepdf/trunk/icepdf/viewer/src/org/icepdf/ri/common/SwingViewBuilder.java
        Commit graph ADD /icepdf/trunk/icepdf/core/src/org/icepdf/core/pobjects/graphics/text
        Commit graph ADD /icepdf/trunk/icepdf/core/src/org/icepdf/core/views/common
        Commit graph MODIFY /icepdf/trunk/icepdf/core/src/org/icepdf/core/pobjects/graphics/TextSprite.java
        Commit graph MODIFY /icepdf/trunk/icepdf/core/src/org/icepdf/core/views/swing/AbstractPageViewComponent.java
        Commit graph ADD /icepdf/trunk/icepdf/core/src/org/icepdf/core/pobjects/graphics/text/GlyphText.java
        Commit graph MODIFY /icepdf/trunk/icepdf/core/src/org/icepdf/core/views/DocumentViewModel.java
        Commit graph MODIFY /icepdf/trunk/icepdf/viewer/src/org/icepdf/ri/common/views/AbstractDocumentView.java
        Commit graph ADD /icepdf/trunk/icepdf/core/src/org/icepdf/core/pobjects/graphics/text/TextSelect.java
        Commit graph MODIFY /icepdf/trunk/icepdf/viewer/src/org/icepdf/ri/common/KeyEventConstants.java
        Commit graph ADD /icepdf/trunk/icepdf/viewer/src/org/icepdf/ri/images/text_r.gif
        Commit graph MODIFY /icepdf/trunk/icepdf/viewer/src/org/icepdf/ri/util/SearchTextTask.java
        Commit graph MODIFY /icepdf/trunk/icepdf/viewer/src/org/icepdf/ri/common/views/DocumentViewControllerImpl.java
        Commit graph ADD /icepdf/trunk/icepdf/core/src/org/icepdf/core/pobjects/graphics/text/LineText.java
        Commit graph MODIFY /icepdf/trunk/icepdf/viewer/src/org/icepdf/ri/common/SearchPanel.java
        Commit graph MODIFY /icepdf/trunk/icepdf/viewer/src/org/icepdf/ri/util/TextExtractionTask.java
        Commit graph ADD /icepdf/trunk/icepdf/core/src/org/icepdf/core/pobjects/graphics/text/Text.java
        Commit graph MODIFY /icepdf/trunk/icepdf/core/src/org/icepdf/core/views/PageViewComponent.java
        Commit graph MODIFY /icepdf/trunk/icepdf/core/src/org/icepdf/core/pobjects/Document.java
        Commit graph ADD /icepdf/trunk/icepdf/core/src/org/icepdf/core/pobjects/graphics/text/AbstractText.java
        Commit graph MODIFY /icepdf/trunk/icepdf/viewer/src/org/icepdf/ri/common/SwingController.java
        Commit graph MODIFY /icepdf/trunk/icepdf/viewer/src/org/icepdf/ri/resources/MessageBundle.properties
        Commit graph ADD /icepdf/trunk/icepdf/core/src/org/icepdf/core/pobjects/graphics/text/PageText.java
        Commit graph MODIFY /icepdf/trunk/icepdf/core/src/org/icepdf/core/util/ContentParser.java
        Commit graph MODIFY /icepdf/trunk/icepdf/core/src/org/icepdf/core/views/swing/PageViewComponentImpl.java
        Commit graph MODIFY /icepdf/trunk/icepdf/core/src/org/icepdf/core/pobjects/Page.java
        Commit graph ADD /icepdf/trunk/icepdf/viewer/src/org/icepdf/ri/images/text_n.gif
        Commit graph MODIFY /icepdf/trunk/icepdf/core/src/org/icepdf/core/pobjects/graphics/Shapes.java
        Commit graph MODIFY /icepdf/trunk/icepdf/core/src/org/icepdf/core/views/DocumentViewController.java
        Commit graph ADD /icepdf/trunk/icepdf/core/src/org/icepdf/core/pobjects/graphics/text/WordText.java
        Repository Revision Date User Message
        ICEsoft Public SVN Repository #19536 Thu Oct 29 06:19:53 MDT 2009 patrick.corless PDF-7 - fixed bug where text selection datastructure was being initialized on awt thread rather then the pageInit thread.
        Files Changed
        Commit graph MODIFY /icepdf/trunk/icepdf/core/src/org/icepdf/core/views/common/TextSelectionPageHandler.java
        Commit graph MODIFY /icepdf/trunk/icepdf/viewer/src/org/icepdf/ri/common/views/AbstractDocumentViewModel.java
        Repository Revision Date User Message
        ICEsoft Public SVN Repository #19597 Wed Nov 04 08:15:35 MST 2009 patrick.corless PDF-7 - addition of multip page selection, select all and general clean up of text and search selection.
        Files Changed
        Commit graph ADD /icepdf/trunk/icepdf/core/src/org/icepdf/core/views/common/SelectionBoxHandler.java
        Commit graph ADD /icepdf/trunk/icepdf/core/src/org/icepdf/core/search
        Commit graph MODIFY /icepdf/trunk/icepdf/core/src/org/icepdf/core/views/common/TextSelectionPageHandler.java
        Commit graph MODIFY /icepdf/trunk/icepdf/viewer/src/org/icepdf/ri/common/views/AbstractDocumentViewModel.java
        Commit graph MODIFY /icepdf/trunk/icepdf/core/src/org/icepdf/core/views/common/AnnotationHandler.java
        Commit graph DEL /icepdf/trunk/icepdf/viewer/src/org/icepdf/ri/common/search/DocumentSearchController.java
        Commit graph MODIFY /icepdf/trunk/icepdf/viewer/src/org/icepdf/ri/common/search/DocumentSearchControllerImpl.java
        Commit graph MODIFY /icepdf/trunk/icepdf/viewer/src/org/icepdf/ri/common/views/OnePageView.java
        Commit graph MODIFY /icepdf/trunk/icepdf/core/src/org/icepdf/core/views/swing/AbstractPageViewComponent.java
        Commit graph MODIFY /icepdf/trunk/icepdf/core/src/org/icepdf/core/views/DocumentViewModel.java
        Commit graph MODIFY /icepdf/trunk/icepdf/core/src/org/icepdf/core/Controller.java
        Commit graph MODIFY /icepdf/trunk/icepdf/viewer/src/org/icepdf/ri/common/views/AbstractDocumentView.java
        Commit graph MODIFY /icepdf/trunk/icepdf/viewer/src/org/icepdf/ri/common/views/TwoColumnPageView.java
        Commit graph MODIFY /icepdf/trunk/icepdf/viewer/src/org/icepdf/ri/common/views/OneColumnPageView.java
        Commit graph MODIFY /icepdf/trunk/icepdf/viewer/src/org/icepdf/ri/util/SearchTextTask.java
        Commit graph ADD /icepdf/trunk/icepdf/core/src/org/icepdf/core/views/common/ZoomHandler.java
        Commit graph MODIFY /icepdf/trunk/icepdf/viewer/src/org/icepdf/ri/common/views/DocumentViewControllerImpl.java
        Commit graph MODIFY /icepdf/trunk/icepdf/viewer/src/org/icepdf/ri/common/SearchPanel.java
        Commit graph MODIFY /icepdf/trunk/icepdf/core/src/org/icepdf/core/views/PageViewComponent.java
        Commit graph ADD /icepdf/trunk/icepdf/core/src/org/icepdf/core/views/common/PanningHandler.java
        Commit graph MODIFY /icepdf/trunk/icepdf/viewer/src/org/icepdf/ri/common/SwingController.java
        Commit graph MODIFY /icepdf/trunk/icepdf/viewer/src/org/icepdf/ri/resources/MessageBundle.properties
        Commit graph MODIFY /icepdf/trunk/icepdf/core/src/org/icepdf/core/views/swing/PageViewComponentImpl.java
        Commit graph MODIFY /icepdf/trunk/icepdf/core/src/org/icepdf/core/pobjects/Page.java
        Commit graph MODIFY /icepdf/trunk/icepdf/viewer/src/org/icepdf/ri/common/views/TwoPageView.java
        Commit graph MODIFY /icepdf/trunk/icepdf/core/src/org/icepdf/core/views/DocumentViewController.java
        Commit graph MODIFY /icepdf/trunk/icepdf/core/src/org/icepdf/core/pobjects/graphics/Shapes.java
        Hide
        Patrick Corless added a comment -

        Text selection has been added the component page view and RI. Also a new edit menu has been added to the RI that contains a 'copy', 'select all', and 'deselect all'.

        There is system property for changes the selected text colour, "org.icepdf.core.views.page.text.selectionColor" and the default colour is #0077FF.

        Support for double click word selection has been added and triple click sentence/line selection is also available. There is now support as of yet for right to left selection at this time.

        For very long documents it is more efficient to use 'export text' rather then "select all" -> "copy".

        Show
        Patrick Corless added a comment - Text selection has been added the component page view and RI. Also a new edit menu has been added to the RI that contains a 'copy', 'select all', and 'deselect all'. There is system property for changes the selected text colour, "org.icepdf.core.views.page.text.selectionColor" and the default colour is #0077FF. Support for double click word selection has been added and triple click sentence/line selection is also available. There is now support as of yet for right to left selection at this time. For very long documents it is more efficient to use 'export text' rather then "select all" -> "copy".
        Patrick Corless made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Repository Revision Date User Message
        ICEsoft Public SVN Repository #20302 Thu Jan 21 09:21:14 MST 2010 patrick.corless PDF-7 fixed null pointer error with xform object that have no shapes defined.
        Files Changed
        Commit graph MODIFY /icepdf/trunk/icepdf/core/src/org/icepdf/core/util/ContentParser.java
        Ken Fyten made changes -
        Fix Version/s 4.0 [ 10222 ]
        Ken Fyten made changes -
        Status Resolved [ 5 ] Closed [ 6 ]

          People

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

            Dates

            • Created:
              Updated:
              Resolved: