Information processing apparatus processing print setting, control method, and control program
An information processing apparatus generates print data by executing a printer driver based on an instruction issued by an application operating in an operating system. The information processing apparatus includes an eliminating unit configured to eliminate conflict or inconsistency of a print setting based on conflict eliminating information for eliminating conflict of a setting to be input to the printer driver under control of an application which processes the print setting, and an input unit configured to input a print setting obtained after conflict is eliminated by the eliminating unit to the printer driver using the application.
Latest Canon Patents:
- MEDICAL DATA PROCESSING APPARATUS, MAGNETIC RESONANCE IMAGING APPARATUS, AND LEARNED MODEL GENERATING METHOD
- METHOD AND APPARATUS FOR SCATTER ESTIMATION IN COMPUTED TOMOGRAPHY IMAGING SYSTEMS
- DETECTOR RESPONSE CALIBARATION DATA WEIGHT OPTIMIZATION METHOD FOR A PHOTON COUNTING X-RAY IMAGING SYSTEM
- INFORMATION PROCESSING DEVICE, INFORMATION PROCESSING METHOD, AND STORAGE MEDIUM
- X-RAY DIAGNOSIS APPARATUS AND CONSOLE APPARATUS
This application is a Continuation of U.S. patent application Ser. No. 16/450,747, filed Jun. 24, 2019, which claims the benefit of Japanese Patent Application No. 2018-125176, filed Jun. 29, 2018, and Japanese Patent Application No. 2019-093739, filed May 17, 2019, all of which are hereby incorporated by reference herein in their entirety.
BACKGROUND OF THE INVENTION Field of the InventionThe present invention relates to an information processing apparatus, a method for controlling the information processing apparatus, and a control program. The present invention relates to a system which processes a print setting, for example.
Description of the Related ArtSoftware for controlling an image forming apparatus may be configured such that printing is instructed to the image forming apparatus connected to a host computer using a printer driver installed in the host computer. An operating system (OS) which is basic software is installed in the host computer, and the printer driver is configured in accordance with a specification specified by the OS. Venders which provide such an image forming apparatus may obtain a unit which issues a print instruction to the image forming apparatus by providing a printer driver suitable for the specification of the OS.
However, in recent years, the OS provides a general printer driver so as to provide a unit which issues a print instruction using an industry-standard protocol.
In general, prohibition information may be incorporated in the printer driver only if the printer driver is provided by a printer vender.
SUMMARY OF THE INVENTIONAccording to an aspect of the present invention, an information processing apparatus generates print data by executing a printer driver based on an instruction issued by an application operating in an operating system. The information processing apparatus includes an eliminating unit configured to eliminate conflict or inconsistency of a print setting based on conflict eliminating information for eliminating conflict of a setting to be input to the printer driver under control of an application which processes the print setting, and an input unit configured to input a print setting obtained after conflict is eliminated by the eliminating unit to the printer driver using the application.
Further features of the present invention will become apparent from the following description of exemplary embodiments with reference to the attached drawings.
Preferred embodiments of the present invention will be described hereinafter with reference to the accompanying drawings.
First EmbodimentFirst, a configuration of a system according to a first embodiment will be described with reference to
In this embodiment, software included in the client computer 101 is configured by the various applications, such as the desktop application 302, the touch application 301, and the extended print application 300. The software operates in the OS 210. Various configurations will be described hereinafter. The OS 210 may include a print manager 331, an I/O monitor 332, an XPS spool file 330, and a registry 323. A general print management unit 321 manages control of various modules in a general print driver described below and transmission and reception of data. The general print management unit 321 further performs generation and a change of print setting information. The registry 323 is a region including a setting group of the OS 210 described therein. The print manager 331 manages schedule of the print process. The I/O monitor 332 communicates with the printer 102. A general print setting UI 322 performs a setting and a change of print associated with a general printer driver. A GDI to XPS conversion processing unit 328 converts rendering data to be printed by the desktop application 302 into an XPS so as to generate the XPS spool file 330 to be supplied to a spooler included in the OS 210. A rendering processing unit 329 renders the XPS spool file 330 and converts the XPS spool file 330 into PDL. The touch application 301 is selected by the user through an application delivery system disclosed on the Internet and installed in the client computer 101. The extended print application 300 which is a type of the touch application 301 is obtained by the OS 210 through the Internet using the application delivery system and is installed in the client computer 101. An application data region 307 stores data to be uniquely used for each application. Note that the application data region 307 may be accessed only by a corresponding application. A prohibition information presence/absence determination module 344 determines whether prohibition information 340 of the printer 102 associated with the extended print application 300 has been stored in the application data region 307. A prohibition information storing module 341 stores the prohibition information 340 of the printer 102 associated with the extended print application 300 in the application data region 307. Different types of the printer 102 may be connected as illustrated in
A prohibition information obtaining module 342 obtains print functionality information, the prohibition information 340, and the like from the target printer 102 or a cloud server 105 through a device connection module 308 and a cloud connection module 309. The device connection module 308 communicates with the printer 102. The cloud connection module 309 communicates with the predetermined cloud server 105. A prohibition determination module 343 determines whether conflict occurs in the print setting using the prohibition information 340 relative to an input of the print setting.
Next, a mechanism in which the prohibition determination process of a print setting which may not be performed by the general printer driver is performed by the extended print application 300 will be described with reference to
Note that the applications and the modules are stored in the external memory 209, loaded to the RAM 202 where appropriate, and executed by the CPU 201 included in the client computer 101. A flow of
In this embodiment, a case where the touch application 301 (
The flow of
First, the general print setting UI 322 is activated in step S401. In step S402, the general print management unit 321 of the general printer driver 320 initializes print setting information. In step S403, the general printer driver 320 receives an input of a print setting performed by the user through the general print setting UI 322 of the general printer driver 320. When the general printer driver 320 detects a press of a button 1031 indicating “other settings” in step S404, the extended print application 300 executes the extended print setting process in step S405. This process fulfills an important role and will be described hereinafter with reference to
Next, an operation of the extended print setting process performed by the extended print application 300 will be described with reference to
In a flow of
In step S501, the extended print setting UI unit 306 of the extended print application 300 is activated by the OS 210. An example of the extended print setting UI unit 306 will be described with reference to
When the print setting performed by the general printer driver 320 is determined, the user executes a print process using an application. In a case where printing is performed using the desktop application 302, rendering data is supplied to the GDI to XPS conversion processing unit 328 and the XPS spool file 330 is generated. Here, the GDI to XPS conversion processing unit 328 calls the general print management unit 321 so that a format of the print setting information which is unique to the OS 210 is converted into a format of general print (for example, a DEVMODE structure is converted into PrintTicket). In a case where printing is performed using the touch application 301, a method for generating an XPS file by the touch application 301 or a method for generating an XPS file by the OS 210 in accordance with an instruction issued by the touch application 301 is employed. In both of the methods, the XPS spool file 330 is generated.
An operation performed when a print request is received from the touch application 301 will be described with reference to
In a flow of
When the XPS spool file 330 is generated, the process is temporarily passed to the OS 210 and the OS 210 reads a setting of the registry 323 in step S601. In step S602, the OS 210 determines whether activation of the print-time activated application 304 has been set in the registry 323. When the determination is negative, the OS 210 passes the process to the general printer driver 320. Thereafter, a rendering process in a next state is started in step S604. When the determination is affirmative, an edit/preview process of the extended print application 300 is started in step S603. Note that the process in step S603 will be described in detail hereinafter with reference to
Next, the process of editing and previewing the extended print application will be described in detail with reference to
In a flow of
In step S701, the print-time activated application 304 of the extended print application 300 is activated by the OS 210. In step S702, the print-time activated application 304 receives the print setting information from the OS 210. In step S703, the print-time activated application 304 activates the edit/preview function unit 305 and transmits the print setting information to the edit/preview function unit 305. In step S704, the edit/preview function unit 305 determines whether the application data region 307 includes the prohibition information 340 through the prohibition information presence/absence determination module 344. When the determination is negative, the prohibition information obtaining module 342 of the extended print application 300 obtains the prohibition information 340 from the printer 102 in step S705. Thereafter, in step S706, the prohibition information storing module 341 stores the obtained prohibition information 340 in the application data region 307. In step S707, the extended print application 300 obtains the prohibition information 340 stored in the application data region 307. In step S708, an input of a print setting performed by the user is received through a UI of the edit/preview function unit 305. In step S709, the extended print application 300 performs the prohibition determination process on the input of the print setting through the prohibition determination module 343 using the prohibition information 340. In step S710, the extended print application 300 branches the process in accordance with a result of the prohibition determination process. When conflict has occurred in the print setting, the edit/preview function unit 305 of the extended print application 300 returns the print setting to the print setting before the change in step S711. Then, in step S708, an input of a print setting performed by the user is received again through the UI of the edit/preview function unit 305. When the conflict has not occurred in the print setting, the process proceeds to step S712. In step S712, the extended print application 300 determines whether the “OK” button 1106 has been pressed. When the edit/preview function unit 305 of the extended print application 300 detects a press of the “OK” button 1106 in step S712, the print setting information is updated in step S713. In step S713, the extended print application 300 transmits the print setting information to the OS 210, terminates the edit/preview function, and returns to the processing flow of
As described above, according to this embodiment, the extended print application 300 performs a determination as to whether the prohibition information exists at the following timings. For example, the determination is performed at a timing when the extended print setting UI unit 306 is activated in the print setting request process. Alternatively, the determination is performed at a timing when the edit/preview function unit 305 is activated in the print request process. The determination as to whether the prohibition information 340 is included in the application data region 307 is made at these timings. When the prohibition information 340 is not included, the prohibition information 340 is obtained from the printer 102 and stored in the application data region 307. Then the prohibition determination process is performed using the obtained prohibition information 340. Therefore, even in printing using the general printer driver 320, a prohibition process unique to a printer vender or a printer may be performed.
Second EmbodimentIn the first embodiment, the mechanism of a determination as to whether the prohibition information 340 is included and an obtainment of the prohibition information 340 which are performed at a time of activation of the extended print setting UI unit 306 of the extended print application 300 and at a time of activation of the edit/preview function unit 305 of the extended print application 300 in the print setting process and the print process has been described.
In a second embodiment, a mechanism of a determination as to whether prohibition information 340 is included in an application data region 307 and an obtainment of the prohibition information 340 from a printer 102 using a tile application unit 303 which is another function of an extended print application 300 will be described.
A process according to this embodiment will be described in detail with reference to
In a flow of
First, in step S801, a tile application unit 303 of the extended print application 300 is activated. In step S802, the tile application unit 303 of the extended print application 300 determines whether an application data region 307 includes the prohibition information 340 through a prohibition information presence/absence determination module 344. When the determination is negative, a prohibition information obtaining module 342 of the extended print application 300 obtains the prohibition information 340 from the printer 102 in step S803. Thereafter, in step S804, a prohibition information storing module 341 of the extended print application 300 stores the obtained prohibition information 340 in the application data region 307.
As described above, according to this embodiment, the extended print application 300 may determine whether the application data region 307 includes the prohibition information 340 and obtain the prohibition information 340 from the printer 102 also in the case where the tile application unit 303 is used. Therefore, in a case where the tile application unit 303 is used, a burdensome operation of separately obtaining the prohibition information 340 from the printer 102 when the print setting process or the print process is performed may be omitted. The process of
In the first embodiment, the mechanism of an obtainment of the prohibition information 340 by the extended print application 300 from the printer 102 has been described.
In a third embodiment, a mechanism of an obtainment of prohibition information 340 from a location other than a printer body will be described. Hereinafter, portions different from the foregoing embodiment will be mainly described.
A process according to this embodiment will be described in detail with reference to
In step S901, the extended print setting UI unit 306 of the extended print application 300 is activated by the OS 210. In step S902, a print-time activated application 304 receives print setting information from the OS 210. In step S903, the extended print setting UI unit 306 of the extended print application 300 determines whether an application data region 307 includes the prohibition information 340 through a prohibition information presence/absence determination module 344. When the determination is negative, a prohibition information obtaining module 342 of the extended print application 300 obtains the prohibition information 340 from the printer 102 in step S904. In step S905, a prohibition information storing module 341 of the extended print application 300 determines whether the prohibition information 340 has been successfully obtained from the printer 102. When the determination is negative, a prohibition information obtaining module 342 of the extended print application 300 obtains the prohibition information 340 corresponding to the printer 102 from a predetermined cloud server in step S906. Thereafter, in step S907, the prohibition information storing module 341 of the extended print application 300 stores the obtained prohibition information 340 in an application data region 307. In step S908, the extended print application 300 obtains the prohibition information 340 stored in the application data region 307. Note that the process from step S909 to step S915 is the same as that from step S507 to step S513 of
As described above, according to this embodiment, the extended print application 300 may obtain the prohibition information 340 also from a location other than a printer body. Therefore, even in a case where the prohibition information 340 is not stored in the printer body, such as a case where the date of production of the printer is old or a case of a low-priced printer, the extended print application 300 may obtain the prohibition information 340 and perform a prohibition process.
This embodiment is summarized as follows. The information processing apparatus generates print data by executing a printer driver based on an instruction issued by an application operating in an operating system. An example of the information processing apparatus is the client computer 101.
An example of the application which processes a print setting is the extended print application 300. For example, conflict or inconsistency of a print setting is eliminated based on the prohibition information 340 for eliminating conflict of a setting to be input to a printer driver under control of the touch application 301. An example of conflict eliminating information is the prohibition information 340. The print setting obtained after conflict is eliminated is input to the printer driver from the extended print application 300. An example of the printer driver is the general printer driver 320.
Furthermore, the determination as to whether the conflict eliminating information is included in the application data region 307 is made. An example of an image forming apparatus is the printer 102. The device connection module 308 obtains the conflict eliminating information from the printer 102. Furthermore, the CPU 201 stores the conflict eliminating information obtained by the device connection module 308 in the application data region 307.
The extended print application 300, for example, eliminates conflict of the print setting using the prohibition information 340 stored in the application data region 307.
The extended print application 300 is executed at the following timings, for example. Specifically, the extended print application 300 is executed at a timing when the tile application unit 303 is activated or at a timing when a user interface program for an extended print setting is activated. Alternatively, the extended print application 300 is executed at a timing when the edit/preview function unit 305 is activated.
In a case where prohibition information may not be obtained from the printer 102, conflict eliminating information may be obtained from a predetermined external information processing apparatus. An example of the external information processing apparatus is the cloud server 105.
An example of the operating system is the OS 210. Furthermore, print data may be generated by executing the general printer driver based on an instruction issued by the document editing application operating in the OS 210. Then the extended print application 300 receives a predetermined event caused by the general printer driver 320. The extended print application 300 performs the following process after the receiving unit receives a predetermined event caused by the general printer driver 320. Specifically, the extended print application 300 is executed by the CPU 201. Then, conflict or inconsistency of a print setting is eliminated based on the conflict eliminating information for eliminating conflict of a setting to be input to a printer driver under control of the extended print application 300. The extended print application 300 is an example of an application which processes the predetermined extended print setting.
Then the print setting obtained after the conflict is eliminated is input to the printer driver from the extended print application 300.
As described above, this embodiment discusses the following solutions. There is a demand for reducing a portion depending on peripherals from a general OS or a general device driver so that a platform environment which is compatible with mobile devices including smartphones and tablets is created. In such a platform environment, there arises a problem in that it is difficult to incorporate the process which depends on specifications of peripherals in the general OS or the general device driver. However, this problem may be solved. Furthermore, there arises a problem in that it is difficult to incorporate a process and data required for a prohibition process of a printer driver or the like in the general OS or the general device driver. However, this problem may be solved.
According to the embodiments, a mechanism for removing the process which depends on specifications of peripherals from the general OS or the general device driver may be provided.
For example, a mechanism associated with a platform environment which is compatible with mobile devices including smartphones and tablets, for example, may be provided.
Other EmbodimentsEmbodiment(s) of the present invention can also be realized by a computer of a system or apparatus that reads out and executes computer executable instructions (e.g., one or more programs) recorded on a storage medium (which may also be referred to more fully as a ‘non-transitory computer-readable storage medium’) to perform the functions of one or more of the above-described embodiment(s) and/or that includes one or more circuits (e.g., application specific integrated circuit (ASIC)) for performing the functions of one or more of the above-described embodiment(s), and by a method performed by the computer of the system or apparatus by, for example, reading out and executing the computer executable instructions from the storage medium to perform the functions of one or more of the above-described embodiment(s) and/or controlling the one or more circuits to perform the functions of one or more of the above-described embodiment(s). The computer may comprise one or more processors (e.g., central processing unit (CPU), micro processing unit (MPU)) and may include a network of separate computers or separate processors to read out and execute the computer executable instructions. The computer executable instructions may be provided to the computer, for example, from a network or the storage medium. The storage medium may include, for example, one or more of a hard disk, a random-access memory (RAM), a read only memory (ROM), a storage of distributed computing systems, an optical disk (such as a compact disc (CD), digital versatile disc (DVD), or Blu-ray Disc (BD)™), a flash memory device, a memory card, and the like.
While the present invention has been described with reference to exemplary embodiments, it is to be understood that the invention is not limited to the disclosed exemplary embodiments. The scope of the following claims is to be accorded the broadest interpretation so as to encompass all such modifications and equivalent structures and functions.
Claims
1. An information processing apparatus that has stored a printer driver that is provided by a provider of an operating system of the information processing apparatus and generates print data, the information processing apparatus comprising:
- a controller including a processor and a memory, the controller configured to: in a situation that the information processing apparatus has already stored the printer driver, (a) perform communication with an external apparatus; (b) based on a result of the communication, obtain, from a server that is different from the information processing apparatus, information indicating that a combination of a first print setting and a second print setting is invalid; perform control based on the obtained information; cause a display to display print setting objects based on capability information received by the communication; and provide print settings set via the displayed print setting objects to the printer driver, wherein the control is performed based on the obtained information so that the print settings to be provided to the printer driver do not include the invalid combination indicated by the obtained information.
2. A non-transitory computer readable storage medium storing an application that causes a computer storing a printer driver that operates on an operating system of the computer and is stored in association with a printer identifier of a printer to:
- perform control based on information indicating that a combination of a first print setting and a second print setting is invalid, wherein in a situation that the printer driver has already been stored in the computer, (a) communication is performed with an external apparatus and then (b) based on a result of the communication, the information is obtained by the computer from a server that is different from the computer;
- cause a display to display print setting objects based on capability information received by the communication; and
- perform print settings set via the displayed print setting objects to be provided to the printer driver,
- wherein the control is performed based on the obtained information so that the print settings to be provided to the printer driver do not include the invalid combination indicated by the obtained information.
3. The non-transitory computer readable storage medium according to claim 2, wherein the control includes:
- a first control for determining whether print settings selected by a user include the first print setting and the second print setting based on the information; and
- a second control for changing one of the first print setting or the second print setting included in the selected print settings so that the changed print setting is not conflicting with the other of the print settings.
4. The non-transitory computer readable storage medium according to claim 2, wherein the application is activated in response to a user selecting a button for displaying a user interface on a user interface provided by a different application.
5. The non-transitory computer readable storage medium according to claim 2, wherein the printer driver does not include the application.
6. The non-transitory computer readable storage medium according to claim 2, wherein the server is a cloud server comprising a plurality of servers.
7. The non-transitory computer readable storage medium according to claim 2, wherein the application caused the computer to obtain the information from the server in the situation that the printer driver has already been stored in the computer.
8. The non-transitory computer readable storage medium according to claim 2, wherein the print settings are provided to the printer driver via the operating system of the computer.
9. A method performed by executing an application in a computer storing a printer driver that operates on an operating system of the computer and is stored in association with a printer identifier of a printer, the method comprising:
- performing control based on information indicating that a combination of a first print setting and a second print setting is invalid, wherein in a situation that the printer driver has already been stored in the computer, (a) communication is performed with an external apparatus and then (b) based on a result of the communication, the information is obtained by the computer from a server that is different from the computer;
- causing a display to display print setting objects based on capability information received by the communication; and
- performing print settings set via the displayed setting objects to be provided to the printer driver,
- wherein the control is performed based on the obtained information so that the print settings to be provided to the printer driver do not include the invalid combination indicated by the obtained information.
10. The method according to claim 9, wherein the control includes:
- a first control for determining whether print settings selected by a user include the first print setting and the second print setting based on the information; and
- a second control for changing one of the first print setting or the second print setting included in the selected print settings so that the changed print setting is not conflicting with the other of the print settings.
11. The method according to claim 9, wherein the application is activated in response to a user selecting a button for displaying a user interface on a user interface provided by a different application.
12. The method according to claim 9, wherein the printer driver does not include the application.
13. The method according to claim 9, wherein the server is a cloud server comprising a plurality of servers.
14. The method according to claim 9, wherein the application caused the computer to obtain the information from the server in the situation that the printer driver has already been stored in the computer.
15. The method according to claim 9, wherein the print settings are provided to the printer driver via the operating system of the computer.
11275540 | March 15, 2022 | Saito |
20090180140 | July 16, 2009 | Kawamura |
20120224207 | September 6, 2012 | Sueshige |
20170160997 | June 8, 2017 | Morita et al. |
2008269160 | November 2008 | JP |
2016167140 | September 2016 | JP |
Type: Grant
Filed: Jan 10, 2022
Date of Patent: Aug 22, 2023
Patent Publication Number: 20220129218
Assignee: Canon Kabushiki Kaisha (Tokyo)
Inventor: Kazuyuki Saito (Moriya)
Primary Examiner: Quang N Vo
Application Number: 17/571,779
International Classification: G06F 3/12 (20060101);