Information processing apparatus capable of implementing mixed-sheet printing in which predetermined print setting is different among pages, control method for information processing apparatus, and storage medium
An information processing apparatus that causes a printing apparatus to execute mixed-sheet printing in which a predetermined print setting is different among pages. Intermediate data including the predetermined print setting of each of a plurality of pages is obtained. It is determined whether or not the printing apparatus has a capability of the mixed-sheet printing. Print data for causing the printing apparatus to execute the mixed-sheet printing is generated based on the intermediate data and transmitted to the printing apparatus. When the printing apparatus does not have the capability of the mixed-sheet printing, the predetermined print settings included in the intermediate data are obtained in order of the pages to be printed, and a plurality of pieces of print data is generated based on a plurality of pieces of divided intermediate data obtained by dividing the intermediate data based on differences among the predetermined print settings of the plurality of pages.
1 . A non-transitory computer-readable storage medium storing an application program for causing a computer to execute a control method for an information processing apparatus that causes a printing apparatus to execute printing, the application program cooperating with a general printer driver, the control method comprising:
obtaining intermediate data including a predetermined print setting, the intermediate data being data of a plurality of pages, and the predetermined setting being different among the pages;
determining whether or not the printing apparatus has a capability of mixed-sheet printing, the general printer driver not being capable of the mixed-sheet printing;
generating print data for causing the printing apparatus to execute the mixed-sheet printing based on the intermediate data; and
transmitting the generated print data to the printing apparatus,
wherein generating the print data includes, in a case that the printing apparatus does not have the capability of the mixed-sheet printing, obtaining the predetermined print settings included in the intermediate data in order of the pages to be printed, sequentially comparing the predetermined print setting of each page with the predetermined print setting of an immediately preceding page to detect a change in the predetermined print setting, and generating a plurality of pieces of print data based on a plurality of pieces of divided intermediate data obtained by dividing the intermediate data at each detected change based on differences among the predetermined print settings of the plurality of pages.
2 . The non-transitory computer-readable storage medium according to claim 1 , wherein generating the print data includes, in a case that the printing apparatus has the capability of the mixed-sheet printing, generating one piece of print data in which the predetermined print setting is set for each page.
3 . The non-transitory computer-readable storage medium according to claim 1 , wherein generating the print data includes, in a case that the printing apparatus has the capability of the mixed-sheet printing, generating one piece of print data in which the predetermined print setting is set for each document.
4 . The non-transitory computer-readable storage medium according to claim 1 , wherein the control method further comprises:
causing a display of the information processing apparatus to display a setting screen that accepts an instruction to generate the print data, and
in a case that the printing apparatus has the capability of the mixed-sheet printing, causing the display to display the setting screen including a setting item of the mixed-sheet printing.
5 . The non-transitory computer-readable storage medium according to claim 1 , wherein the control method further comprises:
causing a display of the information processing apparatus to display a setting screen that accepts an instruction to generate the print data, and
in a case that the printing apparatus does not have the capability of the mixed-sheet printing and a predetermined setting for causing to display a setting item of the mixed-sheet printing has been made, causing the display to display the setting screen including the setting item of the mixed-sheet printing.
6 . The non-transitory computer-readable storage medium according to claim 1 , wherein the predetermined print setting is a sheet size setting.
7 . The non-transitory computer-readable storage medium according to claim 1 , wherein the predetermined print setting is a sheet orientation setting.
8 . The non-transitory computer-readable storage medium according to claim 1 , wherein the predetermined print setting is a page aggregation setting.
9 . The non-transitory computer-readable storage medium according to claim 1 , wherein the predetermined print setting is a setting indicating one of one-sided printing and double-sided printing.
10 . The non-transitory computer-readable storage medium according to claim 1 , wherein the divided intermediate data includes data corresponding to each page.
11 . A control method for an information processing apparatus that causes a printing apparatus to execute printing using an application program cooperating with a general printer driver, the control method comprising:
a step of obtaining intermediate data including a predetermined print setting, the intermediate data being data of a plurality of pages, and the predetermined setting being different among the pages;
a step of determining whether or not the printing apparatus has a capability of mixed-sheet printing, the general printer driver not being capable of the mixed-sheet printing;
a generating step of generating print data for causing the printing apparatus to execute the mixed-sheet printing based on the intermediate data; and
a step of transmitting the generated print data to the printing apparatus,
wherein, in a case that the printing apparatus does not have the capability of the mixed-sheet printing, the generating step obtains the predetermined print settings included in the intermediate data in order of the pages to be printed, sequentially compares the predetermined print setting of each page with the predetermined print setting of an immediately preceding page to detect a change in the predetermined print setting, and generates a plurality of pieces of print data based on a plurality of pieces of divided intermediate data obtained by dividing the intermediate data at each detected change based on differences among the predetermined print settings of the plurality of pages.
12 . An information processing apparatus that causes a printing apparatus to execute printing using an application program cooperating with a general printer driver, the information processing apparatus comprising:
a controller configured or programmed to function as:
an obtaining unit that obtains intermediate data including a predetermined print setting, the intermediate data being data of a plurality of pages, and the predetermined setting being different among the pages;
a determining unit that determines whether or not the printing apparatus has a capability of mixed-sheet printing, the general printer driver not being capable of the mixed-sheet printing;
a generating unit that generates print data for causing the printing apparatus to execute the mixed-sheet printing based on the intermediate data; and
a transmitting unit that transmits the generated print data to the printing apparatus,
wherein, in a case that the printing apparatus does not have the capability of the mixed-sheet printing, the generating unit obtains the predetermined print settings included in the intermediate data in order of the pages to be printed, sequentially compares the predetermined print setting of each page with the predetermined print setting of an immediately preceding page to detect a change in the predetermined print setting, and generates a plurality of pieces of print data based on a plurality of pieces of divided intermediate data obtained by dividing the intermediate data at each detected change based on differences among the predetermined print settings of the plurality of pages.