Patent ID: 8251472

Claim:
A printer that includes a print head in which nozzles that form an image by discharging ink are arranged in a plurality of lines, wherein the printer prints out an image on the basis of print form data in which information of layout contents of printing elements that form a content of a print is set according to an attribute of each printing element, comprising: a print form data storage unit that stores multiple pieces of print form data, which include different layout contents of the printing elements, according to a content of usage; a printing element data storage unit that stores multiple types of pieces of printing element data, which correspond to pieces of data of the printing elements, according to the attribute of each printing element; a print form data selection unit that randomly selects a piece of print form data, which is used for printing, from among the multiple pieces of print form data stored in the print form data storage unit; a printing element data selection unit that selects a piece of printing element data corresponding to each piece of information of layout content that is set in the selected piece of print form data from among the multiple types of pieces of printing element data stored in the printing element data storage unit; and a printing element data insertion unit that inserts the selected piece of printing element data into the selected piece of print form data on the basis of information of the content of print, which is set in the selected piece of print form data.