Patent ID: 8514467

Claim:
An image reading device, comprising: a reading unit configured to read images from a set of documents by carrying the documents one by one; a storing unit configured to store read data which the reading unit has obtained by reading the documents; an error detection unit configured to detect an error of an operation in the reading unit, wherein the image reading device is configured to stop reading of the documents by the reading unit when the error is detected by the error detection unit, and to instruct the reading unit to restart reading of the documents; and a data processing unit configured to: add identification information, identifying read data corresponding to one page of the documents, to the read data stored in the storing unit each time read data corresponding to one page of the documents is obtained by the reading unit; identify read data corresponding to a page last obtained by the reading unit before detection of the error in accordance with the corresponding added identification information when the reading of the documents is restarted after the error is detected; store the read data obtained after restart of reading of the document in the storing unit such that the read data obtained after restart of reading continues from the identified read data corresponding to the page last obtained by the reading unit before detection of the error; and convert an entirety of the read data of the documents stored in the storing unit into a single file having a predetermined format.