Patent ID: 8599400

Claim:
An image forming device comprising: an image input unit configured to input image data of a document having a plurality of pages on a page-by-page basis; a control code detection unit configured to detect a control code for output processing of the image data on a page-by-page basis, the control code being added to the image data inputted by the image input unit; an image data storage unit configured to store, in a memory unit, image data of a page entered after the page with a first control code added thereto, when the control code detection unit detects the first control code; a control code decision unit configured to decide a content of control for an entirety of the output processing of the image data in accordance with the first control code and a second control code added to image data of the page entered after the page with the first control code, when the control code detection unit detects the second control code; and a control unit configured to, delay the output processing of the image data stored in the memory unit until the control code detection unit completes the detection on all of the plurality of pages of the document, and control the entirety of the output processing of the image data stored in the memory unit in accordance with the control decided by the control code decision unit for the entirety of the output processing.