The specific embodiment
Below with reference to accompanying drawing and combine embodiment, specify the present invention.
Fig. 1 shows the flow chart of the mark processing method that is used for layout according to an embodiment of the invention, the bag handle:
Step S10 confirms to be marked at residing layer in the big version, wherein, layer with the printed document in the big version as at interval;
Step S20 generates a tab file respectively with the mark of each layer.
The general employing of prior art handled all marks together as an object; Prior art lack hierarchical relationship can cause underlined can only be in the top of all printed documents; Because the nontransparent lower floor's file that causes to cover co-located of the file on upper strata; Have a strong impact on the layout of printed document, and layout result's accuracy has received influence to a certain degree.
And present embodiment proposes the mark layering is handled; And layering is relevant with printed document in the big version, when therefore being directed against each printed document operational label, can be associated with the mark of each layer; Rather than handle, thereby increased the mark processing more flexible to the whole object of prior art.
Fig. 2 shows the sketch map of big according to an embodiment of the invention version, comprises printed document 1 and printed document 2 in this big version, can serve as to generate 3 layers at interval with printed document 1 and printed document 2 therefore, 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 a tab file respectively for the mark of layer 1, layer 2, layer 3.
Preferably, step S20 comprises: in tab file, put down in writing: the level of tab file institute respective layer be marked at the position in the layer.This can be associated with layer with tab file at an easy rate.
Preferably, this mark processing method also comprises: the information of obtaining printed document in advance; Step S20 comprises: file type, number of pages and the look face of confirming tab file according to the information of printed document.Because mark is associated with printed document,, can improve the compatibility of file so generate tab file according to printed document.
Preferably, confirm that according to the information of printed document file type, number of pages and the look face of tab file comprise:
Presort look file and tertiary colour file if the printed document in the big version comprises simultaneously, then cancellation generates tab file, and the prompting user can't confirm file type;
If the printed document in the big version is the tertiary colour file entirely, then tab file is set at the tertiary colour file;
If the printed document in the big version is complete in presorting the look file, then earlier tab file is set at the tertiary colour file earlier, it comprises a plurality of pages, the number of pages of the page is the look face number of presorting look that all printed documents comprise, wherein according to look face name statistics look face number; The file content attribute of setting each page of tab file then successively is corresponding look face, the content of each page be mark with the relevant operation of corresponding look face, tab file is converted into presorts the look file.
For presorting color marker, at first processing generation tertiary colour file is converted into and presorts the look file, and is effectively simple.Consider file type that printed document comprises have three kinds maybe, 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 that is used for layout of above-mentioned preferred embodiment according to the present invention, comprising:
Step S1: obtain the type of printed document that need to piece together big version, promptly according to presorting the look file or the tertiary colour file is distinguished;
Step S2: if file type comprises that not only presorting the look file also comprises the tertiary colour file, then according to presorting the principle that look file and tertiary colour file can not carry out layout simultaneously, this layout finishes, and the prompting user can't be for further processing;
Step S3: if same type, then can with confirm mark residing be at interval layer with the printed document;
Step S4: will be positioned at all printed documents of mark generation of one deck, and adopt the 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;
Whether the judge mark file all is to presort the look file then, if execution in step S302 then, otherwise continue whether the judge mark file all is the tertiary colour file; If; Then direct execution in step 303 is if neither all be tertiary colour file, then process ends.
Step 302: if tab file for presorting the look file, the number of the set of the look face that obtains with step 301 is the number of pages of tab file, each page only handled the action that comprises corresponding look face title;
Step 303: will be positioned at all mark generation tertiary colour files of one deck;
Step 304: the file that modify steps 303 generates is for presorting look file, process ends then.
Preferably, this mark processing method also comprises: in advance mark is divided into the customize tag of quoting external file and the user's mark that is provided by the layout system, wherein external file comprises the operation that customize tag decomposes; User's mark is decomposed into following operation: lines, ellipse, rectangle, literal, and to operation setting font size, fill color, line color, position, wide high attribute.This preferred embodiment has been confirmed the operation of mark for the page, thereby can confirm the file content of each page of tab file.Decompose literal, lines, rectangle, oval four kinds of basic operations to the predefined mark of user, simplified processing mark.
Preferably, this method also comprises: accept the user word marking is carried out conversion (for example rotation or placed in the middle); To conversion, adopt double-mirror to position, and according to font datum width and length and the position of height with the calculating word marking.The length of calculating word marking and position can accurate description user interpolation word marking.What supply that the user adds marking operation is patterned operation interface, be one simply to the operation (such as amplifying, dwindling) of picture (like the file of JPG form), should accurately be reflected to these information in the PDF tab file of generation.Introduce the 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 a pdf document, from the pdf document that printed document is quoted, obtains the file type and the look surface information of printed document.PDF is the most general in the industry form, so this preferred embodiment can be applied to various occasions.
Preferably; Tab file has wherein comprised the employed font information of mark for from containing file, and the breadth of the layer of tab file is consistent with the breadth that generates the employed template of big version; The reference coordinate of breadth of layer that tab file is set is from initial point (0; 0) beginning if the breadth of the layer of tab file is not to adopt origin system, is then changed to be converted to origin system through coordinates matrix.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), and it also is legal and correct that the upper right corner is described as (60,80), even also can directly describe and revolve information such as turn 90 degrees, and directly in coordinate, does not embody.For follow-up processing, need not the Coordinate Conversion of carrying out of (0,0) lower left corner, the coordinate after the conversion representes all to be standard, describes the coordinate in the lower left corner with (0,0).This makes things convenient for this tab file to be applied in the various output systems, is no longer dependent on output system the font support is provided.In addition; Wide, the height wide, high and layout template of the layer of tab file are consistent; Coordinates matrix all converts origin into, and the layer of tab file indicates differentiation with printed document, accurate discernable marks and printed document; Subsequent treatment and displaying interface are clear and intuitive, make that user's operation is easier, accurate.
Preferably, this mark processing method also comprises: successively tab file, printed document and additional information are stored in the information that the layout file of big version quotes according to the order of layer, and confirm the order that tab file occurs according to the relation of layer in layout file; Wherein, additional information comprises: the type of mark is quoted the customize tag of external file or the user's mark that is provided by the layout system and the look surface information of 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 secondary easily and resolve, help the user and reduce layout file, carry out part replacement, alleviate workload greatly and improved convenient degree.
Manual imposition process with 4 Portable Document format pdf document a that presort the look type, b, c, d and 4 mark m1, m2, m3 is an example below, to the above embodiment of the present invention further explain.In the present embodiment, to Portable Document format pdf document a, b, c, d and mark m1, m2, m3, when m4 carries out manual imposition:
At first; Suppose that file a comprises cyan, yellow, three color separation faces of spot1; B comprises blank, yellow, three color separation faces of spot2; C comprises color separation face of spot2, and d comprises blank, two 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 then obtaining the employed printed document of big version is cyan, yellow, blank, spot1, spot2.
Secondly, all marks have been divided into 3 layers: m1, m2 and m3, m4.And tab file at first is generated as 5 pages 3 tab file tertiary colour file m1_001, m2_m3_001, m4_001; The action of look face from the 1st page to the 5th page of correspondence is cyan, yellow, blank, spot1, spot2, just carries out when promptly each page only carried out the action of the look face that comprises this page correspondence.Comprise two basic operations like m1: use yellow to describe a square, use spot2 to describe a circle, then square is performed at the 2nd page, and circle is performed at the 5th page.
Then, change the attribute of each page of each tab file, make it to be converted into and presort the look file.The layout file surface_001 that layout generates is m1_001, a, b, m2_m3_001, c, m4_001, d to the record of printed document and tab file in proper order.
At last, information such as the additional information of record mark, printed document, tab file are carried out subsequent treatment in the layout file surface_001 that layout generates.
Fig. 5 shows the mark that is used for layout according to an embodiment of the invention and handles schematic representation of apparatus, comprising:
Hierarchical block 10 is used for confirming to be marked at the residing layer of big version, wherein, layer with the printed document in the big version as at interval;
Generation module 20 is used for the mark of each layer is generated a tab file respectively.
Present embodiment has improved the mark processing more flexible.
Preferably, generation module 20 is used for putting down in writing at tab file: the level of tab file institute respective layer be marked at the position in the layer.This can be associated with layer with tab file at an easy rate.
Preferably, this mark treating apparatus also comprises acquisition module, is used for obtaining in advance the information of printed document; Generation module 20 is confirmed 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,, can improve the compatibility of file so generate tab file according to printed document.
Preferably, generation module 20 comprises:
First module comprises simultaneously and presorts look file and tertiary colour file that then cancellation generates tab file, and points out the user can't confirm file type if be used for the printed document of big version;
Second module is if the printed document that is used for big version then is set at the tertiary colour file with tab file entirely for the tertiary colour file;
Three module; If it is complete in presorting the look file to be used for the printed document of big version, then earlier tab file is set at the tertiary colour file earlier, it comprises a plurality of pages; The number of pages of the page is the look face number of presorting look that all printed documents comprise, wherein according to look face name statistics look face number; The file content attribute of setting each page of tab file then successively is corresponding look face, the content of each page be mark with the relevant operation of corresponding look face, tab file is converted into presorts the look file.
For presorting color marker, at first processing generation tertiary colour file is converted into and presorts the look file, and is effectively simple.Consider file type that printed document comprises have three kinds maybe, 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, be used in advance mark being divided into the customize tag of quoting external file and the user's mark that is provided by the layout system, and wherein external file comprises the operation that customize tag decomposes; Decomposing module is used for user's mark is decomposed into following operation: lines, ellipse, rectangle, literal, and to operation setting font size, fill color, line color, position, wide high attribute.Decompose literal, lines, rectangle, oval four kinds of basic operations to the predefined mark of user, simplified processing mark.
Preferably, this mark treating apparatus also comprises conversion module, is used to accept the user mark is carried out conversion; To conversion, adopt double-mirror to position, and according to font datum width and length and the position of height with the calculating word marking.This preferred embodiment can be handled the map function of word marking.
Preferably; This mark treating apparatus also comprises memory module; Be used for successively tab file, printed document and additional information being stored into the information that the layout file of big version is quoted, and confirm the order that tab file occurs in layout file according to the relation of layer according to the order of layer; Wherein, additional information comprises: the type of mark is quoted the customize tag of external file or the user's mark that is provided by the layout system and the look surface information of 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 secondary easily and resolve, help the user and reduce layout file, carry out part replacement, alleviate workload greatly and improved convenient degree.
Can find out that from above description the above embodiments of the present invention are to cut apart the notion that sign is set up layer with printed document when piecing together big version, handle continuous mark as an object, the user can adjust the ATM layer relationsATM between the mark flexibly; Through mark being carried out the atomization partition, interface is unified, convenient; Also can easily handle for presorting the color marker file, in the space of a whole page description document that generates, can carry out the secondary layout easily through additional information.The present invention is in the mark processing mode that is superior to prior art aspect practicality, the accuracy.
Obviously; It is apparent to those skilled in the art that above-mentioned each module of the present invention or each step can realize that they can concentrate on the single calculation element with the general calculation device; Perhaps be distributed on the network that a plurality of calculation element forms; Alternatively, they can be realized with the executable program code of calculation element, carried out by calculation element thereby can they be stored in the storage device; Perhaps they are made into each integrated circuit modules respectively, 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 merely the preferred embodiments of the present invention, is not limited to the present invention, and for a person skilled in the art, the present invention can have various changes and variation.All within spirit of the present invention and principle, any modification of being done, be equal to replacement, improvement etc., all should be included within protection scope of the present invention.