Patent ID: 7552386

Claim:
A computer-implemented method comprising: ascertaining whether content that is to be printed by a printer will create an orphan, wherein the ascertaining comprises: determining a height of content that would be printed on a first page, a height of the content that would be printed on a second page, and a printable height of the second page; comparing the height of said content that would be printed on the second page with the printable height of the second page, wherein the printable height of the second page is less than a height of the second page; determining that the height of said content that would be printed on the second page is less than a predefined percentage of the printable height of the second page; based on determining that the height of said content that would be printed on the second page is less than the predefined percentage, classifying said content that would be printed on the second page as the orphan; and defining a layout structure to include said content, wherein the defining comprises: computing a scaling factor by dividing the height of the content that would be printed on the first page by the sum of the height of the content that would be printed on the first page and the height of the content that would be printed on the second page; computing at least a width dimension of the layout structure, wherein the width dimension is computed as a width of the content divided by the scaling factor; and scaling said layout structure inwardly in accordance with the scaling factor so that the content fits on the single page.