ICEpdf
  1. ICEpdf
  2. PDF-824

Pages in PDF are cut off when access directly

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 5.1
    • Fix Version/s: 5.1.1
    • Component/s: Core/Parsing
    • Labels:
      None
    • Environment:
      All

      Description

      With the provided PDF, there are pages that are shown in different orientations. If the last two pages (11, 12 landscape orientation) are access directly from the first page (portrait orientation) a section is cut off.

      If the pages are navigated to via the scrollbar/wheel or the up/down buttons, the pages render without any issues.

        Activity

        Patrick Corless made changes -
        Status Resolved [ 5 ] Closed [ 6 ]
        Patrick Corless made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Hide
        Patrick Corless added a comment -

        Marking as fixed.

        Show
        Patrick Corless added a comment - Marking as fixed.
        Repository Revision Date User Message
        ICEsoft Public SVN Repository #42886 Tue Oct 14 15:03:06 MDT 2014 patrick.corless PDF-824 fix for page size not being calculated correctly when goign from letter to landscape.
        Files Changed
        Commit graph MODIFY /icepdf/branches/icepdf-5.0.1/icepdf/viewer/src/org/icepdf/ri/common/views/TwoPageView.java
        Commit graph MODIFY /icepdf/branches/icepdf-5.0.1/icepdf/viewer/src/org/icepdf/ri/common/views/PageViewComponentImpl.java
        Commit graph MODIFY /icepdf/branches/icepdf-5.0.1/icepdf/viewer/src/org/icepdf/ri/common/views/OnePageView.java
        Hide
        Patrick Corless added a comment -

        When we load a large document we only calculate the actual size of the first 10 page when building a view, if there are more then ten an average sized is used for remaining pages if any. What appears to be happening is that we are not calculating the page size until we paint the page which is to lake for the page panel to recalculate it's layout. As a result the pageComponent is clipped until the a repaint is triggered.

        I've update the PageViewComponentImpl to calculate the page size on a call to validate() for the current zoom, rotation and page boundary.

        Show
        Patrick Corless added a comment - When we load a large document we only calculate the actual size of the first 10 page when building a view, if there are more then ten an average sized is used for remaining pages if any. What appears to be happening is that we are not calculating the page size until we paint the page which is to lake for the page panel to recalculate it's layout. As a result the pageComponent is clipped until the a repaint is triggered. I've update the PageViewComponentImpl to calculate the page size on a call to validate() for the current zoom, rotation and page boundary.
        Patrick Corless made changes -
        Field Original Value New Value
        Fix Version/s 5.1.1 [ 11770 ]
        Arran Mccullough created issue -

          People

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

            Dates

            • Created:
              Updated:
              Resolved: