Support program
The support program addresses the lack of data compression in OS-standard printing by determining printer compatibility and compressing print data accordingly, thereby reducing communication load and enhancing transmission efficiency.
Patent Information
- Application Number
- JP2023023398
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2023-02-17
- Publication Date
- 2024-08-29
AI Technical Summary
Existing technologies do not provide a method to compress print data when using an OS-standard general-purpose printing program, leading to increased communication load during printing.
A support program that determines whether a printer is compatible with data compression and, if compatible, compresses the print data using a compatible method before transmission, thereby reducing communication load.
The support program effectively reduces communication load by utilizing data compression when printing via an OS-standard general-purpose printing program, optimizing data transmission efficiency.
Smart Images

Figure 2024117348000001_ABST
Abstract
Description
[Technical field]
[0001] The technical field disclosed in this specification relates to a support program that supports control of a printer. [Background technology]
[0002] Conventionally, there is known a technique in which a printer driver compresses data to be sent to a printer. For example, Patent Document 1 discloses a printer driver that causes a computer to generate print data and send the print data to a printer, and the printer driver compresses image data. [Prior art documents] [Patent documents]
[0003] [Patent Document 1] JP 2017-45247 A Summary of the Invention [Problem to be solved by the invention]
[0004] In recent years, a technology has been put into practical use that controls a printer using a general-purpose print program that is part of the operating system (OS) and does not use the printer driver provided by the printer vendor mentioned above. With this technology, when the OS detects a printer, it associates it with the general-purpose print program that is standard to the OS, and thereafter, when a print instruction is received for that printer, the general-purpose print program that is standard to the OS generates print data without using a printer driver provided by the printer vendor, making it possible to print using the general-purpose print program that is standard to the OS.
[0005] However, there is no disclosure of a technique for compressing print data when an information processing device causes a printer to print via the OS-standard general-purpose print program described above. Since it is desirable to reduce the communication load even when printing via the OS-standard general-purpose print program, there is room for improvement. [Means for solving the problem]
[0006] A support program devised for solving the above-mentioned problems is executable by a computer of an information processing device, and corresponds to a printer connected to the information processing device, wherein the information processing device is equipped with an operating system having a general-purpose printing program, and the general-purpose printing program supports a first compression method as a data compression method, and when a print instruction is output from an application program incorporated in the information processing device, the general-purpose printing program is instructed to cause the printer to print an image, the computer is configured to execute an acquisition process for acquiring intermediate data indicating the image to be printed by the print instruction from the general-purpose printing program, and a first determination process for determining whether a first condition corresponding to the printer is satisfied, and further, when it is determined in the first determination process that the first condition is satisfied, the computer is configured to execute a first print process for compressing print data based on the intermediate data acquired in the acquisition process using the first compression method by the general-purpose printing program, and processing for causing the printer to print based on the compressed print data,
[0007] The support program disclosed in this specification determines whether a first condition corresponding to a printer is satisfied. If it is determined that the first condition is satisfied, the support program causes the generic printing program to compress the print data using a first compression method supported by the generic printing program, and passes the compressed print data to the printer for printing. On the other hand, if it is determined that the first condition is not satisfied, the support program, for example, does not cause the generic printing program to compress the print data. This makes it possible to utilize the compression function of the generic printing program, and reduces the communication load by transmitting compressed print data.
[0008] An information processing device incorporating the above-mentioned support program, a computer-readable storage medium storing the support program, a control method for realizing the functions of the support program, and a printing system including the support program and a printer are also novel and useful. Effect of the Invention
[0009] The technology disclosed in this specification realizes a technology that can reduce the communication load by using a function for compressing print data for an information processing device in which a general-purpose print program that is standard for the OS is installed. [Brief description of the drawings]
[0010] [Figure 1] FIG. 2 is a block diagram showing an outline of the electrical configuration of a PC. [Diagram 2] FIG. 11 is a sequence diagram illustrating an example of a printing procedure. [Diagram 3] FIG. 11 is a sequence diagram illustrating an example of a decision compression procedure. [Figure 4] 13 is a flowchart illustrating an example of a procedure for a determination process. [Diagram 5] FIG. 11 is a sequence diagram illustrating an example of a printing procedure. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0011] Hereinafter, a personal computer (hereinafter, referred to as a "PC") using the support program of the present embodiment will be described in detail with reference to the accompanying drawings. This specification discloses a support program executed on a PC.
[0012] As shown in Fig. 1, the PC1 of this embodiment includes a controller 10 including a CPU 11 and a memory 12. The PC1 is an example of an information processing device. The CPU 11 is an example of a computer. The PC1 also includes a user interface (hereinafter referred to as "user IF") 13 and a communication interface (hereinafter referred to as "communication IF") 14, which are electrically connected to the controller 10. Note that the controller 10 in Fig. 1 is a collective term for hardware and software used to control the PC1, and does not necessarily represent a single piece of hardware actually present in the PC1.
[0013] The CPU 11 of the PC 1 executes various processes according to the programs read from the memory 12 and based on the user's operation. The memory 12 stores various programs and various data. The memory 12 is also used as a work area when various processes are executed. The buffer provided in the CPU 11 is also an example of a memory. Note that an example of the memory 12 is not limited to a ROM, RAM, HDD, etc. built into the PC 1, but may be a storage medium that can be read and written by the CPU 11, such as a recording medium such as a CD-ROM or DVD-ROM.
[0014] The user IF 13 includes a display 13a, which is hardware that displays a screen for notifying the user of information, and hardware that accepts operations by the user. The user IF 13 may be a combination of the display 13a capable of displaying information and a mouse, keyboard, or the like having an input acceptance function, or may be a touch panel having the function of the display 13a and the input acceptance function.
[0015] The communication IF 14 includes hardware for communicating with an external device such as the printer 2. The communication standards of the communication IF 14 include Ethernet (registered trademark), Wi-Fi (registered trademark), USB, etc. The PC 1 may be connectable to the Internet via the communication IF 14. The PC 1 may include multiple communication IFs 14 compatible with multiple communication standards.
[0016] 1, the memory 12 of the PC 1 stores various programs and data including an operating system (hereinafter referred to as "OS") 21 including a general-purpose print program 41, an auxiliary program 42, and an editing application 43. The auxiliary program 42 is an example of a support program. The editing application 43 is an example of an application program.
[0017] The OS 21 is a multitasking OS that can process multiple tasks in parallel by managing and switching between multiple tasks. Examples of the OS 21 include Windows (registered trademark), macOS (registered trademark), Linux (registered trademark), iOS (registered trademark), and Android (registered trademark).
[0018] The OS 21 includes a generic printing program 41. The generic printing program 41 is a standard OS program prepared by the OS 21 vendor and provided as part of the OS 21. In other words, the PC 1 is equipped with the OS 21 having the generic printing program 41. The generic printing program 41 is not configured to use a printer driver specific to each printer.
[0019] The generic printing program 41 is a program that has the function of printing on multiple models of printers provided by multiple vendors based on user instructions. The generic printing program 41 supports generic functions that allow printing on many printers. Unlike printer drivers specific to each printer, the generic printing program 41 does not support functions specific to each printer or printer driver, particularly functions that require complex processing.
[0020] The general-purpose printing program 41 is a program including a function of receiving image data designated as a print target in a print instruction output from various applications based on a user instruction, and generating intermediate image data based on the image data. The intermediate image data is, for example, XPS data. The general-purpose printing program 41 further has a function of generating print data in a format that can be used for printing by various printers based on the intermediate image data. The print data is, for example, PWGRaster data or PDF data. The general-purpose printing program 41 also has a function of transmitting the generated print data to a printer designated as a device to execute printing via a communication function of the OS 21.
[0021] The auxiliary program 42 is a program or a group of programs that executes processing based on instructions from the OS 21 in association with the processing of the general-purpose printing program 41, and is a program that supports the control of the target hardware. The auxiliary program 42 of this embodiment corresponds to the model of the printer 2 connected to the PC 1, and is provided, for example, by the vendor of the printer 2. The general-purpose printing program 41 starts the auxiliary program 42 corresponding to the printer 2 when the printer 2 is selected as the device that will execute printing, when an instruction for detailed print settings is received while the printer 2 is selected, when an instruction to execute printing on the printer 2 is received, etc. The auxiliary program 42 is, for example, called a print support app (abbreviated as PSA) or a hardware support app (abbreviated as HSA).
[0022] The auxiliary program 42 may be a combination of multiple programs that each accept an execution command, or a single program that can execute different processes according to commands. The auxiliary program may also be a program prepared by a printer vendor for each printer type. For example, an auxiliary program for inkjet printers and an auxiliary program for laser printers may be prepared. There may be an auxiliary program prepared not only for each printer type, but also for each printer model or series of printer models.
[0023] For example, when a new printer is connected to the PC 1, the OS 21 of the PC 1 can download an appropriate auxiliary program according to the type and model of the connected printer from a server of the printer vendor or the like and install it in the PC 1. The OS 21 stores in the memory 12 the identification information of the installed auxiliary program in association with the printer information of the newly connected printer.
[0024] The editing application 43 is, for example, a program for creating and editing image data and document data. The editing application 43 may be, for example, Microsoft's Word (registered trademark) or PowerPoint (registered trademark), or may be a program provided by the vendor of the printer 2. The editing application 43 can receive, for example, a print execution instruction for causing the printer 2 to execute printing via the user IF 13. Note that the editing application 43 is not limited to a program for creating and editing data, and may be a program having a function of receiving a display instruction or a print instruction for various information such as map information and web pages in response to a user request.
[0025] In this embodiment, the PC1 is connected to the printer 2 via the communication IF 14 as shown in FIG. 1. The printer 2 is a device having at least a printing function and a communication function. For example, when the printer 2 receives print data from the PC1 or the like, it can execute printing based on the received print data. The printer 2 may be a device capable of color printing, or may be a device capable of only monochrome printing.
[0026] Next, the procedure for causing the printer 2 to print in the PC 1 of this embodiment will be described. Note that each process in this embodiment basically indicates processing by the CPU 11 according to commands written in a program such as the auxiliary program 42. Processing by the CPU 11 also includes control of hardware using the API of the OS 21. In this specification, the operation of each program will be described without a detailed description of the OS 21. Also, "obtain" is used as a concept that does not require a request.
[0027] The printing procedure will be described with reference to the sequence diagram in Fig. 2. The editing application 43 accepts creation and editing of text and images based on user instructions. When the user wishes to print the text or image being displayed, the editing application 43 inputs an instruction to execute printing (A01). If the OS 21 includes the general-purpose printing program 41, the editing application 43 determines that it has accepted an execution instruction to cause the general-purpose printing program 41 to print the selected image on the printer 2.
[0028] The editing application 43 passes the received print instruction information to the general-purpose printing program 41 (A02). The general-purpose printing program 41 acquires, from the editing application 43, image data indicating an image to be printed and information indicating print settings as the print instruction information.
[0029] The general-purpose printing program 41 generates intermediate image data by converting the format of the image data of the image to be printed into the format of intermediate image data based on the information acquired from the editing application 43 (A03). The image data included in the editing application 43 is of various types, and the general-purpose printing program 41 converts the image data to be printed into intermediate image data suitable for generating print data. Note that if the image data to be printed is suitable for generating print data, the generation of the intermediate image data may be omitted and the intermediate image data may be used as is.
[0030] Note that, before generating the intermediate image data, the general-purpose printing program 41 may start an auxiliary program 42 corresponding to the designated device, the printer 2, to notify the start of print job processing. When the auxiliary program 42 is started from the general-purpose printing program 41, it can pass information indicating various instructions used when generating the intermediate image data to the general-purpose printing program 41 as necessary.
[0031] After generating the intermediate image data, the general-purpose printing program 41 starts the auxiliary program 42 (A04). The auxiliary program 42 can acquire the intermediate image data generated by the general-purpose printing program 41, for example, by making a request to the general-purpose printing program 41 (A05). A05 is an example of an acquisition process. The intermediate image data is an example of intermediate data.
[0032] When the auxiliary program 42 is started in response to the instruction of A04, it acquires the capability information of the printer 2. Specifically, the auxiliary program 42 requests the general-purpose printing program 41 to acquire the capability information (A06). The general-purpose printing program 41 sends a command requesting the capability information to the printer 2 and acquires the capability information from the printer 2 (A07). The general-purpose printing program 41 passes the acquired capability information to the auxiliary program 42 (A08). This allows the auxiliary program 42 to acquire the capability information of the printer 2.
[0033] In addition, the general-purpose printing program 41 communicates with the printer 2 in A07 via the OS 21, for example, by communication according to IPP (abbreviation of internet printing protocol). In addition, the auxiliary program 42 may obtain capability information directly from the printer 2, for example, by using MIB (abbreviation of Management Information Base), instead of making a request to the general-purpose printing program 41.
[0034] The capability information acquired from the printer 2 includes information on parameters that can be set as print settings, and information on compression methods that can be supported by the printer 2. The capability information may further include, for example, information on remaining amounts of consumables, information on selectable trays, paper information on paper set in each tray, and information on supported print resolutions. The printer 2 may also have a function of performing image processing based on a received print job and printing based on the data after image processing, such as a function of performing aggregate printing such as Nin1, composite printing such as watermarks, and economical printing that saves on coloring materials. If the printer 2 has an image processing function that can be executed by the printer 2, the printer 2 may pass capability information including information on the function. The printer 2 may also pass capability information including information indicating its own status.
[0035] The general-purpose printing program 41 also launches the auxiliary program 42 when, for example, an instruction for detailed print settings related to printing on the printer 2 is received. Even when the auxiliary program 42 is launched based on an instruction for detailed print settings, it can make a request to the general-purpose printing program 41 to acquire the capability information of the printer 2, as in A06 to A08. If the capability information of the printer 2 has already been acquired when launched in A04, the auxiliary program 42 does not need to acquire the capability information in A06 to A08.
[0036] The auxiliary program 42 edits the intermediate image data, if necessary, based on the accepted print settings and capability information of the printer 2 (A09). Furthermore, the auxiliary program 42 passes the intermediate image data to the general-purpose printing program 41 and requests the general-purpose printing program 41 to rasterize it (A11).
[0037] The general-purpose printing program 41 rasterizes the intermediate image data to generate raster data, which is bitmap data (A12). Furthermore, the general-purpose printing program 41 passes the generated raster data to the auxiliary program 42 (A13). As a result, the auxiliary program 42 obtains the raster data.
[0038] Note that the auxiliary program 42 may perform rasterization instead of the general-purpose printing program 41. In this case, the auxiliary program 42 executes rasterization based on the intermediate image data to generate raster data. Rasterization by the auxiliary program 42 allows greater freedom compared to rasterization by the general-purpose printing program 41, and is more likely to generate raster data suitable for printing by the printer 2. On the other hand, if rasterization is performed by the general-purpose printing program 41, the processing by the auxiliary program 42 is less, and the program size of the auxiliary program 42 can be reduced.
[0039] The auxiliary program 42 then encodes the raster data acquired in A13 into PDL data to generate print data (A15). The print data generated in A15 may be data in a format that can be printed by the printer 2. Note that the PDL data generated by the auxiliary program 42 may be data in a format that can be used for printing by printers other than the model of the printer 2.
[0040] The auxiliary program 42 executes a determination compression procedure (A16) before passing an instruction to send the print data to the printer 2 to the general-purpose print program 41. The determination compression procedure is a procedure for determining whether or not to compress the print data before sending it to the printer 2, and if so, whether to compress it by the auxiliary program 42 or the general-purpose print program 41, and further for executing the compression if it is to be compressed.
[0041] When the general-purpose printing program 41 receives an instruction to send print data, it has the function of compressing the print data using a predetermined compression method and sending the compressed print data. The compression method used by the general-purpose printing program 41 is an example of a first compression method. When the general-purpose printing program 41 has not received a notification that compression is not required, it compresses the print data before sending and sends the compressed print data to the specified destination printer. On the other hand, when a notification that compression is not required is received, the general-purpose printing program 41 does not compress the print data and sends the uncompressed print data to the printer.
[0042] The judgment compression procedure will be described with reference to the sequence diagram of Fig. 3. In the judgment compression procedure, the auxiliary program 42 first executes a judgment process (B01). The procedure of the judgment process will be described with reference to the flowchart of Fig. 4. This judgment process is executed by the CPU 11 of the PC 1 based on the auxiliary program 42.
[0043] In the determination process, the CPU 11 determines whether the printer 2 supports compressed print data (C01). The printer 2 supporting compressed print data means that the printer 2 has a function to decompress and print the print data if the received print data is compressed data.
[0044] There are several types of image data compression methods, such as gzip, gif, tiff, and png. Even if the printer 2 supports compressed print data, the compression methods that it can support may be limited. The printer 2 may be capable of supporting compressed data in a plurality of compression methods, or may be capable of supporting compressed data in only one compression method. When the printer 2 can support compressed data in a plurality of compression methods, the decompression speed of the printer 2 may differ depending on the compression method. Information on the compression methods that the printer 2 can support and information on the decompression time for each compression method may be included in the capability information of the printer 2, or may be previously stored in the auxiliary program 42 based on the model information of the printer 2, etc.
[0045] Furthermore, the information on the compression method and decompression speed of the printer 2 may be, for example, information provided by the vendor of the printer 2. For example, the auxiliary program 42 may be capable of acquiring various pieces of information from a server or the like based on model information of the printer 2. The information provided by the server or the like may be, for example, information acquired by the vendor of the printer 2 by actually measuring the decompression speed for each model.
[0046] If the printer 2 supports print data compressed with at least one compression method, the CPU 11 determines in C01 that the printer 2 supports compressed print data. If the CPU 11 determines that the printer 2 supports compressed print data, the CPU 11 further acquires information on all compression methods that the printer 2 can support and information on the decompression speed for each compression method in C01.
[0047] If it is determined that the printer 2 supports compressed print data (C01: YES), the CPU 11 determines whether the type of print data is suitable for compression (C02). The type of print data can be determined, for example, from the file format of the file that contains the print data. For example, if the raster data received from the general-purpose print program 41 at A13 in FIG. 2 is PWGRaster data, the CPU 11 determines that it is suitable for compression because compression is expected to sufficiently reduce the communication load.
[0048] If it is determined that the type of print data is suitable for compression (C02: YES), the CPU 11 determines whether the compression method of the general-purpose print program 41 is a compression method that can be supported by the printer 2 (C03). As described above, the general-purpose print program 41 compresses the print data using a predetermined compression method. Based on the information acquired in C01, the CPU 11 determines whether the compression method of the general-purpose print program 41 is included in the compression methods that can be supported by the printer 2.
[0049] If it is determined that the compression method used by the general-purpose printing program 41 is compatible with the printer 2 (C03: YES), the CPU 11 decides to perform compression using the general-purpose printing program 41 (C11). In this case, as described below, the auxiliary program 42 simply passes the print data to the general-purpose printing program 41, and the general-purpose printing program 41 compresses the print data using a predetermined compression method. The condition for which YES is determined in C03 is an example of a first condition. C03 is an example of a first determination process.
[0050] If the general-purpose printing program 41 is capable of executing a plurality of compression methods, the CPU 11 in C03 determines whether or not the plurality of compression methods includes a compression method that is compatible with the printer 2. If it is determined that the compression methods by the general-purpose printing program 41 include a compression method that is compatible with the printer 2, the auxiliary program 42 stores information specifying the compression method. Then, in a procedure to be described later, the auxiliary program 42 adds information specifying the compression method to the print data and passes it to the general-purpose printing program 41.
[0051] If it is determined that the compression method used by the general-purpose printing program 41 is not compatible with the printer 2 (C03: NO), the CPU 11 determines whether the amount of print data is large (C12).
[0052] If the printer 2 does not support the compression method used by the general-purpose printing program 41, there is a high possibility that the print data compressed by the general-purpose printing program 41 will not be printed properly when it is sent to the printer 2. In this case, the auxiliary program 42 decides not to perform compression by the general-purpose printing program 41. The auxiliary program 42 may decide, for example, to compress the data using the auxiliary program 42, or not to compress the data. This prevents errors from occurring in the printer 2. The auxiliary program 42 is a program compatible with the printer 2, and has a function of compressing the print data using a compression method compatible with the printer 2. The auxiliary program 42 may be capable of performing compression using a compression method different from the compression method used by the general-purpose printing program 41. The compression method used by the auxiliary program 42 is an example of a second compression method.
[0053] If it is determined that the amount of print data is large (C12: YES), the CPU 11 decides to perform compression using the auxiliary program 42 (C13). For example, the CPU 11 may use the decompression speed information described above to compare the sum of the time required for decompression and the transmission time of the compressed print data with the transmission time when the print data is transmitted without compression. For example, if it is expected that the total time will be shorter if the compressed print data is transmitted, the CPU 11 determines YES in C12.
[0054] Also, in C12, the CPU 11 may make a judgment based on, for example, the compression method and the amount of print data. For example, the data amount threshold for judging that the data amount is large in C12 may be different for each compression method. Also, for example, when the print resolution of the printer 2 is low or when the print data is a monochrome image, the CPU 11 may decide not to compress the data regardless of the amount of data. Also, in C12, the CPU 11 may make a judgment taking into account the time required for compression.
[0055] On the other hand, if it is determined that the amount of print data is not large (C12: NO), the CPU 11 decides not to compress (C14). If the size of the print data is small, the communication load will not be high. In other words, since small-sized print data takes less time to transmit, transmitting the data without compression eliminates the need for compression and decompression processing, and is likely to shorten the overall time required for the printout to be output. In addition, transmitting the data without compression reduces the processing load for compression. The condition for which NO is determined in C12 is an example of the second condition. C12 is an example of the second determination process.
[0056] Furthermore, if it is determined that the printer 2 does not support compressed print data (C01: NO), the CPU 11 decides not to compress the data (C14). If the printer 2 does not support compressed print data, the printer 2 cannot print based on the received print data when it receives compressed print data. Therefore, the CPU 11 determines that compression is unnecessary. The condition for which NO is determined in C01 is an example of the second condition. C01 is an example of the second determination process.
[0057] Furthermore, when it is determined that the type of print data is not suitable for compression (C02: NO), the CPU 11 decides not to compress it (C14). For example, when PDF data is generated as the print data in A15 of FIG. 2, the CPU 11 determines that it is not suitable for compression. The condition for which NO is determined in C02 is an example of the second condition. C02 is an example of the second determination process. If the printer 2 is capable of executing printing based on PDF data, the auxiliary program 42 can generate PDF data as the print data.
[0058] After any of C11, C13, and C14, the CPU 11 ends the determination process and returns to the procedure in Fig. 3. The determination result of the determination process is either that the general-purpose printing program 41 compresses, that the auxiliary program 42 compresses, or that no compression is performed.
[0059] Returning to the explanation of the determination compression procedure in Fig. 3, if it is determined in the determination process of B01 that compression should be performed by the auxiliary program 42 (alt: [Compress with auxiliary program]), the auxiliary program 42 determines the compression method (B11). The auxiliary program 42 may have already determined the compression method in C13 of the determination process. Furthermore, the auxiliary program 42 compresses the print data using the determined compression method (B12).
[0060] If the printer 2 can support only one compression method, the auxiliary program 42 compresses the data using that compression method. If the printer 2 can support multiple compression methods, the auxiliary program 42 determines the compression method based on, for example, the type of print data and the decompression speed.
[0061] The auxiliary program 42 notifies the general-purpose printing program 41 that compression is not required (B13), passes the compressed print data to the general-purpose printing program 41, and instructs it to send it to the printer 2 (B14). Since it has been notified that compression is not required, the general-purpose printing program 41 does not compress the print data received from the auxiliary program 42, and treats it as is as print data to be sent. B13 is an example of a first setting process. B14 is an example of a process for causing the printer 2 to print based on the print data compressed by the auxiliary program 42, and is an example of a second printing process.
[0062] If it is decided that compression should be performed by the auxiliary program 42, compression by the general-purpose printing program 41 is not necessary. When the general-purpose printing program 41 compresses print data as a normal operation, the auxiliary program 42 sets the general-purpose printing program 41 to not require compression, so that the general-purpose printing program 41 does not perform compression. Therefore, duplicate compression is avoided.
[0063] Furthermore, if it is determined in the determination process of B01 that the general-purpose printing program 41 should compress the data (alt: [Compress with general-purpose printing program]), the auxiliary program 42 passes the print data to the general-purpose printing program 41 without compressing it, and instructs it to send it to the printer 2 (B21). Since the general-purpose printing program 41 has not received a notification that compression is not required, it compresses the passed print data using a compression method provided by the general-purpose printing program 41 (B22). The general-purpose printing program 41 regards the compressed print data as the print data to be sent. B21 is an example of a process for causing the printer 2 to print based on the print data compressed by the general-purpose printing program 41, and is an example of a first print process.
[0064] If it is decided that compression should be performed by the general-purpose printing program 41, compression by the auxiliary program 42 is not necessary. When the general-purpose printing program 41 compresses print data as a normal operation, the auxiliary program 42 does not set "no compression required" and passes uncompressed print data to the general-purpose printing program 41. This causes the print data to be compressed by the general-purpose printing program 41. Note that, if the general-purpose printing program 41 has a compression function using multiple compression methods, the auxiliary program 42, as described above, adds information specifying the compression method and passes the print data to the general-purpose printing program 41 at B21.
[0065] Furthermore, if it is determined in the judgment process of B01 that compression is not required (alt: [Do not compress]), the auxiliary program 42 notifies the general-purpose printing program 41 that compression is not required (B31). Furthermore, the auxiliary program 42 passes the uncompressed print data to the general-purpose printing program 41 and instructs it to send it to the printer 2 (B32). Since it has been notified that compression is not required, the general-purpose printing program 41 does not compress the print data, and sets it as is as the print data to be sent. B31 is an example of a second setting process. B32 is an example of a process for causing the printer 2 to print based on the uncompressed print data, and is an example of a third printing process.
[0066] If it is decided not to compress, there is no need for compression by the general-purpose printing program 41. When the general-purpose printing program 41 compresses print data as a normal operation, the auxiliary program 42 sets the general-purpose printing program 41 to not require compression, so the general-purpose printing program 41 does not perform compression. Therefore, unnecessary compression is avoided.
[0067] Returning to the description of the printing procedure in Fig. 2, the general-purpose printing program 41, in response to an instruction from the auxiliary program 42, transmits to the printer 2 print data to be sent that has been prepared by any one of B14, B22, and B32 of the determination and compression procedure in Fig. 3, and instructs the printer 2 to print (A21). The printer 2 executes printing based on the received print data (A22).
[0068] If the received print data is compressed, the printer 2 decompresses the received print data and executes printing based on the decompressed print data. If the received print data is not compressed, the printer 2 executes printing based on the received print data. In this way, a printed matter based on the print instruction output from the editing application 43 is generated.
[0069] In this procedure, the print data is passed to the general-purpose print program 41, which then transmits it to the printer 2. Alternatively, the auxiliary program 42 may transmit a print command instructing printing to be performed and the print data to the printer 2. For example, when the print settings include settings related to image processing executable by the printer 2, the auxiliary program 42 may generate a print command that also includes information on that processing. In this case, the auxiliary program 42 may notify the general-purpose print program 41 of completion information after completing transmission of the print data.
[0070] Next, the printing procedure when the general-purpose printing program 41 has a pass-through function will be described with reference to the sequence diagram of FIG. 5. The pass-through function is a function that causes the general-purpose printing program 41 to directly use the image data received from the editing application 43 as print data without generating intermediate image data. The general-purpose printing program 41 that has the pass-through function can accept pass-through registration for a specified file format. When the general-purpose printing program 41 receives a file in a file format that accepts pass-through registration as image data to be printed, it does not generate intermediate image data. In the following description and FIG. 5, the same steps as those in FIG. 2 are assigned the same reference numerals to simplify the description.
[0071] If the general-purpose printing program 41 has a pass-through function, the auxiliary program 42 can instruct pass-through registration based on the capability information of the printer 2. For example, if the printer 2 can handle PDF data, the auxiliary program 42 instructs the general-purpose printing program 41 to register pass-through for the PDF format (D01). D01 is an example of a registration process. The printer 2 being able to handle PDF data means that when it receives PDF data as print data, the printer 2 has a function to execute printing based on the PDF data.
[0072] When the general-purpose printing program 41 receives information instructing registration of a pass-through in PDF format from the auxiliary program 42, it registers the PDF pass-through in association with the identification information of the auxiliary program 42 (D02).
[0073] The general-purpose printing program 41 receives a print instruction from the editing application 43 to cause the printer 2 to print (A01), and acquires image data to be printed. If PDF pass-through is registered in association with the auxiliary program 42 corresponding to the printer 2, and if the general-purpose printing program 41 receives a print instruction including PDF data as the image data to be printed, the general-purpose printing program 41 does not generate intermediate image data. The following describes the case where PDF pass-through has been registered and the image data is PDF data.
[0074] The auxiliary program 42 is started by the general-purpose printing program 41 (A04), and acquires PDF data instead of intermediate image data (D05). D05 is an example of an acquisition process. Furthermore, the auxiliary program 42 makes a request to the general-purpose printing program 41 (A06) to acquire capability information of the printer 2 (A07, A08). The auxiliary program 42 may edit the PDF data as necessary (D09).
[0075] If the printer 2 is compatible with PDF data and has acquired PDF data from the general-purpose printing program 41, the auxiliary program 42 can use the PDF data as print data. In this case, since the print data is PDF data, in the determination process of the determination compression procedure (B01 in FIG. 3, see FIG. 4), the CPU 11 determines that the type of print data is not suitable for compression (NO in C02) and decides not to compress it. The auxiliary program 42 then notifies the general-purpose printing program 41 that compression is not required (B31) and passes the PDF data (B32). The printer 2 being compatible with PDF data and having acquired PDF data in D05 is an example of the second condition.
[0076] If PDF pass-through is registered, the general-purpose printing program 41 sends the PDF data as print data to the printer 2 (A21). The printer 2 executes printing based on the PDF data (A22).
[0077] The general-purpose printing program 41 may be capable of accepting pass-through registration for a specified file format, not limited to PDF data. When the auxiliary program 42 instructs pass-through registration for a specified file format and acquires image data in the specified file format from the general-purpose printing program 41 as image data to be printed, the auxiliary program 42 may decide not to compress the image data. When pass-through registration is performed for a specified file format, image data in the specified file format needs to be passed to the printer 2, so that appropriate print data is sent to the printer 2 by not compressing the image data.
[0078] 5, the auxiliary program 42 is started (A04), but the general-purpose printing program 41 may be configured not to start the auxiliary program 42 when pass-through registration is stored. The general-purpose printing program 41 may be configured to store pass-through registration, and when image data in a predetermined file format that is the target of the pass-through is received from the editing application 43, not to start the auxiliary program 42 and to transmit the image data to the printer 2. If the general-purpose printing program 41 is configured to compress the received image data before transmission, the auxiliary program 42 may notify the general-purpose printing program 41 that compression is not required when performing pass-through registration for the PDF format.
[0079] Also, up to this point, it has been described that the general-purpose printing program 41 compresses the print data before sending if it has not received a notification that compression is not required, but it may be configured not to compress the print data if it has not received a notification. That is, the general-purpose printing program 41 may compress the print data before sending if it receives a notification to compress. In this configuration, if the general-purpose printing program 41 decides to compress the print data, the auxiliary program 42 notifies the general-purpose printing program 41 of the compression when passing the print data to the general-purpose printing program 41. Specifically, the determination compression procedure in FIG. 3 does not include the procedures B13 and B31, and a procedure is added before B21 in which the auxiliary program 42 passes a compression notification to the general-purpose printing program 41.
[0080] As described above in detail, the auxiliary program 42 of this embodiment determines whether or not the first condition indicating that the general-purpose printing program 41 should compress the print data is satisfied, for example, according to the capability information of the printer 2. If the first condition is satisfied, the auxiliary program 42 causes the general-purpose printing program 41 to compress the print data using the first compression method, and passes the compressed print data to the printer 2 for printing. On the other hand, if the first condition is not satisfied, the auxiliary program 42 does not cause the general-purpose printing program 41 to compress the print data using the first compression method. This utilizes the compression function of the general-purpose printing program 41, and reduces the communication load by transmitting compressed print data.
[0081] It should be noted that the embodiments disclosed in this specification are merely examples and do not limit the present invention in any way. Therefore, the technology disclosed in this specification can be naturally improved and modified in various ways without departing from the gist of the technology. For example, the device connected to PC1 is not limited to a printer, but may be any device having a printing function, such as a multifunction device, a copier, or a fax machine. Furthermore, the number of printers connected to PC1 is not limited to the illustrated example, and may be two or more.
[0082] In the printing procedure shown in FIG. 2, the auxiliary program 42 makes a decision on compression after generating the print data, but the timing of the decision is not limited to this. The auxiliary program 42 may make a decision, for example, when it acquires the capability information of the printer 2 (A08 in FIG. 2). The auxiliary program 42 may make a decision based on the intermediate image data when it acquires the intermediate image data from the general-purpose printing program 41 in a situation where the capability information of the printer 2 has been previously acquired (A05 in FIG. 2). The auxiliary program 42 may make a decision based on the raster data when it acquires the raster data from the general-purpose printing program 41 (A13 in FIG. 2). The auxiliary program 42 may be able to accept a user's selection of whether or not to compress.
[0083] Also, for example, the auxiliary program 42 may perform various processes depending on whether the print data is compressed or not. Depending on whether the print data is compressed or not, the auxiliary program 42 may change the editing content in editing the intermediate image data (A09 in FIG. 2), edit the raster data acquired in A13 in FIG. 2, and switch between performing rasterization by the general-purpose print program 41 or the auxiliary program 42.
[0084] In the embodiment, only the printing operation is described in detail as the operation of the auxiliary program 42, but the auxiliary program 42 may have other roles. The program that executes the process of the present embodiment is not limited to the auxiliary program 42, but may be any program that receives instructions from the OS 21 or the general-purpose print program 41 when printing is performed using the general-purpose print program 41. For example, it may be a print workflow application (Print workflow) whose specifications have been made public by Microsoft.
[0085] Furthermore, the execution timing of the auxiliary program 42 is not limited to that of the embodiment. For example, the auxiliary program 42 may be executed in response to a direct execution instruction from the OS 21, or the auxiliary program 42 may be resident. If the auxiliary program 42 is resident, it is sufficient that the auxiliary program 42 performs the above-mentioned operation upon receiving an execution command.
[0086] In addition, in any of the flowcharts disclosed in the embodiments, the order of execution of multiple processes in any of the steps can be arbitrarily changed or the processes can be executed in parallel as long as no contradiction occurs in the process content.
[0087] The processes disclosed in the embodiments may be executed by a single CPU, multiple CPUs, hardware such as ASIC, or a combination of these. The processes disclosed in the embodiments may be realized in various forms, such as a recording medium having a program for executing the processes recorded thereon, or a method. [Explanation of symbols]
[0088] 1 PC 2. Printer 11 CPU
Claims
1. A support program executable by a computer of an information processing device and corresponding to a printer connected to the information processing device, the information processing device being equipped with an operating system having a general-purpose printing program, the general-purpose printing program supporting a first compression method as a data compression method, The computer includes: When a print instruction is output from an application program installed in the information processing device, the print instruction is for causing the general-purpose print program to print an image on the printer, an acquisition process for acquiring intermediate data indicating the image to be printed in response to the print instruction from the general-purpose print program; a first determination process for determining whether a first condition corresponding to the printer is satisfied; Run the command, The computer further comprises: When it is determined in the first determination process that the first condition is satisfied, a first printing process is executed to compress print data based on the intermediate data acquired in the acquisition process using the first compression method by the general-purpose printing program, and to cause the printer to perform printing based on the compressed print data; A support program configured to:
2. 2. A support program as claimed in claim 1, The computer includes: when it is determined in the first determination process that the first condition is not satisfied, the general-purpose printing program is not caused to compress the print data based on the intermediate data acquired in the acquisition process by the first compression method. A support program configured to:
3. A support program according to claim 2, The computer includes: when it is determined in the first determination process that the first condition is not satisfied, a first setting process is executed for the general-purpose printing program to set "no compression required", and when "no compression required" is not set, the general-purpose printing program compresses the print data by the first compression method, and when "no compression required" is set, the general-purpose printing program does not compress the print data. A support program configured to:
4. 2. A support program as claimed in claim 1, The computer includes: When it is determined in the first determination process that the first condition is not satisfied, a second printing process is executed to compress print data based on the intermediate data acquired in the acquisition process using a second compression method that is compatible with the printer, and to cause the printer to perform printing based on the compressed print data; A support program configured to:
5. A support program according to claim 4, The computer includes: executes a second determination process for determining whether a second condition that makes compression of the print data unnecessary is satisfied when the print instruction is received; The computer further comprises: executing the second printing process when it is determined in the second determination process that the second condition is not satisfied and when it is determined in the first determination process that the first condition is not satisfied; executes the first printing process when it is determined in the second determination process that the second condition is not satisfied and when it is determined in the first determination process that the first condition is satisfied; executing a third printing process for causing the printer to print the print data based on the intermediate data acquired in the acquisition process, the print data being uncompressed, when it is determined in the second determination process that the second condition is satisfied; A support program configured to:
6. A support program according to claim 5, The second condition is that a size of the print data based on the intermediate data acquired in the acquisition process is smaller than a threshold value. A support program configured to:
7. A support program according to claim 5, The second condition is that the printer does not support compression. A support program configured to:
8. A support program according to claim 5, The computer includes: It is possible to execute a registration process for registering a specific file format in the general-purpose printing program as a file format for which the intermediate data is not generated, and when the registration process is executed, the general-purpose printing program executes a process for causing the printer to print based on the image data in the specific file format without generating the intermediate data when image data input as the image to be printed is in the specific file format, The computer further comprises: In the acquisition process, when the predetermined file format is registered in the general-purpose printing program as a file format for which the intermediate data is not generated, the image data in the predetermined file format is acquired from the general-purpose printing program instead of the intermediate data; The second condition is that the image data is acquired in the predetermined file format in the acquisition process. A support program configured to:
9. A support program according to claim 5, The second condition is that the printer is compatible with the print data in a predetermined file format, the print data based on the intermediate data acquired in the acquisition process is in the predetermined file format, and the predetermined file format is a file format that is not suitable for compression. A support program configured to:
10. A support program according to claim 9, The predetermined file format is PDF. A support program configured to:
11. A support program according to claim 5, The computer includes: when it is determined in the second determination process that the second condition is satisfied, a second setting process is executed for the general-purpose printing program to set "no compression required", and when "no compression required" is not set, the general-purpose printing program compresses the print data by the first compression method, and when "no compression required" is set, the general-purpose printing program does not compress the print data. A support program configured to:
12. A support program according to any one of claims 1 to 11, the first condition being that the printer is compatible with the first compression method; A support program configured to:
Citation Information
Patent Citations
Despooling backplane of print subsystem
JP2005196751A
Image processor, control method of initial installation information management system and program
JP2016052743A
Driver program and control method
JP2017045247A
Image forming method and image forming system
JP2022010485A
