Patent ID: 7465009

Claim:
A printing apparatus which prints by scanning a carriage, on a printing medium in a direction crossing an array direction of printing elements, the carriage supporting a printhead having the printing elements arrayed in a predetermined direction, comprising: sheet feed means for feeding the printing medium to a paper feed position in the printing apparatus; a reception buffer which stores a control command and image data formed from a plurality of rasters as a unit that are received from a connected host apparatus; determination means for determining, on the basis of information on a size of image data and information on a size of a printing medium that are contained in the control command, whether to perform marginless printing, which performs printing on an entire surface of the printing medium, which is smaller than a target printing area; calculation means for calculating an amount of unnecessary image data based on a number of the plurality of rasters, a predetermined length of the target printing area in a conveyance direction and a length of the image data in the conveyance direction when marginless printing is performed; conversion means for executing a horizontal/vertical conversion of the image data; data rejection means for rejecting, from data to be converted by said conversion means, the unnecessary image data; and alignment means for aligning the paper feed position using the sheet feed means based on the length of the image data, the amount of the unnecessary image data, and the predetermined length of the target printing area, wherein the alignment means aligns the paper feed position based on a difference between a number of rasters of the length of the image data, and a sum of a number of rasters of the unnecessary image data and a number of rasters of the predetermined length of the target printing area.