摘要 |
A document processing apparatus according to the present invention capable of changing a layout of a document dynamically in accordance with data to be laid out in the document, comprises a priority order setting unit which independently sets, for each of a plurality of pieces of region information representing regions to lay out the data, a priority order representing an order of determination of a size of the region by inserting the data in the region; a storage unit which stores a template which contains the region information representing the region to lay out the data and priority order information representing the priority order associated with the region by the priority order setting unit; and a layout unit which sequentially lays out the data corresponding to the region in the order represented by the priority order in accordance with the template, and when one of the size and position of the region can be changed, changes one of the size and position of the region in accordance with the data without invading a region associated with a higher priority order than the region.
|