Patent ID: 8717614

Claim:
An image forming apparatus, comprising: a print queue that stores print jobs on a page basis; a job writing unit that writes the print jobs into the print queue; a print execution unit that executes print on a recording medium based on a page being sequentially read from the print queue, wherein the print execution unit suspends execution of the print in a case in which a print job other than a print job of currently executed printing is cancelled from among the print jobs stored in the print queue; a connected-state detection unit that detects a connected state of extension devices affecting a length of a conveyance path of the recording medium; and a maximum-number-of-storable-pages changing unit that changes a maximum number of storable pages, which is a maximum number of pages that can be stored in the print queue, wherein the maximum-number-of-storable-pages changing unit changes the maximum number of storable pages, based on the connected state detected by the connected-state detection unit.