Patent ID: 8650473

Claim:
A document managing apparatus for editing first and second objects on a page, comprising: a central processing unit performing the functions of: generating a first object group; determining, based on positions of first and second objects on the page, whether a distance in a vertical direction between the first and second objects is equal to or less than a threshold; when the first determination unit determines that the distance is equal to or less than the threshold, adding the first and second objects to the first object group generated by the generating unit; and determining whether the length in a horizontal direction of the first object group, to which the first and second objects are added by the adding unit, is longer than the length in a vertical direction of the first object group; and determining whether the length in the horizontal direction of the first or second object is less than the threshold, when the second determination unit determines that the length in the horizontal direction of the first object group is longer than the length in the vertical direction of the first object group; and a display that displays a result of grouping the first and second objects, wherein the central processing unit generates a second object group when the central processing unit determines that the length in the horizontal direction of the first or second object is less than the threshold, wherein the central processing unit adds the second object to the second object group generated by the central processing unit, wherein the display displays (a) a first grouping result indicating that the first and second objects are included in the first object group and (b) a second grouping result indicating that the first object is included in the first object group and the second object is included in the second object group, such that a switching is made between the first and second grouping results.