Background technology
Development along with the digital printing technology, a Variable Data Printing that plays seal, a Zhang Butong has also obtained increasingly extensive application, the making link of Variable Data Printing front end mainly depends on data, and variable data content and space of a whole page element are associated, and forms the composing of big data quantity.
Data are the variable main source modes of the content of Variable Data Printing, the own definition of data of user normally, and structure is unified, does not allow to revise under the stencil design state and editor.
The variable data item is expressed the relevance of the word content of space of a whole page element and variable data item in variable data is set type.In the prior art, data processing separates with the template design, and promptly data are pre-designed, can only use and cannot revise the word content of variable data item under the stencil design state; If when stencil design, want to revise or the editing data table in the word content of variable data item, need close design point redesign tables of data again, and then be written into tables of data again, time-consuming effort again at the stencil design state.Can create the variable data item according to user's needs on existing data item when stencil design, realize that the content to the variable data item that the user needs processes, this be for the dirigibility of variable data and professionally play very important influence.
In the present existing variable data typesetting technique, the word content of data item is pre-designed, the user only need use in the stencil design process just can, its deficiency is: because data are pre-designed, so in the stencil design process, cannot process the word content of variable data item, for example: " bar code " shown in Fig. 2-a this variable data item, the corresponding character content is by the effective value of bar code, check code, random code is formed, and only needs the effective value of bar code during stencil design, and does not need full content, because in existing technology, the word content of variable data item is to do as a whole the processing, can not process or edit content during design, can not produce effect as scheduled, can only in code compiling, realize, underaction so obviously, what the user can not be random operates, and has influenced the ease for use and the dirigibility of operation.
Summary of the invention
At existing defective in the prior art, the object of the present invention is to provide a kind of method and system to variable data content reprocessing, be used for to containing the process that the variable data item is set type and handled, can solve the problem that the variable data item is created in the stencil design process, also guarantee simultaneously under the stencil design state just the problem that can process the word content of variable data item
In order to realize the foregoing invention purpose, the technical solution used in the present invention is: a kind of method to variable data content reprocessing may further comprise the steps:
1) in the composing processing procedure of variable data content, creates new variable data item based on the variable data item that exists; The variable data item of described existence is original data item in the described tables of data under the stencil design state, or the new variable data item of creating out according to original data item in the described tables of data under the stencil design state;
After creating new variable data item, define the title of new variable data item and the number of record, new variable data item is joined in the tables of data;
2) new variable data item is provided with the computing parameter;
3) launch the word content of variable data item and obtain new variable data content according to the computing parameter.
Further, in the step 1), the new position of variable data item in tables of data is in last.
Further, step 2) in, the described computing parameter that is provided with is that content to the variable data item adds, subtracts, the multiplication and division computing.
Perhaps, the described computing parameter that is provided with is that content to the variable data item splits according to the position.
Further, described fractionation is to intercept the word content of variable data item arbitrarily to obtain new variable data item content.
Further, the word content that obtains new variable data item described in the step 3) is the parameter value of record associated data item in the described variable data item under the masterplate design point.
Perhaps, the described word content that obtains new variable data item is the content of variable data item correspondence described in the data recording of current institute preview under the preview state as a result.
A kind of system to variable data content reprocessing comprises with lower device:
(1) new variable data item creation apparatus: be used for composing processing procedure, create new variable data item based on the variable data item that exists at variable data content; The variable data item of described existence is original data item in the described tables of data under the stencil design state, or the new variable data item of creating out according to original data item in the described tables of data under the stencil design state; After creating new variable data item, define the title of new variable data item and the number of record, new variable data item is joined in the tables of data;
(2) computing parameter setting apparatus: be connected with new variable data item creation apparatus, be used for new variable data item is provided with the computing parameter;
(3) expanding unit: be connected with the computing parameter setting apparatus, be used to launch the word content of variable data item and obtain new variable data content according to the computing parameter.
Beneficial effect of the present invention is as follows:
The present invention is used for containing the composing processing of variable data item, can create new variable data item according to the computing parameter, content to data item is processed arbitrarily, not only solve the problem that the variable data item is created in the stencil design process, also guaranteed simultaneously under the stencil design state just the problem that can process the word content of variable data item.
Embodiment
Below in conjunction with accompanying drawing the specific embodiment of the present invention is described.
A kind of system to variable data content reprocessing comprises with lower device:
(1) new variable data item creation apparatus: be used for composing processing procedure, create new variable data item based on the variable data item that exists at variable data content;
(2) computing parameter setting apparatus: be used for new variable data item is provided with the computing parameter;
(3) expanding unit: be used to launch the word content of variable data item and obtain new variable data content according to the computing parameter.
Fig. 1 is the method implementing procedure synoptic diagram to the word content reprocessing of variable data item, and as shown in Figure 1, in the composing that contains the variable data item was handled, reprocessing can be implemented as follows to variable data content:
Step 1), S101 create new variable data item based on the variable data item that exists;
Step 2), S102, new variable data item is provided with the computing parameter;
Step 3), S103 launch the word content of variable data item and obtain new variable data content according to the computing parameter.
In the present embodiment, for step 1), the variable data item that is based on existence is created new variable data item, defines the title of new variable data item and the record number of variable data item;
Be specifically as follows: under the masterplate design point, obtain the variable data item that has existed, that is: obtaining the variable data item that has existed can be original variable data item in the tables of data; And/or, be to create the new variable data item that produces according to the variable data item that has existed.Define the title of variable data item and the number of record then, variable data item after creating is joined in the tables of data, the new position of variable data item in tables of data that produces is in last, synoptic diagram 2-a shows that the new variable characters item of creating " bar code value " is last variable data item of " DataUnit " tables of data, in like manner, synoptic diagram 3 shows that new variable data item " profit " is last variable data item of " Sales " tables of data.
Step 2) in, it is the method that the word content of described variable data item is reprocessed that new variable data item is provided with the computing parameter.
The new variable data item of existing variable data Xiang Laiwei is provided with the computing parameter in can be by previous step rapid, concrete, the type that is provided with of computing parameter comprises: first type is that word content to the variable data item splits according to character position, that is: can split word content from which character to which character as the computing parameter to obtain the content of new variable data item, the position of intercepting can be selected arbitrarily; Second type is that new variable data item is obtained in computings such as word content to 1 or several variable data items adds, subtracts, multiplication and division.
The method that the variable data item is provided with the concrete enforcement of computing parameter can realize in the following manner:
When one, the computing parameter type was first type, the computing parameter was to carry out association according to the position at character place in whole word content.
Concrete, the example that is made as with bar code is told about variable data content is split, under the stencil design state, open data list file, variable data item " bar code " is arranged in the tables of data, " bar code " corresponding character content is " 500100000000174515 ", and 18 altogether, preceding 12 is the bar code effective value, the 13rd is check code, 5 of backs are random code, and when making bar code, what require the bar code demonstration is preceding 12 bar code pattern that effective bar code value generates, and the value of bar code below requires to show " bar code " corresponding character content, comprise the bar code effective value, check code, random code.That is: related data were real preceding 12 bar code effective values during bar code was made, only need character " 500100000000 " to participate in the composing of space of a whole page mutable object, and the bar code content request that the bar code below shows shows " 500100000000174515 ", so just needs the corresponding word content of a variable data item to set type for " 500100000000 " participate in.Traditional method is to close tables of data, withdraw from the stencil design state, again the data content is processed, and then turn back to the stencil design state, reuse the variable data item, also just mean and work as each demand not simultaneously, all will withdraw from the stencil design state, again to data processing, can not under the stencil design state, define the variable data item as required freely like this.
The word content of variable data item is made up of one or more characters, character position can write down the position of character in whole word content in the mode of a character index, so that be used for writing down the corresponding relation of character and word content, wherein character index can be a numeral, be exactly the position of character in the word content of the variable data item at place, be which character it is, because the computing machine the inside generally all is to get used to counting from 0 counting, said at ordinary times the 1st character, logical being usual to speak is the 0th in the computing machine the inside, is 1 then successively, 2,3 or the like.Then the corresponding relation of the bar code effective value of variable data item " bar code " word content " 500100000000174515 " and character position is: reference position parameter value (0,0), final position parameter (0,11), just zero character and the 11 character.In the enforcement, the computing parameter can be set be the content of intercepting from 11 characters of zero character to the.
When two, computing parameter was second type, the computing parameter was mathematical operation, to the word content of 1 or several variable data items add, subtract, the computing of multiplication and division etc. obtains new variable data.
Concrete, set forth with the data of a cost budgeting.There is variable data item " cost price " in the tables of data, " selling price ".Under the stencil design state, need variable data item " profit " to participate in setting type, the word content of variable data item " profit " can be according to obtaining after data item " cost price " and " selling price " computing.In the enforcement, the computing parameter is set is "-" (subtraction), related variable data item gets final product for " cost price " and " selling price "." rate of profit " if desired, but then can continue to create variable parameter item, it is division that the computing parameter is set, related variable data item is " profit " and " cost ".
The word content of the expansion variable data item of step 3) also obtains new variable data content according to the computing parameter, and the concrete method of implementing can realize in the following manner:
When one, the computing parameter type is first type, obtain the title " bar code value " of new variable data item according to step 1), according to step 2) obtain the computing parameter for intercepting content from 11 characters of zero character to the, at this moment, launch the word content of variable data item " bar code ", the word content that just can obtain new variable data item according to the computing parameter is " 500100000000 ", as Fig. 2-b, then, according to the incidence relation of variable data item and the space of a whole page mutable object content of variable data is set, finishes composing.Effect synoptic diagram such as Fig. 2-c after the composing.
When two, computing parameter is second type, according to step 1), step 2), the word content that launches variable data item " cost price " and " selling price " carries out subtraction, obtain the word content of new variable data item " profit ", at this moment, variable data item " profit " is related with space of a whole page mutable object, finish composing.
By the foregoing description, just can be random as requested under the stencil design state, create the variable data item, and the word content of variable data item is edited.Can comprise in the successor operation variable data item of creating is preserved, so that next time is when opening tables of data again, this variable data item need not be created again, pass through to create the variable data item among the embodiment, and the variable data item is provided with the word content that the computing parameter is obtained new variable data item, thereby the effect that reaches is just can edit reprocessing to the word content of variable data item under the stencil design state.
As can be seen from the above-described embodiment, in the prior art, the processing of data separates with the template design, promptly be to process the word content of variable data item under the stencil design state, can only withdraw from the stencil design state, again the data content is processed, and then turn back to the stencil design state, reuse the variable data item, also just mean and work as each demand not simultaneously, all will withdraw from the stencil design state, to data processing, this mode is difficult to accomplish define freely as required the variable data item under the stencil design state again.
And the present invention at first creates new variable data item, the title of the variable data item that definable is new and the record number of variable data item based on the variable data item that exists; Then new variable data item is provided with the computing parameter, the word content application parameter of variable data item is obtained in the tables of data that new variable data item joins the variable data item place that has existed, so that related participation with space of a whole page mutable object is set type.The word content that participates in the variable data item of composing can be processed once more by producing new variable data item, new variable data item is done as a whole participation and is set type.Therefore, the present invention has not only solved the problem that the variable data item is created in the stencil design process, also guaranteed simultaneously under the stencil design state just the problem that can process the word content of variable data item, also solve the variable data item and processed loaded down with trivial details time-consuming problem, data processing is unified with the template design.
Method of the present invention is not limited to the embodiment described in the embodiment, and those skilled in the art's technical scheme according to the present invention draws other embodiment, belongs to technological innovation scope of the present invention equally.