Andreas L Delmelle wrote:

BTW: Is it a correct assessment that implementing this should turn out to be far simpler than fixed page-sizes? IIC, theoretically, the whole page-breaking algorithm can be ignored for indefinite page-heights. getAvailableBPD() would always return, say, Integer.MAX_VALUE?

I don't think the breaking algorithm can be completely ignored, but it's a good idea to have getAvailableBPD() return an almost infinite value.

Once the PageBreakingAlgorithm has created the single PageBreakPosition, it would be possible to use the stored difference in order to set the correct page height (otherwise the page would have height = Integer.MAX_VALUE even if it contains just a few lines).

Regards
    Luca


Reply via email to