CN102825925B - Duplex printing control method and device and duplex printing system - Google Patents
Duplex printing control method and device and duplex printing system Download PDFInfo
- Publication number
- CN102825925B CN102825925B CN201110162946.4A CN201110162946A CN102825925B CN 102825925 B CN102825925 B CN 102825925B CN 201110162946 A CN201110162946 A CN 201110162946A CN 102825925 B CN102825925 B CN 102825925B
- Authority
- CN
- China
- Prior art keywords
- data
- printing
- length
- print data
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 33
- 238000004891 communication Methods 0.000 description 9
- 238000010586 diagram Methods 0.000 description 8
- 230000000694 effects Effects 0.000 description 3
- 230000004048 modification Effects 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 238000004364 calculation method Methods 0.000 description 1
- 239000000470 constituent Substances 0.000 description 1
- 230000007547 defect Effects 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
Landscapes
- Record Information Processing For Printing (AREA)
Abstract
The invention discloses a duplex printing control method and device and a duplex printing system. The duplex printing control method comprises the following steps: generating first print data which are printed on the first surface of a printing medium; generating second print data matched with the first print data in the printing length, wherein the second print data are printed on the second surface of the printing medium; and printing the first print data and the second print data on the first surface and second surface of the printing medium respectively. By adopting the duplex printing control method and device and the duplex printing system, advertising information can be printed on the second surface of the length variable printing medium as much as possible.
Description
Technical Field
The invention relates to the field of printing, in particular to a double-sided printing control method and device and a double-sided printing system.
Background
Printers are widely used in supermarkets and malls to print details or invoices (hereinafter collectively referred to as receipts) for commodity transactions. Because the transaction detail or invoice can be used as a medium to convey information to the consumer, merchants typically print receipts using special print media that is blank on one side for real-time printing of transaction data and printed on the other side with predetermined advertising information for advertising merchandise. However, since the frequency of updating the advertisement information is high, and the plate making needs to be performed again every time the advertisement information is updated, the plate making cost is very expensive, and thus the manufacturing cost of the printing medium is very high. In order to solve the problem, chinese patent 200680016024.X discloses a duplex printer and a printing control method thereof, the duplex printer includes a first print head and a second print head, wherein the first print head is used for printing transaction data on a first side of a printing medium, and the second print head is used for printing advertisement or promotion information and the like on a second side of the printing medium.
Since the receipt length is proportional to the number of goods purchased by the customer, the receipt length is uncertain. In order to avoid that the length of the advertisement information printed at the time of transaction is not matched with the length of transaction data, the traditional double-sided printer generally adopts a method of printing the same advertisement in a circulating mode, but the method has the defects that the advertisement information is excessively repeated and the information quantity is insufficient.
Disclosure of Invention
The invention mainly aims to provide a double-sided printing control method and device and a double-sided printing system, and aims to solve the problem that in the prior art, when double-sided printing is carried out on a printing medium with a variable length, the second side of the printing medium is often insufficient in information amount printing due to the fact that the same advertisement is printed in a circulating mode.
In order to achieve the above object, according to one aspect of the present invention, there is provided a duplex printing control method. The duplex printing control method includes: generating first print data, wherein the first print data is used for printing on a first side of a printing medium; generating second print data matched with the print length of the first print data, wherein the second print data is used for printing on the second side of the printing medium; and printing the first print data and the second print data on the first side and the second side of the print medium, respectively.
Further, generating the second print data that matches the print length of the first print data includes: and searching data matched with the printing length of the first printing data in the database to serve as second printing data.
Further, searching for data matching the print length of the first print data in the database as the second print data includes: searching for a combined image matching the print length of the first print data in a combined image table; calling image data blocks forming the combined image from the image library according to the searched combined image; and generating second printing data according to the image data blocks, wherein the database comprises an image database, the image database is used for storing a plurality of preset image data blocks, and the combined image table is used for storing the corresponding relation between the combination of each image data block in the image database and the printing length thereof.
Further, searching for data matching the print length of the first print data in the database as the second print data includes: and searching data which is smaller than the printing length of the first printing data and has the minimum difference with the printing length of the first printing data in the database as second printing data.
Further, searching for data in the database that matches the print length of the first print data includes: judging whether the printing length unit of the first printing data is consistent with the printing length unit of the data in the database; when the printing length unit of the first printing data is determined to be consistent with the printing length unit of the data in the database, directly searching the data matched with the printing length of the first printing data in the database; and when the printing length unit of the first printing data is determined to be inconsistent with the printing length unit of the data in the database, firstly converting the printing length unit of the first printing data into consistency with the printing length unit of the data in the database, and then searching the data matched with the printing length of the first printing data in the database.
Further, the duplex printing control method is used for controlling a duplex printing system, wherein the duplex printing system comprises a host and a printer, and generating the first printing data comprises: generating first print data using a host, the generating second print data matching a print length of the first print data including: the host generates second printing data matched with the printing length of the first printing data; and the host computer sends the second printing data to the printer, or, generating the first printing data comprises: generating first print data by using a host; and the host computer sends the first print data to the printer, and generating second print data matched with the print length of the first print data comprises: the printer generates second print data that matches the print length of the first print data.
In order to achieve the above object, according to another aspect of the present invention, there is provided a duplex printing control apparatus. The duplex printing control apparatus includes: the printing device comprises a first generating module, a second generating module and a printing module, wherein the first generating module is used for generating first printing data, and the first printing data is used for printing on a first side of a printing medium; the second generation module is used for generating second printing data matched with the printing length of the first printing data, wherein the second printing data is used for printing on the second side of the printing medium; and a printing module for printing the first print data and the second print data on the first side and the second side of the printing medium, respectively.
Further, the second generating module is configured to search, in the database, data matching the print length of the first print data as second print data, and includes: a search sub-module for searching for a combined image matching the print length of the first print data in the combined image table; the calling submodule is used for calling the image data blocks forming the combined image from the image library according to the searched combined image; and a generation submodule for generating second print data from the image data block.
To achieve the above object, according to another aspect of the present invention, there is provided a duplex printing system. The duplex printing system includes: a first data generator for generating first print data for printing on a first side of a print medium; a second data generator for generating second print data matched with a print length of the first print data, wherein the second print data is for printing on a second side of the print medium; and a duplex printing section for printing the first print data and the second print data on the first side and the second side of the print medium, respectively.
Further, the double-sided printing system comprises a host and a printer, wherein the first data generator and the second data generator are positioned in the host, and the double-sided printing part is positioned in the printer; alternatively, the first data generator is located in the host, and the duplex printing section and the second data generator are located in the printer.
Further, the duplex printing system further includes: and a memory for storing a database, wherein the second data generator is for searching the database for data matching the print length of the first print data as the second print data.
Further, the memory is configured to store an image library and a combined image table, where the database includes an image map, the image library is configured to store a plurality of preset image data blocks, the combined image table is configured to store a corresponding relationship between a combination of each image data block in the image library and a print length thereof, and the second data generator is configured to generate the second print data by: searching for a combined image matching the print length of the first print data in a combined image table; calling image data blocks forming the combined image from the image library according to the searched combined image; and generating second print data from the image data block.
Generating first printing data by the invention, wherein the first printing data is used for printing on a first side of a printing medium; generating second print data matched with the print length of the first print data, wherein the second print data is used for printing on the second side of the printing medium; and printing the first print data and the second print data on the first surface and the second surface of the print medium respectively, wherein the print length of the second print data is matched with the print length of the first print data, so that the problem that the information quantity is not enough to be printed because the same advertisement is circularly printed on the second surface of the print medium when the double-sided printing is carried out on the print medium with the variable length in the prior art is solved, and the effect of printing as much advertisement information as possible on the second surface of the print medium with the variable length is further achieved.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this application, illustrate embodiments of the invention and, together with the description, serve to explain the invention and not to limit the invention. In the drawings:
fig. 1 is a schematic view of the internal composition of a printing system according to a first embodiment of the present invention;
FIG. 2 is a schematic diagram of the internal composition of a printing system according to a second embodiment of the present invention;
fig. 3 is a flowchart of a duplex printing control method of the printing system according to the first embodiment of the present invention;
fig. 4 is a flowchart of a duplex printing control method of a printing system according to a second embodiment of the present invention;
fig. 5 is a flowchart of a duplex printing control method of a printing system according to a third embodiment of the present invention;
fig. 6 is a flowchart of a duplex printing control method of a printing system according to a fourth embodiment of the present invention;
fig. 7 is a schematic diagram of a duplex printing control apparatus of the printing system according to the first embodiment of the present invention;
fig. 8 is a schematic diagram of a duplex printing control apparatus of a printing system according to a second embodiment of the present invention; and
fig. 9a and 9b are schematic diagrams of two combined images according to the invention with a media length between 10 and 11.
Detailed Description
It should be noted that the embodiments and features of the embodiments in the present application may be combined with each other without conflict. The present invention will be described in detail below with reference to the embodiments with reference to the attached drawings.
Fig. 1 is a schematic diagram of the internal components of a printing system according to a first embodiment of the present invention, and as shown in fig. 1, the printing system 20 includes a host computer 30 and a printer 40. The host 30 includes a controller 31 and a first data generator 32, where the controller 31 is configured to control each module in the host to perform work, such as controlling a communication interface (not shown in the figure) of the host to send data to a printer; a first data generator 32, configured to generate first print data, that is, print data printed on the first side of the print medium, such as transaction data, where the first print data may be data described in a printer language (referred to as printer language data for short), such as data described in a PDL language, data described in an ESC/P language, or the like, and may also be data in a raster format (referred to as raster data for short); the host computer 30 sends data 36, which includes first print data, to the printer 40 via a communication interface (not shown in the figures). The printer 40 includes a controller 41, a RAM memory 42, a database (e.g., an image library 43), a combined image table 44, and a duplex printing section 45, wherein the controller 41 controls the respective modules to perform operations, such as the controller 41 controlling a communication interface (not shown in the figure) of the printer to receive the data 36 transmitted from the host computer 30 and to temporarily store the received data 36 in the RAM memory 42, controlling the duplex printing section to print on the first and second sides of the print medium, and the like. The controller further comprises a second data generator 411, wherein the second data generator 411 is configured to generate second print data, i.e. print data printed on the second side of the print medium, such as advertisement information or the like. The second print data generated by the second data generator 411 is raster data. When the first print data is printer language data, the controller 41 also converts the first print data from the printer language data to raster data. And a RAM memory 42 for holding the data 36 received from the host and the second print data generated by the second data generator 411. The database is used for storing preset images or characters, when the database is the image database 43, the image database 43 is used for storing a plurality of preset image data blocks, each image data block generates one piece of advertisement information, and each image data block is stored in a raster format. The combined image table 44 is used for storing a corresponding relationship between a combination of each image data block in the image library 43 (referred to as a combined image for short) and a print length thereof, wherein the print length of the combined image refers to a length of a medium used when the combined image is printed, and can be represented by a unit of centimeter or millimeter, such as 10cm, or a unit of pixel row, such as 1020 rows, and the image library 43 and the combined image table 44 are usually stored in a nonvolatile memory (not shown in the figure) of a printer, such as a FLASH memory. And a duplex printing section 45 for printing the first print data and the second print data in the raster format on the first side and the second side of the medium, respectively. Preferably, the duplex printing part comprises a first printing head and a second printing head which are oppositely arranged, wherein the first printing head is used for printing the first printing data on the first side of the printing medium, and the second printing head is used for printing the second printing data on the second side of the printing medium. Preferably, the duplex printing part includes only the first print head, the controller 41 controls the first print head to print the first print data on the first side of the print medium, and then the controller 41 controls the first print head to rotate or the print medium to reverse, and then controls the first print head to print the second print data on the second side of the print medium.
Fig. 2 is a schematic diagram of the internal components of a printing system according to a second embodiment of the present invention. As shown in fig. 2, the printing system 20 includes a host computer 30 and a printer 40. The host 30 includes a controller 31, a first data generator 32, a third data generator 33, an image library 34, and a combined image table 35, wherein the controller 31 controls each module in the printer to perform work, for example, the controller 31 controls a communication interface (not shown in the figure) of the host to send data 36 to the printer, the first data generator 32 is used for generating first print data, and the third data generator 33 is used for generating second print data. When the first print data is printer language data, the controller 31 is also configured to convert the first print data from the printer language data to raster data. The image library 34 is used for storing a plurality of preset image data blocks, the combined image table 35 is used for storing the corresponding relationship between each combined image and the printing length thereof, and the image library 34 and the combined image table 35 are usually stored in a local hard disk (not shown) of the host computer, and may also be stored in other storage media such as a network hard disk. The host 30 sends data 36 'to the printer 40 via a communication interface (not shown in the figure), the data 36' including first print data and second print data; the printer 40 includes a controller 41, a RAM memory 42, and a duplex printing section 45, wherein the controller 41 controls each module to perform operations, for example, the controller 41 controls a communication interface (not shown) of the printer to receive data 36 'transmitted from the host computer 30, and stores the received data 36' temporarily in the RAM memory 42, controls the duplex printing section 45 to print on the first side and the second side of the print medium, and the like. A RAM memory 42 for holding data 36' received from the host; and a duplex printing section 45 for printing the first print data and the second print data in the raster data format on the first side and the second side of the medium, respectively.
Fig. 3 is a flowchart of a duplex printing control method of the printing system according to the first embodiment of the present invention, as shown in fig. 3, the method including the steps of:
step S11, first print data is generated, wherein the first print data is for printing on a first side of a print medium.
Step S12, generating second print data matching the print length of the first print data, wherein the second print data is for printing on the second side of the print medium.
In this step, when generating second print data matching the print length of the first print data, the second print data is searched in a preset memory or a database, where the database is used to store preset images or characters, and preferably, the generating of the second print data matching the print length of the first print data includes: and searching data matched with the printing length of the first printing data in the database to serve as second printing data. By adopting the search method, the second print data can be quickly generated.
Further preferably, searching for data matching the print length of the first print data in the database as the second print data includes: searching for a combined image matching the print length of the first print data in a combined image table; calling image data blocks forming the combined image from the image library according to the searched combined image; and generating second printing data according to the image data blocks, wherein the image database is used for storing a plurality of preset image data blocks, and the combined image table is used for storing the corresponding relation between the combination of each image data block in the image database and the printing length thereof.
Searching for data matching the print length of the first print data in the database, and as the second print data, may further include: and searching data which is smaller than the printing length of the first printing data and has the minimum difference with the printing length of the first printing data in the database as second printing data.
The searching for data in the database that matches the print length of the first print data may include: judging whether the printing length unit of the first printing data is consistent with the printing length unit of the data in the database; when the printing length unit of the first printing data is determined to be consistent with the printing length unit of the data in the database, directly searching the data matched with the printing length of the first printing data in the database; and when the printing length unit of the first printing data is determined to be inconsistent with the printing length unit of the data in the database, firstly converting the printing length unit of the first printing data into consistency with the printing length unit of the data in the database, and then searching the data matched with the printing length of the first printing data in the database.
In step S13, first print data and second print data are printed on the first side and the second side of the print medium, respectively.
The duplex printing control method can be used for controlling a duplex printing system, wherein the duplex printing system comprises a host and a printer, and the generating of the first printing data comprises: generating first print data using a host, the generating second print data matching a print length of the first print data including: the host generates second printing data matched with the printing length of the first printing data; and the host computer sends the second printing data to the printer, or, generating the first printing data comprises: generating first print data by using a host; and the host computer sends the first print data to the printer, and generating second print data matched with the print length of the first print data comprises: the printer generates second print data that matches the print length of the first print data.
Fig. 4 is a flowchart of a duplex printing control method of a printing system according to a second embodiment of the present invention, and the specific processing procedure is as follows:
step S21, generating first printing data
First print data is generated by a first data generator of the host, the first print data is usually real-time transaction details, and the first print data can be printer language data, raster data and the like.
Step S22, searching the matched combined image in the combined image table according to the printing length of the first printing data to generate the second printing data
The print length of the first print data refers to the length of the print medium used when the first print data is printed, and may be expressed in units of centimeters and millimeters, such as 10.2cm, or in units of pixel line numbers, such as 1000 lines. The print length of the first print data and the print length of the combined image in the combined image table are in the same unit. And searching a combined image matched with the length in the combined image table according to the printing length of the first printing data, wherein the matching means that the combined image can be completely printed on the printing medium with the length, and the blank area remained on the printing medium is minimum after the combined image is printed.
Table 1 is an image table stored in an image library according to an embodiment of the present invention, which indicates a case where image data blocks of four images are stored in the image library.
TABLE 1
As shown in Table 1, image A has a print length of 2cm, the corresponding image file is imageA, image B has a print length of 3cm, the corresponding image file is imageB, image C has a print length of 5cm, the corresponding image file is imageC, image D has a print length of 8cm, and the corresponding image file is imageD.
Table 2 is a combined-image table according to the present invention, which is a combined-image table corresponding to the image database shown in table 1.
TABLE 2
As shown in table 2, the composition of the combined images and the correspondence relationship between each combined image and its print length are recorded in the table. Therefore, a combined image matching the print length of the first print data is searched for in the combined image table according to the print length of the first print data, the print length of the combined image matching the print length of the first print data. And calling each image data block forming the combined image from the image database according to the table lookup result to generate second printing data in a raster format.
The second printing data can be generated by the host computer or the printer, and when the second printing data is generated by the host computer, the image library and the combined image table are stored in the host computer; when the second print data is generated by the printer, the image library and the combined image table are stored in the printer.
In step S23, the first print data is printed on the first side of the print medium and the second print data is printed on the second side of the print medium.
A duplex printing section of the printer prints first print data on a first side of a medium and second print data on a second side of the medium. When the first print data is printer language data, the controller of the printer needs to convert the first print data from the printer language data to raster data and then print the raster data. When the double-sided printing part comprises a first printing head and a second printing head, printing first printing data on the first side of the medium by the first printing head, and printing second printing data on the second side of the medium by the second printing head; when the double-sided printing part only comprises the first printing head, the controller controls the first printing head to print first printing data on the first side of the printing medium, and then the controller controls the first printing head to rotate or the printing medium to reverse, and then controls the first printing head to print second printing data on the second side of the printing medium.
The matched combined image is searched in the combined image table according to the printing length of the first printing data to generate second printing data, more different images (namely advertisement information) can be printed on the second side of the printing medium, the blank area left on the second side of the printing medium is minimized, and the information printing utilization rate of the second side of the medium is improved.
Fig. 5 is a flowchart of a duplex printing control method of a printing system according to a third embodiment of the present invention, and the specific processing procedure is as follows:
in step S31, the first data generator generates first print data
The first data generator 32 of the host generates first print data, which is usually real-time transaction details, and the first print data may be printer language data, raster data, or the like.
In step S32, the host computer transmits the first print data to the printer.
The host computer sends the first printing data to the printer through the communication interface.
Step S33, the printer receives the first print data
The printer receives the first print data sent by the host computer and stores the received first print data in the RAM memory.
In step S34, the printer looks up the matching combined image in the combined image table according to the print length of the first print data to generate second print data.
The printer analyzes the first print data stored in the RAM memory, and if the first print data is data expressed in the printer language, the controller 41 is further required to perform instruction processing on the first print data to generate raster data; if the first print data is raster data, no instruction processing is required. The controller 41 calculates a print length of the first print data according to the data amount of the first print data. The specific calculation method is that, assuming that the data amount of the first print data is S bytes, the data amount of one pixel line is Si bytes, and the print length of the first print data is L, L is S/Si (line); if the print length per pixel line is li (cm), L ═ S/Si × li (cm). Preferably, the print length of the first print data and the print length unit of the combined image in the combined image table coincide. The controller searches the combined image table for a combined image matching the print length thereof according to the print length of the first print data. If the print length of the first print data and the print length unit of the combined image in the combined image table do not coincide, the controller 41 also switches the units of both to coincide before the table lookup. The second data generator 411 retrieves, from the image library 43, each image data block constituting the combined image according to the searched combined image, and generates second print data from each image data block, where the generated second print data is raster data.
A specific step of looking up a matching combined image in the combined image table according to the print length of the first print data to generate the second print data is described below with reference to table 1 and table 2. When the print length of the first print data is 10.2cm, it is known by referring to the print length column of the combined image table that the print length of the first print data matches the combined image (a + D) and the combined image (a + B + C) of the seventh row in the combined image table having a print length of 10cm, wherein the controller may randomly select one from the combined image (a + D) and the combined image (a + B + C) as the combined image for generating the second print data. The controller calls each image data block forming the combined image from the image database to generate second printing data in a raster format. When the controller selects the combined image (a + D), the second print data is (ImgA + Img D). When the combined image (a + B + C) is used, the printing effect is as shown in fig. 9a, the length La of the image a is 2, the length Lb of the image B is 3, the length Lc of the image C is 5, and a blank area of 0.2cm (i.e., L-La-Lb-Lc) exists on the printing medium 54; when the combined image (a + D) is used, the printing effect is as shown in fig. 9b, the length La of the image a is 2, and the length Ld of the image D is 8; there is a blank area of 0.2cm (i.e., L-La-Ld) on the print medium 54.
In step S35, the printer prints the first print data on the first side of the print medium and prints the second print data on the second side of the print medium.
A duplex printing section of the printer prints first print data on a first side of a print medium and second print data on a second side of the print medium.
Fig. 6 is a flowchart of a duplex printing control method of a printing system according to a fourth embodiment of the present invention, and the specific processing procedure is as follows:
in step S41, the first data generator generates first print data
The first data generator 32 of the host generates first print data, which is usually real-time transaction details, and the first print data may be printer language data, raster data, or the like.
In step S42, the host computer looks up the matching combined image in the combined image table according to the print length of the first print data to generate second print data.
The controller 31 analyzes the first print data, and if the first print data is data expressed in the printer language, the first print data is also required to be subjected to instruction processing to generate raster data. The controller 31 calculates the print length of the first print data according to the data amount of the first print data in the raster format, and after finding the matched combined image in the combined image table 35 according to the print length of the first print data, the third generator 33 replaces the component image in the combined image with the image data block in the image database 34 to generate the second print data in the raster format.
In step S43, the host computer transmits the first print data and the second print data to the printer.
The host computer transmits the first print data generated by the first generator and the second print data generated by the third generator to the printer via the communication interface. When the first printing data and the second printing data are transmitted between the host and the printer through the same data channel (such as a serial port, or the same parallel port, or the same network interface), the host distinguishes the first printing data from the second printing data by setting an identification bit in the data, for example, the identification bit 1B indicates that the transmitted data is the first printing data, and the identification bit 1C indicates that the transmitted data is the second printing data. When data are transmitted between the host and the printer through different data channels, the host distinguishes the first print data and the second print data through the data channels.
In step S44, the printer receives the first print data and the second print data and prints the first print data and the second print data on the first side and the second side of the medium, respectively.
The printer receives the first printing data and the second printing data sent by the host computer through the communication interface, and temporarily stores the received data in the RAM memory. When the first printing data and the second printing data are transmitted between the host computer and the printer through the same data channel, the printer distinguishes the first printing data and the second printing data by identifying the received data identification bits. When data are transmitted between the host computer and the printer through different data channels, the printer distinguishes the first printing data and the second printing data according to the received data channels, and respectively stores the first printing data and the second printing data into different storage areas of the RAM memory. A duplex printing unit of a printer prints raster first print data printed on a first side of a medium and raster second print data printed on a second side of the medium.
Table 3 is a table of various intermediate combined images when images stored in the image library are combined according to the present invention.
The generation process of the combined image table will be specifically described with reference to table 3, where n represents the total number of images in the image library, i represents the number of constituent images in the combined image, and the value range is (1 ≦ i ≦ n).
TABLE 3
Firstly, i images are selected from n images to be combined to generate a combination …、Taking the four images A, B, C, D shown in Table 1 as an example for combinationWherein n is 4 and i is from 1 to 4, are combinedComprises a combinationFor simplification of explanation, a length unit is omitted in the print length of the image. When one image is selected from the four images, a combination is generatedAs shown in the second column of table 3, four combinations, A, B, C, D; when two images are selected from the four images, a combination is generatedAs shown in the third column of table 3, six combinations are included, namely combinations (a + B), (a + C), (a + D), (B + C), (B + D), (C + D); generating a combination when selecting three images from four imagesAs shown in the fourth column of table 3, four combinations are included, namely (a + B + C), (a + B + D), (a + C + D), (B + C + D); when four images are selected from the four images, a combination is generatedAs shown in the fifth column of Table 3, only one combination, namely combination (A + B + C + D), is included.
Then, according to the printing lengthIs counted to generate a combined image corresponding to each print length, wherein the number of the combined images is (2)n1) and as shown in Table 3, the first column includes 11 print lengths, corresponding to 15 (i.e., 2)4-1) combining the images.
Finally, the print lengths are sorted in order from small to large to generate a combined image table, which is shown in table 2, taking the four images A, B, C, D in table 1 as an example for combination, where the first column includes 11 print lengths and the second column includes 15 combined images.
The embodiment of the invention also provides a double-sided printing control device. It should be noted that the duplex printing control apparatus provided by the embodiment of the present invention may be used to execute any duplex printing control method provided by the embodiment of the present invention.
Fig. 7 is a schematic diagram of a duplex printing control apparatus of a printing system according to a first embodiment of the present invention, which includes, as shown in fig. 7:
a first generating module 81 for generating first print data for printing on a first side of a print medium;
a second generating module 82, configured to generate second print data that matches a print length of the first print data, where the second print data is used for printing on a second side of the print medium; and
and a printing module 83 for printing the first print data and the second print data on the first side and the second side of the printing medium, respectively.
Fig. 8 is a schematic diagram of a duplex printing control apparatus of a printing system according to a second embodiment of the present invention, in which a second generation module is further configured to search a database for data matching the print length of the first print data as second print data, as shown in fig. 8, the second generation module 82 includes:
a search sub-module 821 for searching for a combined image matching the print length of the first print data in the combined image table;
the retrieval submodule 822 is used for retrieving image data blocks forming the combined image from the image library according to the searched combined image; and
the generation submodule 823 is configured to generate second print data from the image data block.
It will be apparent to those skilled in the art that the modules or steps of the present invention described above may be implemented by a general purpose computing device, they may be centralized on a single computing device or distributed across a network of multiple computing devices, and they may alternatively be implemented by program code executable by a computing device, such that they may be stored in a storage device and executed by a computing device, or fabricated separately as individual integrated circuit modules, or fabricated as a single integrated circuit module from multiple modules or steps. Thus, the present invention is not limited to any specific combination of hardware and software.
The invention inquires the matched combined image in the pre-generated combined image table according to the printing length of the first printing data to generate the second printing data, thereby leading the printing length of the second printing data to change along with the change of the printing length of the first printing data, being capable of utilizing the second surface of the printing medium to the maximum extent to print more images (namely advertisement information), leading the blank area remained on the second surface of the printing medium to be the minimum and improving the utilization rate of the second surface of the printing medium.
The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.
Claims (7)
1. A duplex printing control method characterized by comprising:
generating first print data, wherein the first print data is used for printing on a first side of a printing medium;
generating second print data matched with the print length of the first print data, wherein the second print data is used for printing on a second side of a printing medium; and
printing the first print data and the second print data on a first side and a second side of a printing medium, respectively,
wherein generating second print data that matches a print length of the first print data includes: searching for data matching the print length of the first print data in a database as the second print data,
wherein, searching for data matched with the printing length of the first printing data in a database as the second printing data comprises: searching for a combined image matching the print length of the first print data in a combined image table; calling image data blocks forming the combined image from an image library according to the searched combined image; and generating the second printing data according to the image data blocks, wherein the database comprises an image database, the image database is used for storing a plurality of preset image data blocks, and the combined image table is used for storing the corresponding relation between the combination of each image data block in the image database and the printing length thereof.
2. The duplex printing control method according to claim 1, wherein searching for data matching a print length of the first print data in a database as the second print data includes:
and searching data which is smaller than the printing length of the first printing data and has the smallest difference with the printing length of the first printing data in the database to serve as the second printing data.
3. The duplex printing control method according to claim 1, wherein the searching for data matching the print length of the first print data in the database includes:
judging whether the printing length unit of the first printing data is consistent with the printing length unit of the data in the database;
when the printing length unit of the first printing data is determined to be consistent with the printing length unit of the data in the database, directly searching the data matched with the printing length of the first printing data in the database; and
when the printing length unit of the first printing data is determined to be inconsistent with the printing length unit of the data in the database, firstly, the printing length unit of the first printing data and the printing length unit of the data in the database are converted into consistency, and then the data matched with the printing length of the first printing data is searched in the database.
4. The duplex printing control method according to claim 1, for controlling a duplex printing system, wherein,
the double-sided printing system comprises a host and a printer, and is characterized in that,
generating the first print data includes:
generating the first print data using a host computer,
generating second print data that matches the print length of the first print data includes:
the host generates second printing data matched with the printing length of the first printing data;
and
the host computer sending the second print data to the printer,
or,
generating the first print data includes:
generating the first print data with a host; and
the host sends the first print data to the printer,
generating second print data that matches the print length of the first print data includes:
the printer generates second print data matching a print length of the first print data.
5. A duplex printing control apparatus characterized by comprising:
the printing device comprises a first generating module, a second generating module and a printing module, wherein the first generating module is used for generating first printing data, and the first printing data is used for printing on a first side of a printing medium;
a second generating module, configured to generate second print data that matches a print length of the first print data, where the second print data is used for printing on a second side of a print medium; and
a printing module for printing the first print data and the second print data on a first side and a second side of a printing medium, respectively,
the second generating module is configured to search, in a database, data that matches the print length of the first print data, as the second print data, and includes: a search sub-module for searching for a combined image matching a print length of the first print data in a combined image table; the calling submodule is used for calling the image data blocks forming the combined image from the image library according to the searched combined image; and the generation submodule is used for generating the second printing data according to the image data block.
6. A duplex printing system, characterized by comprising:
a first data generator for generating first print data for printing on a first side of a print medium;
a second data generator for generating second print data matching a print length of the first print data, wherein the second print data is for printing on a second side of a print medium; and
a duplex printing section for printing the first print data and the second print data on a first side and a second side of a print medium, respectively;
a memory for storing a database, wherein the second data generator is configured to search the database for data matching a print length of the first print data as the second print data,
wherein, the memory is used for storing an image database and a combined image table, wherein, the database comprises the image database, the image database is used for storing a plurality of preset image data blocks, the combined image table is used for storing the corresponding relation between the combination of each image data block in the image database and the printing length thereof,
wherein the second data generator is to generate the second print data by: searching for a combined image matching the print length of the first print data in a combined image table; calling image data blocks forming the combined image from an image library according to the searched combined image; and generating the second printing data according to the image data block.
7. The duplex printing system of claim 6 comprising a host and a printer,
the first data generator and the second data generator are positioned in the host machine, and the double-sided printing part is positioned in the printer; or,
the first data generator is located in the main body, and the duplex printing section and the second data generator are located in the printer.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201110162946.4A CN102825925B (en) | 2011-06-16 | 2011-06-16 | Duplex printing control method and device and duplex printing system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201110162946.4A CN102825925B (en) | 2011-06-16 | 2011-06-16 | Duplex printing control method and device and duplex printing system |
Publications (2)
Publication Number | Publication Date |
---|---|
CN102825925A CN102825925A (en) | 2012-12-19 |
CN102825925B true CN102825925B (en) | 2015-03-11 |
Family
ID=47329324
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201110162946.4A Active CN102825925B (en) | 2011-06-16 | 2011-06-16 | Duplex printing control method and device and duplex printing system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN102825925B (en) |
Families Citing this family (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2015074208A (en) * | 2013-10-11 | 2015-04-20 | キヤノン株式会社 | Image forming apparatus, image forming apparatus control method, and program |
CN105082785A (en) * | 2015-08-11 | 2015-11-25 | 安徽远鸿机械自动化有限公司 | Double-sided printing method of packing machine |
CN107481456A (en) * | 2017-07-28 | 2017-12-15 | 广州市中崎商业机器股份有限公司 | Smart ads system and method based on duplex printer |
CN115320265A (en) * | 2022-07-18 | 2022-11-11 | 北京博源恒芯科技股份有限公司 | Double-sided asynchronous printing control method and device and printer |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1979409A (en) * | 2005-12-07 | 2007-06-13 | 三星电子株式会社 | Image forming method and image processing apparatus |
CN101042774A (en) * | 2007-01-12 | 2007-09-26 | 林辅添 | Method for making electronic card for new year |
CN101522423A (en) * | 2005-12-07 | 2009-09-02 | 凯特琳娜销售公司 | Combination printer and its paper |
CN101578180A (en) * | 2006-12-28 | 2009-11-11 | 爱克发印艺公司 | Real-time synchronisation of front and back side printing in double-sided web printing |
Family Cites Families (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2000029655A (en) * | 1998-07-13 | 2000-01-28 | Fujitsu Ltd | Printing device and recording medium |
JP2006129342A (en) * | 2004-11-01 | 2006-05-18 | Murata Mach Ltd | Print data generating device, printer, and printing system |
JP2008188874A (en) * | 2007-02-05 | 2008-08-21 | Seiko Instruments Inc | Method and printer for making double-sided printed matter |
JP5012459B2 (en) * | 2007-11-30 | 2012-08-29 | セイコーエプソン株式会社 | Printing apparatus and printing apparatus control method |
-
2011
- 2011-06-16 CN CN201110162946.4A patent/CN102825925B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1979409A (en) * | 2005-12-07 | 2007-06-13 | 三星电子株式会社 | Image forming method and image processing apparatus |
CN101522423A (en) * | 2005-12-07 | 2009-09-02 | 凯特琳娜销售公司 | Combination printer and its paper |
CN101578180A (en) * | 2006-12-28 | 2009-11-11 | 爱克发印艺公司 | Real-time synchronisation of front and back side printing in double-sided web printing |
CN101042774A (en) * | 2007-01-12 | 2007-09-26 | 林辅添 | Method for making electronic card for new year |
Also Published As
Publication number | Publication date |
---|---|
CN102825925A (en) | 2012-12-19 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN102825925B (en) | Duplex printing control method and device and duplex printing system | |
US8233180B2 (en) | Methods for automatically determining workflow for print jobs | |
US7936469B2 (en) | System and method for distributed printer processing | |
US20070008567A1 (en) | Driver of server managing image forming device drivers, and data printing method using the same | |
CN104933051B (en) | File storage recovery method and device | |
CN108829363A (en) | Business voucher Method of printing and device | |
JP5929431B2 (en) | Image recording apparatus, control method for image recording apparatus, and control program | |
CN105930109A (en) | Document printing method, system and terminal | |
US20200184863A1 (en) | System and method for targeted advertising based on the back of cash register paper | |
CN107562803A (en) | Data supply system and method, terminal | |
US20170039138A1 (en) | Information processing system, information processing method, and recording medium storing an information processing program | |
CN101526925A (en) | Processing method of caching data and data storage system | |
US20040136028A1 (en) | Method and system for workload balancing | |
US20130215471A1 (en) | Determining imposition of printable objects | |
CN101859387A (en) | Image processing apparatus, image forming apparatus, image processing method and program | |
US9925804B2 (en) | Printing independent images by sharing printer heads | |
US20100079788A1 (en) | Variable data printing method utilizing multiple printers | |
US8665476B2 (en) | Integration of pre-printed insert page images with print previews | |
CN117434805A (en) | Image forming apparatus, control method for controlling image forming apparatus, and storage medium | |
US20140362398A1 (en) | Mechanism for Tracking Print Job Segments | |
US8879084B1 (en) | Printing system and printing method | |
CN103336673A (en) | Method and device for repeatedly storing massive files in self-service device | |
CN105308554A (en) | Data transfer system, method of transferring data, and system | |
CN107092451A (en) | Printing device, storage medium and controller | |
CN109585000B (en) | Printing method, device and system for medical film |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant |