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

        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.
        Hide
        Patrick Corless added a comment -

        Marking as fixed.

        Show
        Patrick Corless added a comment - Marking as fixed.

          People

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

            Dates

            • Created:
              Updated:
              Resolved: