Patent ID: 7869081

Claim:
An image-forming apparatus comprising: a receiving unit that receives, from an information processor connected to the image-forming apparatus via a network, output job data including output data and output information of the output data; an analyzing unit that analyzes the output job data to determine whether the output information includes a START command specifying a start page of the output data where output is to be started and an END command specifying an end page of the output data where output is to be stopped; a determining unit that determines, when the image forming apparatus outputs two or more sets of output job data in duplex printing mode, whether the start page specified by the START command is even-numbered or odd-numbered when counted from a first page of a double-sided printed material and whether the end page specified by the END command is even-numbered or odd-numbered when counted from the first page; a setting unit that sets an output start page and an output end page based on a result of the determination by the determining unit; and an outputting unit that outputs a portion of the output data from the output start page to the output end page, wherein the setting unit sets the output end page to an odd-numbered page immediately after the end page specified by the END command when the determining unit determines that both the start page specified by the START command and the end page specified by the END command are even-numbered pages, and the setting unit sets the output end page to an even-numbered page immediately after the end page specified by the END command when the determining unit determines that both the start page specified by the START command and the end page specified by the END command are odd-numbered pages.