Patent ID: 7233411

Claim:
Information processing apparatus provided with a printer driver, comprising: finishing command setting means which can set, on a print setting screen of the printer driver, a finishing command, selected from among an enable mode, a disable mode and an automatic mode, to a printer so as to rotation-sort-output or Offset-output document data; layout setting means for setting, on the print setting screen of the printer driver, a print layout of the document data; counting means for counting the number of physical sheets to which the document data of one copy whose output is desired is allocated; print instructing means for instructing execution of printing; spooling means for spooling the document data as intermediate data of a data format different from that of the document data; intermediate data page editing means for making a layout print control of the intermediate data spooled by said spooling means based on the number counted by said counting means and based on the print layout set by said layout setting means; intermediate data output means for outputting the intermediate data whose layout print control is made by said intermediate data page editing means; discriminating means for discriminating, based on the counting by said counting means, whether the document data of one copy is printed onto one physical sheet or onto two or more physical sheets, when the automatic mode is set by said finishing command setting means; command changing means for changing the finishing command in response to a discrimination made by said discriminating means; and print data generating means for adding the finishing command changed by said command changing means to the intermediate data output by said intermediate data output means so as to generate print data.