Data column print pre-treating method and system
Technical field
The present invention relates to a kind of data column print pre-treating method and system, particularly relate to a kind of data column print preceding the data column print pre-treating method and the system of converting colors form fast.
Background technology
Computer system has also comprised the ability of the displaying and the image of prining except editor and processing great mass of data.When prining one page literal, figure or image, the host side data formats must be converted to the acceptable data formats of printer.Generally speaking, for the printer that must use dot chart data (bit-map data), computer information can be translated to earlier required dot chart data (bit-map data). and each bit (bit) among the figure is represented an every bit in the page or leaf of prining.Dot chart normally results from host side. and be transferred to the printer end with compressed format.The dot chart data of compression is to untie at the printer end, and is converted into suitable voltage with the image of prining.
With a laser printer is example, and its each inch (inch) has 300,600 or more pixel usually.A data bit of each pixel ordinary representation printer memory body (memory body is storage medium, storer, internal memory below all is called memory body).For with regard to the laser printer of every inch 300 pixels, the dot chart data that stores a whole page or leaf approximately needs the memory body space of 1MB with regard to resolution.Some laser printer has the mass memory body space, and with page mode (page mode) operation, and wherein page mode is meant that computer end once can handle the dot chart data of a whole page or leaf.Because page mode needs a large amount of memory bodys, also some uses fragment schema (banding mode) to reduce the memory body demand.Use fragment schema the page or leaf of prining can be cut into some levels or vertical fragment (bands).Allow dot chart data that printer once only accepts a fragment to reduce the memory body demand, just accept second fragment when handling first fragment.For instance, under fragment schema, the page or leaf of prining is cut into four fragments, so its memory body demand is as long as use 1/4th of page mode.
In addition, in the process of prining, image data or Graphic Documentation often need by a color format conversion to another color format.The host side of general computer system is in order to cooperate the needs of display, what its image data or Graphic Documentation used is R-G-B (RGB) color format, and the printer end uses the ink of various different colours to be mixed into desired color usually, and therefore the color format that adopts is bluish-green-purplish red-Huang-Hei (CMYK).So, when image data transferred to the printer end by host side, its color format must convert the CMYK form to by rgb format and could supply printer identification and then execution to print.Yet for the color format conversion of the page or leaf of prining, general printer still uses page mode at present.Therefore, the conversion of color format and compression required time are can be with the number of every page of data quantity different, so cause homepage (first page) the output time delay of prining easily.
See also shown in Figure 1A and Figure 1B, Figure 1A is the color format conversion system diagram that has known page mode now; Figure 1B is the Data Processing program synoptic diagram of Figure 1A system, and it is divided into four-stage.Color format conversion system 10 has a data and distributes a module 11 and a Data Processing module 12.In the phase one, data distributes module 11 to receive one to print after page data 20, promptly export one first memory body, 13, the first memory bodys 13 to and store some and the relevant proprietary order (META command) of page data 20 processing of prining simultaneously.First memory body 13 just may be output to Data Processing module 12 after must waiting for that page data 20 of prining writes fully.In subordinate phase, carry out the conversion of color format in the Data Processing module 12, for example rgb format is converted to the CMYK form; Change into the unit 40 acceptable form of prining, for example dot charts of prining afterwards again.Recompression at last is stored in second memory body 14.In the phase III, the data that is stored in second memory body 14 is passed data distribution module 11 back again to be dispensed to the unit 40 of prining.The quadravalence section is that page data 20 whole pages or leaves of prining that dispose are output to unit 40 required times of prining.What deserves to be mentioned is that each stage of prior art can't carry out simultaneously.
Seeing also shown in Fig. 1 C, is page data structure figure that prints of the Graphic Documentation after handling with prior art.Illustrated archives material structure 50, it from top to bottom comprises shades of colour data, a page footing 52b of certain one page in an archives gauge outfit 51a, one page gauge outfit 52a, this Graphic Documentation, the description 53 and an end of file 51b of this page data.Wherein, four kinds of color datas of this page are coated between page table head 52a and the page footing 52b with the stratiform form, are black (K) layer 521-Huang (Y) layer 522-purplish red (M) layer 523-bluish-green (C) 524 layers in regular turn.
Rgb format Graphic Documentation with a 96MB is an example, and when it converted thereof into the Graphic Documentation of CMYK form through host side, its archives size increased to 128MB.Because the method for existing known converting colors form is whole page or leaf pattern to be divided into four achromatic sheet layers of CMYK make color format conversion, and the step of " chromatography " therefore must be arranged, with four achromatic sheet plies to constitute whole colors of this Graphic Documentation.After this step, this Graphic Documentation size can become 16MB.At last, this Graphic Documentation again through overcompression to transfer to the unit of prining.Could begin the output homepage of prining after the so huge Data Processing of unit wait earlier before prining of prining is intact, its stand-by period is obvious of a specified duration excessively.
Tracing it to its cause is, the color data of whole page or leaf pattern is divided into four achromatic sheet layers of CMYK and makes color format conversion in the page mode, therefore time of being equivalent to handle four pages of achromatic sheet layer data time of every processing one page data.After four achromatic sheet layers of the CMYK of every page of data all dispose, chromatography and the conversion form of prining in addition.
In summary, the each data quantity of handling of existing known techniques is big and can't parallel processing, has postponed homepage (first page) output time and the reduction efficient of prining of prining.
This shows that above-mentioned existing data column print pre-treating method and system obviously still have inconvenience and defective, and demand urgently further being improved in method, structure and use.In order to solve the problem that data column print pre-treating method and system exist, relevant manufacturer there's no one who doesn't or isn't seeks solution painstakingly, but do not see always that for a long time suitable design finished by development, and conventional method and system do not have appropriate method and structure to address the above problem, and this obviously is the problem that the anxious desire of relevant dealer solves.
Because the defective that above-mentioned existing data column print pre-treating method and system exist, the inventor is based on being engaged in this type of product design manufacturing abundant for many years practical experience and professional knowledge, and the utilization of cooperation scientific principle, actively studied innovation, in the hope of founding a kind of new data column print pre-treating method and system, improve existing data column print pre-treating method and system, and with quick converting colors form to shorten homepage (first page) output time of prining, make it have more practicality.Through constantly research, design, and after studying repeatedly and improving, create the present invention who has practical value finally.
Summary of the invention
The objective of the invention is to, overcome the defective that existing data column print pre-treating method and system exist, and provide a kind of new data column print pre-treating method and system, technical matters to be solved is to make it can shorten the archives homepage to print the preceding stand-by period of output, thereby is suitable for practicality more.
Another object of the present invention is to, a kind of data column print pre-treating method and system are provided, technical matters to be solved is to make it data can be divided into fragment to carry out, and can reduce the pre-treatment time of prining.
A further object of the present invention is, a kind of data column print pre-treating method and system are provided, and technical matters to be solved is to make it can make full use of the memory body space, each handling procedure of fragment data can be walked abreast, thereby be suitable for practicality more.
The object of the invention to solve the technical problems realizes by the following technical solutions.According to a kind of data column print pre-treating method that the present invention proposes, may further comprise the steps: cutting apart page data of prining is a plurality of fragment data; Change the color format of the M fragment data in those fragment data;
Transmit this M fragment data to a unit of prining and store, and during the transmission of this M fragment data the color format of the M+1 fragment data in those fragment data of internal conversion; And this M fragment data of prining, and transmit this M+1 fragment data in during the prining of this M fragment data to this unit of prining, and during same the color format of the M+2 fragment data of conversion in those fragment data, until the fragment data of 50%-100% was printd the unit reception by this after, this unit of prining promptly started to print and receive the rest segment data simultaneously and finishes until prining.
The object of the invention to solve the technical problems also can be applied to the following technical measures to achieve further.
Aforesaid data column print pre-treating method, its more comprise according to this print the page or leaf the direction of prining to determine the direction of cutting apart of these a plurality of fragment data
Aforesaid data column print pre-treating method, it comprises that more this page data of prining of vertical segmentation is a plurality of fragment data
Aforesaid data column print pre-treating method, it comprises that more it is a plurality of fragment data that level is cut apart this page data of prining
Aforesaid data column print pre-treating method after the color format in those fragment data of wherein said conversion, more comprises those fragment data of compression out of the ordinary
Aforesaid data column print pre-treating method after those fragment data of wherein said compression, more comprises optionally those fragment data of mark
Aforesaid data column print pre-treating method, it comprises that more the fragment data that transmits above-mentioned mark immediately is to this unit of prining
Aforesaid data column print pre-treating method after the color format in those fragment data of wherein said conversion, comprises that more those fragment data of conversion are a dot chart.
Aforesaid data column print pre-treating method, the color format of those fragment data of wherein said conversion more comprise by rgb format and convert the CMYK form to.
The object of the invention to solve the technical problems also adopts following technical scheme to realize.A kind of data column print preprocessing system according to the present invention's proposition, it comprises: a data is distributed module, receive page data of prining, and this page data of prining is divided into a plurality of fragment data to write a memory body, wherein each fragment data of this page data of prining has one first color format; One Data Processing module reads those stored fragment data of this memory body, and to change its first color format be one second color format, and wherein this second color format is to be the cognizable color format in unit of prining.
The object of the invention to solve the technical problems also can be applied to the following technical measures to achieve further.
Aforesaid data column print preprocessing system, it comprises that more another memory body has the fragment data of this second color format with storage.
Aforesaid data column print preprocessing system, it is to read the fragment data with this second color format and transfer to this unit of prining that wherein said data is distributed module, and when this data distributed module to pass on the fragment data of 50%-100%, this unit of prining promptly began to start the action of prining.
Aforesaid data column print preprocessing system, wherein said data distribute module to write arbitrary fragment data behind this memory body, and this Data Processing module reads this fragment data immediately.
Aforesaid data column print preprocessing system, wherein said Data Processing module further compresses the fragment data with this second color format.
Aforesaid data column print preprocessing system, wherein said data with this second color format comprises an identification sign.
Aforesaid data column print preprocessing system, wherein said fragment data with identification sign are to be sent to the unit of prining immediately.
Aforesaid data column print preprocessing system, wherein said fragment data with second color format comprises a plurality of achromatic sheet layers.
Aforesaid data column print preprocessing system, wherein said first color format is to be rgb format.
Aforesaid data column print preprocessing system, wherein said second color format are to be the CMYK form.
Aforesaid data column print preprocessing system, it is that this page data of prining is divided into 20-30 fragment data to write this memory body that wherein said data is distributed module.
The present invention compared with prior art has tangible advantage and beneficial effect.By above technical scheme as can be known, in order to reach aforementioned goal of the invention, major technique of the present invention thes contents are as follows:
The present invention proposes a kind of data column print pre-treating method, and method of the present invention is as follows: at first, cutting apart page data of prining is a plurality of fragment data.Then change the color format of the M fragment data in those fragment data.Transmit this M fragment data to a unit of prining subsequently, and during the transmission of this M fragment data the color format of the M+1 fragment data in those fragment data of internal conversion.So behind the data fragment that receives 50%-100%, stored data fragment before this unit of prining promptly begins to print, and transmit the rest segment data in during the prining of this fragment data to this unit of prining, and during same color format in those fragment data of conversion.
The present invention also proposes a kind of data column print preprocessing system, and the system for carrying out said process that realizes of the present invention comprises a data distribution module and a Data Processing module.Data distributes module to receive page data of prining, and this page data of prining is divided into a plurality of fragment data to write a memory body, and wherein this page data of prining has one first color format.Subsequently, the Data Processing module reads those stored fragment data of this memory body, and to change this first color format be one second color format.
By technique scheme, data column print pre-treating method of the present invention and system compared with prior art have following advantage at least:
1, the originally whole page of data of handling is divided into fragment, and the color format of this fragment is once changed into the CMYK form by RGB.The fragment data is after format transformation and compression, and output immediately is so can shorten the stand-by period of prining.
2, have more the excellent results of remarkable shortening time for the processing of Graphic Documentation.
3, it is little each fragment data being handled the previous prior art of employed memory body.
When 4, utilizing fragment schema (banding mode) and its file color format to change into the CMYK form, be that each fragment data single treatment is finished, have more obvious effect for color complicated patterns file by RGB.
In sum, data column print pre-treating method and system that the present invention is special can shorten the archives homepage and print the preceding stand-by period of output; In addition, data can be divided into fragment and carry out, and can reduce the pre-treatment time of prining.Moreover, can make full use of the memory body space, each handling procedure of fragment data can be walked abreast, thereby be suitable for practicality more.It has above-mentioned many advantages and practical value, and in class methods and structure, do not see have similar design to publish or use and really genus innovation, no matter it all has bigger improvement on method, structure or function, have large improvement technically, and produced handy and practical effect, and more existing data column print pre-treating method and system have the multinomial effect of enhancement, thereby be suitable for practicality more, and have the extensive value of industry, really be a new and innovative, progressive, practical new design.
Above-mentioned explanation only is the general introduction of technical solution of the present invention, for can clearer understanding technological means of the present invention, and can be implemented according to the content of instructions, and for above-mentioned and other purposes, feature and advantage of the present invention can be become apparent, below especially exemplified by preferred embodiment, and conjunction with figs., be described in detail as follows.
Description of drawings
Figure 1A is the color format conversion system diagram that has known page mode now.
Figure 1B is the Data Processing program synoptic diagram of Figure 1A system.
Fig. 1 C is page data structure synoptic diagram of prining of the Graphic Documentation after handling with existing known techniques.
Fig. 2 is the synoptic diagram of data column print preprocessing system of the present invention.
Fig. 3 is the synoptic diagram of data column print pre-treatment flow process of the present invention.
Fig. 4 is page data structure synoptic diagram of prining after method of the present invention is handled.
Fig. 5 is the comparison synoptic diagram in the processing time and the processing time of the present invention of previous prior art.
10: the color format conversion system that has known page mode now
62: Data Processing module 11: data is distributed module
63: memory body 12: the Data Processing module
631: 13: the first memory bodys of fragment data (before handling)
632: order 14: the second memory bodys
64: memory body 20: page data of prining
641: fragment data (handling the back) 30: drive formula
642: identification sign 40: the unit of prining
70: page data structure (the present invention) 50 of prining: page data structure of prining (existing known)
71a: archives gauge outfit 51a: archives gauge outfit
71b: end of file 51b: end of file
72a: page table head 52a: page table head
72b: page footing 52b: page footing
73: fragment data gauge outfit 521: black figure layer
731: black figure layer 522: yellow map layer
732: yellow map layer 523: purplish red chromatic graph layer
733: purplish red chromatic graph layer 524: bluish-green chromatic graph layer
734: bluish-green chromatic graph layer 53: the page or leaf data is described
74: the fragment data describes 531: the page or leaf color data is described
741: the fragment color data describes 60: data column print preprocessing system of the present invention
75: the page or leaf data describes 61: data is distributed module
751: the page or leaf color data is described
Embodiment
Reach technological means and the effect that predetermined goal of the invention is taked for further setting forth the present invention, below in conjunction with accompanying drawing and enumerate preferred embodiment, to data column print pre-treating method and its embodiment of system, method, step, structure, feature and the effect thereof that foundation the present invention proposes, describe in detail as after.
Seeing also shown in Figure 2ly, is the synoptic diagram of data column print preprocessing system of the present invention.The data column print preprocessing system 60 of preferred embodiment of the present invention comprises a data distribution module 61 and a Data Processing module 62.Data distributes module 61 to receive page data 20 of prining, and this page data 20 of prining is divided into a plurality of fragment data 631 to write a memory body 63, and page data 20 of wherein prining has one first color format.Subsequently, Data Processing module 62 reads those stored fragment data 631 of memory body 63, and to change this first color format be one second color format.Wherein, page data 20 of prining is stored in the memory body (not shown) of a host computer usually, drives formula 30 by one before execution is printd and is written into data distribution module 61 so that begin the pre-treatment program of prining.Above-mentioned this first color format is generally rgb format, and this second color format is generally the print cognizable color format in unit, for example a CMYK form.What deserves to be mentioned is, drive formula 30 when being written into page data of prining, also being written into some proprietary orders (META command) 632 handles module 62 execution converting colors forms, changes the actions such as form (screening) or compression of prining to give information, the proprietary order 632 of each fragment data 631 is to follow this fragment data 631 to be stored in the memory body 63, subsequently and enter Data Processing module 62.
The present invention more comprises another memory body 64, has the fragment data 641 of this second color format with storage.Data Processing module 62 optionally adds an identification sign 642 for the fragment data 641 that disposes, and for example adds a flag (Flag).The data fragment 641 that the adds identification sign 642 wait data in another memory body 64 of being stored in distributes the unit 40 of prining that reads and be dispensed to of module 61 to carry out and print.Therefore, data distributes module 61 except page data 20 of prining that acceptance driving formula 30 transmits, and its another kind of function is to read the fragment data 641 with this second color format and transfer to the unit 40 of prining, for example printer or draught machine.
In a preferred embodiment, distribute module 61 when data and write arbitrary fragment data 631 behind memory body 63, Data Processing module 62 reads fragment data 631 immediately, makes and keeps a fragment data quantity in the memory body 63.Therefore 63 need of memory body capacity of possessing the fragment data of reception gets final product.The fragment data 641 that wherein has second color format also comprises a plurality of achromatic sheet layers, but not only has single figure layer.For example: all have four layers of CMYK in each fragment data.
Seeing also shown in Figure 3ly, is data column print pre-treatment schematic flow sheet of the present invention.Distribute module to receive one when data and print after page data, promptly with the method for the present invention pre-treatment of prining.Data column print pre-treating method of the present invention, it comprises: at first, cutting apart page data of prining is a plurality of fragment data, fragment 1 as shown, fragment 2...... fragment M, and this stage distributes module page data segment transmissions to the Data Processing module of will prining to reach by data.Then change the color format of the M fragment data in those fragment data, this stage is to carry out in the Data Processing module.Transmit this M fragment data to a unit of prining subsequently, and during the transmission of this M fragment data the color format of the M+1 fragment data in those fragment data of internal conversion.Please refer to the fragment M bang path of dotted lines, this M fragment data of diagram transmission to the process of the unit of prining is the distribution that distributes module through data.At last, this M fragment data of prining, and transmit this M+1 fragment data in during the prining of this M fragment data to this unit of prining, and change the color format of the M+2 fragment data in those fragment data, shown in frame of broken lines.
Still see also shown in Figure 3, existing that its more detailed description is as follows.As shown in the figure, data distributes module to receive page data of prining in the period 1.Page data of subsequently this being printd is divided into fragment 1, fragment 2...... fragment M.In the period 2, fragment 1 is transferred to the Data Processing module carry out every processing, for example converting colors form, conversion print form (screening) or compression etc.Then, in the period 3, this data distributes module to read the fragment of handling 1 and be passed to this unit of prining.Within the period 3, this data distribution module is transferred to this Data Processing module with fragment 2 and is handled simultaneously.Among arbitrary period n after the period 3, the unit of the prining fragment M that simultaneously prints, and data distributes the module one side that fragment M+1 is passed to this unit of prining, this Data Processing module carries out every pre-treatment of prining to fragment M+2 simultaneously.So circulation is gone down, and after receiving in 50%-100% fragment data, the unit of prining promptly starts prints, and till receiving the rest segment data simultaneously and finishing until prining.By finding out that the time of waiting for first fragment is the summation of period 1, period 2 and period 3 in the diagram.The method focus on every fragment made the color format conversion of CMYK the time, promptly may be output to printer as long as there is a fragment to handle, need not wait for that processes complete page or leaf data just exports.
The direction of cutting apart of above-mentioned a plurality of fragment data is to print the prining direction of page or leaf and determine that therefore can select vertical segmentation or level to cut apart this page data of prining is a plurality of fragment data according to this.For instance, had for 6000 whens row,, can be divided into 20-30 fragment data approximately if per 256 row promptly are divided into a fragment when page data of prining has in the horizontal direction.In a better embodiment, after the color format in those fragment data of above-mentioned conversion, can further change those fragment data is a dot chart fragment.After being converted to dot matrix graphic, more comprise those dot chart fragments of compression.Subsequently, those dot chart fragments of having finished dealing with of mark, and optionally transmit above-mentioned dot chart fragment to this unit of prining according to mark whether.The color format of wherein above-mentioned those dot chart fragments of conversion more comprises by rgb format and converts the CMYK form to.
Seeing also shown in Figure 4ly, is page data structure of prining after method of the present invention is handled.In the illustrated archives material structure 70, the part identical with previous prior art comprises shades of colour data, a page footing 72b of an archives gauge outfit 71a, one page gauge outfit 72a, this page, the description 75 and an end of file 71b of this page data.Different with previous prior art is that four kinds of above-mentioned color datas are to be cut into the fragment data, and more increase the descriptor format 74 to every fragment data.Fragment 1 with Fig. 3 is an example, and its fragment figure layer data with black (K) 731 4 monochromes of bluish-green (C) 734-purplish red (M) 733-Huang (Y) 732-is coated between page table head 72a and the page footing 72b.Have a fragment MSDS head 73 in the upper end of four fragment figure layer data, its lower end has the description 74 to this fragment data, and it comprises a description 741 about fragment 1 color data.Comprise between every page of page footing 72b and the end of file 71b that this page of complex data describes 75, it comprises a description 751 about this page color data.
See also shown in Figure 5, be the comparison synoptic diagram in the processing time and the processing time of the present invention of previous prior art, and Figure 1B and shown in Figure 3 is consulted in combination simultaneously, formerly in the prior art, when handling the data of a whole page or leaf, owing to each step is failed parallel processing and elongated the processing time.And among the present invention, if will handle one page data equally, because different fragments can be carried out different steps at one time separately, effectively use system resource and reduced processing time of whole page or leaf.As shown in the figure, the action of prining of previous prior art starts from prining after the unit receives one whole page of data, i.e. time point A among the figure; And the action of the prining of the present invention arbitrary time point of unit in receiving during the fragment data of 50%-100% that can start from prining, time point a as shown is to the arbitrary time point between the time point a ', so the stand-by period of prining of data homepage obviously shortens.It is to be saving time as shown in the figure that whole page or leaf data is distributed module to the difference in the required processing time that begins to print by the data that enters.
In sum, desire is implemented the present invention must do following the change to prior art, and one, change data formats; Two, change the Data Processing flow process; Three, can between page mode and fragment schema, switch based on different demands.Therefore, data column print pre-treating method provided by the present invention and system when comparing mutually with existing known techniques, have more the characteristic and the advantage of getting row ready:
1, the originally whole page of data of handling is divided into fragment, and the color format of this fragment is once changed into the CMYK form by RGB.
2, the fragment data is after format transformation and compression, and output immediately is so can shorten the time of prining and waiting for.
3, have more the excellent results of remarkable shortening time for the processing of Graphic Documentation.
4, it is little each fragment data to be handled the previous prior art of employed memory body.
The present invention can significant effective solves in the key means of time delay problem of printer output file homepage; being suitable as most patent protection important document part is; when utilizing fragment schema (banding mode) and its file color format to change into the CMYK form by RGB; be not that whole page or leaf is divided into superimposed again chromatography after C, M, four figure layers of Y, the K individual treated, but each fragment data single treatment is finished.The combination of above-mentioned two important documents has more obvious effect for color complicated patterns file, and is not that existing known techniques can be when, thus the present invention to have patentability be conspicuous.
The above, it only is preferred embodiment of the present invention, be not that the present invention is done any pro forma restriction, though the present invention discloses as above with preferred embodiment, yet be not in order to limit the present invention, any those skilled in the art, in not breaking away from the technical solution of the present invention scope, when the method that can utilize above-mentioned announcement and technology contents are made a little change or be modified to the equivalent embodiment of equivalent variations, in every case be the content that does not break away from technical solution of the present invention, according to technical spirit of the present invention to any simple modification that above embodiment did, equivalent variations and modification all still belong in the scope of technical solution of the present invention.