Patent ID: 8736873

Claim:
An information processing apparatus for processing print data having a hierarchical structure, in which metadata can be added to layers in the hierarchical structure, the information processing apparatus comprising: a receiving unit configured to receive an instruction to mutually associate a layer included in a template corresponding to the print data and, print and output product definition information; a setting unit configured to execute a print setting corresponding to the print and output product definition information to the layer of the template according to the instruction received by the receiving unit; an output unit configured to output a job ticket including a correspondence relation between the print setting and the print data corresponding to the template to which the print setting has been set; an addition unit configured to add, to the print data, metadata for mutually associating the print setting described in the job ticket output by the output unit and a layer of the print data corresponding to a layer of the template to which the print setting has been set; and a determination unit configured to determine whether the print setting set to the layer of the template to be processed is a conditional print setting, wherein the output unit is configured, if it is determined by the determination unit that the set print setting is a conditional print setting, to refer to the metadata added to the print data and is configured to output a job ticket described in a format with which the print setting can be changed according to a value of the metadata that has been referred to.