主权项 |
1. An image forming apparatus comprising:
a medium storing portion storing a recording medium; a storage unit that stores first size information indicating a size of the recording medium stored in the medium storage portion; a receiving unit that receives print data from an external device, the print data containing image data and second size information indicating a size relating to the image data; a feeding unit that feeds the recording medium from the medium storage portion; an image forming unit that forms an image on the recording medium fed by the feeding unit; a detection unit that detects a size of the recording medium fed by the feeding unit to obtain third size information; a first determining unit that determines whether the first size information stored in the storage unit corresponds to the second size information contained in the print data; a second determining unit that determines whether the third size information obtained using the detection unit corresponds to the second size information contained in the print data; an acquiring unit that acquires determination instruction information; and a determination control unit configured to control the first determining unit and the second determining unit according to the determination instruction information acquired by the acquiring unit, including in one operation mode, to cause the second determining unit to perform determination without causing the first determining unit to perform determination, and in another operation mode, to cause both the first determining unit and the second determining unit to perform determination. |