ICEpdf
  1. ICEpdf
  2. PDF-12

Addition of Page thumbnail views to outline panel

    Details

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

      Description

      The PDF specification allows documents to embed page thumbnails in the content stream. These thumbnails can be used/loaded by the viewer application to provide the end users with a mini page summary of pages in the document. Not all documents have embedded thumbnails but in such a case it is up the viewer implementation to create the thumbnail view.

      I would recommend that we augment our existing multi-page view code to build the thumbnail tab in the viewer RI. If a pages thumbnail is not available then we uses a page view component to draw the page thumbnail.

        Activity

        Patrick Corless created issue -
        Arran Mccullough made changes -
        Field Original Value New Value
        Salesforce Case [5007000000Gu8zy]
        Hide
        Patrick Corless added a comment -

        Try and fit this into the next release. It's a bit of work but not terribly complex.

        Show
        Patrick Corless added a comment - Try and fit this into the next release. It's a bit of work but not terribly complex.
        Patrick Corless made changes -
        Fix Version/s 4.2.2 [ 10265 ]
        Hide
        Techarch Mw added a comment -

        Thanks for the effort Patrick! I think that is a really nice feature for IcePDF.

        Show
        Techarch Mw added a comment - Thanks for the effort Patrick! I think that is a really nice feature for IcePDF.
        Hide
        Patrick Corless added a comment -

        Sorry but I have to push this to the next release. I maintenance release is due at the end of the month leaving me short of time. I think there is a still a good change this will get implemented before end of year.

        Show
        Patrick Corless added a comment - Sorry but I have to push this to the next release. I maintenance release is due at the end of the month leaving me short of time. I think there is a still a good change this will get implemented before end of year.
        Hide
        Patrick Corless added a comment -

        Pushing to 4.3.

        Show
        Patrick Corless added a comment - Pushing to 4.3.
        Patrick Corless made changes -
        Fix Version/s 4.3 [ 10266 ]
        Fix Version/s 4.2.2 [ 10265 ]
        Patrick Corless made changes -
        Component/s Core [ 10022 ]
        Component/s Viewer RI [ 10027 ]
        Repository Revision Date User Message
        ICEsoft Public SVN Repository #26208 Wed Nov 02 12:19:28 MDT 2011 patrick.corless PDF-12 addition of basic thumbnail support to Viewer RI and added getThumbnail to Page api.
        Files Changed
        Commit graph MODIFY /icepdf/trunk/icepdf/viewer/src/org/icepdf/ri/common/SwingController.java
        Commit graph ADD /icepdf/trunk/icepdf/viewer/src/org/icepdf/ri/common/PageThumbnailComponent.java
        Commit graph ADD /icepdf/trunk/icepdf/core/src/org/icepdf/core/pobjects/Thumbnail.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/SwingViewBuilder.java
        Commit graph ADD /icepdf/trunk/icepdf/viewer/src/org/icepdf/ri/common/ThumbnailsPanel.java
        Repository Revision Date User Message
        ICEsoft Public SVN Repository #26209 Wed Nov 02 12:23:00 MDT 2011 patrick.corless PDF-12 addition of missing properties manager entries and key for the thumbnail tab.
        Files Changed
        Commit graph MODIFY /icepdf/trunk/icepdf/viewer/src/org/icepdf/ri/util/PropertiesManager.java
        Commit graph MODIFY /icepdf/trunk/icepdf/viewer/src/org/icepdf/ri/resources/MessageBundle.properties
        Hide
        Patrick Corless added a comment -

        I've checked in a fairly simple implementation of thumb nails for the core API and Viewer reference implementation.

        The Page class no has a getThumbnail() method that will return a new PDF object Thumbnail. The new Thumbnail class allows the end developer to get at the thumbnail dimension as well as the actual image. If getThumbnail() returns null the document doesn't have a thumbnail associated with it.

        The viewer RI has been updated, with a new "thumbnail" tab being added to the utility pane. the new Thumbnail tab contains a panel in which page thumbnails are drawn. If a document has encoded thumbnails then the thumbnail view is populated quite quickly. Otherwise each page needs to be parsed and painted to generate the thumbnail. This happens on the fly on a separate worker thread.

        Each thumbNail in the thumbnail view is represented by a fairly smart component that stores the thumbnail or painted page in a buffer that is stored in a WeakList. The overall memory usage is actually quite small for this enhancement. .

        Show
        Patrick Corless added a comment - I've checked in a fairly simple implementation of thumb nails for the core API and Viewer reference implementation. The Page class no has a getThumbnail() method that will return a new PDF object Thumbnail. The new Thumbnail class allows the end developer to get at the thumbnail dimension as well as the actual image. If getThumbnail() returns null the document doesn't have a thumbnail associated with it. The viewer RI has been updated, with a new "thumbnail" tab being added to the utility pane. the new Thumbnail tab contains a panel in which page thumbnails are drawn. If a document has encoded thumbnails then the thumbnail view is populated quite quickly. Otherwise each page needs to be parsed and painted to generate the thumbnail. This happens on the fly on a separate worker thread. Each thumbNail in the thumbnail view is represented by a fairly smart component that stores the thumbnail or painted page in a buffer that is stored in a WeakList. The overall memory usage is actually quite small for this enhancement. .
        Hide
        Patrick Corless added a comment -

        Further work should be done to make the thumb nails look a little nice and perhaps be more interactive.

        The thumbnails is painted on top of a white box, the addition of a border or page shadow might help the view look a little sharper.

        When a thumbnail component is clicked the the corresponding page is loaded in the main viewer panel. In the future the current view clip could be drawn on the thumbnail. The clip box could be dragged or re sized to change the main view port.

        Show
        Patrick Corless added a comment - Further work should be done to make the thumb nails look a little nice and perhaps be more interactive. The thumbnails is painted on top of a white box, the addition of a border or page shadow might help the view look a little sharper. When a thumbnail component is clicked the the corresponding page is loaded in the main viewer panel. In the future the current view clip could be drawn on the thumbnail. The clip box could be dragged or re sized to change the main view port.
        Tyler Johnson made changes -
        Salesforce Case [5007000000Gu8zy] [5007000000Gu8zy, 5007000000JMwy9]
        Hide
        Patrick Corless added a comment -

        Marking as resolved for now. There could be a little more polished but the core api changes seem to be well enough.

        Show
        Patrick Corless added a comment - Marking as resolved for now. There could be a little more polished but the core api changes seem to be well enough.
        Patrick Corless made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Ken Fyten made changes -
        Status Resolved [ 5 ] Closed [ 6 ]

          People

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

            Dates

            • Created:
              Updated:
              Resolved: