Patent ID: 8917417

Claim:
An image forming apparatus, comprising: a tray configured to accommodate a sheet; an image forming device configured to form an image on the sheet; a data communication device; and a controller configured to: judge, when the data communication device receives first image data from an external device, whether a first sheet size corresponding to the first image data is larger than a size of the sheet accommodated in the tray; make first judgment, when the controller judges that the first sheet size is larger than the size of the sheet accommodated in the tray, whether the first image data has been generated by applying a resizing operation to original image data based on resize information which the data communication device receives from the external device, the resizing operation being an operation of trimming portions of an image to adjust an image size of the image data; make second judgment, when the first judgment judges that the first image data has been obtained by applying the resizing operation to the original image data, whether the resizing operation is to be applied to the first image data in order to make an image size of the first image data meet an in-use sheet size based on a portion of an image represented by the first image data which protrudes with respect to the in-use sheet size; resize the image size of the first image data to meet the in-use sheet size by applying the resizing operation to the first image data when the second judgment judges that the resizing operation is to be applied to the first image data; and control the image forming device to form an image on the sheet based on the first image data to which the resizing operation has been applied.