Patent Document ID: 9229914
Application ID: 13172903

Base Claim:
1. A computer program comprising: a computer-readable storage medium, wherein the computer-readable storage medium is not a transitory, propagating signal per se, having stored thereon computer-readable program code that, when executed by a system comprising a processor and a memory, optimizes a layout of an electronic document, the computer-readable storage medium comprising: computer-readable program code that processes the electronic document to identify a plurality of document sections within the electronic document; computer-readable program code that, recursively, combines a plurality of document sections in at least a first page of a modified document and reduces a presentation size of content within the document sections so that the combined document sections fit within the first page of the modified document; and computer-readable program code that, with each recursive combination of document sections: identifies first perceptual features of content of the combined document sections based on the content as presented in an original version of the electronic document, and generates a corresponding first perceptual value derived from the first perceptual features, wherein the first perceptual value is a first perceptual hash value generated by performing a first perceptual hash on the content of the combined document sections as presented in the original version of the electronic document; identifies second perceptual features of content of the combined document sections based on the content as presented in a modified version of the electronic document in which the document sections are combined into the first page, and generates a corresponding second perceptual value derived from the second perceptual features, wherein the second perceptual value is a second perceptual hash value generated by performing a second perceptual hash on the content of the combined document sections as presented in the modified version of the electronic document in which the document sections are combined into the first page; generates a first perceptual delta value by comparing the first perceptual value derived from the first perceptual features to the second perceptual value derived from the second perceptual features; determines whether the first perceptual delta value at least equals a first threshold value; responsive to determining that the first perceptual delta value at least equals the first threshold value, ceases the recursive combination of document sections into the first page; and responsive to determining that the first perceptual delta value does not at least equal the first threshold value, continues the recursive combination of document sections in at least the first page.

---

Claim 5:
5. The computer program product of claim 1 , further comprising: computer-readable program code that identifies document sections that exclusively contain text; computer-readable program code that identifies document sections that do not exclusively contain text; and computer-readable program code that groups at least a subset of the document sections that exclusively contain text; wherein the computer-readable program code that recursively adds at least one document section to the first page comprises computer-readable program code that adds the grouped subset of document sections that exclusively contain text to the first page and adds each of the document sections that do not exclusively contain text to a second page.