Patent ID: 8023124

Claim:
A printer that has a function to convert document data into print data and to execute printing, the printer includes: a memory; a print document receiving unit that receives SVG (Scalable Vector Graphics) document data; a document analysis unit that performs syntax/lexical analysis on the received SVG document data to generate output document data and stores the output document data in the memory; a layout processing unit that performs a layout processing to process the output document data on the basis of prescribed style information; a print unit that converts the output document data subjected to the layout processing into print data and executes printing; and a control unit that controls the document analysis unit, the layout processing unit, and the print unit, wherein the control unit has a serial print mode, in which the document analysis unit generates the output document data in a page unit, the layout processing unit performs the layout processing in a page unit, and the print unit executes printing in a page unit, a batch print mode, in which the document analysis unit generates the output document data of all pages, the layout processing unit performs the layout processing of all pages, and the print unit executes printing of all pages, and a partial serial print mode, in which the document analysis unit generates the output document data in a page unit, when the amount of the generated output document data is equal to or more than a predetermined first reference value, the layout processing unit performs the layout processing, and the print unit executes printing, the control unit includes a print mode determination unit that selectively switches print modes, and the print mode determination unit refers to a streamable attribute value included in the SVG document data, when the attribute value is true, selects the serial print mode, when the attribute value is false, selects the batch print mode, and when the batch print mode is selected and the amount of the generated output document data is equal to or more than a predetermined second reference value, selects the partial serial print mode.