Uploaded image for project: 'FOP'
  1. FOP
  2. FOP-2163

Overflow recovery doesn't play well with changing IPD

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Resolution: Fixed
    • 2.5
    • None
    • layout/unqualified
    • None
    • Operating System: All
      Platform: All
    • 54167

    Description

      The page overflow recovery mechanism consists in pushing the overflowing content to the next page in the hope that it will be bigger and able to accommodate the content.

      When the IPD of the next page changes, the page breaking algorithm returns early and AbstractBreaker (doLayout method) splits the content and re-lays out what follows the page break, according to the new IPD.

      Those two mechanisms are in conflict when the overflow occurs at the first legal break, leading to no too short node and no feasible break. AbstractBreaker is then asked to split before the content, which it is not designed for.

      When the flow IPD changes the overflow mechanism must be disabled, since anyway the line breaking has to be re-done according to the new IPD.

      Attachments

        1. changing-ipd_overflow.fo
          1 kB
          Vincent Hennebert

        Activity

          People

            fop-dev@xmlgraphics.apache.org fop-dev
            vhennebert Vincent Hennebert
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: