The specific embodiment
Below with reference to the accompanying drawings and in conjunction with the embodiments, describe the present invention in detail.
Fig. 1 shows according to an embodiment of the invention the flow chart for the mark processing method of layout, bag:
Step S10, determines and is marked at residing layer in large version, wherein, the printed document that layer is usingd in large version is as interval;
Step S20, generates respectively a tab file by the mark of each layer.
Prior art generally adopts to be processed all marks together as an object, prior art lacks hierarchical relationship and can cause all marks can only be in the top of all printed documents, the nontransparent lower floor's file that causes covering co-located of file due to upper strata, have a strong impact on the layout of printed document, and the accuracy of layout result has been subject to impact to a certain degree.
And the present embodiment proposes mark layering to process, and layering is relevant to the printed document in large version, during therefore for each printed document operational label, can be associated with the mark of every one deck, rather than process for the whole object of prior art, thereby increased the flexibility that mark is processed.
Fig. 2 shows the schematic diagram of large according to an embodiment of the invention version, in this large version, comprises printed document 1 and printed document 2, therefore can take printed document 1 and printed document 2 as 3 layers of interval generations, from top to bottom, is followed successively by: layer 1, printed document 1, layer 2, printed document 2, layer 3.According to embodiments of the invention, can generate respectively a tab file for the mark of layer 1, layer 2, layer 3.
Preferably, step S20 comprises: in tab file, record: the level of tab file institute respective layer and be marked at the position in layer.This can be associated with layer by tab file at an easy rate.
Preferably, this mark processing method also comprises: the information of obtaining in advance printed document; Step S20 comprises: file type, number of pages and the look face of according to the information of printed document, determining tab file.Because mark is associated with printed document, so generate tab file according to printed document, can improve the compatibility of file.
Preferably, according to the information of printed document, determine that file type, number of pages and the look face of tab file comprise:
If the printed document in large version comprises pre-color separation file and tertiary colour file simultaneously, cancel and generate tab file, and point out user cannot determine file type;
If the printed document in large version is tertiary colour file entirely, tab file is set as to tertiary colour file;
If the printed document in large version be pre-color separation file entirely, first tab file is first set as to tertiary colour file, it comprises a plurality of pages, the number of pages of the page is the look face number of the pre-color separation that comprises of all printed documents, wherein according to look face name, adds up look face number; Then the file content attribute of setting successively every one page of tab file is corresponding look face, and the content of every one page, by the mark operation relevant to corresponding look face, makes tab file be converted into pre-color separation file.
For pre-minute color marker, first process generation tertiary colour file and be converted into again pre-color separation file, simply effective.Consider file type that printed document comprises have three kinds may, so this preferred embodiment provides three kinds of plans of establishment of tab file, thereby can be applied to various occasions.
Fig. 3 shows the flow chart of the mark processing method for layout of above preferred embodiment according to the present invention, comprising:
Step S1: obtain and need to spell the type of the printed document of version greatly, distinguish according to pre-color separation file or tertiary colour file;
Step S2: also comprise tertiary colour file if file type not only comprises pre-color separation file, can not carry out the principle of layout according to pre-color separation file and tertiary colour file simultaneously, this layout finishes, prompting user cannot be for further processing;
Step S3: if same type, can take the layer that printed document is interval by determining that mark is residing;
Step S4: generate a printed document by being positioned at all marks of same layer, adopt Portable Document format pdf document.
Fig. 4 shows the process chart of one deck mark in accordance with a preferred embodiment of the present invention, comprising:
Step 301: look face title and the CMYK description value of obtaining all printed documents;
Then whether judge mark file is all pre-color separation file, if it is performs step S302, otherwise continues whether judge mark file is all tertiary colour file, if, directly perform step 303, if neither be all tertiary colour file, process ends.
Step 302: if tab file is pre-color separation file, the number of pages that the number of the set of the look face that the step 301 of take obtains is tab file, every one page pack processing is containing the action of corresponding look face title;
Step 303: generate tertiary colour file by being positioned at all marks of same layer;
Step 304: the file that modify steps 303 generates is pre-color separation file, then process ends.
Preferably, this mark processing method also comprises: in advance mark is divided into the customize tag of external file and the user's mark being provided by layout system are provided, wherein external file comprises the operation that customize tag decomposes; User's mark is decomposed into following operation: lines, ellipse, rectangle, word, and to operation setting font size, fill color, line color, position, wide high attribute.This preferred embodiment has been determined the operation of mark for the page, thereby can determine the file content of every one page of tab file.The predefined mark of user is decomposed to word, lines, rectangle, oval four kinds of basic operations, simplified the processing to mark.
Preferably, this method also comprises: accept user word marking is converted to (for example rotation or placed in the middle); For conversion, adopt double-mirror to position, and according to font datum width with highly to calculate the length and location of word marking.Calculate the word marking that the length and location of word marking can accurate description user add.What add marking operation for user is patterned operation interface, be one simply to the operation of picture (as the file of JPG form) (such as amplifying, dwindling), these information accurately should be reflected in the PDF tab file of generation.Introduce font datum width and highly can improve the accuracy of calculating, such as: the same font size (such as " little five " " little four ") of two different font (Song typeface, regular script) is to have certain nuance or error.
Preferably, tab file is pdf document, obtains file type and the look surface information of printed document from printed document the pdf document of quoting.PDF is the most general in the industry form, so this preferred embodiment can be applied to various occasions.
Preferably, tab file is for certainly containing file, wherein comprised the font information that mark is used, the breadth of the layer of tab file is consistent with the breadth that generates the large edition template of using, the reference coordinate of breadth of layer of tab file is set from initial point (0,0) start, if the breadth of the layer of tab file is not to adopt origin system, by coordinates matrix conversion, is converted to origin and is.Such as the size file that is 40*50.Its coordinate can be described as the lower left corner (0,0), the upper right corner (40,50).But the lower left corner is described as (20,30), it is also legal and correct that the upper right corner is described as (60,80), even also can Direct function description 90-degree rotation etc. information, and directly in coordinate, do not embody.For follow-up processing, need to not the Coordinate Conversion of carrying out of (0,0) the lower left corner, the coordinate after conversion represents to be all standard, describes the coordinate in the lower left corner with (0,0).This facilitates this tab file to be applied in various output systems, is no longer dependent on output system font support is provided.In addition, wide, the height wide, high and layout template of the layer of tab file are consistent, coordinates matrix is all converted to origin, and layer and the printed document of tab file indicate differentiation, accurate discernable marks and printed document, subsequent treatment and displaying interface are clear and intuitive, make user's operation easier, accurate.
Preferably, this mark processing method also comprises: according to the order of layer, successively tab file, printed document and additional information are stored in the information that the layout file of large version quotes, and determine according to the relation of layer the order that tab file occurs in layout file; Wherein, additional information comprises: the type of mark is provided by the look surface information of the customize tag of external file or the user's mark being provided by layout system and tab file.This layout file can be carried out various processing easily.In the layout information that layout generates, add additional information, can carry out easily secondary parsing, be conducive to user and reduce layout file, carry out part and replace, greatly alleviate workload and improved convenient degree.
The manual imposition process of the Portable Document format pdf document a, b, c, d of 4 pre-color separation types and 4 mark m1, m2, m3 of take is below example, and the above embodiment of the present invention is further described.In the present embodiment, when Portable Document format pdf document a, b, c, d and mark m1, m2, m3, m4 are carried out to manual imposition:
First, suppose that file a comprises cyan, yellow, tri-color separation faces of spot1, b comprises blank, yellow, tri-color separation faces of spot2, c comprises color separation face of spot2, d comprises blank, bis-color separation faces of yellow, and the order of printed document and mark is m1, a, b, m2, m3, c, m4, d.The look face set of obtaining the large edition printed document using is cyan, yellow, blank, spot1, spot2.
Secondly, all marks have been divided into 3 layers: m1, m2 and m3, m4.And first tab file is generated as 3 tab file tertiary colour file m1_001, m2_m3_001, the m4_001 of 5 pages, the look face action corresponding from the 1st page to the 5th page is cyan, yellow, blank, spot1, spot2, when every one page is only carried out the action that comprises this page of corresponding look face, just carries out.As m1 comprises two basic operations: use yellow to describe a square, use spot2 to describe a circle, square is performed at the 2nd page, and circle is performed at the 5th page.
Then, change the attribute of every one page of each tab file, make it to be converted into pre-color separation file.The layout file surface_001 that layout generates is sequentially m1_001, a, b, m2_m3_001, c, m4_001, d to the record of printed document and tab file.
Finally, the information such as additional information, printed document, tab file that record mark in the layout file surface_001 that layout generates are carried out subsequent treatment.
Fig. 5 shows according to an embodiment of the invention the schematic diagram for the mark treating apparatus of layout, comprising:
Hierarchical block 10, is marked at the residing layer of large version for determining, wherein, the printed document that layer is usingd in large version is as interval;
Generation module 20, for generating the mark of each layer respectively a tab file.
The present embodiment has improved the flexibility that mark is processed.
Preferably, generation module 20 is for recording at tab file: the level of tab file institute respective layer and be marked at the position in layer.This can be associated with layer by tab file at an easy rate.
Preferably, this mark treating apparatus also comprises acquisition module, for obtaining in advance the information of printed document; Generation module 20 is determined file type, number of pages and the look face of tab file according to the information of printed document.Because mark is associated with printed document, so generate tab file according to printed document, can improve the compatibility of file.
Preferably, generation module 20 comprises:
The first module, if comprise pre-color separation file and tertiary colour file for the printed document of large version simultaneously, cancels and generates tab file, and point out user cannot determine file type;
The second module, if be tertiary colour file entirely for the printed document of large version, is set as tab file tertiary colour file;
The 3rd module, if the printed document for large version is pre-color separation file entirely, first tab file is first set as to tertiary colour file, it comprises a plurality of pages, the number of pages of the page is the look face number of the pre-color separation that comprises of all printed documents, wherein according to look face name statistics look face number; Then the file content attribute of setting successively every one page of tab file is corresponding look face, and the content of every one page, by the mark operation relevant to corresponding look face, makes tab file be converted into pre-color separation file.
For pre-minute color marker, first process generation tertiary colour file and be converted into again pre-color separation file, simply effective.Consider file type that printed document comprises have three kinds may, so this preferred embodiment provides three kinds of plans of establishment of tab file, thereby can be applied to various occasions.
Preferably, this mark treating apparatus also comprises: sort module, in advance mark being divided into, quote the customize tag of external file and the user's mark being provided by layout system, and wherein external file comprises the operation that customize tag decomposes; Decomposing module, for user's mark is decomposed into following operation: lines, ellipse, rectangle, word, and to operation setting font size, fill color, line color, position, wide high attribute.The predefined mark of user is decomposed to word, lines, rectangle, oval four kinds of basic operations, simplified the processing to mark.
Preferably, this mark treating apparatus also comprises conversion module, for accepting user, mark is converted; For conversion, adopt double-mirror to position, and according to font datum width with highly to calculate the length and location of word marking.This preferred embodiment can be processed the map function of word marking.
Preferably, this mark treating apparatus also comprises memory module, the information of quoting for successively tab file, printed document and additional information are stored into the layout file of large version according to the order of layer, and determine according to the relation of layer the order that tab file occurs in layout file; Wherein, additional information comprises: the type of mark is provided by the look surface information of the customize tag of external file or the user's mark being provided by layout system and tab file.This layout file can be carried out various processing easily.In the layout information that layout generates, add additional information, can carry out easily secondary parsing, be conducive to user and reduce layout file, carry out part and replace, greatly alleviate workload and improved convenient degree.
As can be seen from the above description, the above embodiments of the present invention are when spelling large version, and the printed document of take is set up the concept of layer as cutting apart sign, continuous mark is processed as an object, and user can adjust the ATM layer relationsATM between mark flexibly; By mark is carried out to atomization partition, interface is unified, convenient; For pre-color separation tab file, also can easily process, in the space of a whole page description document generating, by additional information, can carry out easily secondary layout.The present invention is being better than the mark processing mode of prior art aspect practicality, accuracy.
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 single calculation element, or 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, thereby they can be stored in storage device and be carried out by calculation element, or they are made into respectively to each integrated circuit modules, or a plurality of modules in them or step are made into single integrated circuit module to be realized.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 modification of doing, be equal to replacement, improvement etc., within all should being included in protection scope of the present invention.