Embodiment
Describe below with reference to the accompanying drawings and in conjunction with the embodiments the present invention in detail.
Fig. 1 shows the process flow diagram according to the keyline layout method that is used for variable data of the embodiment of the invention, comprising:
Step S10 obtains the variable data source;
Step S20 creates page layout template, wherein binds the variable data source;
Step S30 carries out the layout rule that arranges, and generates layout to utilize page layout template.
This keyline layout method is because adopt page layout template binding variable data source, can't be to the variable data problem of layout neatly so solved prior art, and easy and simple to handle, can realize neatly the layout output of variable data.
Preferably, step S10 comprises: obtain the pattern file; Resolve the pattern file, to determine wherein to comprise the data field in variable data source.Variable data provides by the pattern file usually, and this preferred embodiment goes for these scenes.
Fig. 2 shows the screenshot capture that obtains according to the preferred embodiment of the invention variable data, comprise: import a dsf file (being the pattern file), from this pattern file, extract the data field in variable data source, then export to the epd file (being variable data document) that makes things convenient for subsequent treatment.
Preferably, step S20 comprises: create new page layout template; Fixedly composing element and variable composing element are set, the data field that its variable composing element is the variable data source in page layout template.Utilize the fixedly format of layout of page layout template, by variable composing element is set in page layout template, variable data can be imported in the layout.
Fig. 3 shows the screenshot capture according to the generation page layout template of the embodiment of the invention, comprise: graphical editing interface is provided, allow the user to pull required various fixedly composing elements into, edit and layout, bind in variable data source in the selected epd file simultaneously, saves as at last a tpl file (being the layout templates file).
Preferably, step S30 comprises: in advance the layout rule is written as executable plug-in unit; The layout editing interface is provided, inputs plug-in unit to accept the user; By carrying out plug-in unit with the invoking page layout templates.By the mode of plug-in unit, can allow the user at random to select the plug-in unit of wanting, can realize the rule expected, thus the layout of output user expectation.This mode of operation is very easy flexibly.
Fig. 4 shows the screenshot capture that the user inputs plug-in unit of accepting according to the embodiment of the invention, comprising: the layout editing interface is provided, accepts the user on title one hurdle and input the used name of this plug-in unit (for example " test "); In dll title one hurdle, select used dll corresponding to plug-in unit.In picture one hurdle, can select arbitrarily a secondary picture as the sign of this plug-in unit.Describing at last a hurdle is illustrated the function of plug-in unit.
Preferably, in the method for above-mentioned arbitrary embodiment, different variable data source bound to the different pages respectively from two different pattern files in the variable data source in page layout template.When layout content from same epd data source the time, can select an input, an epd data source corresponding to input this moment.When the layout content comprises two different epd data sources, can select two inputs, the corresponding epd data source of each input.In the layout rule of plug-in unit, can provide as follows:
For an input (acquiescence input), any processing is not done in output in the normal order, and the large version document order that generates is consistent with the pdf file of original input with content.
Come from two different epd data sources for the large version file content that generates, then large version file is that two epd data sources generate according to selected rule, and for example: just carrying on the back when printing, the positive content of large version file comes from the data source of first input; Back side content comes from the data source of second input.
This preferred embodiment allows to quote two different pattern files, thereby has realized more flexibly variable data layout output.
After the layout that generates variable data, this layout can also be outputed to printing device.Fig. 5 shows the schematic diagram of the layout of exporting according to the preferred embodiment of the invention variable data, comprising:
(1) provides the interface, allow the user to select a self-defined layout plug-in unit that comprises the layout rule according to the layout demand, simultaneously to self-defining layout plug-in unit name.
(2) be that the epd file is as data source by the variable data crossover tool with the one style file conversion.
(3) provide the variable data editing machine, to accept the user each element is set type and layout, bind with the epd data simultaneously, generate page layout template.
(4) provide equipment interface, accept the required device type of user selection output.
(5) submit job is exported (Fig. 8 shows the according to the preferred embodiment of the invention screenshot capture of submit job).
Fig. 6 shows the screenshot capture that creates according to the preferred embodiment of the invention the equipment template; Fig. 7 shows the screenshot capture that the parameter of equipment template is set according to the preferred embodiment of the present invention.By the interface of Fig. 6, user input device template name and equipment template are described, and can create a new equipment template; By the interface of Fig. 7, the user can arrange the parameters of equipment.By the establishment of equipment template, can help the user when exporting layout next time, device parameter needn't be set again, the equipment template of directly calling pre-save gets final product.
Fig. 9 shows the schematic diagram according to the makeup device that is used for variable data of the embodiment of the invention, comprising:
Acquisition module 10 is used for obtaining the variable data source;
Creation module 20 is used for creating page layout template, wherein binds the variable data source;
Execution module 30 is used for carrying out the layout rule that arranges, and generates layout to utilize page layout template.
This makeup device can be realized the layout output of variable data neatly.
Preferably, acquisition module 10 comprises: file module is used for obtaining the pattern file; Parsing module is used for resolving the pattern file, to determine wherein to comprise the data field in variable data source.
Preferably, creation module 20 comprises: new file module is used for creating new page layout template; Module is set, is used in page layout template fixedly composing element and variable composing element, the data field that its variable composing element is the variable data source being set.
Preferably, execution module 30 comprises: card module is used in advance the layout rule being written as executable plug-in unit; Interface module is used for providing the layout editing interface, inputs plug-in unit to accept the user; Calling module is used for by carrying out plug-in unit with the invoking page layout templates.
Preferably, in the device of above-mentioned arbitrary embodiment, different variable data source bound to the different pages respectively from two different pattern files in the variable data source in page layout template.
The method that the present invention adopts is according to selected layout mode before submitting to, merges exporting pdf and according to rule pdf being carried out layout.So that under the prerequisite that just begins selected good layout mode, by flow processing, output be pdf file according to selected layout regular weaves.The characteristics of this method are
As can be seen from the above description, the above embodiments of the present invention are easy and simple to handle, processing is rapid, with strong points, can satisfy well the different demands of different user, have very high dirigibility.
Obviously, those skilled in the art should be understood that, above-mentioned each module of the present invention or each step can realize with general calculation element, they can concentrate on the single calculation element, perhaps be distributed on the network that a plurality of calculation elements form, alternatively, they can be realized with the executable program code of calculation element, carried out by calculation element thereby they can be stored in the memory storage, perhaps they are made into respectively each integrated circuit modules, perhaps a plurality of modules in them or step are made into the single integrated circuit module and realize.Like this, the present invention is not restricted to any specific hardware and software combination.
The above is the preferred embodiments of the present invention only, is not limited to the present invention, and for a person skilled in the art, the present invention can have various modifications and variations.Within the spirit and principles in the present invention all, any modification of doing, be equal to replacement, improvement etc., all should be included within protection scope of the present invention.