step s2 a calculation for dividing the length in the subscanning direction is performed this calculation is an intermediate calculation the operations up to step s14 are the same as in fig5 b in which the rolled paper or cassette sheet is selected as the recording paper and a detailed description thereof will be omitted step s19 is executed after step s16 if yes in step s19 that is the line position is detected as a position seven scanning lines before the last line the flow advances to step s20 the remaining paper length information is received from the printer 20 in step s21 calculation dividing in the subscanning direction is performed again the operations after step s21 are the same as those in steps s17 and 18 in fig5 if no in step s19 i e if the line position is not the one seven scanning lines before the last line the flow jumps to step s17 in this embodiment even if manual paper feed which does not allow designation of a paper size is performed the x 1 line is chucked on the platen and the blank portion is not chucked during scanning of the last line since the blank portion has a length of about 2 mm trouble such as jamming caused by floating of the paper can be prevented manual feed operation can be effectively performed in the same manner as in the case wherein the rolled paper or cassette sheet is selected as the recording paper the present invention.