1. An editing apparatus for laying out image data and text data on a page, comprising: a controller; and a memory configured to store at least one program executable by the controller, at least one program comprising program code that, when the program is executed by the controller, implements the steps of: an image distributing step of distributing a plurality of image data into each of image boxes upon a plurality of pages in an order based on attribute information of the plurality of image data; a text distributing step of distributing a plurality of text data associated with each of the plurality of image data into a plurality of text boxes paired with the image boxes, into which the image data is distributed; a comparison step of comparing the amount of the text data to an upper limit amount of the text box into which the text data has been distributed; a text re-distributing step of, when the result of the comparison indicates that the amount of the text data is greater than the upper limit amount of the text box, re-distributing the text data into another text box, which has been distributed into another text data and is present upon the same page as the text box paired with the image box; and an image re-distributing step of, re-distributing the image data into another image box paired with the another text box, into which has been re-distributed the text data associated with the image data, wherein the amount of the text data is less than the upper limit amount of the other text box, and the upper limit amount of the text box is greater than the amount of the other text data.