Information processing device and control method
By obtaining the attribute data of the printing device and adding specific function information, the functions of the standard driver are expanded, which solves the problem that the standard print driver cannot effectively expand the printing function, achieves consistency and flexibility of functions between printing devices, and improves the user experience.
Patent Information
- Application Number
- CN202011525567.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-12-22
- Publication Date
- 2024-10-18
- Estimated Expiration
- 2040-12-22
AI Technical Summary
Existing standard print drivers cannot effectively expand printing functions, limiting users' functional consistency and flexibility among different printing devices.
By obtaining the attribute data of the printing device, adding information related to specific functions, and displaying the setting screen of the setting items, the functions of the standard driver are expanded to achieve better matching and function expansion with the printing device.
It achieves functional consistency and flexibility among different printing devices, allows users to specify more printing functions, and improves the use experience and flexibility of the printing system.
Smart Images

Figure CN113050897B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to an information processing device and a control method, and more particularly to a technology for expanding applications. Background Art
[0002] Software for controlling a printing device is known. The software issues a printing instruction to a printing device connected to a host computer by using a printer driver installed on the host computer. An operating system (OS) as basic software is installed on the host computer. The printer driver is configured according to the specification defined by the OS and runs when called by the OS. A vendor who provides a printing device can provide a method for issuing a printing instruction to a printing device using the OS by providing a printer driver that complies with the OS specification.
[0003] In recent years, A standard class driver (hereinafter, also referred to as a "standard driver") that can be used in common with printing devices provided by multiple vendors is provided. Such a standard driver is included in an OS package, and the driver can be easily used by connecting the printing device to a host. This conveniently eliminates the need to separately install a printer driver of a specific model suitable for the printing device. Print functions can be assigned to the standard driver based on PrintCapabilities generated based on information obtained from the connected printing device. Although a single standard driver is used, a user using the standard driver can therefore specify a print function corresponding to the capability of the connected printing device.
[0004] A standard driver may be associated with a functional extension application (hereinafter, also referred to as an "extended application"). The extended application may be provided by a vendor that provides a printing device. By providing an extended application, the vendor can provide functions (extended functions) that cannot be implemented by the standard driver alone. Japanese Patent Application Laid-Open No. 2019-74906 discusses a technology for extending functions (such as a stamping function) by extending applications. Summary of the invention
[0005] The extended application discussed in Japanese Patent Application Laid-Open No. 2019-74906 can edit the spool file to pass to the standard driver. Therefore, the extended application implements the stamp function by editing the spool file to insert the stamp. The spool file is converted into print data (referred to as a print command in Japanese Patent Application Laid-Open No. 2019-74906) by the standard driver and sent to the printing device.
[0006] However, further inventions for extending the functions of standard drivers to provide better functions are expected.
[0007] An aspect of the present invention is to eliminate the above-mentioned problems of the conventional technology.
[0008] A feature of the present invention is to provide a technology for extending an application for extending the functions of a standard driver to provide better functions.
[0009] According to a first aspect of the present invention, a control method for an information processing device is provided, on which an extended application configured to extend the functions of print data generation software for generating print data is run, the control method comprising: acquiring attribute data of the printing device, the attribute data being output from the printing device; acquiring data representing a printing function; if information representing a specific function is not included in the acquired data representing the printing function, adding information related to the specific function based on the attribute information included in the acquired attribute data, wherein a setting screen including setting items for the specific function is displayed based on the added information related to the specific function.
[0010] According to a second aspect of the present invention, an information processing device is provided, comprising at least one processor that performs the following operations: obtaining attribute data of a printing device, the attribute data being output from the printing device; obtaining data representing a printing function; and if information representing a specific function is not included in the obtained data representing the printing function, adding information related to the specific function based on the attribute information included in the obtained attribute data, wherein a display screen including setting items for the specific function is displayed based on the additional information related to the specific function.
[0011] Further features of the present invention will become apparent from the following description of exemplary embodiments with reference to the attached drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0012] The accompanying drawings, which are incorporated in and constitute a part of the specification, illustrate embodiments of the invention and, together with the description, serve to explain the principles of the invention.
[0013] Figure 1 is a block diagram showing the hardware configuration of the printing system.
[0014] Figure 2A and 2B is a block diagram of the printing system.
[0015] Figure 3 : is a flowchart showing the print function information editing process of the print function expansion unit.
[0016] Figure 4A and Figure 4B An example of a Get-Printer-Attributes response and an example of Validate-Job operation data are shown.
[0017] Figure 5 An example of an extended function list is shown.
[0018] Fig. 6A and Figure 6B An example of Print Device Capabilities (PDC) is shown.
[0019] Figure 7 An example of a function mapping list is shown.
[0020] FIG. 8A to FIG. 8C An example of an additional function list is shown.
[0021] Fig. 9 An example of printing capability is shown.
[0022] Fig.10 An example of a screen displayed by the print setting screen expansion unit is shown.
[0023] Fig.11 is a flowchart showing a print data editing process by a print data editing unit.
[0024] Fig.12 : is a flowchart showing the print function information editing process of the print function expansion unit.
[0025] Fig.13A and Fig. 13B An example of a PDC is shown. DETAILED DESCRIPTION
[0026] Exemplary embodiments will now be described in detail with reference to the accompanying drawings. The following exemplary embodiments are not intended to limit the invention set forth in the claims. Although the exemplary embodiments describe multiple features, not all features are essential to the present invention, and multiple features may be freely combined. In the accompanying drawings, identical or similar components are represented by the same reference numerals. Redundant descriptions will be omitted.
[0027] "First Embodiment"
[0028] <Hardware Configuration of Printing System>
[0029] Figure 11 is a block diagram showing a hardware configuration of a printing system according to a first exemplary embodiment. In the figure, a host computer 101 is an example of an information processing apparatus. The host computer 101 includes an input interface 110, a central processing unit (CPU) 111, a read-only memory (ROM) 112, a random access memory (RAM) 113, an external storage device 114, an output interface 115, and an input / output interface 116. An input device (e.g., a keyboard 118 and a pointing device 117) is connected to the input interface 110. A display device (e.g., a display unit 119) is connected to the output interface 115.
[0030] The ROM 112 stores an initialization program. The external storage device 114 stores a set of application programs, an operating system (OS), print data generation software, and other various types of data. The RAM 113 is used as a working memory for executing various programs stored in the external storage device 114, for example.
[0031] In the present exemplary embodiment, the CPU 111 performs the functions of the host 101 and the processing related to the flowchart by executing the processing based on the process of the program stored in the ROM 112. The functions and flowchart of the host 101 will be described below. The printing device 102 as a device is connected to the host 101 via the input / output interface 116. In this example, the host 101 and the printing device 102 are configured separately. However, the host computer 101 and the printing device 102 can be configured as a single information processing device. As an example, the printing device 102 is described as an inkjet printer, which performs printing by discharging ink onto the surface of the paper. However, other methods (e.g., electronic photography methods) can be used to perform printing. The host 101 can also be a desktop personal computer, a smart phone or a notebook personal computer.
[0032] <Printing System Configuration>
[0033] Figure 2A and Figure 2B Schematically shows the configuration of the printing system. The following description will be given on the assumption that the printing system uses a The host computer 101 of 10 serves as the operating system. Figure 2A 1 is a diagram showing a typical configuration in a case where the extension application 204 is not associated with the print data generation software 202 and the printing apparatus 102 .
[0034] The drawing application 201 is software for generating content (drawing data) to be printed. Examples of the software include a document generation application and a spreadsheet application. If the drawing application 201 receives a print request from a user, the drawing application 201 issues a print instruction to the OS. The print instruction includes print setting information for giving instructions on the operation of the print data generation software 202 and the printing device 102. The print setting information is also called a PrintTicket (hereinafter referred to as a PT).
[0035] In order to output the print setting information, the drawing application 201 can display a print setting screen, which is set with any one of the print data generation software 202, the OS, and the drawing application 201. According to the capability information (information that can be set as the print setting) obtained from the print data generation software 202, the print setting screen includes setting items (hereinafter, also referred to as "control items") representing settable print functions and control items representing setting values of the print functions. Capability information is also called PrintCapabilities (PC). The print data generation software 202 determines the PC based on the print function information 203. The print function information 203 is data indicating the print function. The data describes all settable print functions and setting values of the print functions, and an exclusive relationship between the setting values. The print function information 203 is also called print device capabilities (PrintDevice Capabilities, PDC). The print function information 203 is included in a configuration file of the print data generation software 202 and is located in the external storage device 114 as an immutable file. Alternatively, the print function information 203 can be dynamically generated by the print data generation software 202. Specifically, the print data generation software 202 or the OS may be configured to obtain attribute data about the printing device 10 from the printing device 102, and generate the print function information 203 based on the attribute information included in the obtained attribute data. In the case where the print function information 203 is dynamically generated, the generated print function information 203 may be edited. Figure 4A Attribute data on the printing device 102 obtained from the printing device 102 is described.
[0036] As described above, the print data generation software 202 can be configured so that the user can specify the print function that can be used by each printing device 102 according to the connected printing device 102. More specifically, even if a printing device with different functions or a printing device developed by a different manufacturer is connected, the print data generation software 202 can be configured so that the user can specify the available print function according to the connected printing device. In the following description, a configuration using an Internet Printing Protocol (IPP) class driver included in Windows 10 is described as the print data generation software 202. The IPP class driver is a printer driver for performing a print process according to a standard printing protocol specification called IPP. The IPP class driver is included in an OS package. The IPP class driver is not a printer driver specific to the model of the printing device 102, but a standard class driver that can be used in common by multiple printing devices. The IPP class driver obtains attribute data of the connected printing device 102 and generates print function information 203 based on the attribute data so that the user can specify a print function or a function supported by the connected printing device 102.
[0037] The OS generates intermediate data (also referred to as input data) based on the print instruction output from the drawing application 201, and passes the intermediate data to the print data generation software 202. The data output by the drawing application 201 for printing is a Graphic Device Interface (GDI) data or an Extensible Markup Language (XML) Paper Specification (XPS) data. In the case where an IPP class driver is used as the print data generation software 202 and the data output from the drawing application 201 is GDI data, the OS converts the GDI data output from the drawing application 201 into XPS data. Then, the OS passes the converted XPS data as intermediate data to the print data generation software 202. In the case where the data output from the drawing application 201 is XPS data, the OS passes the XPS data as intermediate data to the print data generation software 202. The intermediate data includes drawing data, which is information about a picture to be formed on a paper surface, and print setting information set by a user.
[0038] The print data generation software 202 converts the obtained intermediate data into print data that can be parsed by the printing device 102, and sends the print data to the printing device 102. The print data includes drawing data and print setting attribute information generated based on the print setting information set by the user, the drawing data being information about the picture to be formed on the surface of the paper. The print setting attribute information is attribute information for specifying the print setting. Figure 4B Describe the details.
[0039] The printing device 102 performs printing on a paper surface based on the print data sent from the print data generation software 202. Here, the printing device 102 prints the drawing data included in the print data on the paper by an operation based on the print setting attribute information included in the print data. The print setting attribute information includes attribute information and a setting value of the attribute information. The attribute information specifies print quality (e.g., image quality priority and speed priority) and print settings (e.g., double-sided printing). For example, in the case where the print setting attribute information includes attribute information for specifying double-sided printing, the printing device 102 performs double-sided printing.
[0040] Figure 2B 2 is a diagram showing a configuration in the case where the extended application 204 is associated with the print data generation software 202 and the printing apparatus 102. Note that components and processes not mentioned below are not identical to those described in the following. Figure 2A Similar to that shown.
[0041] The extended application 204 is software for extending the function of the print data generation software 202, and is not pre-included in the OS (not packaged with the OS). Therefore, the user operates the host 101 to download the extended application 204 from the server through the Internet and install the extended application 204. Alternatively, the extended application 204 may be automatically installed in response to the connection of the printing device 102 to the host 101. Specifically, when the printing device 102 is connected to the host 101, the OS acquires the device identification information from the printing device 102. The OS may download the extended application 204 corresponding to the acquired device identification information from the server through the network and install the extended application 204. In other words, the print data generation software 202 and the extended application 204 are stored in the host 101 as separate files.
[0042] The print data generation software 202 and the extended application 204 can be updated for upgrading. Such update processing is performed at different timings. Specifically, the timing at which the host 101 obtains the print data generation software 202 is different from the timing at which the host 101 obtains the extended application 204. The trigger for the host 101 to obtain the print data generation software 202 is also different from the trigger for obtaining the extended application 204. When the extended application 204 is installed, the OS associates the extended application 204 with the print data generation software 202 and the printing device 102.
[0043] The extended application 204 described in the present exemplary embodiment includes a print setting screen extension unit 205, a print setting editing unit 206, a print function extension unit 207, and a print data editing unit 208. The extended application 204 also includes shared information 209 that can be commonly accessed from the aforementioned units. The shared information 209 is a file stored in the external storage device 114 or information stored in the RAM 113. The extended application 204 writes information to or reads information from the shared information 209 by using an application program interface (API) provided by the OS.
[0044] The operation of the extended application 204 may be terminated whenever the processing of each unit ends. In this case, whenever a request to use one of these units is given, the OS activates the extended application 204. Alternatively, for example, the OS may terminate the operation of the extended application 204 when the processing of the print setting screen extension unit 205 ends, while the OS keeps the extended application 204 activated even when the processing of the print setting editing unit 206 ends.
[0045] When the drawing application 201 receives a print instruction from the user, the drawing application 201 issues the print instruction to the OS. Figure 2A In the configuration of FIG. 201 , the drawing application 201 can display the print setting screen. In this configuration, the drawing application 201 displays the print setting screen provided by the extended application 204. Specifically, the drawing application 201 displays the print setting screen provided by the print setting screen extension unit 205 included in the extended application 204. Whether to display the print setting screen provided by the print setting screen extension unit 205 depends on the user's operation. Fig.10 The print setting screen expansion unit 205 is described in detail.
[0046] The OS generates intermediate data based on the print instruction output from the drawing application 201, and passes the intermediate data to the print setting editing unit 206. The print setting editing unit 206 edits the print setting information (PT) included in the generated intermediate data, and passes the edited print setting information to the OS. The print setting editing unit 206 can display or not display a screen on the display unit 119. Regardless of the user's operation, the print setting editing unit 206 can determine whether to display the screen provided by the print setting editing unit 206 on the display unit 119. Therefore, it is desirable to configure the settings and functions that the user always specifies for each print job so that the user can specify the settings and functions on the screen displayed by the print setting editing unit 206. Examples of such settings and functions include secure printing using a personal identification number (PIN) and information on a fax transmission destination (e.g., a destination address and a fax (FAX) number). In this example, the print setting editing unit 206 stores the PIN information specified by the user in the print setting information, and passes the print setting information to the OS. The PIN information specified by the user can be stored in the shared information 209 accessible from the public unit.
[0047] The OS passes the intermediate data including the edited print setting information to the print data generation software 202. The print data generation software 202 converts the intermediate data into print data that can be parsed by the printing device 102. The OS passes the converted print data to the print data editing unit 208. The OS may be further configured to pass the print setting information included in the intermediate data to the print data editing unit 208.
[0048] The print data editing unit 208 edits the print data generated by the print data generating software 202, and transfers the edited print data to the OS. Taking secure printing as an example, the print data editing unit 208 reads the PIN information specified by the print setting editing unit 206 from the print setting information received from the OS, or reads the PIN information from the shared information 209, and adds the PIN information to the print setting attribute information included in the print data.
[0049] The OS transmits the print data edited by the print data editing unit 208 to the printing apparatus 102. The printing apparatus 102 executes printing on a sheet surface based on the print data transmitted from the print data editing unit 208.
[0050] The extended application 204 includes a print function extension unit 207. The print function extension unit 207 can edit the print function information 203 (PDC) generated by the print data generation software 202 or the OS. The print function extension unit 207 can thus add functions provided by the extended application 204, add functions supported by the printing device 102 other than the print data generation software 20, and / or add exclusive relationships between setting values of the print function. When the extended application 204 is first associated with the printing device 102 and the print data generation software 202, the OS activates the print function extension unit 207. The OS can also activate the print function extension unit 207 at other times, such as when the OS is activated. This enables the print function extension unit 207 to detect the extended function and add the extended function to the print function information 203 in the case where an optional device (e.g., a finisher) is subsequently added to the printing device 102 and the print-related functions are extended.
[0051] The configuration of the extended application 204 for implementing the present exemplary embodiment is not limited to an extended application including all of the aforementioned functions (units). The extended application 204 may include only some functions or include other functions. The extended application 204 is sometimes referred to as printing software. As described above, the extended application 204 includes at least one of the following functions: displaying a setting screen (print setting screen extension unit 205), editing intermediate data to be input to the print data generation software 202 (print setting editing unit 206), editing print data to be input to the printing device 102 (print data editing unit 208), and extending functions that can be specified by the print data generation software 202 (print function extension unit 207).
[0052] <Print Function Information Editing Processing by Print Function Extension Unit>
[0053] Figure 3 1 is a flowchart showing the main processing procedure in the print function information editing processing executed by the print function expansion unit 207 of the present printing system. In the following description, the print function expansion unit 207 may be described as a proxy for processing, and the corresponding functions are actually realized by the CPU 111 executing the corresponding corresponding programs.
[0054] The printing function extension unit 207 is activated by the OS at the timing of first association with the extended application 204 to start Figure 3 The process described in .
[0055] In step S301, the print function extension unit 207 issues an IPP Get-Printer-Attributes operation to the printing device 102. The response received from the printing device 102 through this operation is stored in the RAM 113. The print function extension unit 207 can directly issue the IPP Get-Printer-Attributes operation, or cause the OS to issue the IPP Get-Printer-Attributes operation by using the API of the OS. The Get-Printer-Attribute operation can specify the attributes to be requested. The response received from the printing device 102 is data indicating the attributes of the printing device 102. Figure 4A An example of this response is described. The print function expansion unit 207 can request only the Figure 4A The properties shown, or request all properties if no properties are specified.
[0056] In step S302, the print function expansion unit 207 initializes N to 1. N=1 indicates that function 1 is to be processed as the first function.
[0057] In step S303, the print function expansion unit 207 checks whether the function N is included in the extended function list. Figure 5 Describes an example of an extended function list. Figure 5 An extended function list 501 is shown, which is stored in the external storage device 114 as one of the configuration files of the extended application 204. The extended function list 501 lists the functions to be added by the extended application 204, and lists the correspondence between the feature names in the PT and the names of the IPP printer attributes. The printer attributes refer to the attribute information indicating the functions of the printing device 102 that can be specified (the capabilities of the printing device 102). The feature names on the extended function list 501 can also include information about the namespace as appropriate. The subsequent processing of the feature names stored in the extended function list 501 is also the same. Since Figure 5 The extended function list 501 shown includes a record related to function 1, so the determination result of step S303 is "yes".
[0058] In step S304, the print function extension unit 207 determines whether the search feature name of the function N on the extended function list 501 is included in the PDC. The print function extension unit 207 can refer to or modify the PDC.
[0059] Fig. 6A An example of a PDC is shown. Fig. 6AThe PDC 601 shown includes information about supported functions (features), information about setting values (options) of specific functions, and exclusive information indicating that specific functions cannot be selected at the same time. Information 602 indicates that a borderless printing function (PageBorderless) is supported. Information 603 indicates that two setting values "None" and "Borderless" can be specified for the borderless printing function. PageBorderless is preceded by "psk:", which indicates a namespace and indicates who defined the function PageBorderless in what specification. Information 604 indicates exclusive information, which indicates that the borderless setting and medium-sized North American letters cannot be selected at the same time.
[0060] Return to the process of step S304. Figure 5 The search feature name of function 1 on the extended function list 501 shown is *BorderlessEx*, so the print function extension unit 207 searches for a feature name (function indication information) including BorderlessEx in the PDC. The symbol * represents an arbitrary character string. As described above, the PDC as the print function information 203 can be dynamically generated by the OS or the print data generation software 202 based on information obtained from the printing device 102. Therefore, what feature name is added to the print function depends on the specifications of the OS or the print data generation software 202. As described above, the print function extension unit 207 can search for the corresponding function more reliably by searching for a partial match with the feature name.
[0061] If the determination of step S304 is "Yes", the function N has been added as a function that can be assigned to the PDC as the print function information 203 by the OS or the print data generation software 202. In this case ("Yes" in step S304), the process proceeds to step S305. In contrast, if the PDC has contents such as PDC 601, the feature name including the name BorderlessEx does not exist in PDC 601. In this case ("No" in step S304), the process proceeds to step S306.
[0062] In step S305, the print function expansion unit 207 adds the feature name found in the PDC to the function mapping list. Figure 7 Describes an example of a function mapping list. Figure 7A function mapping list 701 is shown, which is an example of a function mapping list. The function mapping list 701 is stored in the shared information 209 that can be read and written by each unit of the extended application 204. The print function extension unit 207 stores the feature name 703 found in the PDC by searching in step S304 and the feature name 702 of the corresponding function on the extended function list 501 in association with each other. This enables the extended application 204 to determine that the function added by the OS or the print data generation software 202 and the function added by the print function extension unit 207 in the processing described below represent the same function. The feature name 703 in the PDC can be configured to be stored with the included namespace as appropriate.
[0063] After step S305, the process proceeds to step S312. In step S312, the print function expansion unit 207 performs processing of the next function on the extended function list 501 (N=N+1).
[0064] In step S306, the print function expansion unit 207 determines whether the common printer attributes of the function N on the extended function list 501 are included in the Get-Printer-Attributes response stored in the RAM 113 in step S301. The common printer attributes are standard printer attributes defined in the IPP specification.
[0065] Figure 4A An example of a Get-Printer-Attributes response is schematically shown. Get-Printer-Attributes response 401 includes printer attributes such as supported media and cij-print-borderless-expandlevel (cij print borderless expansion level). In other words, Get-Printer-Attributes response 401 is attribute information indicating the function of the printing device 102 that can be specified (capability of the printing device 102). Information 402 is a list of media sizes that can be specified in the printing device 102. Information 402 indicates that letter size (na_letter_8.5x11in) is supported. Information 403 indicates a combination of possible print margins of the printing device 102. Because all combinations of top, left, right, and bottom margins include 0, information 403 indicates that the printing device 102 supports the borderless printing function. Information 404 indicates a protrusion amount function when printing without borders (borderless protrusion amount function). Information 404 indicates that one of three levels level0, level1, and level2 can be selected. The printer attributes beginning with cij are private printer attributes originally defined by a vendor who developed the printing device 102, rather than standard public printer attributes defined in the IPP specification.
[0066] PDC 601 is an example of a PDC generated by an OS or print data generation software 202 based on a response 401. Information (printer attributes) 403 included in the response 401 is a public printer attribute. Since the public printer attribute is a standard defined in the IPP specification, if the OS supports the borderless printing function, information 602 related to the function (borderless printing function) is added to the PDC 601 by the OS or print data generation software 202 according to the information (printer attributes) 403. However, although some functions have public printer attributes, the OS may not support these functions. In this case, the OS or print data generation software 202 cannot parse the printer attributes, and the functions corresponding to the printer attributes are not included in the PDC 601. Information (printer attributes) 404 included in the response 401 is a private printer attribute. Since the private printer attribute is attribute information proprietary to the vendor, the OS or print data generation software 202 cannot parse the private printer attribute. In this case, the functions corresponding to the printer attributes 404 are also not included in the PDC 601. The processing executed by the print function expansion unit 207 in steps S306 to S311 is intended to add such functions to the PDC 601 .
[0067] Returning to the description of step S306. The Get-Printer-Attributes response 401 does not include print-borderless-expandlevel as a common printer attribute of function 1 on the extended function list 501. Therefore, the determination of step S306 is "NO", and the process proceeds to step S309.
[0068] In step S309, the print function expansion unit 207 checks whether the private printer attribute of the function N on the extended function list 501 is included in the Get-Printer-Attributes response 401 stored in the RAM 113 in step S301. The Get-Printer-Attributes response 401 includes cij-print-borderless-expandlevel ( Figure 4A The information 404 shown in FIG. 4 is a private printer attribute of function 1. Therefore, the determination of step S309 is "YES", and the processing proceeds to step S310.
[0069] In step S310, the print function expansion unit 207 updates the added function list based on the information on the private printer attribute of the function N on the extended function list 501. Fig. 8A An example describing a list of features that were added. Fig. 8AAn added function list 801 is shown, which is stored in the shared information 209 which can be read and written by the units of the extended application 204. The print function extension unit 207 stores the characteristic name of the function N and the private printer attribute on the extended function list 501 in association with each other. In this example, the printing function expansion unit 207 stores a feature name 802 (PageBorderlessExpandLevel of function 1 on the extended function list 501) and a private printer attribute name 803 (cij-print-borderless-expandlevel on the extended function list 501) in association with each other. The printing function expansion unit 207 also stores the setting value of the printer attribute cij-print-borderless-expandlevel, for example, level0, level1, and level2, as the setting value 805 of the printer attribute of function 1 in the response 401. The printing function expansion unit 207 also determines an option 804 of the feature to be associated, and stores the setting value of the printer attribute of function 1 in association with the option 804. The printing function expansion unit 207 retains in advance a combination of options that can be specified for a specific feature as information, and determines the option 804 based on the information. Alternatively, the printing function expansion unit 207 may set the same value as the setting value 805 of the printer attribute in the option 804.
[0070] Such processing enables the extended application 204 to refer to the correspondence relationship between the function extended by the print function extension unit 207 (extended function) and the print setting attribute information notified to the printing apparatus 102 when the function is specified.
[0071] In step S311 , the print function expansion unit 207 updates the PDC based on the information on the private printer attribute of the function N on the extended function list 501 . Figure 6BPDC 605 is shown, which is an example of a PDC updated in the processing of step S311. The print function extension unit 207 refers to the added function list 801 to determine the features and options to be added, and updates the PDC. The print function extension unit 207 adds the feature name 802 PageBorderlessExpandLevel and three options 804 (the setting value of the feature name 802 (information related to the function), such as Level_0, Level_1, and Level_2) to the PDC in a format based on the PDC. Information 607 is an example of added information. The print function extension unit 207 also adds namespace information 606 about the added function to the PDC. If the corresponding namespace has already been added to the PDC, the print function extension unit 207 does not add the namespace information 606. Through this processing, the function PageBordelessExpandLevel (borderless protrusion amount function) for indicating the borderless protrusion amount is added as a function that can be specified by the print data generation software 202.
[0072] In step S312, the print function expansion unit 207 increments N by 1. The process returns to step S303. When the function N exists on the extended function list 501, the processes of steps S303 to S312 are repeated. If it is determined in step S303 that the function N is not included in the extended function list 501 (No in step S303), this process flowchart ends.
[0073] If the Get-Printer-Attributes response 401 includes print-borderless-expandlevel ("YES" in step S306), the process proceeds to step S307. In steps S307 and S308, the print function expansion unit 207 performs processing similar to that performed based on the private printer attributes in steps S310 and S311 based on the public printer attributes. Specifically, the public printer attribute name print-borderless-expandlevel is stored as a printer attribute of function N in the added function list 801.
[0074] The above is the print function information editing process of the print function extension unit 207. By using this process, the functions supported by the printing device 102 can be extended to the functions of the print data generation software 202. The extended functions can be set by the user in the following Fig.10 Even in the case where the printing device 102 returns different printer attributes for a specific function, the function can be expanded to the same function. Figure 3In the flowchart shown, two printer attributes (e.g., public printer attribute and private printer attribute) are added as the same function. However, the types of printer attributes are not limited to these two. Two or more other printer attributes with different names can be extended as the same function. In Figure 3 In the flowchart shown, if a function has already been added to the PDC by the OS or the print data generation software 202, the print function extension unit 207 does not redundantly add the function to the PDC. In other words, multiple attributes that are always to be processed as the same function are added as a single function to the print data generation software 202. Additionally, the setting values that can be specified by the connected printing device 102 are added as the setting values of this function. A mechanism similar to this process can be configured such that if the OS or the print data generation software 202 has added a function but lacks one or more setting values, the print function extension unit 207 only adds the setting values separately.
[0075] <Example of a PC>
[0076] Now, a PC example based on the PDC 605 extended by the print function extension unit 207 will be described with reference to Fig. 9 the PC 901 shown. The PDC 601 is converted to the PC 901 by the OS or the print data generation software 202. Optionally, the extended application 204 can be configured to convert the PDC 601 to the PC 901. The PC 901 includes the feature 902 PageBorderlessExpandLevel added based on the information 607 (feature), where the information 607 has been added to the PDC605 by the print function extension unit 207.
[0077] <Example of a screen displayed by the print settings screen extension unit>
[0078] Now, a print settings screen displayed based on the generated PC 901 will be described with reference to Fig.10 the generated PC 901. Fig.10 The print settings screen 1000 is shown, which is an example of a screen displayed by the print settings screen extension unit 205 based on the PC 901. When the user gives an instruction to display the print settings screen from the drawing application 201, the print settings screen extension unit 205 is called by the OS. The print settings screen extension unit 205 displays a screen based on the PC display screen obtainable from the OS, on which the user can specify the print functions that can be specified by the print data generation software 202.
[0079] The print setting screen expansion unit 205 provides a print setting screen on which a control 1001 (setting item) for specifying the protrusion amount during borderless printing is added based on the feature 902 included in the PC 901. The control 1001 can select any one of three options of the feature 902, for example, Level_0, Level_1, and Level_2.
[0080] When generating the print setting screen 1000, the print setting screen expansion unit 205 refers to the function mapping list 701 included in the shared information 209, and adds the same control for the associated two features. For example, in the case where the PC 901 includes the feature PageBorderlessExpandLevel and in the case where the PC 901 includes the feature PageBorderlessExLevel, the print setting screen expansion unit 205 adds the same control 1001.
[0081] As described above, the print setting screen expansion unit 205 does not distinguish between the following cases: the specific function is added by the OS or the print data generation software 202, the specific function is added by the print function expansion unit 207 based on the public printer attributes returned from the printing device 102, or the specific function is added by the print function expansion unit 207 based on the private printer attributes returned from the printing device 102. That is, the print setting screen expansion unit 205 can configure a single control from which the user can specify the function on the print setting screen. In addition, even in the case where an application that cannot distinguish the above three cases directly obtains the PC 901 and configures the print setting screen, the present exemplary embodiment is applicable. Specifically, by obtaining a PC to which a specific function is added, the drawing application 201 can configure a single control on which the function can be specified by the user.
[0082] <Processing Procedure of Print Data Editing Unit>
[0083] A process for editing print data (print data editing process) will now be described. This process is executed by the print data editing unit 208 after the user gives an instruction regarding print settings on the print setting screen.
[0084] Fig.11 1 is a flowchart showing the main processing procedures in the print data editing process of the print data editing unit 208 in the present printing system. In the following description, the print data editing unit 208 may be described as a proxy for processing, and the corresponding functions are realized by the CPU 111 executing the corresponding corresponding programs.
[0085] When the print data editing unit 208 is activated by the OS, Fig.11 process.
[0086] In step S1101, the print data generated by the print data generation software 202 is passed to the print data editing unit 208. The print data editing unit 208 first obtains the PT from the OS. The PT is information generated by the print setting screen expansion unit 205. The PT is print setting information indicating the print settings that the user has specified based on the PC. The PT can be edited by the print setting editing unit 206, in which case the print data editing unit 208 can obtain the edited PT. The print data editing unit 208 can perform the following processing not based on the PT but based on the PT included in the shared information 209 and information equivalent to the PT. In this case, the print setting screen expansion unit 205 or the print setting editing unit 206 stores the PT and equivalent information in the shared information 209 so that the print data editing unit 208 can refer to the PT and the equivalent information later.
[0087] In step S1102 , the print data editing unit 208 initializes N to 1.
[0088] In step S1103, the print data editing unit 208 determines whether function N is included in the added function list 801 in the shared information 209. Since function 1 is included in the added function list 801 here, the determination of step S1103 is yes. If function N is not included ("No" in step S1103), the print data editing unit 208 determines that there are no more functions to be added to the print data, and the processing ends. The case where function 1 is not included in the added function list 801 means that all print settings specified by the user are standard functions, not extended functions. Therefore, this case refers to a case where all print settings have been processed by the print data generation software 202.
[0089] If the function N is included ("Yes" in step S1103), the process proceeds to step S1104. In step S1104, the print data editing unit 208 determines whether the feature name of the function N is included in the PT. If the feature name is not included ("No" in step S1104), the process proceeds to step S1106. It is assumed here that the feature name of the function 1 (PageBorderlessExpandLevel) is included in the PT. If the feature name is included ("Yes" in step S1104), the process proceeds to step S1105.
[0090] In step S1105 , the print data editing unit 208 refers to the added function list 801 , and adds setting values of printer attributes corresponding to the options of the features in the PT to the print setting attribute information (attribute information for specifying print settings) included in the print data. Figure 4BAn example of print setting attribute information in IPP print data is shown. Data 1401 represents a Validate-Job operation, which is an operation issued at the beginning of IPP print data. Data 1401 representing the Validate-Job operation includes a job-attributes-tag 1402 representing print setting attribute information. In the PT, Level_1 is specified as an option for PageBorderlessExpandLevel. The print data editing unit 208 refers to the add function list 801 in the shared information 209, and adds the setting value level1 corresponding to Level_1 as the setting value of the printer attribute name cij-print-borderless-expandlevel. Information 1403 represents the information to be added. If a Print-Job operation is used instead of a Validate-Job operation or a series of operations, the print data editing unit 208 adds information 1403 to the Print-Job operation.
[0091] In step S1106, the print data editing unit 208 increments N by 1. The process returns to step S1103. When there is function N, the print data editing unit 208 repeats the processes of steps S1103 to S1106.
[0092] The above is a process for print data editing processing by the print data editing unit 208. By using this process, if the user specifies a function (extended function) extended by the print function extension unit 207 on the print setting screen, the print data can be edited according to the specification. Therefore, an appropriate instruction to execute the extended function can be given to the printing device 102. In the case of the present exemplary embodiment, an instruction about the borderless protrusion amount function is sent to the printing device 102. If the printing device 102 supports the attribute cij-print-borderless-expandlevel, the print data editing unit 208 adds the attribute information to the print data. If the printing device 102 supports the attribute print-borderless-expandlevel, the print data editing unit 208 adds the attribute information to the print data. If the function is added by the OS or the print data generation software 202, the print data generation software 202 adds the attribute information to the print data. Therefore, the print data editing unit 208 will not add the attribute information redundantly.
[0093] As described above, the extended application 204 according to the present exemplary embodiment can configure the functions supported by the printing device 102 so that the functions can be specified by the user. In the present exemplary embodiment, the extended application 204 extends the functions based on the attribute information included in the attribute data obtained from the printing device 102. If the connected printing device 102 supports a specific function, the function is enabled to be specified. If the connected printing device 102 does not support a specific function, the function will not be added. Even in the case where different printer attributes are returned for the same function according to the type of the connected printing device 102, the same control item is displayed on the print setting screen. Therefore, the user can specify these attributes as the same function on the print setting screen. Although the present exemplary embodiment has been described by taking the extension of the borderless protrusion amount function as an example, the present exemplary embodiment can also be applied to other functions. If multiple functions have been added to the extended function list 501, the extended application 204 can add multiple functions.
[0094] Second Embodiment
[0095] A second exemplary embodiment will now be described. This exemplary embodiment describes a configuration in which, if the print data generation software 202 already supports the function added by the extended application 204, only one or more setting values of the function are added. The components and processes not mentioned below are similar to those in the first exemplary embodiment. Therefore, their description will be omitted.
[0096] Fig.12 1 is a flowchart showing a main processing procedure in the print function information editing processing of the print function expansion unit 207 according to the present printing system. In the following description, the print function expansion unit 207 may be described as a proxy for processing, and corresponding functions are realized by the CPU 111 executing corresponding corresponding programs.
[0097] Fig.12 The processing of steps S1201 to S1212 shown in FIG. Figure 3 , and therefore, the description thereof is omitted except for the following points. The first difference is that, in the present exemplary embodiment, the print function expansion unit 207 does not proceed to step S1212 after processing step S1205, but proceeds to step S1206. Specifically, even if the print data generation software 202 already supports the function to be expanded (i.e., even if the function is a standard attribute defined in the IPP specification), the print function expansion unit 207 continues the expansion processing of step S1206 and subsequent steps). The second difference is that the update processing of steps S1207 and 1208 and the update processing of steps S1210 and S1211 are different from Figure 3 The following will take the updating process of steps S1210 and S1211 as an example for description.
[0098] Fig.13A An example of a PDC before being edited by the print function extension unit 207 according to the present exemplary embodiment is shown. The PDC 1301 includes a feature 1302 PageBorderlessExLevel indicating a borderless protrusion amount function. It has been determined by the determination processing of step S1204 based on the extended function list 501 that the feature 1302 indicates a borderless protrusion amount function. In the PDC 1301, the feature 1302 supports two options Level_0 and Level_1. Assume that, as in the first exemplary embodiment, the Get-Printer-Attributes response in step S1201 (attribute data obtained from the printing device 102) has the same Figure 4A The same contents as the response 401 shown in FIG. 4 are shown. The printer attribute, cij-print-borderless-expandlevel (information 404), indicating the borderless protrusion amount function included in the response 401 supports three setting values, level 0, level 1, and level 2. In other words, although the connected printing apparatus 102 has three setting values of the borderless protrusion amount function that can be specified, the print data generation software 202 has only two setting values that can be specified.
[0099] Figure 8B An added function list 806 is shown, which is an example of an added function list updated by the printing function expansion unit 207 in the process of step S1210. In the process of step S1210, the printing function expansion unit 207 compares the options of the function N supported by the PDC 1301 with the setting values of the function N included in the response 401, and determines whether there is a setting value included only in the response 401. The printing function expansion unit 207 sets the setting value of the printer attribute corresponding to the option already existing in the PDC 1301 to "none" on the added function list 806. As for the setting value that does not exist in the PDC 1301 and is included in the response 401, the printing function expansion unit 207 stores the setting value as a new setting value (information 807), and determines and stores the corresponding option name. Regarding the feature name of the function N, the printing function expansion unit 207 stores the feature name of the function N supported by the PDC 1301.
[0100] In step S1211 , the print function extension unit 207 updates the PDC 1301 . Fig. 13BPDC 1303 is shown, which is an example of the updated PDC 1301. The printing function extension unit 207 adds option 1306Level_2 to the feature 1305PageBorderlessExLevel that already exists as function N. The printing function extension unit 207 may also add namespace 1304 as a namespace of option 1306.
[0101] As described above, if the print data generation software 202 already supports a specific function, the print function expansion unit 207 according to the present exemplary embodiment can expand only one or more setting values of the function. If the function N is not included in the PDC, in the processing of steps S1210 and S1211, the print function expansion unit 207 expands the function as in the processing of steps S310 and S311. Based on the information about the common printer attributes, the processing of steps S1207 and S1208 is performed in a manner similar to steps S1210 and S1211.
[0102] Like the first exemplary embodiment, the print data editing unit 208 according to the present exemplary embodiment executes Fig.11 The print data editing process shown. For example, assume that function N is PageBorderlessExLevel, and the PageBorderlessExLevel option in the PT is Level_1. On the added function list 806 according to the present exemplary embodiment, the setting value of the printer attribute corresponding to Level_1 is "None". In this case, the print data editing unit 208 determines that the setting value corresponding to the option has been added by the print data generation software 202, and in step S1105, the setting value is not added. On the contrary, assume that the option of PageBorderlessExLevel in the PT is Level_2. On the added function list 806, the setting value of the printer attribute corresponding to Level_2 is level2. In this case, the print data editing unit 208 determines that the print data generation software 202 has not added the setting value corresponding to the option, and adds Level_2 to the print data as the setting value of function N.
[0103] The extended application 204 according to the present exemplary embodiment can extend the setting values of the functions that the print data generation software 202 already supports. For example, the present exemplary embodiment is applicable to the case where the standard functions according to the IPP specification (such as the designation of the paper type during printing) have different setting values depending on the configuration of the printing device 102. In other words, the extended application 204 can keep the functions that the print data generation software 202 already supports intact and only add the setting values. The setting values are added based on the attribute information about the attribute data obtained from the printing device 102. Therefore, if the connected printing device 102 supports a specific setting value, the specific setting value can be specified. If the connected printing device 102 does not support a specific setting value, the setting value will not be added. Take the borderless protrusion amount function described in the present exemplary embodiment as an example. If the connected device A can specify the protrusion amount in three levels, a three-level designation can be performed. If the connected device B can specify the protrusion amount in five levels, a five-level designation can be performed. Although the present exemplary embodiment has been described by using the borderless protrusion amount function and the sheet type as an example, the present exemplary embodiment is also applicable to other printing functions supported by the printing device 102. As shown in the flowchart, two or more functions can be added, and setting values can be added only to certain functions.
[0104] "Third Embodiment"
[0105] The third exemplary embodiment will now be described. In this exemplary embodiment, some processing is added to the processing of the first exemplary embodiment, whereby the extended application 204 can provide functions even in the case where the functions cannot be extended in the first exemplary embodiment. Components and processing not mentioned below are similar to those of the first exemplary embodiment.
[0106] Figure 3 The print function information editing process of the print function expansion unit 207 shown is configured such that if the determination of step S309 is NO, the print function expansion unit 207 executes processes similar to steps S310 and S311 . Figure 8C 8. An added function list 808 generated by the print function expansion unit 207 in this process is shown. The print function expansion unit 207 stores information 809 ("None") indicating that the added function and its setting value do not have corresponding printer attributes. In this case, if the user selects a function, it is determined that the printing apparatus 102 does not support the function.
[0107] exist Fig.11In the print data editing process of the print data editing unit 208 shown, if any printer attribute of the function in the added function list includes "None", the print data editing unit 208 converts the print data format. Taking the IPP class driver as an example, for the print data in the IPP format, satisfying the above conditions means that the printing device 102 cannot execute the print function specified by the user in the IPP format. In this case, the print data editing unit 208 converts the print data in the IPP format into print data of a different format that can use the print function specified by the user. For example, a print data format specific to a vendor that provides the extended application 204 can generally use all functions provided by the printing device 102. For example, the print data editing unit 208 converts the print data in the IPP format into the above-mentioned vendor-specific print data format.
[0108] Such a configuration enables to specify a function supported by the printing apparatus 102 and that cannot be specified in the format of the print data generated by the print data generation software 202 by using the extended application 204. This exemplary embodiment can be combined with the second exemplary embodiment so that if the setting value of the print function specified by the user cannot be executed in the IPP format, the print data is converted into print data of a different format. Thus, the use of the extended application 204 enables to specify a setting value supported by the printing apparatus 102 and that cannot be specified in the format of the print data generated by the print data generation software 202.
[0109] Other embodiments
[0110] The embodiments of the present invention may also be implemented by providing software (program) for performing the functions of the above-described embodiments to a system or device via a network or various storage media, and a computer or a central processing unit (CPU) or a microprocessing unit (MPU) of the system or device reads and executes the program.
[0111] 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 modifications, equivalent structures and functions.
Claims
1. A control method for an information processing device, on which an extended application configured to extend the function of print data generation software for generating print data is run, the print data generation software being included in an operating system of the information processing device, the control method comprising: Acquire attribute data of the printing device, the attribute data being output from the printing device; obtaining data representing a print function; and If the information indicating the specific function is not included in the obtained data indicating the printing function, information related to the specific function is added based on the attribute information included in the obtained attribute data, wherein the capability information is generated based on data representing a printing function to which information related to a specific function has been added, wherein, based on the generated capability information, a setting screen including setting items of a specific function is displayed, and Here, even if information indicating a specific function is included in the obtained data indicating the printing function, information corresponding to a setting value of the specific function is added as information related to the specific function based on the attribute information included in the obtained attribute data.
2. The control method according to claim 1, wherein: If a user designates a setting item of the specific function on the setting screen, the print data is edited based on the attribute information.
3. The control method according to claim 1, in, The capability information is printing capability.
4. The control method according to claim 1, wherein: The print data generation software is an Internet Printing Protocol (IPP) driver, and the print data is data in a format based on the IPP.
5. The control method according to claim 4, wherein: Regardless of whether the attribute information indicates a standard attribute of the IPP or an originally defined attribute, information related to the specific function is added based on the attribute information, and thus the same setting items are displayed as setting items of the specific function.
6. The control method according to claim 1, wherein: The data representing the printing function is the printing device capability PDC.
7. An information processing device comprising at least one processor that performs the following operations: Acquire attribute data of the printing device, the attribute data being output from the printing device; obtaining data representing a print function; and If the information indicating the specific function is not included in the obtained data indicating the printing function, information related to the specific function is added based on the attribute information included in the obtained attribute data, in, generating capability information based on data representing a printing function to which information related to a specific function has been added, wherein, based on the generated capability information, a setting screen including setting items of a specific function is displayed, and Here, even if information indicating a specific function is included in the obtained data indicating the printing function, information corresponding to a setting value of the specific function is added as information related to the specific function based on the attribute information included in the obtained attribute data.
8. The information processing device according to claim 7, wherein: If the user designates a setting item of the specific function on the setting screen, print data is edited based on the attribute information.
9. The information processing device according to claim 7, in, The capability information is printing capability.
10. The information processing device according to claim 7, wherein: Print data in a format based on IPP is generated by an IPP driver, which is print data generation software.
11. The information processing device according to claim 10, wherein: Regardless of whether the attribute information indicates a standard attribute of the IPP or an originally defined attribute, information related to the specific function is added based on the attribute information, and thus the same setting items are displayed as setting items of the specific function.
12. The information processing device according to claim 7, wherein: Data indicating the print function is PDC.
Citation Information
Patent Citations
program
JP2019074906A
Method of adding print feature of printer driver
CN104636090A
Print processing system and control method
US20190303076A1
