Patent ID: 8767221

Claim:
An information processing apparatus comprising: a size detecting unit that detects a size of each page of a document to be processed; an orientation detecting unit that detects orientation of each page of the document; a receiving unit that receives a setting of post processing that is to be performed on a printed sheet on which the document is printed; a determining unit that determines whether pages of different sizes, both having one side of the same length and other sides of different lengths, are detected in the document; a rotation control unit that, when the determining unit determines that the pages of the different sizes have been detected, rotates pages so that sides of the same length are aligned on the basis of the setting of the post processing received by the receiving unit, wherein the determining unit determines whether two different sizes are detected by the size detecting unit, when a first page of the document is of a smaller size of the two sizes and is arranged in a portrait orientation, the rotation control unit rotates pages such that a page of the smaller size is arranged in the portrait orientation and a page of a larger size of the two sizes is arranged in a landscape orientation, and when the first page of the document is of the smaller size and arranged in the landscape orientation, and when the first page of the document is of the larger size and arranged in the portrait orientation, the rotation control unit rotates pages such that a page of the smaller size is arranged in the landscape orientation and a page of the larger size is arranged in the portrait orientation, and wherein when the first page of the document is of the smaller size and arranged in the portrait orientation, and if the post processing setting received by the receiving unit indicates open to left the rotation control unit rotates a page of the larger size to left, when the first page of the document is of the smaller size and arranged in the portrait orientation, and if the post processing setting received by the receiving unit indicates open to right, the rotation control unit rotates a page of the larger size to right, and when the first page of the document is of the smaller size and arranged in the landscape orientation, and when the first page of the document is of the larger size and arranged in the portrait orientation, the rotation control unit rotates a page of the larger size page to right.