
    ret_value, kp = container.AdjustPagebreak(p, kp, ph)
    while ret_value:
        ret_value, kp = container.AdjustPagebreak(p, kp, ph)
