Patent ID: 7728993

Claim:
An image forming apparatus, comprising: a receiving device which receives coded data to be printed from an external apparatus; a reading device which reads a document; a formatter unit which develops the coded data transferred from the receiving device into image data; a print unit which selectively prints out the document read by the reading device and the image data developed by the formatter unit; a selecting device which selects one of a print function of printing the coded data received by said receiving device and a copy function of printing the document read by said reading device, in accordance with an operation of a user; a cash receiving unit which receives money from the user; and a controller which controls, (i) in the case where the print function is selected by the user with the selecting device and money is received by the cash receiving unit, the formatter unit is switched from a state of not receiving the coded data from the receiving device to a state of being capable of receiving the coded data, the formatter unit develops the coded data into the image data, a fee for printing is calculated based on information included in the coded data, and if an amount of the fee for printing received by the cash receiving unit is sufficient, the print unit prints out the image data developed by the formatter unit, and (ii) in the case where the copy function is selected by the user with the selecting device, a fee for copying a first sheet is calculated based on copy settings, and if an amount of the fee for copying received by the cash receiving unit is sufficient, the print unit prints out the document read by the reading device.