A document reader includes an image sensor. The image sensor is movable in
a secondary scanning direction and rotatable about a rotational axis
extending in a primary scanning direction, and obtains image information
from a region facing a light-receiving surface. Rotation of the image
sensor is controlled based on distance information about a distance
between a document surface and a platen in such a manner as to make an
image distance fall within a depth-of-field range of the image sensor.