Image forming apparatus and method thereof

An image forming device and a method thereof are provided to shorten a printing time by controlling printing and cleaning operations depending on presence of next pages when continuous printing is performed. A main controller(110) outputs a printing command by each page of printing data when the printing data is received. A printing unit(120) prints the printing data according to the printing command. A printing controller(130) keeps the printing unit in a standby state until the printing command for the next page is received when the current page is completely printed if the next page of the current page is found. The main controller sequentially generates the printing command for each page of the printing data, records the presence of the next page on a flag set in each printing command, and provides the printing command including the flag to the printing controller. The printing controller determines the presence of the network page by checking the flag included in the printing command, and performs cleaning when the current page is determined as the final page.