In R4, the CPU 40 ends the reading action and ejects the original sheet GS at the ejection tray 4. In particular, the CPU 40 may end the reading action when the original sheet GS reaches a read-end position and transmit a driving instruction to the driving circuit 47 to eject the original sheet GS at the ejection tray 4. The read-end position may be a position, where a trailing end of the original sheet GS may face the image reader 24.
In R5, the CPU 40 corrects the digital image data in a correcting process. In particular, the CPU 40 may detect inclination of the leading-end line HEL and rotate the digital image data so that the leading-end line HEL representing the leading end of the original sheet GS may align with the main-scanning direction MD in the digital image data. The CPU 40 may calculate a distance between the upstream corner position UHVP and the downstream corner position DHVP to obtain a width of the original sheet GS in the main-scanning direction MD and trim the rotated digital image data at positions corresponding to the width of the original sheet GS centered at the position of the central pixel in the main-scanning direction MD. The CPU 40 may store the trimmed digital image data in the RAM 42. The main reading process may end at the end of R5.
[Calculating Process R3 for Upstream Corner Position UHVP and Downstream Corner Position DHVP]