Patent ID: 8559042

Claim:
An image forming apparatus that executes a print job including a first object which is shared among a plurality of pages and a second object which is variable for each page, the image forming apparatus comprising: an object storage unit configured to store a predetermined number of image data of the first object; a job reception unit configured to receive the print job; a printing unit configured to arrange and print image data of the first and the second objects on a page; a reading unit configured to read an image of printed matter obtained by the printing; a determination unit configured to determine whether or not the printing is defective for each page based on a comparison result between an image of the read printed matter and a reference image; and a control unit configured to execute control for preferentially storing image data of the first object corresponding to a page, for which the printing has been determined to be defective, based on a determination result indicating whether or not the printing is defective by the determination unit, wherein, the printing unit acquires image data of the first object from the object storage unit and arranges the image data on the page when the object storage unit stores image data of the first object included in the received print job, and generates image data of the first object and arranges the image data on the page when the object storage unit does not store image data of the first object included in the received print job.