主权项 |
1. An image forming apparatus, comprising:
a memory that stores discharge direction information indicative of a discharge direction in which a print medium is discharged, page length information about the page length of a page of the print medium, and the position of a line on the print medium relative to a leading end of the page of print medium if a line feed operation is performed; a receiving section configured to store printer control data and print data received from an external apparatus, the printer control data including line feed commands; a position detector that outputs a detection signal indicative of a position of the leading end of the page of print medium in the image forming apparatus; an image forming section configured to perform printing on the page of print medium and transporting the page of print medium; controller means reading and for parsing the print data and the printer control data until the receiving section no longer holds the print data and the printer control data, and then controlling the image forming section so that the image forming section feeds the page of the print medium to a print start position in accordance with the detection signal, and then prints the print data on the page of print medium in accordance with the parsed print data and the printer control data; wherein the controller means includes determination means for determining whether the discharge direction information indicates a discharge direction opposite to a line feed direction in which the page of print medium is advanced by the line feed operation and whether the parsed printer control data is a line feed command, and wherein the controller means further includes line-feed command parser means for adding the amount of line feed specified by the line feed command to the position on the print medium held in the memory if the determination means determines that the discharge direction is opposite to the line feed direction and that the parsed printer control data is the line feed command, and for placing the line feed operation based on the added result on hold if the position of the line on the print medium after addition is within the page length. |