A medium-edge setting device detects edges of a paper (S110) and acquires
data for left and right edge candidate positions (S120). The medium-edge
setting device determines whether the difference between left and right
center-edge distances is less than or equal to a predetermined value
(S150). If so (S150: YES), the right edge position is set to the right
edge candidate position and the left edge position is set to the left edge
candidate position (S160). If not (S150: NO), the paper is conveyed a
predetermined amount (S190) and the paper edge detection is repeated. If
the repetitions of the paper-edge detecting process exceed a predetermined
number (S180: NO), then the larger of the left and right center-edge
distances is set as the distance from the center of the paper to each edge
position, and the left and right edge positions are set according to this
distance (S200, S210, S220).
Un medio-borde que fija el dispositivo detecta los bordes de un papel (S110) y adquiere los datos para las posiciones izquierdas y derechas del candidato del borde (S120). El medio-borde que fija el dispositivo se determina si la diferencia entre las distancias izquierdas y derechas del centro-borde es menos que o igual a un valor predeterminado (S150). Si tan (S150: SÍ), la posición derecha del borde se fija a la posición derecha del candidato del borde y la posición izquierda del borde se fija a la posición izquierda del candidato del borde (S160). Si no (S150: NINGÚN), el papel se transporta una cantidad predeterminada (S190) y se repite la detección del borde de papel. Si las repeticiones del papel-borde que detecta proceso exceden un número predeterminado (S180: NINGÚN), entonces el más grande de las distancias izquierdas y derechas del centro-borde se fija como la distancia del centro del papel a cada posición del borde, y las posiciones izquierdas y derechas del borde se fijan según esta distancia (S200, S210, S220).