CN101383891A - Trapping generating method and device for printed document - Google Patents

Trapping generating method and device for printed document Download PDF

Info

Publication number
CN101383891A
CN101383891A CNA2008102243407A CN200810224340A CN101383891A CN 101383891 A CN101383891 A CN 101383891A CN A2008102243407 A CNA2008102243407 A CN A2008102243407A CN 200810224340 A CN200810224340 A CN 200810224340A CN 101383891 A CN101383891 A CN 101383891A
Authority
CN
China
Prior art keywords
graphics primitive
primitive object
trapping
page graphics
point
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CNA2008102243407A
Other languages
Chinese (zh)
Other versions
CN101383891B (en
Inventor
唐宇
林好
黄耿琳
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
New Founder Holdings Development Co ltd
Beijing Founder Electronics Co Ltd
Original Assignee
Peking University Founder Group Co Ltd
Beijing Founder Electronics Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Peking University Founder Group Co Ltd, Beijing Founder Electronics Co Ltd filed Critical Peking University Founder Group Co Ltd
Priority to CN2008102243407A priority Critical patent/CN101383891B/en
Publication of CN101383891A publication Critical patent/CN101383891A/en
Application granted granted Critical
Publication of CN101383891B publication Critical patent/CN101383891B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Image Processing (AREA)
  • Processing Or Creating Images (AREA)

Abstract

The invention relates to the printing field, in particular to a technique for obtaining a better trap printing effect in printing a document. A trap printing generating method and a trap printing generating device for printing the document are disclosed. The method comprises the steps as follows: as for webpage graphics primitive objects with each graphics primitive object has Mask lattices in the printed document, determining the Mask boundaries of the webpage graphics primitive objects according to the Mask lattices of the webpage graphics primitive objects; when a need to perform trap printing processing to boundary points on the Mask boundaries is determined, determining a trap printing processing region of the boundary points and the trap printing colors of the points of in the trap printing processing region; and generating the trap printing result of the printed document according to the trap printing processing region of the boundary points. As whether to perform trap printing processing is judged according to the points of the Mask boundary of each webpage graphics primitive object having Mask lattices and corresponding trap printing processing is performed while a need to perform trap printing processing is determined, better trap printing effect can be achieved as for the printed document with a plurality of Mask lattice overlaps so that the printing quality is improved.

Description

A kind of trapping generation method of mimeograph documents and device
Technical field
The present invention relates to print field, relate in particular to the technology that obtains the preferable trapping effect of mimeograph documents.
Background technology
In printing process, can cause that the relative position between each process color departs from normal place owing to continue the unsteadiness of paper, perhaps when paper during with the cylinder high speed rotating, lateral displacement or stretching take place, size changed after perhaps paper had absorbed fountain solution and printing ink, and the factors such as distortion in various degree that cause all can cause register trouble.The inaccurate color of cover can produce a little white edge between adjacent page pel, promptly people are said shows money or valuables one carries unintentionally.This white edge is very dazzling, influences the attractive in appearance of the space of a whole page.
Trapping technology (Trapping) is named again to mend to show money or valuables one carries unintentionally, and is meant certain color is expanded or shunk, makes two kinds of colors produce slight overlapping register trouble when printing with compensation.When the color of object is bigger than the averag density of background color, should use expansion, with the border extended of object in background color; Otherwise then use to shrink, to object extension, between object, produce certain overlapping the color of background.Expansion is the same with shrinking essence, be exactly always its principle color expansion that averag density is less in the bigger color of density.The integrality that keeps shape so as much as possible.Be intermediate color owing to mend the zone that shows money or valuables one carries unintentionally, and narrower in width, human eye generally can not noticed its existence, thereby produces better visual effect.
In mimeograph documents (as pdf document), often include a plurality of page graphics primitive objects.Then comprise 3 page graphics primitive object A, B, C in the mimeograph documents as shown in Figure 1.Page graphics primitive object comprises image object, and except that image object, page graphics primitive object can also comprise objects such as figure, literal, gradual change.
The page-images object that has can contain the Mask dot matrix, and the Mask dot matrix is actually a two-value dot matrix, and each some value is 0 or 1.The Mask dot matrix plays the effect of a mask, and the value of its each point has determined whether to expose the content of pages of Mask dot matrix below.Such as, when being 1, a point value in the Mask dot matrix represents to block the content of pages of below, and point value is then to expose the content of pages of below at 0 o'clock.Certainly, also can define conversely: represent to block the content of pages of below when a point value in the Mask dot matrix is 0, point value is then to expose the content of pages of below at 1 o'clock.
The page-images object type comprises: have the Mask dot matrix page graphics primitive object type (as ImageMask graphics primitive object, Type3 graphics primitive object), do not have the Mask dot matrix page graphics primitive object type, have the page graphics primitive object type of Mask dot matrix and double exposure parameter.Image Mask image object only comprises a Mask dot matrix, and the part that covers in the page is filled with the color space of current page; The Type3 image type comprises an image lattice and a Mask dot matrix, and the Mask dot matrix acts on the image lattice, and the part that covers in the page is filled with picture material; The Type4 image type, only comprise an image lattice, the Mask dot matrix is in the process of resolving image object, generate by the Decode parameter in the image dictionary, this parameter has been specified a color gamut, color value is positioned at the picture point of this scope in all image lattices, and the point of its correspondence in the Mask dot matrix should unify to get 0 or 1.
As shown in Figure 1, the left side is a compound trapping object among Fig. 1, having the page graphics primitive object A, the B that contain the Mask dot matrix and one by two does not constitute with the page graphics primitive object C of double exposure parameter, the thick line of black is the trapping effect of the border generation of two Mask dot matrix among the figure, be respectively A and B, generated trapping between B and the C.The right side of figure then is the order that stacks according to the page, the schematic diagram that each page graphics primitive object is from up to down separated.The dash area of A and B is in the Mask dot matrix the not part of hollow out.Suppose value in the Mask dot matrix to be 1 point be hollow out not, then to be value in the Mask dot matrix be 1 point to the dash area of A and B.Value is a not hollow out of 1 point, and this point will cover in the content of below page graphics primitive object in corresponding points; Otherwise value is that 0 point is a hollow out, and the content of this some below page graphics primitive object will be revealed.Can learn that from figure trapping result only can be created on the border of Mask dot matrix can generate the trapping result.
Though present trapping technology is supported on the border of Mask dot matrix and generates trapping, the effect that generates is then difficult satisfactory.Such as, pretty good for the trapping effect that the border of single Mask dot matrix generates, but but because the situations such as overlapped or disorder distribution on border then can not obtain trapping effect preferably, cause press quality not good for the overlapping complex boundary trapping of a plurality of Mask dot matrix.
Summary of the invention
The embodiment of the invention provides a kind of trapping generation method and device of mimeograph documents, makes mimeograph documents obtain preferable trapping effect.
A kind of trapping generation method of mimeograph documents comprises:
For the page graphics primitive object that respectively has mask Mask dot matrix in the mimeograph documents, determine the Mask border of this page graphics primitive object;
For each borderline each boundary point of Mask of determining, when determining these boundary point needs and do trapping and handle according to each page graphics primitive object in the mimeograph documents, determine the trapping processing region of this boundary point, and the trapping color of the interior each point of the trapping processing region of this boundary point;
Generate the trapping result of described mimeograph documents according to the trapping processing region of each boundary point.
A kind of trapping generation method of mimeograph documents comprises:
For the page graphics primitive object that respectively has mask Mask dot matrix in the mimeograph documents, determine the Mask border of this page graphics primitive object;
For each borderline each boundary point of Mask of determining, when determining these boundary point needs and do trapping and handle, determine the graphics primitive object that participates in trapping for this boundary point according to each page graphics primitive object in the mimeograph documents;
The all identical boundary point of graphics primitive object of the participation trapping determined is combined in a point to be concentrated;
All determine the trapping processing region of this point set for each point set that is combined into, and the trapping color of each point in the trapping processing region of definite point set;
Generate the trapping result of described mimeograph documents according to the trapping processing region of each point set.
A kind of trapping generating apparatus of mimeograph documents comprises:
Mask border determination module is used for respectively having for mimeograph documents the page graphics primitive object of mask Mask dot matrix, determines the Mask border of this page graphics primitive object;
The trapping processing module, be used for for each definite borderline each boundary point of Mask, when determining these boundary point needs and do trapping and handle according to each page graphics primitive object in the mimeograph documents, determine the trapping processing region of this boundary point, and the trapping color of the interior each point of the trapping processing region of this boundary point;
The trapping result-generation module is used for generating according to the trapping processing region of each boundary point the trapping result of described mimeograph documents.
A kind of trapping generating apparatus of mimeograph documents comprises:
Mask border determination module is used for respectively having for mimeograph documents the page graphics primitive object of Mask dot matrix, determines the Mask border of this page graphics primitive object;
The point set determination module is used for borderline each boundary point of Mask of determining for each, when determining these boundary point needs and do trapping and handle according to each page graphics primitive object in the mimeograph documents, determines the graphics primitive object that participates in trapping for this boundary point; And all identical boundary point of graphics primitive object of the participation trapping that will determine is combined in a point and concentrates;
The trapping processing module is used for all determining for each point set that is combined into the trapping processing region of this point set, and the trapping color of each point in the trapping processing region of definite point set;
The trapping result-generation module is used for generating according to the trapping processing region of each point set the trapping result of described mimeograph documents.
The embodiment of the invention is owing to judge whether to carry out the trapping processing at each each point of Mask point array edge (being the Mask border) with page graphics primitive object of Mask dot matrix in the mimeograph documents, and when determining that need carry out trapping handles, carry out corresponding trapping and handle, therefore also can obtain preferable trapping effect for having the overlapping mimeograph documents of many Mask dot matrix, thereby improve printing quality.
Description of drawings
Fig. 1 is the generation trapping effect schematic diagram of prior art;
Fig. 2 a is that the trapping of the mimeograph documents of the embodiment of the invention generates the method flow schematic diagram;
Fig. 2 b, 2c, 2d are the trapping result schematic diagram of the generation of the embodiment of the invention;
Fig. 3 determines whether to carry out the method flow diagram that trapping is handled for the embodiment of the invention for a boundary point;
Fig. 4 a is the method flow diagram of graphics primitive object of participation trapping of the acquisition consecutive points of the embodiment of the invention;
Fig. 4 b be the embodiment of the invention carry out valid data cutting schematic diagram;
Fig. 5 is the trapping generating apparatus structural representation of the mimeograph documents of the embodiment of the invention;
Fig. 6 is the trapping generating apparatus structural representation of the another kind of mimeograph documents of the embodiment of the invention.
Embodiment
The embodiment of the invention is for a plurality of page graphics primitive objects in the mimeograph documents, determine the Mask boundary point at the page graphics primitive object that respectively has the Mask dot matrix according to the Mask dot matrix of this page graphics primitive object, then judging whether to carry out trapping for each boundary point handles, and when determining that need carry out trapping handles, carry out corresponding trapping and handle, therefore also can obtain preferable trapping effect for having the overlapping mimeograph documents of many Mask dot matrix, thereby improve printing quality.
Below in conjunction with the description of drawings specific embodiments.
The method of a kind of concrete generation trapping effect that the embodiment of the invention provides, flow chart comprises the steps: shown in Fig. 2 a
S200, image object is carried out the valid data cutting.
Because in the process of carrying out following trapping processing, having the part dot matrix to handle for trapping in the image lattice in the image object is not contribution, therefore in order to reduce storage resources and amount of calculation, can carry out the valid data cutting to the image object in the mimeograph documents.Certainly,, also can not influence the execution of the subsequent step in the embodiment of the invention, just can increase some amounts of calculation and consume more storage resources if do not carry out the valid data cutting.The method of cutting out of valid data further part in the text is introduced.
S201, the page graphics primitive object that the superiors in the mimeograph documents are set are the current page graphics primitive object.
S202, judge whether current page graphics primitive object has the Mask dot matrix; If have, must be image object, execution in step S203 then; Otherwise, execution in step S205.
S203, determine the Mask border of current page graphics primitive object.
According to the Mask dot matrix of current page graphics primitive object, determine the Mask border of this page graphics primitive object.Because the Mask dot matrix can indicate the content of pages that whether exposes under the current page graphics primitive object, thereby the Mask dot matrix has also just indicated the Mask border of waiting to do the trapping processing of this page graphics primitive object.For example, suppose that Mask dot matrix definition point value is to represent that non-hollow out point blocked the content of pages of below at 1 o'clock, point value is to represent that the hollow out point exposed the Mask dot matrix of the content of pages of below at 0 o'clock, and the edge that then with value in the Mask dot matrix is 1 zone is as the Mask border.Suppose that Mask dot matrix definition point value is to represent that non-hollow out point blocked the content of pages of below at 0 o'clock, point value is to represent that the hollow out point exposed the Mask dot matrix of the content of pages of below at 1 o'clock, and the edge that then with value in the Mask dot matrix is 0 zone is as the Mask border.Borderline each boundary point of Mask determines that specifically method can be, for a point in the Mask dot matrix, if this point is non-hollow out point, and there is a hollow out point in it in four adjacent with it points up and down at least, then this point is boundary point, and any one the hollow out point that defines in these four points is the consecutive points of this boundary point.Certainly, those skilled in the art also can adopt other method to determine boundary point according to actual conditions, such as if having a hollow out point at least in eight adjacent with it points of certain non-hollow out point, determine that then this point is boundary point.
Each boundary point of determining is formed the Mask border of this page graphics primitive object, and just, the Mask border of this page graphics primitive object is the set of each boundary point.
The concrete grammar of determining the boundary point on Mask border can be that the Mask dot matrix of current page graphics primitive object is lined by line scan, and determines boundary point.
S204, determine whether to carry out trapping for each boundary point on Mask border and handle; Handle if determine to carry out trapping, determine that then this border neighborhood of a point is the trapping color of each point in trapping processing region and the trapping processing region.
Judge whether boundary point carries out that trapping is handled and definite trapping processing region and trapping processing region in the concrete grammar of trapping color of each point will be introduced at further part.
S205, judge whether the current page graphics primitive object is last page graphics primitive object; If, execution in step S207 then; Otherwise, execution in step S206.
S206, with next page graphics primitive object as the current page graphics primitive object, forward step S202 to.
S207, the trapping processing region of each boundary point is formed final trapping result.
Each trapping processing region is formed final trapping result two kinds of methods can be arranged:
Method one, the trapping processing region of each boundary point is combined into a total area of trap, and generate a image object (for example image object of Type3 type) with Mask dot matrix, image lattice in the image object of this generation generates according to this total area of trap, non-hollow out point is corresponding to the point in this total area of trap in the Mask dot matrix in this image object, and hollow out point is corresponding to the outer point of this total area of trap in the Mask dot matrix.With the page graphics primitive object of this image object as the superiors in the mimeograph documents, thereby the image object of this generation is final trapping result (schematic diagram is shown in Fig. 2 b).
Method two, for the page graphics primitive object that respectively has the Mask dot matrix, if determining, the boundary point on the Mask border of this page graphics primitive object need carry out the trapping processing, then generate a image object (for example image object of Type3 type) with Mask dot matrix at this page graphics primitive object, the image lattice of the image object of this generation and Mask dot matrix are determined (to determine that specifically method is similar to said method one according to the trapping processing region of the boundary point of this page Mask object, repeat no more) herein, with the image object of this generation as the adjacent object of this page graphics primitive object, and be placed on this page graphics primitive object, obtain final trapping result thus.For example, for page graphics primitive object A, the B among Fig. 1, generated image object A ', the B ' of two Type3 types respectively, then A ' places on the A, and B ' is placed between A, the B, and final result is shown in Fig. 2 c.In fact, the trapping result who generates according to method two can obtain better printing quality.
The trapping result that S208, basis are determined and each page graphics primitive object in the mimeograph documents print.
The method that whether concrete definite boundary point carries out the trapping processing among the above-mentioned steps S204 is:
Judge that whether certain boundary point will carry out the total principle that trapping handles is if this boundary point is contributed to some extent for the color of the corresponding points of final printing, to determine that then this boundary point need carry out trapping and handle.In other words, promptly this boundary point can not blocked fully by the page graphics primitive object on the page graphics primitive object at this boundary point place, determines that then this boundary point need carry out trapping and handle.
This boundary point can not blocked the following situation that comprises fully by the page graphics primitive object on the page graphics primitive object at this boundary point place so:
Do not have other page graphics primitive object on the page graphics primitive object at this boundary point place, then this boundary point can not blocked fully; And
Not existing in the Mask dot matrix point that should boundary point in the page graphics primitive object on the page graphics primitive object at this boundary point place is non-hollow out and the page graphics primitive object that does not comprise the double exposure parameter, determines that then the page graphics primitive object on the page graphics primitive object at this boundary point place can not block this boundary point fully.For example, when judging whether that for the boundary point of graphics primitive object H among Fig. 2 d trapping is handled, suppose that graphics primitive object G does not comprise the double exposure parameter, then the point owing to corresponding diagram meta object H boundary point in the Mask dot matrix of graphics primitive object G is non-hollow out, the boundary point of judging graphics primitive object H has so been sheltered from fully by graphics primitive object G, needn't carry out trapping again and handle; Suppose that graphics primitive object G comprises the double exposure parameter, though then the point of corresponding diagram meta object H boundary point is non-hollow out in the Mask dot matrix of graphics primitive object G, but because graphics primitive object G comprises the double exposure parameter, the boundary point of graphics primitive object H can be thoroughly in graphics primitive object G, blend of colors with corresponding point among the graphics primitive object G, form secondary colour, the boundary point of therefore judging graphics primitive object H in this case can not sheltered from fully by graphics primitive object G, need carry out trapping and handle.
Further, for small object is protected, so when graphics primitive object is the narrow road footpath, if the width in path, is then looked this less than the width threshold value of user's appointment to liking small object; When graphics primitive object is text, if the font size of literal during less than the minimum font size of user's appointment, look this to as if small object; Also can determine then that for small object this boundary point is not carried out trapping to be handled.
Whether carry out the principle that trapping is handled according to the above-mentioned boundary point of judging, can adopt following idiographic flow to realize, flow chart comprises the steps: as shown in Figure 3
S300, with the page graphics primitive object of the superiors in the mimeograph documents as waiting to judge page graphics primitive object.
S301, determine to wait to judge whether page graphics primitive object is the page graphics primitive object at boundary point place; If then the numbering of page graphics primitive object waited to judge in record, and execution in step S310; Otherwise, execution in step S302.
S302, determine to wait to judge whether page graphics primitive object is small object; If, determine that this boundary point is not carried out trapping to be handled, then execution in step S330 for protection to small object; Otherwise, execution in step S303.
S303, determine to wait to judge whether page graphics primitive object has the Mask dot matrix; If have, execution in step S304 then; Otherwise, execution in step S305.
Whether S304, the Mask dot matrix of determining to wait to judge page graphics primitive object are the hollow out point corresponding to the point of boundary point; If, execution in step S310 then; Otherwise, execution in step S305.
S305, determine to wait to judge whether page graphics primitive object comprises the double exposure parameter; If comprise, then the numbering of page graphics primitive object waited to judge in record, and execution in step S310; Otherwise, execution in step S306.
S306, determine to wait to judge whether page graphics primitive object is positioned on the page graphics primitive object at boundary point place; If page graphics primitive object hides to show then that this boundary point is waited to judge, do not need to carry out trapping and handle execution in step S330; Otherwise the numbering of page graphics primitive object waited to judge in record, and execution in step S310.
S310, judgement wait to judge whether page graphics primitive object is last page graphics primitive object in the mimeograph documents; If, execution in step S320; Otherwise, execution in step S311.
S311, with next page graphics primitive object as waiting to judge page graphics primitive object, execution in step S301.
S320, judged whether to write down the numbering of at least one page graphics primitive object; If, execution in step S321; Otherwise, execution in step S330.
S321, determine that this boundary point is carried out trapping to be handled, and with the numbering of the page graphics primitive object of record as the numbering that participates in the graphics primitive object of trapping for this boundary point, end.
S330, determine that this boundary point is not carried out trapping to be handled, and finishes.
After definite this boundary point does not need to carry out the trapping processing, then this boundary point is not carried out trapping and handle, and continue whether next boundary point is carried out the judgement that trapping is handled.
The numbering of the page graphics primitive object that writes down in above-mentioned steps S300-S330 is the numbering of the page graphics primitive object that participates in trapping, then can obtain the page graphics primitive object collection of the participation trapping of boundary point by above-mentioned steps S300-S330.That is to say that the page graphics primitive object of these records can play influence to the trapping result who generates, and especially the trapping color in the trapping processing region is played influence.After determining that need carry out trapping to this boundary point handles, all can carry out trapping usually and handle this boundary point, still, do not handle and may can obtain better printing effect if do not carry out trapping in some cases:
At the consecutive points of this boundary point, also can obtain the page graphics primitive object collection of the participation trapping of consecutive points.The preparation method of the page graphics primitive object collection of the participation trapping of consecutive points is similar with the page graphics primitive object collection of the participation trapping that obtains boundary point, and particular flow sheet comprises the steps: shown in Fig. 4 a
S400, with the page graphics primitive object of the superiors in the mimeograph documents as waiting to judge page graphics primitive object.
S401, determine to wait to judge whether page graphics primitive object is the page graphics primitive object at the consecutive points place of this boundary point; If then the numbering of page graphics primitive object waited to judge in record, and execution in step S410; Otherwise, execution in step S402.
S402, determine to wait to judge whether page graphics primitive object is small object; If, for protection to small object, execution in step S420 then; Otherwise, execution in step S403.
S403, determine to wait to judge whether page graphics primitive object has the Mask dot matrix; If have, execution in step S404 then; Otherwise, execution in step S405.
Whether S404, the Mask dot matrix of determining to wait to judge page graphics primitive object are the hollow out point corresponding to the point of consecutive points; If, execution in step S410 then; Otherwise, execution in step S405.
S405, determine to wait to judge whether page graphics primitive object comprises the double exposure parameter; If comprise, then the numbering of page graphics primitive object waited to judge in record, and execution in step S410; Otherwise the numbering of page graphics primitive object, execution in step S420 waited to judge in record.
S410, judgement wait to judge whether page graphics primitive object is last page graphics primitive object in the mimeograph documents; If, execution in step S420; Otherwise, execution in step S411.
S411, with next page graphics primitive object as waiting to judge page graphics primitive object, execution in step S401.
S420, with the numbering of the page graphics primitive object of record as the numbering that participates in the graphics primitive object of trapping for consecutive points, end.
The graphics primitive object of the consecutive points participation trapping of record has been formed the page graphics primitive object collection of the participation trapping of consecutive points.Can calculate color A according to the page graphics primitive object collection of the participation trapping of boundary point corresponding to boundary point, can calculate color B according to the page graphics primitive object collection of the participation trapping of consecutive points, can judge this boundary point whether needs carry out trapping according to the trapping formation condition and handle corresponding to consecutive points.For example, when color A and color B very near the time, judge that then this boundary point does not need to carry out trapping and handles.The trapping formation condition is to work out in advance, and concrete trapping formation condition is well known to those skilled in the art, and repeats no more herein.
After determining that need carry out trapping to this boundary point handles, those skilled in the art can determine the size of trapping processing region and the particular location of trapping processing region according to actual conditions.Such as, can be provided with trap placement for extend out, between two parties, in contract.If wishing has bigger area of trap, then can be provided with the trap width parameter bigger, then, decide the area of trap size according to the trap width parameter that is provided with.A kind of concrete grammar can be: the size of determining the trapping processing region earlier is trap width * trap width.If trap placement contracts in being, the center of trapping processing region is not a boundary point, but the consecutive points of boundary point, and the point of hollow out is not counted trapping processing region (being the zone of trapping processing region size for non-hollow out in trap width * trap width zone) in the processing region; If trap placement is for extending out, the center of trapping processing region is a boundary point, and the point of non-hollow out is not counted trapping processing region (being the zone of trapping processing region size for hollow out in trap width * trap width zone) in the processing region; If trap placement is placed in the middle, the center of trapping processing region is a boundary point, and the point of the point of hollow out and non-hollow out all counts trapping processing region (being that trapping processing region size is trap width * trap width) in the processing region.
Except decide the position (promptly determining the center of trapping processing region) of trapping processing region according to the trap placement parameter that is provided with, can also all be when not containing the object of image lattice at two objects that participate in trapping, decide the trapping direction according to the color of two objects; The trapping rule of promptly following " from the superficial to the deep " decides trap placement to contract, extend out in being or between two parties." from the superficial to the deep " a kind of trapping rule that trapping rule is well known to those skilled in the art is no longer given unnecessary details herein.
Said method is a kind of size of preferable trapping processing region, the rule that the position is determined, those skilled in the art can adopt Else Rule to determine size, the position of trapping processing region according to actual conditions, enumerate no longer one by one herein.
After having determined concrete trapping processing region, need fill trapping color to the trapping processing region.All want pointwise to generate trapping color for each point in the trapping processing region according to the trapping color create-rule.The concrete of the trapping color of the point in the trapping processing region determines that method is: for the some W in the trapping processing region, color according to the point of corresponding points W in each page graphics primitive object in the page graphics primitive object collection 1 calculates color value X, calculates color value Y according to the color of the point of corresponding points W in each page graphics primitive object in the page graphics primitive object collection 2; Page graphics primitive object collection 1 refers to the page graphics primitive object collection of participation trapping of the boundary point of this trapping processing region, and page graphics primitive object collection 2 refers to the page graphics primitive object collection of participation trapping of the consecutive points of this trapping processing region.According to the trapping color create-rule, color value X and color value Y are calculated the trapping color of a W, the trapping color of a W is filled into some W in the trapping processing region.In order to reach better effect, when calculating color value X, can also be to calculate color value X according to the color of the point of the neighborhood of corresponding points W in each page graphics primitive object in the page graphics primitive object collection 1; Equally, when calculating color value Y, can also be to calculate color value Y according to the color of the point of the neighborhood of corresponding points W in each page graphics primitive object in the page graphics primitive object collection 2.Concrete trapping color create-rule is well known to those skilled in the art, and no longer describes in detail herein.
In practical operation, automatically realize above-mentioned method such as the mode that adopts programming, so a kind of preferable trapping processing region method of determining each boundary point is, needn't determine the trapping processing region separately at each boundary point, but the boundary point that some attributes are the same---the boundary point that just has some common feature is as a point set, come overall calculation to go out the trapping processing region of these point sets at this point set then, thereby can improve computational efficiency.Be specially, the numbering of the page graphics primitive object of the participation trapping that the method for above-mentioned steps S300-S330 is obtained is determined point set, the boundary point that promptly has the page graphics primitive object numbering of identical participation trapping is placed on same point and concentrates, again this point set is dealt with: all determine the trapping processing region of this point set for each point set that is combined into, and the trapping color of each point in the trapping processing region of definite point set.Generate the trapping result of described mimeograph documents according to the trapping processing region of each point set.Because the point that same point is concentrated has general character, it is identical that many steps are arranged when handling, so in fact, one of them puts the result who obtains after the judgement of carrying out this step, it is identical concentrating other point with point, so just the step that needn't carry out repetition at each boundary point that point is concentrated is judged, can improve computational efficiency greatly like this.Such as, determine that each boundary point that step points such as trapping direction, monochromatic object generation trapping color are concentrated all is identical.
The trapping result and the above-mentioned steps S207 that generate described mimeograph documents according to the trapping processing region of each point set are similar, also can adopt two kinds of methods to generate the trapping result of mimeograph documents: a kind of is that trapping processing region with each point set is combined into a total area of trap, and generate a image object (for example image object of Type3 type) with Mask dot matrix, image lattice in this image object and Mask dot matrix generate according to this total area of trap, with the page graphics primitive object of this image object as the superiors in the mimeograph documents, thereby this image object is final trapping result; Another kind method is for the page graphics primitive object that respectively has the Mask dot matrix, if determining, the boundary point on the Mask border of this page graphics primitive object need carry out the trapping processing, then generate a image object with Mask dot matrix at this page graphics primitive object, the image lattice of this image object and Mask dot matrix are determined according to the trapping processing region of each point set of this page graphics primitive object, with the image object of this generation as the adjacent object of this page graphics primitive object, and be placed on this page graphics primitive object, obtain final trapping result thus.
A kind of concrete grammar of the valid data cutting among the above-mentioned steps S201 is shown in Fig. 4 b.As seen, the cutting of valid data is to use the minimum boundary rectangle of bounding box BBox under image space of image object to reduce under the space of image object from Fig. 4 b.Data outside the boundary rectangle then are invalid data, and the data that only keep in the boundary rectangle participate in calculating.Why select image space rather than user's space, this be because, if image object has the spatial alternation of a rotation or deformation to user's space, because the result behind the spatial alternation still will fall within the grid of dot matrix, therefore the spatial topotaxy between the consecutive points after the conversion will change, and produces error.If adopt the mode of cutting valid data under user's space, so when valid data are outputed to the device space, can produce very big position difference with initial data, this is because exist the relation of convergent-divergent from the user's space to the device space, image space is further amplified to the site error that conversion caused of user's space, and this also directly can have influence on trapping result's inaccuracy.And if under image space the cutting valid data, data still can keep the spatial topotaxy between the original graph picture point, no matter carry out which kind of spatial alternation afterwards, the order change that valid data all can be consistent with initial data just can not exist the problem of positional precision yet.
Obviously, carry out valid data cutting those skilled in the art and can also adopt multiple other method to realize, give unnecessary details no longer one by one herein.
Though it will be understood by those skilled in the art that in the above-mentioned explanation, for ease of understanding, the step of method has been adopted the succession description, should be pointed out that for the order of above-mentioned steps and do not do strict the restriction.
A kind of device that generates trapping that the embodiment of the invention provides as shown in Figure 5, comprising: Mask border determination module 501, trapping processing module 502, trapping result-generation module 503.
Wherein, Mask border determination module 501 is used for respectively having for mimeograph documents the page graphics primitive object of Mask dot matrix, determines the Mask border of this page graphics primitive object according to the Mask dot matrix of this page graphics primitive object.
Trapping processing module 502 is used for for each definite borderline each boundary point of Mask, when determining these boundary point needs and do trapping and handle according to top-down each page graphics primitive object in the mimeograph documents, with the trapping processing region of this border neighborhood of a point as this boundary point, and the trapping color of the interior each point of definite this trapping processing region.Concrete trapping processing method front is described in detail, repeats no more herein.
Trapping result-generation module 503 is used for generating according to the trapping processing region of each boundary point the trapping result of described mimeograph documents.
Generation trapping device as shown in Figure 5 can also comprise: cutting module 504.
Cutting module 504 is used for the image object of the page graphics primitive object of mimeograph documents is carried out the valid data cutting; And
Mask border determination module 501 specifically is used for carrying out the page graphics primitive object that respectively has the Mask dot matrix after the valid data cutting for cutting module 504, determines the Mask border of this page graphics primitive object according to the Mask dot matrix of this page graphics primitive object.
A kind of concrete structure of trapping result-generation module 503 can be to comprise one of following two unit, as shown in Figure 5:
First trapping is generation unit as a result, is used for the trapping processing region of each boundary point is combined into a total area of trap; Generate an image object (for example image object of Type3 type) with Mask dot matrix, image lattice in this image object and Mask dot matrix generate according to this total area of trap; And with the page graphics primitive object of this image object as the superiors in the mimeograph documents; The page graphics primitive object of the described the superiors is the trapping result of described mimeograph documents.
Second trapping is generation unit as a result, be used for for the page graphics primitive object that respectively has the Mask dot matrix, need carry out the trapping processing if the boundary point on the Mask border of this page graphics primitive object is determined, then generate a image object (for example image object of Type3 type) with Mask dot matrix at this page graphics primitive object; The image lattice and the Mask dot matrix of the image object that generates at this page graphics primitive object are determined according to the trapping processing region of the boundary point of this page graphics primitive object; The image object that will generate at this page graphics primitive object is as the adjacent object of this page graphics primitive object, and is placed on this page graphics primitive object; With each image object of generating trapping result as described mimeograph documents.
The device of the generation trapping that another kind is concrete as shown in Figure 6, comprising: Mask border determination module 601, trapping processing module 602, trapping result-generation module 603, point set determination module 604.
Mask border determination module 601 is used for respectively having for mimeograph documents the page graphics primitive object of Mask dot matrix, determines the Mask border of this page graphics primitive object according to the Mask dot matrix of this page graphics primitive object.
Point set determination module 604 is used for borderline each boundary point of Mask of determining for each, when determining these boundary point needs and do trapping and handle according to top-down each page graphics primitive object in the mimeograph documents, determines to participate in for this boundary point the graphics primitive object of trapping; And all identical boundary point of graphics primitive object of the participation trapping that will determine is combined in a point and concentrates.
Trapping processing module 602 is used for all determining for each point set that is combined into the trapping processing region of this point set, and the trapping color of the interior each point of the trapping processing region of definite point set.
Trapping result-generation module 603 is used for generating according to the trapping processing region of each point set the trapping result of described mimeograph documents.
Generation trapping device as shown in Figure 6 can also comprise: cutting module 605.
Cutting module 605 is used for the image object of the page graphics primitive object of mimeograph documents is carried out the valid data cutting; And
Mask border determination module 601 specifically is used for carrying out the page graphics primitive object that respectively has the Mask dot matrix after the valid data cutting for cutting module 605, determines the Mask border of this page graphics primitive object according to the Mask dot matrix of this page graphics primitive object.
A kind of concrete structure of trapping result-generation module 603 can be to comprise one of following two unit:
The 3rd trapping is generation unit as a result, is used for the trapping processing region of each point set is combined into a total area of trap; Generate an image object (for example image object of Type3 type) with Mask dot matrix, image lattice in this image object and Mask dot matrix generate according to this total area of trap; And with the page graphics primitive object of this image object as the superiors in the mimeograph documents; The page graphics primitive object of the described the superiors is the trapping result of described mimeograph documents.
The 4th trapping is generation unit as a result, be used for for the page graphics primitive object that respectively has the Mask dot matrix, need carry out the trapping processing if the boundary point on the Mask border of this page graphics primitive object is determined, then generate a image object (for example image object of Type3 type) with Mask dot matrix at this page graphics primitive object; The image lattice and the Mask dot matrix of the image object that generates at this page graphics primitive object are determined according to the trapping processing region of the point set of this page graphics primitive object; The image object that will generate at this page graphics primitive object is as the adjacent object of this page graphics primitive object, and is placed on this page graphics primitive object; With each image object of generating trapping result as described mimeograph documents.
The embodiment of the invention is owing to judge whether to carry out the trapping processing at each each point of Mask point array edge with page graphics primitive object of Mask dot matrix in the mimeograph documents, and when determining that need carry out trapping handles, carry out corresponding trapping and handle, therefore also can obtain preferable trapping effect for having the overlapping mimeograph documents of many Mask dot matrix, thereby improve printing quality.
One of ordinary skill in the art will appreciate that all or part of step that realizes in the foregoing description method is to instruct relevant hardware to finish by program, this program can be stored in the computer read/write memory medium, as: ROM/RAM, magnetic disc, CD etc.
Will also be appreciated that the apparatus structure shown in accompanying drawing or the embodiment only is schematically, the presentation logic structure.Wherein the module that shows as separating component may or may not be physically to separate, and the parts that show as module may be or may not be physical modules.
The above only is a preferred implementation of the present invention; should be pointed out that for those skilled in the art, under the prerequisite that does not break away from the principle of the invention; can also make some improvements and modifications, these improvements and modifications also should be considered as protection scope of the present invention.

Claims (26)

1, a kind of trapping generation method of mimeograph documents is characterized in that, comprising:
For the page graphics primitive object that respectively has mask Mask dot matrix in the mimeograph documents, determine the Mask border of this page graphics primitive object;
For each borderline each boundary point of Mask of determining, when determining these boundary point needs and do trapping and handle according to each page graphics primitive object in the mimeograph documents, determine the trapping processing region of this boundary point, and the trapping color of the interior each point of the trapping processing region of this boundary point;
Generate the trapping result of described mimeograph documents according to the trapping processing region of each boundary point.
2, the method for claim 1 is characterized in that, the described Mask border of determining this page graphics primitive object is specially:
For a point in the Mask dot matrix of this page graphics primitive object, if this point is for non-hollow out point, and there is a hollow out point in it in four adjacent with it points up and down at least, determines that then this point is the boundary point of this page graphics primitive object;
Each boundary point of this page graphics primitive object is formed the Mask border of this page graphics primitive object.
3, the method for claim 1 is characterized in that, describedly determines these boundary point needs according to each page graphics primitive object in the mimeograph documents and does trapping and handle, and specifically comprises:
Can not block this boundary point fully as if the page graphics primitive object on the page graphics primitive object at the page graphics primitive object that does not have other on the page graphics primitive object at this boundary point place or this boundary point place, then definite this boundary point need be done trapping and handle.
4, method as claimed in claim 3 is characterized in that, the page graphics primitive object on the page graphics primitive object at described this boundary point place can not block this boundary point fully, specifically comprises:
If not existing in the Mask dot matrix point that should boundary point in the page graphics primitive object on the page graphics primitive object at this boundary point place is non-hollow out and the page graphics primitive object that does not comprise the double exposure parameter, determine that then the page graphics primitive object on the page graphics primitive object at this boundary point place can not block this boundary point fully.
5, method as claimed in claim 3 is characterized in that, describedly determines these boundary point needs according to each page graphics primitive object in the mimeograph documents and does trapping and handle, and further comprises:
Determine the first graphics primitive object collection, the described first graphics primitive object collection refers to the page graphics primitive object collection of the participation trapping of this boundary point;
Determine the second graphics primitive object collection, the described second graphics primitive object collection refers to the page graphics primitive object collection of participation trapping of the consecutive points of this boundary point;
According to first, second graphics primitive object collection of determining, and the trapping formation condition of working out in advance, determine this boundary point and need do the trapping processing.
6, method as claimed in claim 5 is characterized in that, described definite first graphics primitive object collection specifically comprises:
Step S300, with the page graphics primitive object of the superiors in the described mimeograph documents as waiting to judge page graphics primitive object;
Step S301, determine to wait to judge whether page graphics primitive object is the page graphics primitive object at boundary point place; If then the numbering of page graphics primitive object waited to judge in record, and execution in step S310; Otherwise, execution in step S302;
Step S302, determine to wait to judge whether page graphics primitive object is small object; If, execution in step S330 then; Otherwise, execution in step S303;
Step S303, determine to wait to judge whether page graphics primitive object has the Mask dot matrix; If have, execution in step S304 then; Otherwise, execution in step S305;
Whether step S304, the Mask dot matrix of determining to wait to judge page graphics primitive object are the hollow out point corresponding to the point of boundary point; If, execution in step S310 then; Otherwise, execution in step S305;
Step S305, determine to wait to judge whether page graphics primitive object comprises the double exposure parameter; If comprise, then the numbering of page graphics primitive object waited to judge in record, and execution in step S310; Otherwise, execution in step S306;
Step S306, determine to wait to judge whether page graphics primitive object is positioned on the page graphics primitive object at boundary point place; If page graphics primitive object hides to show then that this boundary point is waited to judge, do not need to carry out trapping and handle execution in step S330; Otherwise the numbering of page graphics primitive object waited to judge in record, and execution in step S310;
Step S310, judgement wait to judge whether page graphics primitive object is last page graphics primitive object in the mimeograph documents; If, execution in step S320; Otherwise, execution in step S311;
Step S311, with next page graphics primitive object as waiting to judge page graphics primitive object, execution in step S301;
Step S320, judged whether to write down the numbering of at least one page graphics primitive object; If, execution in step S321; Otherwise, execution in step S330;
Step S321, determine that this boundary point is carried out trapping to be handled, and with the page graphics primitive object of record as the described first graphics primitive object collection;
Step S330, end.
7, method as claimed in claim 5 is characterized in that, described definite second graphics primitive object collection specifically comprises:
Step S400, with the page graphics primitive object of the superiors in the mimeograph documents as waiting to judge page graphics primitive object;
Step S401, determine to wait to judge whether page graphics primitive object is the page graphics primitive object at the consecutive points place of this boundary point; If then the numbering of page graphics primitive object waited to judge in record, and execution in step S410; Otherwise, execution in step S402;
Step S402, determine to wait to judge whether page graphics primitive object is small object; If, execution in step S420 then; Otherwise, execution in step S403;
Step S403, determine to wait to judge whether page graphics primitive object has the Mask dot matrix; If have, execution in step S404 then; Otherwise, execution in step S405;
Whether step S404, the Mask dot matrix of determining to wait to judge page graphics primitive object are the hollow out point corresponding to the point of consecutive points; If, execution in step S410 then; Otherwise, execution in step S405;
Step S405, determine to wait to judge whether page graphics primitive object comprises the double exposure parameter; If comprise, then the numbering of page graphics primitive object waited to judge in record, and execution in step S410; Otherwise the numbering of page graphics primitive object, execution in step S420 waited to judge in record;
Step S410, judgement wait to judge whether page graphics primitive object is last page graphics primitive object in the mimeograph documents; If, execution in step S420; Otherwise, execution in step S411;
Step S411, with next page graphics primitive object as waiting to judge page graphics primitive object, execution in step S401;
Step S420, with the record page graphics primitive object as the described second graphics primitive object collection.
8, method as claimed in claim 5 is characterized in that, the described trapping color of determining the interior each point of trapping processing region of this boundary point specifically comprises:
For a some W in the described trapping processing region, concentrate the color of the point of the color of the point of corresponding points W in each page graphics primitive object or corresponding points W neighborhood to determine color value X according to the page graphics primitive object of the participation trapping of this boundary point, concentrate the color of the point of the color of the point of corresponding points W in each page graphics primitive object or corresponding points W neighborhood to determine color value Y according to the page graphics primitive object of the participation trapping of the consecutive points of this boundary point; According to color value X, Y, and the trapping color create-rule of working out is in advance determined the trapping color of some W; The consecutive points of described boundary point refer to any one the hollow out point in four consecutive points up and down of boundary point.
9, the method for claim 1 is characterized in that, the described trapping processing region of determining this boundary point specifically comprises:
Determine the trapping processing region size of this boundary point according to the trap width of setting, determine the trapping processing region center of this boundary point according to the trap placement parameter of setting.
10, method as claimed in claim 9 is characterized in that, describedly determines the trapping processing region size of this boundary point according to the trap width of setting, and determines the trapping processing region center of this boundary point specifically to comprise according to the trap placement parameter of setting:
If the trap placement parameter of setting contracts in being, determine that then trapping processing region center is the consecutive points of this boundary point, trapping processing region size is the zone of non-hollow out in trap width * trap width zone;
If the trap placement parameter of setting is for extending out, determine that then trapping processing region center is this boundary point, trapping processing region size is the zone of hollow out in trap width * trap width zone;
If the trap placement parameter of setting is placed in the middle, determine that then trapping processing region center is this boundary point, trapping processing region size is trap width * trap width;
The consecutive points of described boundary point refer to this boundary point hollow out point in four adjacent with it points up and down.
11, the method for claim 1 is characterized in that, describedly generates the trapping result of described mimeograph documents according to the trapping processing region of each boundary point, specifically comprises:
The trapping processing region of each boundary point is combined into a total area of trap;
Generate the image object with Mask dot matrix, image lattice in this image object and Mask dot matrix generate according to this total area of trap;
With the page graphics primitive object of this image object as the superiors in the mimeograph documents; The page graphics primitive object of the described the superiors is the trapping result of described mimeograph documents.
12, the method for claim 1 is characterized in that, describedly generates the trapping result of described mimeograph documents according to the trapping processing region of each boundary point, specifically comprises:
For the page graphics primitive object that respectively has the Mask dot matrix, if determining, the boundary point on the Mask border of this page graphics primitive object need carry out the trapping processing, then generate a image object with Mask dot matrix at this page graphics primitive object;
The image lattice and the Mask dot matrix of the image object that generates at this page graphics primitive object are determined according to the trapping processing region of the boundary point of this page graphics primitive object;
The image object that will generate at this page graphics primitive object is as the adjacent object of this page graphics primitive object, and is placed on this page graphics primitive object;
With each image object of generating trapping result as described mimeograph documents.
13, as the arbitrary described method of claim 1-12, it is characterized in that, at the described page graphics primitive object that respectively has the Mask dot matrix in for mimeograph documents, determine according to the Mask dot matrix of this page graphics primitive object also to comprise before the Mask border of this page graphics primitive object:
Image object in the page graphics primitive object of mimeograph documents is carried out the valid data cutting.
14, a kind of trapping generation method of mimeograph documents is characterized in that, comprising:
For the page graphics primitive object that respectively has mask Mask dot matrix in the mimeograph documents, determine the Mask border of this page graphics primitive object;
For each borderline each boundary point of Mask of determining, when determining these boundary point needs and do trapping and handle, determine the graphics primitive object that participates in trapping for this boundary point according to each page graphics primitive object in the mimeograph documents;
The all identical boundary point of graphics primitive object of the participation trapping determined is combined in a point to be concentrated;
All determine the trapping processing region of this point set for each point set that is combined into, and the trapping color of each point in the trapping processing region of definite point set;
Generate the trapping result of described mimeograph documents according to the trapping processing region of each point set.
15, method as claimed in claim 14 is characterized in that, the trapping processing region of described point set is made up of the trapping processing region of each boundary point that this point is concentrated.
16, method as claimed in claim 15 is characterized in that, the trapping color of each point in the trapping processing region of described definite point set specifically comprises:
For a some W in the trapping processing region of described point set, as if a point of putting in the trapping processing region that W is boundary point Z, then concentrate the color of the point of the color of the point of corresponding points W in each page graphics primitive object or corresponding points W neighborhood to determine color value X, concentrate the color of the point of the color of the point of corresponding points W in each page graphics primitive object or corresponding points W neighborhood to determine color value Y according to the page graphics primitive object of the participation trapping of the consecutive points of boundary point Z according to the page graphics primitive object of the participation trapping of the point set of determining; According to color value X, Y, and the trapping color create-rule of working out is in advance determined the trapping color of some W; The consecutive points of described boundary point refer to any one the hollow out point in four consecutive points up and down of boundary point; The page graphics primitive object collection of the participation trapping of described point set is concentrated the set of the graphics primitive object of the participation trapping of determining at boundary point for this point.
17, method as claimed in claim 16 is characterized in that, the graphics primitive object of the participation trapping of described boundary point is determined method, specifically comprises:
Step S300, with the page graphics primitive object of the superiors in the described mimeograph documents as waiting to judge page graphics primitive object;
Step S301, determine to wait to judge whether page graphics primitive object is the page graphics primitive object at boundary point place; If then the numbering of page graphics primitive object waited to judge in record, and execution in step S310; Otherwise, execution in step S302;
Step S302, determine to wait to judge whether page graphics primitive object is small object; If, execution in step S330 then; Otherwise, execution in step S303;
Step S303, determine to wait to judge whether page graphics primitive object has the Mask dot matrix; If have, execution in step S304 then; Otherwise, execution in step S305;
Whether step S304, the Mask dot matrix of determining to wait to judge page graphics primitive object are the hollow out point corresponding to the point of boundary point; If, execution in step S310 then; Otherwise, execution in step S305;
Step S305, determine to wait to judge whether page graphics primitive object comprises the double exposure parameter; If comprise, then the numbering of page graphics primitive object waited to judge in record, and execution in step S310; Otherwise, execution in step S306;
Step S306, determine to wait to judge whether page graphics primitive object is positioned on the page graphics primitive object at boundary point place; If page graphics primitive object hides to show then that this boundary point is waited to judge, do not need to carry out trapping and handle execution in step S330; Otherwise the numbering of page graphics primitive object waited to judge in record, and execution in step S310;
Step S310, judgement wait to judge whether page graphics primitive object is last page graphics primitive object in the mimeograph documents; If, execution in step S320; Otherwise, execution in step S311;
Step S311, with next page graphics primitive object as waiting to judge page graphics primitive object, execution in step S301;
Step S320, judged whether to write down the numbering of at least one page graphics primitive object; If, execution in step S321; Otherwise, execution in step S330;
Step S321, determine that this boundary point is carried out trapping to be handled, and with the page graphics primitive object of record as the described first graphics primitive object collection;
Step S330, end.
18, method as claimed in claim 16 is characterized in that, definite method of the page graphics primitive object collection of the participation trapping of the consecutive points of described boundary point Z specifically comprises:
Step S400, with the page graphics primitive object of the superiors in the mimeograph documents as waiting to judge page graphics primitive object;
Step S401, determine to wait to judge whether page graphics primitive object is the page graphics primitive object at the consecutive points place of boundary point Z; If then the numbering of page graphics primitive object waited to judge in record, and execution in step S410; Otherwise, execution in step S402;
Step S402, determine to wait to judge whether page graphics primitive object is small object; If, execution in step S420 then; Otherwise, execution in step S403;
Step S403, determine to wait to judge whether page graphics primitive object has the Mask dot matrix; If have, execution in step S404 then; Otherwise, execution in step S405;
Whether step S404, the Mask dot matrix of determining to wait to judge page graphics primitive object are the hollow out point corresponding to the point of consecutive points; If, execution in step S410 then; Otherwise, execution in step S405;
Step S405, determine to wait to judge whether page graphics primitive object comprises the double exposure parameter; If comprise, then the numbering of page graphics primitive object waited to judge in record, and execution in step S410; Otherwise the numbering of page graphics primitive object, execution in step S420 waited to judge in record;
Step S410, judgement wait to judge whether page graphics primitive object is last page graphics primitive object in the mimeograph documents; If, execution in step S420; Otherwise, execution in step S411;
Step S411, with next page graphics primitive object as waiting to judge page graphics primitive object, execution in step S401;
Step S420, with the page graphics primitive object of record as the page graphics primitive object collection of the participation trapping of the consecutive points of described boundary point Z.
19, method as claimed in claim 14 is characterized in that, describedly generates the trapping result of described mimeograph documents according to the trapping processing region of each point set, specifically comprises:
The trapping processing region of each point set is combined into a total area of trap;
Generate the image object with Mask dot matrix, image lattice in this image object and Mask dot matrix generate according to this total area of trap;
With the page graphics primitive object of this image object as the superiors in the mimeograph documents; The page graphics primitive object of the described the superiors is the trapping result of described mimeograph documents.
20, method as claimed in claim 14 is characterized in that, describedly generates the trapping result of described mimeograph documents according to the trapping processing region of each point set, specifically comprises:
For the page graphics primitive object that respectively has the Mask dot matrix, if determining, the boundary point on the Mask border of this page graphics primitive object need carry out the trapping processing, then generate a image object with Mask dot matrix at this page graphics primitive object;
The image lattice and the Mask dot matrix of the image object that generates at this page graphics primitive object are determined according to the trapping processing region of the point set of this page graphics primitive object;
The image object that will generate at this page graphics primitive object is as the adjacent object of this page graphics primitive object, and is placed on this page graphics primitive object;
With each image object of generating trapping result as described mimeograph documents.
21, a kind of trapping generating apparatus of mimeograph documents is characterized in that, comprising:
Mask border determination module is used for respectively having for mimeograph documents the page graphics primitive object of mask Mask dot matrix, determines the Mask border of this page graphics primitive object;
The trapping processing module, be used for for each definite borderline each boundary point of Mask, when determining these boundary point needs and do trapping and handle according to each page graphics primitive object in the mimeograph documents, determine the trapping processing region of this boundary point, and the trapping color of the interior each point of the trapping processing region of this boundary point;
The trapping result-generation module is used for generating according to the trapping processing region of each boundary point the trapping result of described mimeograph documents.
22, device as claimed in claim 21 is characterized in that, described trapping result-generation module comprises as one of lower unit:
First trapping is generation unit as a result, is used for the trapping processing region of each boundary point is combined into a total area of trap; Generate the image object with Mask dot matrix, image lattice in this image object and Mask dot matrix generate according to this total area of trap; And with the page graphics primitive object of this image object as the superiors in the mimeograph documents; The page graphics primitive object of the described the superiors is the trapping result of described mimeograph documents;
Second trapping is generation unit as a result, be used for for the page graphics primitive object that respectively has the Mask dot matrix, need carry out the trapping processing if the boundary point on the Mask border of this page graphics primitive object is determined, then generate a image object with Mask dot matrix at this page graphics primitive object; The image lattice and the Mask dot matrix of the image object that generates at this page graphics primitive object are determined according to the trapping processing region of the boundary point of this page graphics primitive object; The image object that will generate at this page graphics primitive object is as the adjacent object of this page graphics primitive object, and is placed on this page graphics primitive object; With each image object of generating trapping result as described mimeograph documents.
23, as claim 21 or 22 described devices, it is characterized in that, also comprise:
The cutting module is used for the image object of the page graphics primitive object of mimeograph documents is carried out the valid data cutting.
24, a kind of trapping generating apparatus of mimeograph documents is characterized in that, comprising:
Mask border determination module is used for respectively having for mimeograph documents the page graphics primitive object of Mask dot matrix, determines the Mask border of this page graphics primitive object;
The point set determination module is used for borderline each boundary point of Mask of determining for each, when determining these boundary point needs and do trapping and handle according to each page graphics primitive object in the mimeograph documents, determines the graphics primitive object that participates in trapping for this boundary point; And all identical boundary point of graphics primitive object of the participation trapping that will determine is combined in a point and concentrates;
The trapping processing module is used for all determining for each point set that is combined into the trapping processing region of this point set, and the trapping color of each point in the trapping processing region of definite point set;
The trapping result-generation module is used for generating according to the trapping processing region of each point set the trapping result of described mimeograph documents.
25, device as claimed in claim 24 is characterized in that, described trapping result-generation module comprises as one of lower unit:
The 3rd trapping is generation unit as a result, is used for the trapping processing region of each point set is combined into a total area of trap; Generate the image object with Mask dot matrix, image lattice in this image object and Mask dot matrix generate according to this total area of trap; And with the page graphics primitive object of this image object as the superiors in the mimeograph documents; The page graphics primitive object of the described the superiors is the trapping result of described mimeograph documents;
The 4th trapping is generation unit as a result, be used for for the page graphics primitive object that respectively has the Mask dot matrix, need carry out the trapping processing if the boundary point on the Mask border of this page graphics primitive object is determined, then generate a image object with Mask dot matrix at this page graphics primitive object; The image lattice and the Mask dot matrix of the image object that generates at this page graphics primitive object are determined according to the trapping processing region of the point set of this page graphics primitive object; The image object that will generate at this page graphics primitive object is as the adjacent object of this page graphics primitive object, and is placed on this page graphics primitive object; With each image object of generating trapping result as described mimeograph documents.
26, as claim 24 or 25 described devices, it is characterized in that, also comprise:
The cutting module is used for the image object of the page graphics primitive object of mimeograph documents is carried out the valid data cutting.
CN2008102243407A 2008-10-17 2008-10-17 Trapping generating method and device for printed document Expired - Fee Related CN101383891B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2008102243407A CN101383891B (en) 2008-10-17 2008-10-17 Trapping generating method and device for printed document

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2008102243407A CN101383891B (en) 2008-10-17 2008-10-17 Trapping generating method and device for printed document

Publications (2)

Publication Number Publication Date
CN101383891A true CN101383891A (en) 2009-03-11
CN101383891B CN101383891B (en) 2012-07-25

Family

ID=40463500

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2008102243407A Expired - Fee Related CN101383891B (en) 2008-10-17 2008-10-17 Trapping generating method and device for printed document

Country Status (1)

Country Link
CN (1) CN101383891B (en)

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102196150A (en) * 2010-03-11 2011-09-21 北大方正集团有限公司 Method and device of trap processing
CN102457654A (en) * 2010-10-20 2012-05-16 北大方正集团有限公司 Trap printing method and apparatus thereof
CN102480584A (en) * 2010-11-25 2012-05-30 北大方正集团有限公司 Trapping method and device
CN102480583A (en) * 2010-11-25 2012-05-30 北大方正集团有限公司 Trapping method and device
CN102111529B (en) * 2009-12-25 2012-08-29 北大方正集团有限公司 Method and device for carrying out trapping treatment on gradually changed primitive object
CN102104708B (en) * 2009-12-17 2012-10-03 北大方正集团有限公司 Method and device for generating image path trapping effects
CN101969518B (en) * 2009-07-28 2013-03-06 方正国际软件(北京)有限公司 Method and system for previewing trapping region
CN102088540B (en) * 2009-12-02 2013-03-27 北京大学 Trapping method and device
CN102035992B (en) * 2009-09-25 2013-09-18 方正国际软件(北京)有限公司 Selective overprinting method and system

Cited By (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101969518B (en) * 2009-07-28 2013-03-06 方正国际软件(北京)有限公司 Method and system for previewing trapping region
CN102035992B (en) * 2009-09-25 2013-09-18 方正国际软件(北京)有限公司 Selective overprinting method and system
CN102088540B (en) * 2009-12-02 2013-03-27 北京大学 Trapping method and device
CN102104708B (en) * 2009-12-17 2012-10-03 北大方正集团有限公司 Method and device for generating image path trapping effects
CN102111529B (en) * 2009-12-25 2012-08-29 北大方正集团有限公司 Method and device for carrying out trapping treatment on gradually changed primitive object
CN102196150B (en) * 2010-03-11 2013-04-03 北大方正集团有限公司 Method and device of trap processing
CN102196150A (en) * 2010-03-11 2011-09-21 北大方正集团有限公司 Method and device of trap processing
CN102457654A (en) * 2010-10-20 2012-05-16 北大方正集团有限公司 Trap printing method and apparatus thereof
CN102457654B (en) * 2010-10-20 2014-06-18 北大方正集团有限公司 Trap printing method and apparatus thereof
WO2012069003A1 (en) * 2010-11-25 2012-05-31 北大方正集团有限公司 Trapping method and apparatus
CN102480583A (en) * 2010-11-25 2012-05-30 北大方正集团有限公司 Trapping method and device
CN102480584A (en) * 2010-11-25 2012-05-30 北大方正集团有限公司 Trapping method and device
CN102480584B (en) * 2010-11-25 2014-07-23 北大方正集团有限公司 Trapping method and device

Also Published As

Publication number Publication date
CN101383891B (en) 2012-07-25

Similar Documents

Publication Publication Date Title
CN101383891B (en) Trapping generating method and device for printed document
EP0703524B1 (en) Variable data fields in a page description language
JP3049672B2 (en) Image processing method and apparatus
JPS63205257A (en) Printing control system
JP5526874B2 (en) Image processing apparatus and image processing program
JP6253440B2 (en) Vector data processing apparatus, image recording system, vector data processing method and program
CN107147820B (en) Information processing unit
US20110194785A1 (en) Image Processing Apparatus, Method, And Computer Program
JP2005303740A (en) Image forming apparatus, image forming method, and program
JPH05108793A (en) Document edition device
CN102096903B (en) Page rasterized character smooth processing method and system
JP4024744B2 (en) Trapping method, trapping apparatus, trapping program, and printing system
JPH0320791A (en) Dot pattern data generating device
JP6540546B2 (en) Information processing apparatus and program
JP4592631B2 (en) Image processing apparatus, image processing method, and image processing program for printing plate making
JPS63131270A (en) Three-dimensional character composition device
JP2733347B2 (en) Output device
US20090316210A1 (en) Image forming apparatus, image forming method and computer readable medium
JPS60109888A (en) Character processor
JPS5890677A (en) Image forming device
JPH0573562A (en) Document editor
JP2003044466A (en) Method, device and program for locating character string
JPS60263225A (en) Document display device
JPH06215099A (en) Document processor
Chhabra The impact of new technologies of print media

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
TR01 Transfer of patent right

Effective date of registration: 20220620

Address after: 3007, Hengqin international financial center building, No. 58, Huajin street, Hengqin new area, Zhuhai, Guangdong 519031

Patentee after: New founder holdings development Co.,Ltd.

Patentee after: BEIJING FOUNDER ELECTRONICS Co.,Ltd.

Address before: 100871, Haidian District Fangzheng Road, Beijing, Zhongguancun Fangzheng building, 298, 513

Patentee before: PEKING UNIVERSITY FOUNDER GROUP Co.,Ltd.

Patentee before: BEIJING FOUNDER ELECTRONICS Co.,Ltd.

TR01 Transfer of patent right
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20120725

CF01 Termination of patent right due to non-payment of annual fee