Based on printing on demand control method and the device of JDF
Technical field
The present invention relates to print field, in particular to based on the printing on demand control method of JDF (JobDefinitionFormat, living-article descriptor format) and device.
Background technology
At present, for distribution of content in different files, if the file layout that these contents distribute is all identical, so can extract the page in these different files, the intermediate file that composition one is complete in order, then prints the intermediate file that this is complete.
But, when the file layout of multiple files that content distributes is incomplete same, also there is no suitable solution at present to print this content.
Summary of the invention
The present invention aims to provide a kind of printing on demand control method based on JDF and device, to solve the not identical problem caused of prior art file form.
In an embodiment of the present invention, provide a kind of printing on demand control method based on JDF, comprising: according to the page creation JDF file of the multiple different file obtained; Based on the JDF file output page; Wherein, page creation JDF file according to the multiple different file obtained comprises: provide interface, for accepting reference parameter and the page number parameter of user's input, described reference parameter is used to indicate the source of the page that will print, and described page number parameter is used to indicate the page number of the described page in described source; Join from the described reference parameter at described interface and described page number parameter in described JDF file.
In an embodiment of the present invention, provide a kind of printing on demand control device based on JDF, comprising: creation module, for the page creation JDF file according to the multiple different file obtained; Output module, for based on the JDF file output page; Wherein, described creation module comprises: interface module, and for accepting reference parameter and the page number parameter of user's input, described reference parameter is used to indicate the source of the page that will print, and described page number parameter is used to indicate the page number of the described page in described source; Add module, for joining from the described reference parameter at described interface and described page number parameter in described JDF file.
The printing on demand control method based on JDF of the above embodiment of the present invention and device, because adopt JDF file to extract the page of different file, so solve the not identical problem caused of prior art file form, meet the needs of actual production, reach the effect of printing on demand.
Accompanying drawing explanation
Accompanying drawing described herein is used to provide a further understanding of the present invention, and form a application's part, schematic description and description of the present invention, for explaining the present invention, does not form inappropriate limitation of the present invention.In the accompanying drawings:
Fig. 1 shows the process flow diagram of the printing on demand control method based on JDF according to the embodiment of the present invention;
Fig. 2 shows the schematic diagram of the printing on demand control device based on JDF according to the embodiment of the present invention.
Embodiment
Below with reference to the accompanying drawings and in conjunction with the embodiments, describe the present invention in detail.
Fig. 1 shows the process flow diagram of the printing on demand control method based on JDF according to the embodiment of the present invention, comprising:
Step S10, creates JDF file;
Step S20, based on the JDF file output page.
At the beginning of 1999, CIP3 association jointly develops first version of JDF and sets up JDF alliance.JDF (JobDefinitionFormat) i.e. living-article descriptor format is a kind of based on XML (easily extensible markup language) description for living-article and the open file layout of exchange.Namely can will through the living-article of many production runes as one print job, and JDF provides a kind of form removing to describe this living-article by production run.This form can allow control necessary in user's each process clear and definite, Instructing manufacture device go to perform production run, and can be used for service management in early stage and later stage produce perform between mutually exchange.
JDF has following characteristics:
JDF is a kind of explanation of data interchange format, instead of an application program or a system;
JDF is encoded by XML, and it has extensibility;
JDF is based upon CIP3 (Inter-nationalCooperationfortheIntegrationofPrepress, PressandPostpress, before print, printing, Yin Hou Integrated manufacture International Standards Organization) PPF (print production format) and Adobe the structure described by PJTF (can tag format be carried) on;
JDF be product node, process node and the resources of production comprehensive on modeling;
The living-article of JDF describes the structure coming together to define JDF with the message of JMF (living-article message format).
As can be seen from the feature of above JDF, because JDF is a kind of explanation of data interchange format, instead of an application program or a system, even if therefore need the page that exports from the file of multiple different-format, JDF can process.The printing on demand control method based on JDF of the present embodiment and device are because adopt JDF file to extract the page of different file, so solve the not identical problem caused of prior art file form, meet the needs of actual production, reach the effect of printing on demand.
Preferably, create JDF file and comprise: provide interface, for accepting reference parameter and the page number parameter of user's input, wherein, reference parameter is used to indicate the source of the page that will print, and page number parameter is used to indicate the page number of the page in source; Join from the reference parameter at interface and page number parameter in JDF file.This interface can be the user interfaces such as editing machine, such as, provide text box, and user, by filling up a document name and page number etc. in text box, just can input reference parameter and page number parameter like a cork.
Preferably, reference parameter comprises file path and the filename of file belonging to the page; Page number parameter comprises page page number scope hereof.Utilize file path and filename can determine that the page is originated easily, page number scope such as " 10 ?20 " etc., can determine the multiple page of continuous print easily.Above parameter format is extensively general form, can be applied to the file of various different-format.
Preferably, create JDF file also to comprise: the front cover parameter and the back cover parameter that are accepted user's input by interface; Front cover parameter and back cover parameter are joined in JDF file; Comprise based on the JDF file output page: page front cover parameter indicated exports as front cover, and page back cover parameter indicated exports as back cover.This preferred embodiment can realize the effect that cover and back exports easily.
Preferably, create JDF file also to comprise: the file destination parameter being accepted user's input by interface; File destination parameter is joined in JDF file; Comprise based on the JDF file output page: sequentially read the reference parameter in JDF file and page number parameter; Obtain the page indicated by page number parameter in the source indicated by reference parameter; The page group of acquisition is made into the file indicated by file destination parameter.This preferred embodiment can by utilize JDF file acquisition to the page from each different file export be a file.It should be noted that if directly printout, then do not need to add file destination parameter in JDF file.
The JDF file source code of the preferred embodiment for exporting file destination is described below.
Preferred embodiment 1:
Have 4 pdf document A, B, C, D, will export A respectively, B, C, D first two pages, file destination is called E, so can be organized into such a JDF file:
Wherein " Range " is page parameter, and " PDFSourceName " is reference parameter, and " PDFDestinationName " is file destination parameter.Further, front cover parameter and back cover parameter can also be comprised in this JDF file.Such as, front cover parameter and back cover parameter can be scheme switch, when the value of front cover parameter is " on ", are exported by the page of the page number 1 of file A as front cover, when the value of front cover parameter is " off ", the page of the page number 1 of file A is exported as ordinary pages.When the value of back cover parameter is " on ", the page of the page number 2 of file D is exported as back cover, when the value of back cover parameter is " off ", the page of the page number 2 of file D is exported as ordinary pages.Certainly, front cover parameter and back cover parameter can also be other forms, and such as directly fill up a document source and page number, then exported as front cover and back cover by the page of this page number of this document source when exporting.
Preferred embodiment 2:
If want the 3rd of file destination in example 1 the page, namely the 1st page of B changes 5 pages of file F into, so can be organized into such JDF file:
Preferred embodiment 3:
If do not find out B file in example 2, such JDF file so can be organized into, leaving out namely B:
Prior art is owing to generating actual intermediate file, and speed can be slow, and owing to there being the situation of the generation of actual file, so have the problem of security, moreover, if actual file generates, but think to insert one page or amendment one page wherein wherein, all can be cumbersome.Such as, prior art can revise intermediate file, but can be pretty troublesome, adds one page before such as the 3rd page, and all page page numbers so after the 3rd page all must be revised.Intermediate file refers to the file that will print, and such as from a pdf document, extracts 2 pages out, and from another one pdf document, extract 3 pages out, generate the PDF of 5 pages if actual, so this PDF of 5 pages is exactly intermediate file.
And in embodiments of the invention, the JDF file of generation only comprises the relevant parameters of each page, and do not comprise the actual page, so shown in preferred embodiment described above, the insertion deletion page etc. are very convenient.As for speed and the safety issue of prior art, because JDF file does not comprise the actual page, so these problems also solve in the lump.
Preferably, this method also comprises: interface presents the parameters in JDF file; The amendment of user to parameters is accepted by interface; Amended parameter is substituted parameter original in JDF file.By providing this human-computer interaction interface, can user friendly retouching operation widely.
Preferably, comprise based on the JDF file output page: sequentially read the reference parameter in JDF file and page number parameter; Obtain the page indicated by page number parameter in the source indicated by reference parameter; Export the page obtained.This achieve the output of the page of different document source, have nothing to do with the form of source files.
Fig. 2 shows the schematic diagram of the printing on demand control device based on JDF according to the embodiment of the present invention, comprising:
Creation module 10, for creating JDF file;
Output module 20, for based on the JDF file output page.
This device meets the needs of actual production, reaches the effect of printing on demand.
Preferably, creation module 10 comprises: interface module, and for accepting reference parameter and the page number parameter of user's input, wherein, reference parameter is used to indicate the source of the page that will print, and page number parameter is used to indicate the page number of the page in source; Add module, for joining from the reference parameter at interface and page number parameter in JDF file.User, by filling up a document name and page number etc. in text box, just can input reference parameter and page number parameter like a cork.
Preferably, output module 20 comprises: read module, for sequentially reading reference parameter in JDF file and page number parameter; Acquisition module, for obtaining the page indicated by the page number parameter in the source indicated by reference parameter; File module, for exporting the page of acquisition.This achieve the output of the page of different document source, have nothing to do with the form of source files.
As can be seen from the above description, the above embodiments of the present invention decrease the intermediate link of spanned file, improve speed, simultaneously owing to there is no the generation of intermediate file, naturally also do not have the problem of security, in addition, dirigibility aspect has also had than in the past and has significantly improved, if want to insert one page in the file generated, simple modification JDF is only needed to describe.
Obviously, those skilled in the art should be understood that, above-mentioned of the present invention each module or each step can realize with general calculation element, they can concentrate on single calculation element, or be distributed on network that multiple calculation element forms, alternatively, they can realize with the executable program code of calculation element, thus they storages can be performed by calculation element in the storage device, or they are made into each integrated circuit modules respectively, or the multiple module in them or step are made into single integrated circuit module to realize.Like this, the present invention is not restricted to any specific hardware and software combination.
The foregoing is only the preferred embodiments of the present invention, be not limited to the present invention, 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 amendment done, equivalent replacement, improvement etc., all should be included within protection scope of the present invention.