The present application is based on, and claims priority from JP Application Serial Number 2020-155382, filed Sep. 16, 2020, the disclosure of which is hereby incorporated by reference herein in its entirety.

BACKGROUND

1. Technical Field

The present disclosure relates to image reading apparatuses.

2. Related Art

Various types of image reading apparatuses are now available. Some of them have an ejection stacker on which media that have been ejected by an ejection section are stacked. For example, JP-A-2014-103560 discloses an image reading apparatus in which a first transport roller and a second transport roller that constitute an ejection section eject media to an ejection tray and stack them thereon. This image reading apparatus is configured to change the transport speed of the media in accordance with their lengths.

Image reading apparatuses, as disclosed above, have difficulty stacking a plurality of media in an orderly fashion on the ejection stacker if the media have different lengths. Whereas such image reading apparatuses change the transport speed of media being read in accordance with their lengths, they may stack the media randomly on the ejection tray unless the ejection speed of the media is set to be lower than the transport speed.

SUMMARY

The present disclosure is an image reading apparatus configured to sequentially read images from a plurality of media having different lengths in a transport direction. This image reading apparatus includes: a transport section that transports the media at a first speed along a transport route, the transport section being driven by a driver; a reader that reads the images from the media being transported at the first speed along the transport route; an ejection section that ejects the media from which the images were read by the reader to an ejection stacker, the ejection section being driven by the driver; a medium detector that detects presence of the media; and a controller that controls the driver. When the transport section sequentially transports the media, the controller determines the lengths of the media in the transport direction, based on detection results of the medium detector. When determining that a length of a medium is equal to or more than a threshold and then determining that a length of a subsequent medium is equal to or more than the threshold, the controller performs weak deceleration control under which the transport section changes an ejection speed at which the subsequent medium is ejected to the ejection stacker from the first speed to a second speed, the second speed being lower than the first speed. When determining that a length of a medium is equal to or more than the threshold and then determining that a length of a subsequent medium is less than the threshold, the controller performs strong deceleration control under which the transport section changes the ejection speed at which the subsequent medium is ejected to the ejection stacker from the first speed to a third speed, the third speed being lower than the second speed.

