Embodiment
Fig. 1 is dot matrix uniformity determination methods flow chart provided in an embodiment of the present invention;Fig. 2 is the present invention
The dot matrix uniformity that embodiment is provided judges the structure chart of system.The embodiment of the present invention is in the prior art
Lack same portable document format (Portable Document Format, abbreviation PDF) file two
The secondary uniformity determination methods that dot matrix is generated after grating image processor is handled are consistent there is provided dot matrix
Property determination methods, this method is comprised the following steps that:
Step S101, acquisition grating image processor carry out the first of parsing generation for the first time to file destination
Linked network object information;
As shown in Fig. 2 dot matrix uniformity judges that system includes RIP subsystems 11 and RIP call subsystems
12, RIP subsystems 11 include linked network object information logger 110 and MD5 code processors 111, RIP
Call subsystem 12 includes MD5 codes comparator 120.Linked network object information logger 110 is used for grid
Temporary disc file is arrived in the linked network object information storage that image processor is obtained after being parsed to file destination
In.MD5 code processors are used to the linked network object information in disk file generating MD5 codes, for example, generate
The MD5 codes of the dot matrix black and white segment information of linked network Drawing Object and the dot matrix colouring information of linked network image object,
And the MD5 codes of all linked network object informations of generation.MD5 codes comparator 120 is used to call more twice
Whether 32 MD5 codes that RIP is returned are consistent, and then judge the consistent of the dot matrix that RIP is generated twice
Property.
In the embodiment of the present invention, grating image processor is specially the pel in pdf document to file destination
The first linked network object information of parsing generation for the first time is carried out, linked network object information logger 110 is hung first
Net object information is stored into temporary disc file f 1.Specifically, the first linked network object information includes
First Drawing Object information and the first image object information, the first Drawing Object information include described the
Positional information in the file destination of the colouring information of one Drawing Object, first Drawing Object and
Dot matrix black and white segment information, described first image object information includes described first image object in the target
Positional information, current color surface title and dot matrix colouring information in file.
Step S102, according to the first linked network object information generate first yard;
MD5 code processors 111 are converted to the first linked network object information stored in temporary disc file f 1
First yard i.e. 32 MD5 codes, specific conversion method can be using any conversion side of the prior art
Method, the embodiment of the present invention does not limit specific conversion method.
Step S103, the acquisition grating image processor carry out second of parsing to the file destination and given birth to
Into the second linked network object information;
Using with step S101 identical methods, grating image processor is specially to same file destination
Pel in pdf document carries out second of parsing the second linked network object information of generation.Similarly, described second
Linked network object information includes second graph object information and the second image object information, the second graph pair
Image information includes the colouring information of the second graph object, the second graph object in target text
Positional information and dot matrix black and white segment information in part, second image object information include second figure
As positional information, current color surface title and dot matrix colouring information of the object in the file destination.
Step S104, according to the second linked network object information generate second code;
Using with step S102 identicals method second code, institute are generated according to the second linked network object information
It is also 32 MD5 codes to state second code.
First yard and the second code, judge the grating image processor pair described in step S105, comparison
Whether the dot matrix that the file destination handles generation twice is consistent.
MD5 codes comparator 120 by compare above-mentioned steps obtain described first yard and the second code i.e.
Two 32 MD5 codes, judge that the grating image processor handles generation twice to the file destination
Whether dot matrix is consistent, specifically, whether relatively more described first yard identical with the second code;If identical,
Then judge that the dot matrix that the grating image processor handles generation twice to the file destination is consistent;If no
It is identical, then judge that the dot matrix that the grating image processor handles generation twice to the file destination differs
Cause.
The embodiment of the present invention carries out parsing twice to same file destination by grating image processor and generated
First linked network object information and the second linked network object information, are converted to by the first linked network object information respectively
One yard, the second linked network object information is converted into second code, grid are judged by comparing first yard and second code
Whether the dot matrix that table images processor handles same file destination generation twice is consistent, realizes same
Pdf document generates the uniformity determination methods of dot matrix after grating image processor is handled twice.
The dot matrix uniformity determination methods flow chart that Fig. 3 provides for another embodiment of the present invention.It is of the invention real
Example is applied after the step S101 of Fig. 1 embodiments also to comprise the following steps:
Step S301, the dot matrix black and white segment information is converted into the first intermediate code;
The data volume of usual dot matrix black and white segment information is larger, then dot matrix black and white segment information is first converted into one
The MD5 codes of 32 are the first intermediate code.
Step S302, first intermediate code is converted to the second intermediate code, the position of second intermediate code
Digit of the number less than first intermediate code;
On the basis of step S301, the MD5 codes of 32 are converted to MD5 codes i.e. of 16
Two intermediate codes.
Step S303, by the colouring information of first Drawing Object, first Drawing Object described
Positional information and second intermediate code in file destination are stored to the first temporary file;
By the colouring information of first Drawing Object, first Drawing Object in the file destination
Positional information and corresponding 16 of dot matrix black and white segment information the storage of MD5 codes to the first temporary file f1
In.
Step S304, the dot matrix colouring information is converted into the 3rd intermediate code;
The data volume of usual dot matrix colouring information is larger, then dot matrix colouring information is first converted into one 32
MD5 codes be the 3rd intermediate code.
Step S305, the 3rd intermediate code is converted to the 4th intermediate code, the position of the 4th intermediate code
Digit of the number less than the 3rd intermediate code;
On the basis of step S304, the MD5 codes of 32 are converted to MD5 codes i.e. of 16
Four intermediate codes.
Step S306, positional information, current color surface name by the first image object in the file destination
Claim and the 4th intermediate code storage is into first temporary file.
By positional information, current color surface title and dot matrix face of first image object in the file destination
The MD5 codes of corresponding 16 of color information are stored up into the first temporary file f1.
It should be noted that step S301- steps S303 and step S304- steps S306 execution sequence
It is relevant with the order that Drawing Object and image object occur in file destination, i.e. Drawing Object information and figure
As object information storage to the order pel corresponding with Drawing Object and image object in the first temporary file f1
The order occurred in file destination is relevant.
Similarly, the storage method for the second linked network object information is consistent with step S301- steps S306,
Here is omitted.
The embodiment of the present invention is by the way that dot matrix colouring information to be first converted to the MD5 codes of one 32, then turns
The MD5 codes of one 16 are changed to, and dot matrix black and white segment information is first converted to the MD5 of one 32
Code, is reconverted into the MD5 codes of one 16, it is therefore intended that save memory space, raising subsequent point
The efficiency of battle array comparison of coherence.
The dot matrix uniformity determination methods flow chart that Fig. 4 provides for another embodiment of the present invention.It is of the invention real
Apply example and explain in detail the method that first yard is generated according to the first linked network object information, this method step is such as
Under:
Step S401, judge whether the data length that is stored in first temporary file is less than or equal to threshold value;
Understand that grating image processor is carried out after first time parsing to file destination according to above-described embodiment, the
Be stored with the one temporary file f1 colouring information of first Drawing Object, first Drawing Object exists
The MD5 codes of positional information and corresponding 16 of dot matrix black and white segment information in the file destination, and
Positional information, current color surface title and dot matrix colouring information of first image object in the file destination
The MD5 codes of corresponding 16.
Judge whether all data lengths stored in first temporary file are less than or equal to threshold value, the threshold
Max byte representation of value.
Step S402, if so, then all data stored in first temporary file are converted to described
First yard;
If the length that all data are stored in the first temporary file f1 is less than or equal to max byte,
Then by stored in the first temporary file f1 all data be converted to one 32 MD5 codes it is i.e. above-mentioned
First yard described in embodiment.
Step S403, otherwise, is not successively read length for the threshold value and not from first temporary file
The one group of data repeated, to the last the length of one group of data is less than or equal to the threshold value, by the every of reading
One group of data is converted to the first interim code, and the described first interim code is sequentially stored into the second temporary file;
If the length that all data are stored in the first temporary file f1 is more than max byte, for example,
The length of all data is stored in the first temporary file f1 for (3*max+10) individual byte, and 10
Less than max, then length is successively read from the first temporary file f1 for max and unduplicated one group of data,
4 groups of data are successively read out, first group of data length is max, and second group of data length is max,
3rd group of data length is max, and the 4th group of data length is 10, is now converted for each group of data
For the MD5 codes of one 32, then the MD5 codes of 32 are converted to the MD5 codes of one 16,
And be that the first interim code is stored into the second temporary file f11 successively by each 16 MD5 code,
That is be stored with the MD5 codes of 4 16 in the second temporary file f11.The embodiment of the present invention is citing
Illustrate, do not limit max length, and the length of all data is stored in the first temporary file f1.
Step S404, place corresponding with first temporary file is repeated to second temporary file
Reason method, until there is target temporary file, the data length of the target temporary file is less than or equal to institute
Threshold value is stated, and described first yard is converted to by all data are stored in the target temporary file.
Determination methods to the first temporary file f1 are similar to the second temporary file f11 determination methods,
Specially:First judge the data length of the MD5 codes of 4 16 stored in the second temporary file f11
Whether it is max byte less than or equal to threshold value, if being less than or equal to, will be deposited in the second temporary file f11
Store up all data and be converted to first yard described in one 32 MD5 codes i.e. above-described embodiment.
If the length that all data are stored in the second temporary file f11 is more than max byte, for example,
The length of all data stored in second temporary file f11 is (max+5) individual byte, and 5 be less than
Max, then be successively read length for max and unduplicated one group of data from the second temporary file f11,
2 groups of data are successively read out, first group of data length is max, and second group of data length is 5, right
Each group of data are now converted into the MD5 codes of one 32, then the MD5 codes of 32 are changed
For the MD5 codes of one 16, and it is that the first interim code is stored successively by each 16 MD5 code
Into the 3rd temporary file f12, i.e. be stored with the MD5 codes of 2 16 in the 3rd temporary file f12.
Processing method corresponding with first temporary file is repeated to the 3rd temporary file f12, directly
To there is target temporary file, it is assumed that the length of all data stored in the 3rd temporary file f12 is less than
Equal to max byte, then be converted to one 32 by all data stored in the 3rd temporary file f12
MD5 codes be used as i.e. first yard of final MD5 codes of one 32.Generate final one 32
MD5 codes after by the first temporary file f1, the second temporary file f11, the 3rd temporary file f12
Data are all emptied, so as to when grating image processor carries out second to file destination to be parsed, by second
Second linked network object information of parsing generation is stored in the temporary file being cleared, and prevents the first linked network pair
Image information and the second linked network object information aliasing in temporary file are stored.
In addition, generating the method and step S401-S404 of second code according to the second linked network object information
Unanimously, here is omitted.
The embodiment of the present invention is long by data in units of max byte by judging the size of temporary file
Degree is more than the data stored in the temporary file of max byte and divided, and the data after division are first
The MD5 codes of one 32 are converted to, the MD5 codes of one 16 are reconverted into, by the institute after conversion
The MD5 codes for having 16 are stored into new temporary file, memory space are further saved, after raising
The efficiency of continuous dot matrix comparison of coherence.
Fig. 5 is the structure chart of dot matrix match judging apparatus provided in an embodiment of the present invention.The present invention is implemented
The dot matrix match judging apparatus that example is provided can perform the place of dot matrix uniformity determination methods embodiment offer
Flow is managed, as shown in figure 5, dot matrix match judging apparatus 50 includes acquisition module 51, generation module
52 and multilevel iudge module 53, wherein, acquisition module 51 is used to obtain grating image processor to target
File carries out the first linked network object information of parsing generation for the first time;Obtain the grating image processor pair
The file destination carries out the second linked network object information of second of parsing generation;Generation module 52 be used for according to
First yard is generated according to the first linked network object information;According to the second linked network object information generation second
Code;Multilevel iudge module 53 is used to compare described first yard and the second code, judges the grating image
Whether the dot matrix that processor handles the file destination generation twice is consistent.
The embodiment of the present invention carries out parsing twice to same file destination by grating image processor and generated
First linked network object information and the second linked network object information, are converted to by the first linked network object information respectively
One yard, the second linked network object information is converted into second code, grid are judged by comparing first yard and second code
Whether the dot matrix that table images processor handles same file destination generation twice is consistent, realizes same
Pdf document generates the uniformity determination methods of dot matrix after grating image processor is handled twice.
The structure chart for the dot matrix match judging apparatus that Fig. 6 provides for another embodiment of the present invention.Above-mentioned
On the basis of embodiment, the first linked network object information includes the first Drawing Object information and the first image
Object information, it is the colouring information of the first Drawing Object information including first Drawing Object, described
Positional information and dot matrix black and white segment information of first Drawing Object in the file destination, first figure
As object information includes described first image object positional information, current color surface in the file destination
Title and dot matrix colouring information.
Dot matrix match judging apparatus 50 also includes modular converter 54 and memory module 55, wherein, conversion
Module 54 is used to the dot matrix black and white segment information being converted to the first intermediate code;First intermediate code is turned
The second intermediate code is changed to, the digit of second intermediate code is less than the digit of first intermediate code;By institute
State dot matrix colouring information and be converted to the 3rd intermediate code;3rd intermediate code is converted into the 4th intermediate code,
The digit of 4th intermediate code is less than the digit of the 3rd intermediate code;Memory module 55 is used for will be described
The positional information of the colouring information of first Drawing Object, first Drawing Object in the file destination
With second intermediate code storage to the first temporary file;By the first image object in the file destination
Positional information, current color surface title and the 4th intermediate code stored into first temporary file.
Whether generation module 52 is small specifically for the data length for judging to store in first temporary file
In equal to threshold value;If so, all data stored in first temporary file then are converted into described
One yard;Otherwise, length is successively read from first temporary file for the threshold value and unduplicated one
Group data, to the last the length of one group of data is less than or equal to the threshold value, by each group of data of reading
The first interim code is converted to, and the described first interim code is sequentially stored into the second temporary file;To described
Two temporary files repeat processing method corresponding with first temporary file, face until there is target
When file, the data length of the target temporary file is less than or equal to the threshold value.
Whether multilevel iudge module 53 is identical specifically for relatively more described first yard and the second code;If phase
Together, then judge that the dot matrix that the grating image processor handles generation twice to the file destination is consistent;
If differing, judge that the grating image processor handles the file destination dot matrix of generation twice
It is inconsistent.
Dot matrix match judging apparatus provided in an embodiment of the present invention can be specifically for performing above-mentioned Fig. 1 institutes
The embodiment of the method for offer, here is omitted for concrete function.
The embodiment of the present invention is by the way that dot matrix colouring information to be first converted to the MD5 codes of one 32, then turns
The MD5 codes of one 16 are changed to, and dot matrix black and white segment information is first converted to the MD5 of one 32
Code, is reconverted into the MD5 codes of one 16, it is therefore intended that save memory space, raising subsequent point
The efficiency of battle array comparison of coherence;By judging the size of temporary file, by number in units of max byte
It is more than the data stored in the temporary file of max byte according to length to be divided, and by the number after division
According to the MD5 codes for being first converted to one 32, the MD5 codes of one 16 are reconverted into, after conversion
The MD5 codes of all 16 store into new temporary file, further save memory space, carry
The efficiency of high follow-up dot matrix comparison of coherence.
In summary, the embodiment of the present invention carries out two by grating image processor to same file destination
Secondary parsing the first linked network object information of generation and the second linked network object information, respectively believe the first linked network object
Breath is converted to first yard, and the second linked network object information is converted into second code, by comparing first yard and theOneTwo yards judge grating image processor same file destination is handled twice generation dot matrix whether one
Cause, realize the uniformity that same pdf document generates dot matrix after grating image processor is handled twice
Determination methods;By the way that dot matrix colouring information to be first converted to the MD5 codes of one 32, one is reconverted into
The MD5 codes of individual 16, and dot matrix black and white segment information is first converted to the MD5 codes of one 32,
It is reconverted into the MD5 codes of one 16, it is therefore intended that save memory space, improves follow-up dot matrix one
The efficiency that cause property compares;It is in units of max byte that data are long by judging the size of temporary file
Degree is more than the data stored in the temporary file of max byte and divided, and the data after division are first
The MD5 codes of one 32 are converted to, the MD5 codes of one 16 are reconverted into, by the institute after conversion
The MD5 codes for having 16 are stored into new temporary file, memory space are further saved, after raising
The efficiency of continuous dot matrix comparison of coherence.
In several embodiments provided by the present invention, it should be understood that disclosed apparatus and method,
It can realize by another way.For example, device embodiment described above is only schematical,
For example, the division of the unit, only a kind of division of logic function, can have in addition when actually realizing
Dividing mode, such as multiple units or component can combine or be desirably integrated into another system, or
Some features can be ignored, or not perform.It is another, shown or discussed coupling each other or
Direct-coupling or communication connection can be the INDIRECT COUPLING or communication link of device or unit by some interfaces
Connect, can be electrical, machinery or other forms.
The unit illustrated as separating component can be or may not be it is physically separate, make
It can be for the part that unit is shown or may not be physical location, you can with positioned at a place,
Or can also be distributed on multiple NEs.Can select according to the actual needs part therein or
Person's whole units realize the purpose of this embodiment scheme.
In addition, each functional unit in each embodiment of the invention can be integrated in a processing unit,
Can also be that unit is individually physically present, can also two or more units be integrated in a list
In member.Above-mentioned integrated unit can both be realized in the form of hardware, it would however also be possible to employ hardware adds software
The form of functional unit is realized.
The above-mentioned integrated unit realized in the form of SFU software functional unit, can be stored in a computer
In read/write memory medium.Above-mentioned SFU software functional unit is stored in a storage medium, including some fingers
Order is to cause a computer equipment (can be personal computer, server, or network equipment etc.)
Or processor (processor) performs the part steps of each embodiment methods described of the invention.And it is foregoing
Storage medium include:USB flash disk, mobile hard disk, read-only storage (Read-Only Memory, ROM),
Random access memory (Random Access Memory, RAM), magnetic disc or CD etc. are various can be with
The medium of store program codes.
Those skilled in the art can be understood that, for convenience and simplicity of description, only with above-mentioned each
The division progress of functional module is for example, in practical application, as needed can divide above-mentioned functions
With by different functional module completions, i.e., the internal structure of device is divided into different functional modules, with
Complete all or part of function described above.The specific work process of the device of foregoing description, can be with
With reference to the corresponding process in preceding method embodiment, it will not be repeated here.
Finally it should be noted that:Various embodiments above is merely illustrative of the technical solution of the present invention, rather than right
It is limited;Although the present invention is described in detail with reference to foregoing embodiments, this area it is common
Technical staff should be understood:It can still modify to the technical scheme described in foregoing embodiments,
Or equivalent substitution is carried out to which part or all technical characteristic;And these modifications or replacement, and
The essence of appropriate technical solution is not set to depart from the scope of various embodiments of the present invention technical scheme.