Patent ID: 7859707

Claim:
A printing apparatus which analyzes print data written in a markup language, and prints, onto a print medium, object data which is an object to be printed, said printing apparatus comprising: a layout area information obtainment unit for obtaining layout area information specified by the print data, indicating a layout area on which the object data is to be laid out; an effective drawing area information obtainment unit for obtaining effective drawing area information indicating a printing area which is dependent on said printing apparatus; a layout unit for laying out the object data onto the layout area based on respective sizes of the object data and the layout area, and to lay out the layout area onto the effective drawing area based on respective sizes of the layout area and the effective drawing area; and a printing unit for printing the object data laid out on the effective drawing area by said layout unit, wherein said layout unit includes: a first magnification/reduction rate calculation unit for calculating a magnification rate or a reduction rate for the object data so that one of a height and a width of the object data is the same as with the layout area, and the other is the same or larger than with the layout area; a first layout unit for enlarging/reducing the object data using the magnification rate or the reduction rate calculated by said first magnification/reduction rate calculation unit and laying out the enlarged/reduced object data onto the layout area; a second magnification/reduction rate calculation unit for calculating a magnification rate or a reduction rate for the layout area having the enlarged/reduced area laid out so that one of a height and a width of the layout area is the same as with the effective drawing area, and the other is the same or larger than with the effective drawing area; and a second layout unit for enlarging/reducing the layout area onto the effective drawing area using the magnification rate or the reduction rate calculated by said second magnification/reduction rate calculation unit and laying out the enlarged/reduced layout area onto the effective drawing area, wherein the printing unit prints the enlarged/reduced object data laid out on the effective drawing area.