Patent ID: 8547586

Claim:
A scanner device utilizing an external storage unit, the scanner device comprising: an internal storage unit; an original data creation unit configured to create original data representing M pieces of scan target objects in the internal storage unit in a case where the M pieces of the scan target objects are scanned, the M being an integer equal to one or more; and a purpose data creation unit configured to calculate a digest value by utilizing the original data so as to create purpose data for M pages representing the M pieces of the scan target objects in the external storage unit by utilizing the original data and the digest value, wherein the original data creation unit comprises: a header information creation unit configured to create header information in the internal storage unit in a case where target original data representing one piece of a scan target object included in the M pieces of the scan target objects is to be created, the header information including a predetermined first value as a first type of size information, the first type of size information indicating a first type of size which is a size of image data corresponding to a scanning direction; an actual image data creation unit configured to create actual image data representing the one piece of the scan target object in the internal storage unit; and a specific image data creation unit configured to create specific image data in the internal storage unit in a first case where the first type of size of the actual image data is smaller than the first value such that the first type of size of entire image data including both of the actual image data and the specific image data is identical to the first value, wherein the purpose data creation unit comprises: a calculation unit configured to perform, each time each of a plurality of first partial data is created in the internal storage unit, a calculation process for calculating the digest value by utilizing the first partial data in the first case, the plurality of first partial data constituting a first type of the target original data including the header information and the entire image data; and a writing unit configured to sequentially write each of the plurality of first partial data in the external storage unit in the first case.