In a case where there is a position for which insertion of an insert sheet has been set, an insert-sheet insertion command and a paper-feed drawer designating command, which are illustrated as the added command group 603 shown in FIG. 6, are generated in accordance with setting information (step S903).