主权项 |
1. An information processing apparatus for combining attachment data to be attached and a form in which the attachment data is placed, comprising:
a setting unit configured to set identification information indicating a last page of a book to the form and to set bookbinding printing, wherein the bookbinding printing is set for generating a book by stacking a plurality of sheets and then folding the stacked plurality of sheets in half; a determination unit configured to determine, when generating a print job by combining the attachment data and a plurality of forms included in a form setting file, whether the identification information is set to a form obtained from the form setting file; an output unit configured to output, as page data of the print job, first page data obtained by drawing processing based on the attachment data and a first form in a case where the determination unit determines that the identification information is not set to the first form, and to increment a total number of pages by one; and a deriving unit configured to increment the total number of pages by one in a case where the determination unit determines that the identification information is set to a second form obtained from the form setting file, and to derive, based on the total number of pages incremented by one, a number of blank pages to be inserted to print the attachment data and the second form on the last page of the book, wherein the output unit further outputs, as page data of the print job, the derived number of blank pages and second page data obtained by drawing processing based on the attachment data and the second form in the case where the determination unit determines that the identification information is set to the second form obtained from the form setting file. |