Printing control method, device and system
Technical Field
The present invention relates to the field of printing technologies, and in particular, to a method, an apparatus, and a system for controlling printing.
Background
With the wide application of computers in graphic or word processing, printers are becoming more and more popular, and people can conveniently output characters or graphics in computers to pictures through the printers.
In the current printing system, a printer issues a printing instruction through a computer, and the printer prints information transmitted by the computer. Common printers include ink jet printers that print using a nozzle and laser printers that print electrostatically using a laser beam and a photoreceptor drum. Inkjet printers are widely used in the field of industrial printing because of their low price.
In a common printing scene, such as a printing process of a CAD picture, CAD software is usually directly connected to a desktop office printer nozzle for printing and outputting, and no processing is performed on printing data, which may cause the above problems to be more serious, and may easily cause the following problems:
1. the size of the printed image is limited, and the requirement of large-size output cannot be met;
2. the precision is low, if the original file size is large, and the output size is small, the detail part is blurred during output.
Disclosure of Invention
The invention mainly aims to provide a printing control method, a printing control device and a printing control system, and aims to solve the technical problems that the existing printing image is low in precision and cannot meet large-format printing output.
To achieve the above object, an aspect of the present invention provides a print control method including:
a print control method, characterized in that the method comprises:
the virtual printer acquires printing data and sends the printing data to the raster image processor;
the raster image processor performs color correction and gridding processing on the printing data and sends the processed printing data to a printing control module;
and the printing control module controls the printer nozzle to print according to the processed printing data.
Further, the print data includes: the data head records precision size information of the image, and the data content records data information of each pixel point of the image.
Further, the step of acquiring the print data by the virtual printer and sending the print data to the raster image processor includes:
the virtual printer acquires the CAD image data according to the CAD calling instruction, and performs scaling processing with preset precision on the CAD image data;
the scaled CAD image data is sent to the raster image processor in the form of image matrix data.
Further, the raster image processor performing color correction and gridding processing on the print data includes:
acquiring the printer model, color combination, printing scheme, algorithm type for setting raster data and file output mode of the printing data by the raster image processor;
performing color correction and gridding processing on the printing data according to the printer model, the color combination, the printing scheme, the algorithm type used for setting the rasterization data and the file output mode;
and outputting the processed printing data to the printing control module.
Further, the file output method includes:
directly outputting the data to a printing control module;
or, the generated print driver file is stored locally and then sent to the print control module.
Further, the step of controlling the printer nozzle to print by the print control module according to the processed print data includes:
loading, acquiring and processing the printing data;
and controlling a printer nozzle to print and output according to the data head and the data content of the printing data.
Further, the outputting of the processed print data to the print control module is divided into two cases:
if the raster image processor directly outputs the processed printing data, the printing control module directly acquires the processed printing data and controls a printer nozzle to print according to the processed printing data;
and if the raster image processor stores the processed printing data into a printing drive file, the printing drive file is sent to the printing control module, the printing control module loads the printing drive file to acquire the processed printing data, and the printer nozzle is controlled to print according to the processed printing data.
The invention also provides a printing control device, which is used for controlling a printer nozzle to print and comprises:
the virtual printer is used for acquiring printing data and sending the printing data to the raster image processor;
the raster image processor is used for carrying out color correction and gridding processing on the printing data and sending the processed printing data to the printing control module;
and the printing control module is used for controlling the printer nozzle to print according to the processed printing data.
Further, the print data includes: the data head records precision size information of the image, and the data content records data information of each pixel point of the image.
Another aspect of the present invention also provides a printing system, including: a printer and the print control apparatus described above.
According to the printing control method, the printing control device and the printing control system, the printing content comprises the data head and the data content, wherein the data head records the precision size information of the image, and the data content records the data information of each pixel point of the image. The virtual printer can directly obtain the content of the file to be printed; the raster image processor can ensure the color and the precision of the output file through color correction and screening processing, and finally used printers are not limited to desktop office printers, but also can be large-format photo machines, inkjet printers, flat-plate machines and the like, so that the requirement of large-format output is met.
Drawings
Fig. 1 is a flowchart of a printing control method according to an embodiment of the present invention;
FIG. 2 is a schematic diagram of a task list of a virtual printer according to an embodiment of the present invention;
FIG. 3 is a diagram illustrating a print setting selection box according to an embodiment of the present invention;
FIG. 4 is a flowchart of a printing control method according to a second embodiment of the present invention;
fig. 5 is a schematic structural diagram of a print control apparatus according to a third embodiment of the present invention.
The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
In the following description, suffixes such as "module", "component", or "unit" used to denote elements are used only for facilitating the explanation of the present invention, and have no specific meaning in itself. Thus, "module", "component" or "unit" may be used mixedly.
In the present invention, the apparatus may be embodied in various forms. For example, the devices described in the present invention may include stationary devices such as desktop computers, Digital TVs, etc., and mobile devices such as mobile phones, tablet computers, notebook computers, palmtop computers, Personal Digital Assistants (PDAs), Portable Media Players (PMPs), navigation devices, wearable devices, smart bands, pedometers, etc.
The invention provides a printing control method, which comprises the following steps:
s1, the virtual printer acquires the printing data and sends the printing data to the raster image processor;
s2, the raster image processor performs color correction and gridding processing on the printing data and sends the processed printing data to the printing control module;
and S3, the printing control module controls the printer nozzle to print according to the processed printing data.
The printing control method provided by the invention comprises a data head and data content in the printing content, wherein the data head records the precision size information of the image, and the data content records the data information of each pixel point of the image. The virtual printer can directly obtain the content of the file to be printed; the raster image processor can ensure the color and the precision of the output file through color correction and screening processing, and finally used printers are not limited to desktop office printers, but also can be large-format photo machines, inkjet printers, flat-plate machines and the like, so that the requirement of large-format output is met.
The following describes in detail embodiments of the present invention.
Example one
Fig. 1 shows a printing control method according to a first embodiment of the present invention, where the method includes:
s101, a virtual printer acquires printing data and sends the printing data to a raster image processor;
in this embodiment, the print data includes: the data head records precision size information of the image, and the data content records data information of each pixel point of the image. The invention separates the data head and the data content, and the subsequent virtual printer and the raster image processor can directly acquire the data head or the data content according to the processing requirement, thereby being convenient for data processing.
Illustratively, the print data is image data in CAD format, and the virtual printer obtaining the print data and sending the print data to the raster image processor includes:
s1, the virtual printer acquires the CAD image data according to the CAD calling instruction, and performs zooming processing with preset precision on the CAD image data;
s2, sending the scaled CAD image data to the raster image processor in the form of image matrix data.
Specifically, the method comprises the following steps:
s1011, the virtual printer acquires printing data and performs scaling processing with preset precision on the printing data;
in this embodiment, the driver of the virtual printer is developed by researching a printer interface provided by the microsoft system, and when a file to be printed, such as a CAD file, a JPG file, a Word document, a TXT text, or the like, calls a virtual printer nozzle to print, the driver of the virtual printer may acquire image data of the CAD file and support zooming of preset precision on the image data. Wherein the preset precision can be set according to precision size information of the image recorded in the data head.
In this embodiment, when a file to be printed calls the virtual printer nozzle to print, the virtual printer acquires print data of the file to be printed, and meanwhile, the virtual printer generates a print task to be sent to the raster image processor. As shown in fig. 2, the print job includes print information such as document name, status, owner, number of pages, size, delivery time, and port.
S1012, sending the printing data to a raster image processor in the form of image matrix data.
Specifically, after acquiring the data to be printed, the virtual printer sends the data to be printed to the raster image processor in the form of image matrix data.
S102, carrying out color correction and gridding processing on the printing data by a raster image processor, and sending the processed printing data to a printing control module;
specifically, the method comprises the following steps:
s1021, acquiring the printer model, the color combination, the printing scheme, the algorithm type for setting the rasterization data and the file output mode of the printing data by the raster image processor;
specifically, the raster image processor may obtain a printer model, a color combination, a printing scheme, an algorithm type for setting raster data, and a file output mode of the print data according to a user operation instruction;
the user operation instruction can be the user selection of printer model, color combination, printing scheme, algorithm type for setting raster data and file output mode. The terminal, such as a computer display, displays a print settings selection box as shown in FIG. 3, where the options for printer model, profile selection, screening, operating mode, color combination, port selection, raster image processor thread priority, send thread priority, pre-print buffer time, file output directory, and temporary file directory are displayed in the form of a drop-down list box for user selection. The curve selection represents a setting printing scheme, the screening mode represents an algorithm type used for setting rasterization data, and the port selection represents a setting file output mode. The user can complete the input of the user operation instruction by selecting each drop-down list box. In addition, the user can set the display as a touch display screen, set a corresponding virtual touch button for the printer model, the color combination, the printing scheme, the algorithm type for setting the rasterized data and the file output mode, and complete the selection of the parameter corresponding to the virtual touch button by touching the virtual touch button in a predetermined mode. The size of the image printed by the scheme is unlimited, and the requirement of outputting a large-size image is met; the accuracy of printing CAD files and the like is high, and even if the original file is large in size and small in output size, the output cannot cause blurring of detailed parts of the image; multiple spray heads can be adopted, and the printing speed is high.
In addition, the user operation instruction may also be input directly by the user to the printer model, color combination, printing scheme, algorithm type for setting use of rasterized data, and file output manner. For example, the user makes direct input through a keyboard, or the user makes direct input through a stylus.
S1022, carrying out color correction and gridding processing on the printing data according to the printer model, the color combination, the printing scheme, the algorithm type for setting the rasterization data and the file output mode;
the raster image processor is an interpreter that interprets layout information (various images, graphics, and text) described by a page description language into data information that can be output by an output device and outputs it to a designated output device. It can also be said that images, graphics and text are interpreted into a printer, recognizable language.
In this embodiment, the raster image processor is a tool capable of converting PostScript information formed by image processing and typesetting software into a high-resolution dot matrix image, and the formed image can be output on paper or film by a laser printer, an ink jet printer, a photocopier, or other devices.
In this embodiment, the file output modes include two types:
the first method is as follows: directly outputting the data to a printing control module;
the second method comprises the following steps: and generating a printing drive file, storing the printing drive file locally, and sending the printing drive file to the printing control module.
Wherein the print driver file may be a PRN file; the type of algorithm used to rasterize the data may be an anti-aliasing algorithm, or the like.
And S1023, outputting the processed printing data to the printing control module.
And S103, the printing control module controls the printer nozzle to print according to the processed printing data.
Specifically, the method comprises the following steps:
and the printing control module loads, acquires and processes the printing data, and controls a printer to print and output according to the data head and the data content of the printing data.
For two different forms of file output manners in step S1022, the printing manners in this step are also different, specifically:
if the raster image processor directly outputs the processed printing data to the printing control module, the printing control module directly acquires the processed printing data and controls a printer nozzle to print according to the processed printing data;
and if the raster image processor stores the processed printing data into a printing drive file, the printing drive file is sent to the printing control module, the printing control module loads the printing drive file to acquire the processed printing data, and the printer nozzle is controlled to print according to the processed printing data.
The printing control method provided by the invention comprises a data head and data content in the printing content, wherein the data head records the precision size information of the image, and the data content records the data information of each pixel point of the image. The virtual printer can directly obtain the content of the file to be printed; the raster image processor can ensure the color and the precision of the output file through color correction and screening processing, and finally used printers are not limited to desktop office printers, but also can be large-format photo machines, inkjet printers, flat-plate machines and the like, so that the requirement of large-format output is met.
Based on the above-mentioned various method embodiments, the present invention also provides the following apparatus embodiments.
Example two
An embodiment of the present invention provides a print control method, as shown in fig. 4, the method includes:
s201, the virtual printer acquires a plurality of printing data and printing identification information.
Wherein the print data comprises a print job.
In a particular embodiment, printing the identification information includes: a print priority.
S202, calculating the printing time length of each piece of printing data according to the preset printing speed.
The printing speed of the printer can be the printing time required by each page, and the printing speed can be stored in the device in advance by related personnel, and the printing time is the product of the number of pages to be printed and the printing time required by each page.
S203, sequentially sending each printing data to a raster image processor according to the printing identification information and the printing duration;
specifically, the method comprises the following steps:
s2031, the virtual printer acquires each piece of printing data, and performs scaling processing with preset precision on each piece of printing data;
in this embodiment, a driver of the virtual printer is developed by researching a printer interface provided by the microsoft system, and when a file to be printed, such as a CAD file, calls a virtual printer nozzle to print, the driver of the virtual printer may acquire image data of the CAD file and support scaling of preset precision on the image data. Wherein the preset precision can be set according to precision size information of the image recorded in the data head.
In this embodiment, when a file to be printed calls the virtual printer nozzle to print, the virtual printer acquires print data of the file to be printed, and meanwhile, the virtual printer generates a print task to be sent to the raster image processor. The print job includes, among other things, the document name, status, owner, number of pages, size, rendering time, and port, among other print information.
S2032, sending the printing data to a raster image processor in the form of image matrix data.
Specifically, after the virtual printer acquires each piece of data to be printed, the virtual printer determines a printing sequence according to the printing priority in the printing identification information, and determines a time interval for sending each piece of printing data to the raster image processor according to the printing duration.
For example, the print priorities of the print data a, the print data b, and the print data c are: print data b > print data a > print data c, the print time of print data a, print data b, print data c respectively being: the first print time T1, the second print time T2, and the third print time T3, the virtual printer sends print data b to the raster image processor first, sends print data a to the raster image processor after the second print time T2, and sends print data c to the raster image processor after the first print time T1.
S204, the raster image processor sequentially receives the printing data sent by the virtual printer, performs color correction and gridding processing on the printing data, and sends the processed printing data to the printing control module;
in this step, the raster image processor receives the print data sent by the primary virtual printer, immediately performs color correction and gridding processing on the received print data, and sends the processed print data to the print control module.
For example, when receiving the print data b, the raster image processor performs color correction and gridding processing on the print data b, and sends the processed print data to the print control module. After the second printing time T2, the raster image processor receives the print data a, performs color correction and gridding processing on the print data a, and sends the processed print data to the print control module. After the first printing time T1, the raster image processor receives the print data c, performs color correction and gridding processing on the print data c, and sends the processed print data to the print control module.
In this step, the specific implementation process of the raster image processor performing color correction and gridding processing on the print data and sending the processed print data to the print control module is the same as that in step S102, and is not described herein again.
The color correction and the gridding process may be performed first, and then the gridding process is performed.
And S205, the printing control module controls the printer nozzle to print according to the processed printing data.
EXAMPLE III
The third embodiment of the invention provides a printing control device which is used for controlling a printer nozzle to print. Among them, the print control apparatus may be implemented in various forms. For example, the devices described in the present invention may include stationary devices such as a desktop computer, a Digital TV, and the like, and mobile terminals such as a mobile phone, a tablet computer, a notebook computer, a palm top computer, a Personal Digital Assistant (PDA), a Portable Media Player (PMP), a navigation device, a wearable device, a smart band, a pedometer, and the like.
As shown in fig. 5, the print control apparatus 4 includes:
a virtual printer 41 for acquiring print data and sending the print data to a raster image processor;
a raster image processor 42, configured to perform color correction and gridding processing on the print data, and send the processed print data to the print control module;
and the printing control module 43 is used for controlling the printer nozzle to print according to the processed printing data.
In this embodiment, the print data includes: the data head records precision size information of the image, and the data content records data information of each pixel point of the image.
In a particular embodiment, the virtual printer 41 comprises:
the zooming module is used for acquiring printing data and zooming the printing data with preset precision;
and the sending module is used for sending the printing data to the raster image processor in the form of image matrix data.
In a particular embodiment, the raster image processor 42 includes:
the acquisition module is used for acquiring the printer model, the color combination, the printing scheme, the algorithm type for setting the rasterization data and the file output mode of the printing data;
the processing module is used for carrying out color correction and gridding processing on the printing data according to the printer model, the color combination, the printing scheme, the algorithm type used for setting the rasterization data and the file output mode;
an output module for outputting the processed print data to the print control module
Further, the file output method includes:
directly outputting the data to a printing control module;
or, the generated print driver file is stored locally and then sent to the print control module.
In a specific embodiment, the print control module 43 is specifically configured to:
and loading, acquiring and processing the printing data, and controlling a printer to print and output according to the data head and the data content of the printing data.
Further, in this embodiment:
if the raster image processor directly outputs the processed printing data to the printing control module, the printing control module directly acquires the processed printing data and controls a printer nozzle to print according to the processed printing data;
and if the raster image processor stores the processed printing data into a printing drive file, the printing drive file is sent to the printing control module, the printing control module loads the printing drive file to acquire the processed printing data, and the printer nozzle is controlled to print according to the processed printing data.
Example four
The fourth embodiment of the present invention provides another aspect of the present invention, and further provides a computer-readable storage medium storing one or more programs, which are executable by one or more processors to implement the steps of:
acquiring printing data and sending the printing data to a grid of a grid image processor;
carrying out color correction and gridding processing on the printing data, and sending the processed printing data to a printing control module;
and controlling a printer nozzle to print according to the processed printing data.
In one embodiment, the print data includes: the data head records precision size information of the image, and the data content records data information of each pixel point of the image.
In one embodiment, the obtaining print data and sending the print data to a raster image processor raster step, the one or more programs are executable by the one or more processors to perform the steps of:
the virtual printer acquires printing data and performs scaling processing with preset precision on the printing data;
the print data is sent to a raster image processor in the form of image matrix data.
In one embodiment, in the step of performing color correction and gridding processing on the print data by the raster image processor, the one or more programs are executable by the one or more processors to perform the steps of:
acquiring the printer model, color combination, printing scheme, algorithm type for setting raster data and file output mode of the printing data by the raster image processor;
performing color correction and gridding processing on the printing data according to the printer model, the color combination, the printing scheme, the algorithm type used for setting the rasterization data and the file output mode;
outputting the processed print data to the print control module
In a specific embodiment, the file output method includes:
directly outputting the data to a printing control module;
or, the generated print driver file is stored locally and then sent to the print control module.
In one embodiment, the print control module controls the printer head to perform the printing step according to the processed print data, and the one or more programs are executable by the one or more processors to implement the following steps:
and the printing control module loads, acquires and processes the printing data, and controls a printer to print and output according to the data head and the data content of the printing data.
In a specific embodiment, if the raster image processor directly outputs the processed printing data to the printing control module, the printing control module directly obtains the processed printing data, and controls the printer nozzle to print according to the processed printing data;
and if the raster image processor stores the processed printing data into a printing drive file, the printing drive file is sent to the printing control module, the printing control module loads the printing drive file to acquire the processed printing data, and the printer nozzle is controlled to print according to the processed printing data.
EXAMPLE five
Based on the above printing control device, the present invention further provides a printing system, which includes a printing control device and a printer, wherein the printer control device is as described in embodiment two.
According to the printing control method, the printing control device and the printing control system, the printing content comprises the data head and the data content, wherein the data head records the precision size information of the image, and the data content records the data information of each pixel point of the image. The virtual printer can directly obtain the content of the file to be printed; the raster image processor can ensure the color and the precision of the output file through color correction and screening processing, and finally used printers are not limited to desktop office printers, but also can be large-format photo machines, inkjet printers, flat-plate machines and the like, so that the requirement of large-format output is met.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
While the present invention has been described with reference to the embodiments shown in the drawings, the present invention is not limited to the embodiments, which are illustrative and not restrictive, and it will be apparent to those skilled in the art that various changes and modifications can be made therein without departing from the spirit and scope of the invention as defined in the appended claims.