for determining top and bottom margins or indicating exhaust of paper