1. An image forming apparatus with a controller for performing image forming processing of a structured document including a plurality of element blocks, the image forming apparatus comprising: a first layout unit configured, by analyzing the plurality of element blocks in an appearance order of the structured document, (a) to lay out a first element block with a float attribute in the appearance order of the structured document, and (b) to keep a second element block without the float attribute from laying out until a third element block with a clear attribute appears; a second layout unit configured to lay out the kept second element block without the float attribute into a blank space around the laid out first element block without re-laying out the first element block, when the third element block with the clear attribute appears; and an image forming unit configured to generate, by the controller, image data to form an image based on the laid out first element block and the laid out second element block.
1. An image forming apparatus with a controller for performing image forming processing of a structured document including a plurality of element blocks, the image forming apparatus comprising: a first layout unit configured, by analyzing the plurality of element blocks in an appearance order of the structured document, (a) to lay out a first element block with a float attribute in the appearance order of the structured document, and (b) to keep a second element block without the float attribute from laying out until a third element block with a clear attribute appears; a second layout unit configured to lay out the kept second element block without the float attribute into a blank space around the laid out first element block without re-laying out the first element block, when the third element block with the clear attribute appears; and an image forming unit configured to generate, by the controller, image data to form an image based on the laid out first element block and the laid out second element block. 2. The image forming apparatus according to claim 1 , wherein the image forming unit is a printing apparatus.