Balanced view generation of pages of electronic documents is disclosed.
In one embodiment, balancing the text of a page without forcing any of the text
onto previous or subsequent pages is accomplished on a rolling pair of lines-by-rolling
pair of lines basis. For each of a series of rolling pairs of lines of the page
(for example, lines of text), it is determined whether a first line of the rolling
pair is less than a second line of the rolling pair in length. If so, then it is
determined whether a last word of the first line would fit as a first word of the
second line, and whether so doing would meet a predetermined criteria. If so, then
this action is performed.