Background technology
Be accompanied by the continuous maturation and the development of digitizing technique, networking technology and digital printing equipment, also continuous ripe and universal, the database publishing system that support variable data is set type continues to bring out with the product of supporting personal printing and Variable Data Printing in the digital printing market.Digital printing is aspect the printing of the personalized receipt of industries such as finance, postal service, telecommunications, the tax, list, bill, aspect anti-counterfeit printing, label printing, and in all many-sides such as other advertisement pamphlet printings, all obtained using widely, traditional printing has been proposed challenge.
Compare with traditional printing, the most significant advantage of digital printing is exactly " one is played seal, opens Zhang Butong ", the typical case of digital printing use be exactly personal printing or be called Variable Data Printing (Variable DataPrinting, VDP).So-called variable data is meant that the page-describing data are variable, and a common page can be regarded as by two types data element and form: variable element and reusable element.So-called variable element is meant that this data element only appears in certain page, generally can not repeat, and often is used for describing some customized informations; So-called reusable element is meant that this data element can repeat repeatedly literal piece, figure or the image etc. that often are used for describing public page layout background or repeat in same one page, part page or leaf even all pages or leaves.For variable data documents, it almost is impossible using traditional printing, because in the traditional printing process, page-describing only need pass through raster image processor (Raster Image Processor, RIP) handle the high-resolution data with rasterized that once obtains correspondence, output to film then, make forme, the machine of going up is at last repeated print in a large number, and concerning variable data documents, " open Zhang Butong " and just require each all to need independent process rasterisation, and rasterization process is very time-consuming often, and is especially true concerning high-resolution grating output device.
In fact, for variable data documents, owing to there is reusable element, above-mentioned rasterization process can be optimized, do not need reusable element quoted at every turn and all need to repeat rasterisation, but when running into reusable element for the first time, carry out rasterisation, and rasterization result is buffered in the high-speed internal memory buffer zone (Cache), run into later the identical element of reusing again, carried out time-consuming rasterization process again with regard to not needing, only need taking-up rasterization result from Cache get final product, thereby can improve the rasterisation efficient of variable data documents greatly.
The SPDL PostScript (PS) of printing industry and Portable DocumentFormat (PDF) not supporting area divide variable element and reusable element in the page elements.To this, industry different vendor has proposed the page-description language and the corresponding solution of different support variable data printings separately.(Personalized Print Markup Language PPML), and has obtained accepting extensively to have issued the personal printing SGML by industry leading firm being called of forming " printing on demand proposal alliance " tissue (PODi) afterwards.On the basis of PPML in conjunction with PDF, International Organization for Standardization proposed again the variable data exchange (Variable Data Exchange, VDX) language. at present PPML and VDX have become the SPDL of support variable data printing.
The PPML language has adopted extend markup language, and (Extensible Markup Language, the composition of content of pages described in grammer XML).PPML itself does not describe actual content of pages, on the PPML page, do not draw and function such as color filling, on the contrary, PPML has only defined a series of page elements (MARK), and is placed into successively in the PPML page according to its page elements appearance order.Each page elements points to the page-describing data of definition page actual content, the page-describing data can be one can encapsulate language (Encapsulated PostScript, EPS) file also can be PS file, pdf document, can also be image file etc.And VDX is further on the basis of PPML, the page-describing data have been done restriction: only allow to use pdf document, be that each MARK corresponding page is described the Different Logic page from same pdf document, and the PPML data also are embedded in the same pdf document.As seen VDX combines PPML technology and PDF technology.
How to realize using the variable data documents of PPML file or VDX file description to carry out rasterisation, the page-describing data are converted to the raster image data, on the high speed digital printer, carry out high speed output then, be undoubtedly the key problem in technology in the whole digital printing system.At present, the grating method of support variable data printing is normally based on the dot matrix buffer technology, i.e. reusable page elements to occurring in the page, dot array data after carrying out pre-rasterisation and cushioning the preservation rasterisation is so that reuse, and the variable page surface element to occurring in the page, use in reality and to carry out rasterisation in real time more constantly but do not preserve rasterization result, the last precedence that occurs according to page elements assembles the dot matrix of these page elements correspondences and obtains final page dot matrix.Realize this method, need realize that the page-describing data are converted to the periphery of the grating kernel module of raster image data, a PPML page elements raster image data Knockdown block and raster image data high-speed compression buffer module is set, as shown in Figure 1, to each the reusable page elements that occurs in the PPML page, whether inquiry exists corresponding dot array data in the raster image data cache earlier, if exist, then directly take out corresponding dot array data, put into the PPML page then; If do not exist, then this page elements corresponding page data of description and this page elements are submitted to the grating kernel module at the relative position information of the PPML page and prune message etc., start rasterization process, generate corresponding dot array data, and then dot array data put into the PPML page, meanwhile, compress this dot array data and in high-speed buffer, cushion and deposit in order to reusing next time.Each variable page surface element for occurring in the PPML page always directly starts the grating kernel module, generates the dot array data of this variable element and puts into the PPML page, but do not enter the raster image data cache.Above-mentioned this variable data grating method based on the dot matrix buffering, simple, but its shortcoming also is conspicuous, is exactly that efficiency ratio is lower, is mainly reflected in following several aspect:
The first, this method can not be discerned the public page layout background of variable data documents automatically.We know, variable data documents is made software and is normally generated variable data documents based on one or more templates and binding data storehouse, the part that immobilizes in each template normally is made up of a series of reusable element, in fact it is exactly a public page layout background of being shared by a plurality of pages, when generating PPML file or VDX file, this public page layout background normally is made up of a series of reusable element.If adopt existing grating method based on dot matrix, just need all these reusable element of rasterisation in advance, obtain the rasterisation dot matrix of each reusable object correspondence, consider that simultaneously different reusable element each other may be overlapping, also need to generate corresponding masking-out dot matrix when reusable element is carried out rasterisation, had the rasterisation dot matrix of each reusable element correspondence and masking-out dot matrix to assemble again later on and just can obtain this public page layout background dot matrix.Owing to can not discern this public page layout background automatically, this public page layout background is cited N time, and RIP just need carry out N time assembling according to the rasterisation dot matrix and the masking-out dot matrix of reusable element correspondence.Because assembling process relates to a large amount of bit manipulations, this process is normally more time-consuming, can produce bigger influence to the print speed printing speed of variable data documents with public page layout background.
The second, this method and the content that is not suitable for the actual description of variable page surface element are seldom but a lot of variable data documents of variable page surface element.Because existing variable data grating method based on dot matrix need call the grating kernel module one time to each variable page surface element, and the cost of calling once to be spent is bigger usually.When the content of the actual description of variable page surface element seldom the time, for example be used for describing the variable content such as name, address of customer information, it is just not too economical to call a grating kernel module, when much such variable page surface element is arranged in the page, just need repeatedly call the grating kernel module, the rasterisation decrease in efficiency that can cause whole variable data documents, the final rasterisation speed that directly influences variable data documents.
The 3rd, to each page elements, need to generate corresponding masking-out dot matrix.When the purposes of masking-out dot matrix is controlled the current page element exactly and is integrated on the PPML page, which of current page element partly is to cover the PPML page layout background, which partly need come up the PPML page layout background thoroughly, for a current page element, its PPML page layout background is formed by appearing at this page elements all page elements before.
In sum, existing grating method is having bigger limitation aspect the support variable data page print, and the formation efficiency of raster image data is lower, thereby makes the whole output efficiency of digital printing equipment reduce.
Embodiment
For in the digital printing process of variable data documents, improve the efficient of variable data rasterisation, the embodiment of the invention provides a kind of grating method of support variable data page print.
As shown in Figure 2, the grating method of a kind of support variable data page print that the embodiment of the invention provides, take based on intermediate format instructions file and the method that combines based on dot matrix buffering, variable data document is directly handled in inside in the grating kernel module, and this variable data document comprises files such as PPML, VDX.The grating kernel module has increased the function that PPML, VDX file are made an explanation and handle on the original function basis that can only carry out rasterisation to PS, PDF.
The grating method that the embodiment of the invention provides may further comprise the steps:
A. the page-describing relevant portion in the variable data document of interpreting user input, the intermediate format instructions file MF0 of initialization variable data page correspondence;
B. scan the reusable page elements of beginning part in the variable data page, they are formed the page layout background element, and the page layout background element is pressed a new special reusable page elements handle, result is write the intermediate format instructions file MF0 of variable data page correspondence;
C. continue institute's subsequent page element that scanning constitutes variable data page, and handle respectively, and result is write the intermediate format instructions file MF0 of variable data page correspondence by reusable page elements or variable page surface element;
D. so far, the intermediate format instructions file MF0 of variable data page correspondence generates and finishes.Scanning intermediate format instructions file MF0, final variable data page dot matrix is assembled out in segmentation, deletion intermediate format instructions file MF0;
E. repeating step A, B, C, D generate follow-up variable data page corresponding page dot matrix, dispose until all variable data pages.
As shown in Figure 3, by explaining variable data document, a variable data page is made up of a series of page elements, and these page elements are according to describe the order arrangement that part occurs at variable data page.Because page elements can be divided into two big classes, one class is reusable page elements, another kind of is the variable page surface element, and therefore a variable data page also can be regarded as by a series of reusable page elements group and variable page surface element group and constitute, and they alternately appear in the page elements sequence.Because variable data document normally generates the page based on one or several templates, its template is made up of several reusable page elements usually, and these reusable page elements are equivalent to first the reusable page elements group 30 among Fig. 3.First reusable page elements group might constitute the public page layout background of being shared by multipage of variable data document in fact very much.Certainly, also might not have reusable page elements before variable page surface element group 31, promptly 30 among Fig. 3 do not exist, and we just think that this page does not use public page layout background so.Step B does not just need to have carried out in the embodiment of the invention.The embodiment of the invention is done special optimization process at the reusable page elements group 30 that appears at before first variable page surface element, so-called special processing is to appear at the later reusable page elements group 32 of first variable page surface element in Fig. 3: grating kernel is regarded a new special reusable page elements as to first reusable page elements group 30 integral body, and all the reusable page elements in the follow-up reusable page elements group 32 are handled according to single individuality, promptly they are not regarded as an integral body, its processing mode is referring to the step C of the embodiment of the invention.
Referring to Fig. 4, in fact step B discerns public page layout background, and page layout background is done special optimization process exactly automatically in the embodiment of the invention, to improve the rasterisation efficient of variable data document.Recognition methods to public page layout background is, from first page elements, the scan page surface element, until running into first variable page surface element, all reusable page elements of first variable page surface element front that runs into are formed a page layout background, and it is regarded as a new reusable page elements, be referred to as the page layout background element.For this page layout background element, check earlier among the page elements dot matrix buffer zone Cache whether corresponding available page dot array data is arranged, if exist, just the dot matrix index information of correspondence is write the intermediate format instructions file MF0 of variable data page correspondence, promptly in MF0, increase the dot matrix reference instruction, so that when the grating kernel module is carried out the assembling of variable data page dot matrix, put into the dot matrix of reusable page elements correspondence at the variable data page correspondence position.If do not have the corresponding page dot array data among the Cache, grating kernel just need rebulid an intermediate format instructions file MF1, but this page layout background element corresponding page descriptor is carried out grammar explanation, generate element informations such as element figure, color, this information is write intermediate format instructions file MF1 in proper order.Scanning intermediate format instructions file MF1, order reads information such as pel, color, carries out the assembling of this reusable page elements corresponding page dot matrix BMP1, generates page dot array data, deletion intermediate format instructions file MF1.Then the page dot matrix BMP1 data data compression that produces is buffered among the page elements dot matrix buffer zone Cache, in order to reusing.The last reference instruction that in the intermediate format instructions file MF0 of variable data page correspondence, increases this page elements dot matrix BMP1.
The page elements that step C handles in the embodiment of the invention is corresponding to page elements group among Fig. 3 31,32,33 etc., but grating kernel is not treated them by the page elements group, still handle respectively by single page elements, processing mode depends on the type of page elements.For reusable page elements, its treatment scheme is referring to Fig. 5, and for the variable page surface element, its treatment scheme is elaborated to them respectively below referring to Fig. 6:
As shown in Figure 5, for reusable page elements, the grating kernel module always checks earlier whether corresponding available page dot array data and masking-out dot array data are arranged among the page elements dot matrix buffer zone Cache, if exist, just the dot matrix index information of correspondence is write the intermediate format instructions file MF0 of variable data page correspondence, promptly in MF0, increase the dot matrix reference instruction, so that when the grating kernel module is carried out the assembling of variable data page dot matrix, put into the dot matrix of reusable page elements correspondence at the variable data page correspondence position.If do not have corresponding page dot array data and masking-out dot array data among the Cache, grating kernel just need rebulid an intermediate format instructions file MF2, this reusable page elements corresponding page descriptor is carried out grammar explanation, generate element informations such as element figure, color, this information is write intermediate format instructions file MF2 in proper order.Scanning intermediate format instructions file MF2, order reads information such as pel, color, carry out the assembling of this reusable page elements corresponding page dot matrix BMP2 and masking-out dot matrix MASK2, generate page dot array data and masking-out dot array data, deletion intermediate format instructions file MF2.Then the page dot matrix BMP2 data and the masking-out dot matrix MASK2 data compression that produce are buffered among the page elements dot matrix buffer zone Cache, in order to reusing.The last reference instruction that in the intermediate format instructions file MF0 of variable data page correspondence, increases this page elements dot matrix BMP2 and masking-out dot matrix MASK2.
As shown in Figure 6, for variable page elements, the grating kernel module is always directly carried out grammar explanation to variable page surface element corresponding page descriptor, generates information such as parent map, color, then they is write the intermediate format instructions file MF0 corresponding with variable data page in proper order.This shows, for the variable page surface element, all primitive information of its correspondence and colouring information are incorporated into variable data page by intermediate format instructions and have suffered, and are to be incorporated in the variable data page by corresponding page dot matrix and masking-out dot matrix unlike reusable page elements.
Step D handles in the embodiment of the invention to as if the intermediate format instructions file MF0 of the variable data page correspondence that generates of steps A, B, C accumulation, its treatment scheme is, scanning intermediate format instructions file MF0, call over primitive information and colouring information and to the reference instruction (writing) of reusable page elements corresponding page dot matrix by step B, C, put into the variable data page dot matrix after they are suitably handled, finish the assembling of variable data page dot matrix, delete intermediate format instructions file MF0 at last.
For making the embodiment of the invention have better effect, the intermediate format instructions file MF0 described in the above-mentioned steps, MF1, MF2 can be wholly or in part in internal memories, to improve the scan process speed of RIP to the intermediate form command file.
The method that page elements corresponding page dot matrix, masking-out dot matrix and variable data page dot matrix described in the above-mentioned steps takes piecemeal to represent is because often exist a large amount of white spaces in the various dot matrix of reusable page elements correspondence.
Compare with traditional grating method based on dot matrix, the beneficial effect of the embodiment of the invention is embodied in the following aspects:
The first, discern the page layout background element of variable data documents automatically, the page layout background element is regarded as a new reusable page elements, generate and this page layout background element corresponding page dot array data of buffer memory.To the identical page layout background element of follow-up appearance in the variable data documents, RIP need not re-assembly corresponding dot array data, but directly obtains from dot matrix buffer zone Cache, makes rasterisation speed obviously promote;
The second, to the variable page surface element, do not need to generate the corresponding page dot matrix, do not need to generate corresponding masking-out dot matrix yet, can improve the rasterisation speed of variable data documents.
The 3rd, when RIP handled the variable page surface element, the data volume that needs to handle had been dwindled.Because the method for the invention is actually in the intermediate format instructions one-level when handling the variable page surface element and just the variable page surface element is incorporated in the command file of variable data page correspondence, and the data volume of command file is far smaller than the data volume of corresponding dot matrix usually.
Referring to Fig. 7, the embodiment of the invention also provides a kind of grating kernel device, this device comprises page layout background unit 701, reusable unit 702, variable cell 703 and page dot matrix module units 704, wherein, page layout background unit 701, be used for the reusable page elements before first variable page surface element of variable data page obtaining or to generate described page layout background element corresponding page dot array data as the page layout background element; Reusable unit 702 is used for for the reusable page elements behind the described page layout background element, obtains or generate described reusable page elements corresponding page dot array data and masking-out dot array data; Variable cell 703 is used for generating the element information of described variable page surface element correspondence for the variable page surface element behind the described page layout background element; Page dot matrix module units 704 is used to utilize described page layout background unit, reusable unit, variable cell obtains or the page dot array data, masking-out dot array data and the element information that generate, carries out the assembling of described variable data page dot matrix.
Concrete, page layout background unit 701 comprises:
Recognition unit 7011, be used for when first page elements of described variable data page is reusable page elements, begin to carry out one by one page elements scanning from this element, until running into first variable page surface element, all reusable page elements of first variable page surface element front that will run into are as the page layout background element;
First searches unit 7012, is used for searching described page layout background element corresponding page dot array data at the dot matrix buffer cell, if search successfully, then notification instruction first command unit instructs and writes, otherwise, notify first Interpretation unit to carry out grammar explanation;
First Interpretation unit 7013 is used for grammar explanation, and the page-describing information according to all page elements of forming described page layout background element obtains the element information of this page layout background element correspondence, and in order this element information write first intermediate storage unit;
The first dot matrix generation unit 7014 is used for utilizing the element information of first intermediate storage unit, generates described page layout background element corresponding page dot array data;
First preserves unit 7015, is used for the page dot array data that the first dot matrix generation unit generates is kept at the dot matrix buffer cell;
First command unit 7016 is used for instruction and writes, and the index information of described page dot array data is write in the location of instruction;
Dot matrix buffer cell 7017 is used to store described page layout background element corresponding page dot array data;
First intermediate storage unit 7018 is used to store the element information that first Interpretation unit writes;
The location of instruction 7019 is used to store the index information that first command unit writes;
Then page dot matrix module units 704 comprises:
Indexing units 7041 is used for the index information that writes according to first command unit that the location of instruction is stored, finds the corresponding page dot array data;
Module units 7042, the described page dot array data that is used to utilize indexing units to find carries out the assembling of described variable data page dot matrix.
Reusable unit 702 comprises:
Second searches unit 7021, be used for searching described reusable page elements corresponding page dot array data and masking-out dot array data,, then notify second command unit to instruct and write if search successfully at described dot matrix buffer cell, otherwise, notify second Interpretation unit to carry out grammar explanation;
Second Interpretation unit 7022 is used for grammar explanation, according to the page-describing information of described reusable page elements, obtains the element information of this reusable page elements correspondence, and in order this element information is write second intermediate storage unit;
The second dot matrix generation unit 7023 is used for utilizing the element information of second intermediate storage unit, generates described reusable page elements corresponding page dot array data and masking-out dot array data;
Second preserves unit 7024, is used for page dot array data and masking-out dot array data that the second dot matrix generation unit generates are kept at the dot matrix buffer cell;
Second command unit 7025 is used for instruction and writes, and the index information of described page dot array data and masking-out dot array data is write in the location of instruction;
Second intermediate storage unit 7026 is used to store the element information that second Interpretation unit writes;
Then dot matrix buffer cell 7017 is further used for: store described reusable page elements corresponding page dot array data and masking-out dot array data;
The location of instruction 7019 is further used for: store the index information that second command unit writes;
Indexing units 7041 is further used for: according to the index information that second command unit of storing in the location of instruction writes, find corresponding page dot array data and masking-out dot array data;
Module units 7042 is further used for: the described page dot array data and the masking-out dot array data that utilize indexing units to find carry out the assembling of described variable data page dot matrix.
Variable cell 703 comprises:
The 3rd Interpretation unit 7031 is used for grammar explanation, according to the page-describing information of forming described variable page surface element, obtains the element information of this variable page surface element correspondence;
The 3rd command unit 7032 is used for instruction and writes, and in order described element information is write the described location of instruction;
Then the location of instruction 7019 is further used for: store the element information that the 3rd command unit writes;
Described module units 7042 is further used for: the element information that utilizes the 3rd command unit stored in the location of instruction to write, carry out the assembling of described variable data page dot matrix.
Described element information comprises primitive information and colouring information.Described variable data page comprises the personal printing SGML PPML page or the variable data exchange VDX page.
Obviously, those skilled in the art can carry out various changes and modification to the present invention and not break away from the spirit and scope of the present invention.Like this, if of the present invention these are revised and modification belongs within the scope of claim of the present invention and equivalent technologies thereof, then the present invention also is intended to comprise these changes and modification interior.