Patent ID: 8773679

Claim:
An image forming apparatus, comprising: an apparatus main body which has an upper surface and includes: a reader for reading an image of a document at a predetermined reading position on the upper surface, and an image forming unit for forming an image on a sheet based on an image read by the reader; an upper structure which can be set in a closing posture for covering the upper surface of the apparatus main body and an opening posture for exposing the upper surface and includes: a placing portion on which the document is to be placed, a document discharging portion to which the document having an image read by the reader is to be discharged, a document conveying unit which feeds documents placed on the placing portion one by one and conveying the documents to the document discharging portion via the reading position, and a document detector for detecting whether or not any document is placed on the placing portion; a posture detector for detecting the posture of the upper structure; a document passage detector for detecting that the trailing end of the document conveyed by the document conveying unit has passed the reading position; and a control unit for controlling a document conveying operation, wherein the control unit: stops the conveyance of the document by the document conveying unit if the placement of the document on the placing portion is detected by the document detector, the document is being conveyed by the document conveying unit and the closing posture is not detected by the posture detector; and stops the conveyance of the document by the document conveying unit when it is not detected by the document passage detector that the trailing end of the document being conveyed has passed the reading position and, on the other hand, causes the document being conveyed to be discharged to the document discharging portion without stopping the conveyance of the document by the document conveying unit when it is detected by the document passage detector that the trailing end of the document being conveyed has passed the reading position if it is detected by the document detector that no document is placed on the placing portion, the document is being conveyed by the document conveying unit and the closing posture is not detected by the posture detector.