Summary of the invention
The technical problem to be solved in the present invention how E-seal and electronic document print management to be controlled to combine, and solves enterprises and institutions to the Version Control demand of paper document.
In order to solve this technical matters, the invention provides a kind of print control system based on E-seal and method, comprise the first client, Printing and server, described server carries out data interaction with described first client and Printing respectively;
Described first client at least in order to:
Response external inputs, and is document configuration print right to be printed, obtains printing configuration information, and described printing configuration information at least includes the available print number of document to be printed;
The printing configuration information of this document to be printed is uploaded to described server;
Described Printing at least in order to:
The printing configuration information of described document to be printed is obtained from described server;
Response external inputs, and selects to enter and strengthens print procedure or direct print procedure;
In described direct print procedure, described Printing is also in order to judge whether described document to be printed exists effective E-seal;
If exist, then the image of the E-seal in described document to be printed discolored, print after gray proces;
If do not exist, then print;
In described reinforcement print procedure, described Printing also in order to:
Judge whether described document to be printed exists effective E-seal;
If exist, and obtain print right success, can print;
If do not exist or obtain print right failure, then can not print;
Print, and make the printing number of this document to be printed be not more than described available print number all the time.
Optionally, during configuring print authority, described first client also in order to:
Response external inputs, and selects whether configure described digital certificate pattern;
If so, then described document configuration to be printed is become digital certificate pattern,
Under described digital certificate pattern, described first client further in order to:
Available print certificate is registered on described server for this document configuration available print certificate to be printed;
Under described digital certificate pattern, in described reinforcement print procedure, read print right time, described Printing also in order to:
Read the certificate that described Printing is held, document to be printed to itself and this is registered in compared with the available print certificate on server, judges whether to there is the certificate matched;
If the match is successful, then judge to obtain print right success;
If it fails to match, then do not judge to obtain print right failure.
Optionally, under described digital certificate pattern, described first client also in order to:
When configuring described available print number, it is the described available print number that the configuration of available print certificate is corresponding;
Under described digital certificate pattern, in described reinforcement print procedure, described Printing also in order to:
In the successful situation of credentials match, the described available print number making the printing number of this document to be printed be not more than respective certificate all the time when printing to be configured.
Optionally, described first client also in order to:
Automatically be each described document structure tree to be printed unique identification id;
For each document to be printed, the printing configuration information of document to be printed is mated with described unique identification id and integrates, be uploaded to described server; Described printing configuration information also comprises the information whether configuring described digital certificate pattern;
Described Printing also in order to:
Obtain described document to be printed, the unique identification id according to this document to be printed prints configuration information from described server lookup and acquisition;
If document to be printed is configured to described digital certificate pattern, described first client is also integrated in order to be mated with described unique identification id by the available print certificate of correspondence, and be registered in described server, described Printing also in order to according to described unique identification id from described server lookup with obtain corresponding available print certificate information.
Optionally, described E-seal is issued by electronic stamp platform, and the described E-seal be awarded comprises com object;
When judging whether described document to be printed exists effective E-seal, described Printing further in order to:
Judge whether described document to be printed exists com object;
If do not exist, then judge that described document to be printed does not exist effective E-seal;
If exist, then extract corresponding com object in described document to be printed; Whether the com object that further judgement is extracted has the like-identified of the E-seal issued with affiliated electronic stamp platform;
If have identical mark, then judge that described document to be printed exists effective E-seal;
If do not have identical mark, then judge that described document to be printed does not exist effective E-seal.
Optionally, discoloring described in carrying out, gray proces time, described Printing in order to the value of R, G, B of each pixel of primary electron seal image is substituted into following formula, calculates the gray-scale value A of corresponding pixel points further:
A=0.11R+0.59G+0.30B
Gray-scale value A according to each pixel builds the gray level image of described E-seal, discolors, gray proces described in completing.
Optionally, in described direct print procedure, described Printing also in order to:
Also atomization process is carried out to the image of this E-seal carrying out discoloring, after gray proces, print again after process.
Optionally, described Printing also in order to:
After having printed required number, obtain original available print number and the difference printing number, it can be used as new available print number, be updated to described server.
Present invention also offers a kind of print control program based on E-seal, comprise the steps:
S1: carry out stamped signature to non-stamped signature document, forms the document to be printed after stamped signature;
S2: response external inputs, and described first client is described document configuration print right to be printed, obtain printing configuration information, described printing configuration information at least includes the available print number of document to be printed;
S3: the printing configuration information of this document to be printed uploads onto the server by described first client;
S4: response external inputs, described Printing is selected to enter and is strengthened print procedure or direct print procedure;
Described direct print procedure comprises the steps:
S51: described Printing judges whether described printed document exists effective E-seal;
If exist, then enter step S52;
If do not exist, then print;
S52: the image of the E-seal in described document to be printed is discolored, prints after gray proces;
Described reinforcement print procedure at least comprises the steps:
S60: read the printing configuration information of this document to be printed from described server and obtain the print right of Printing;
If obtain successfully, then enter step S61;
If obtain unsuccessfully, then feedback cannot strengthen the information of printing;
S61: described Printing judges whether described document to be printed exists effective E-seal;
If exist, then enter step S62;
If do not exist, then feedback cannot strengthen the information of printing;
S62: implement to print, client carries out the printing of described document to be printed, and makes the printing number of this document to be printed be not more than described available print number all the time.
Optionally, before described step S2, also comprise selection whether described document configuration to be printed is become digital certificate pattern;
If option and installment becomes digital certificate pattern, then:
Further comprising the steps of before described step S2:
Described first client end response outside input is this document configuration available print certificate to be printed;
In described step S2, when configuring described available print number, it is the available print number that the configuration of described available print certificate is corresponding;
In described step S3, also the certificate of this document configuration to be printed is registered on described server;
Before described step S4, also comprise: repeat the step before step S4, need the available print certificate of configuration all to complete configuration, register and upload until all;
Described step S60 is specially:
Read the certificate being connected to described Printing and holding, judge whether the certificate that itself and this document to be printed is registered on server mates;
If the match is successful, then judge that print right obtains successfully, enter step S61;
If it fails to match, then judge that print right obtains unsuccessfully, feedback cannot strengthen the information printed;
In described step S62, the printing number of this document to be printed is not more than the described available print number that respective certificate is configured all the time.
Optionally, after described step S1, described first client also generates a unique identification id automatically for each described document to be printed;
Described step S3 comprises further: described first client is for each document to be printed, whether document to be printed is configured to the information of described digital certificate pattern and described available print number all mate with described unique identification id and integrate, is uploaded to described server; If document to be printed is configured described digital certificate pattern, the available print certificate of correspondence, except by above-mentioned information integration, also mates with described unique identification id and integrates, and be registered in described server by described first client;
Described step S4 comprises further:
Described Printing obtains described document to be printed, then the information of described digital certificate pattern, described available print number whether is configured according to unique identification id of this document to be printed from described server lookup and acquisition, if configure described digital certificate pattern, described Printing also obtains corresponding certificate according to described unique identification id from described server and mates.
Optionally, described E-seal is issued by electronic stamp platform, and the described E-seal be awarded comprises com object;
When judging whether described document to be printed exists effective E-seal, further comprising the steps:
Judge whether described document to be printed exists com object;
If do not exist, then judge that described document to be printed does not exist effective E-seal;
If exist, then extract corresponding com object in described document to be printed; Whether the com object that further judgement is extracted has the like-identified of the E-seal issued with affiliated electronic stamp platform;
If have identical mark, then judge that described document to be printed exists effective E-seal;
If do not have identical mark, then judge that described document to be printed does not exist effective E-seal.
Optionally, discoloring described in carrying out, gray proces time, the value of R, G, B of each pixel of primary electron seal image is substituted into following formula, calculates the gray-scale value A of corresponding pixel points:
A=0.11R+0.59G+0.30B
Then build the gray level image of described E-seal according to the gray-scale value A of each pixel, discolor described in completing, gray proces.
Optionally, in described direct print procedure, also atomization process is carried out to the image of this E-seal carrying out discoloring, after gray proces, print again after process.
Optionally, after described step S62, also comprise: obtain original available print number and the difference printing number, it can be used as new available print number, be updated to described server.
The present invention proposes a kind of print control system based on E-seal and method, there is provided and strengthen printing and directly printing two kinds of configuration modes, print management and the control of electronic document is realized by the form of expression of E-seal, realize the Version Control of paper document further, meet enterprises and institutions to document print management and the demand of paper document Version Control.
Further, the present invention is affixing one's seal and is printing the concept that layoutprocedure introduces certificate, and the certificate of user both can be kept at computer, called at any time, referred to as " soft certificate "; Also can be stored in USB-Key, insert computer during use, referred to as " hard certificate ".Certificate has uniqueness, and certificate of utility carries out the acquisition of authentication and print right, to achieve in enterprises and institutions' office and business contact safety, secret demand, ensure that to only have the certificate that the match is successful ability successful print document; The present invention can also carry out concrete configuration with regard to the available print number of document, achieves effective Version Control of paper document.
Further, the available print number of document and certificate can also connect by the present invention, make specific certificate holder can only print the number of limit, have ensured effective Version Control of paper document further.
Embodiment
Print control system based on E-seal provided by the invention and method are described in detail by an embodiment below with reference to Fig. 1 to Fig. 4, it is optional embodiment of the present invention, can think, those skilled in the art, in the scope not changing the present invention's spirit and content, can modify to it and polish.
Please refer to Fig. 1, Fig. 2 and Fig. 3, present embodiments provide a kind of print control program based on E-seal, comprise the steps:
S1: carry out stamped signature to non-stamped signature document, forms the document described to be printed after stamped signature;
In the present embodiment, described E-seal is issued by electronic stamp platform, and the described E-seal be awarded comprises com object; In other words, print control system in the present embodiment and method can comprise the first client carries out stamped signature process to document, but in fact, in other optional embodiments of the present invention, even if do not carry out stamped signature in the first client, and be only the described document to be printed of importing one, being also fine, is also one of scheme of protecting of the present invention;
After described step S1, after namely stamped signature completes, described first client is also each described document structure tree to be printed unique identification id automatically; Specifically, stochastic generation 16 character strings, comprise digital horizontal line letter etc., these 16 character strings are unique identification id of document; The unique identification id of document transmits with standard XML format, in accordance with SOAP communication protocol, supports WebService agreement simultaneously;
S2: response external inputs, and described first client is described document configuration print right to be printed; Obtain printing configuration information, described printing configuration information at least includes the available print number of document to be printed; Specifically, the Print Control mode that document is set and available print number can be comprised;
Print Control mode can regard as following two kinds:
1, be not configured to digital certificate pattern, the available print number of whole document is set, be i.e. effective printing number of a document;
2, digital certificate pattern is configured to: a, specific certificate (one or more) holder is set just can prints; B, configure printing number corresponding to each certificate;
So, in the present embodiment, before described step S2, also comprise selection whether described document configuration to be printed is become digital certificate pattern; Certainly, in other optional embodiments of the present invention, also digital certificate pattern or nonnumeric certificate pattern can directly be entered, and without the process selected, should think: directly enter digital certificate pattern, nonnumeric certificate pattern and enter digital certificate pattern or nonnumeric certificate pattern is the means be equal to after selecting;
Study carefully its logic reason, can think, digital certificate pattern carries out concrete configuration to certificate in advance, realize the checking of identity when printing by certificate and print the control of number, it is the further scheme on nonnumeric certificate pattern basis, under nonnumeric certificate pattern, do not need to carry out authentication, the control printing number is also no longer relevant with digital certificate, and the configuration in advance for printing number is also direct configuration, and has nothing to do with digital certificate.
So, need clear and definite 2 points, first, there is upper the next concept in both, even if the claim namely after mandate of the present invention only using the scheme under nonnumeric certificate pattern as protection domain, also should comprise the scheme be configured further by certificate (comprising " soft certificate " and " hard certificate ") in its protection domain; The second, no matter whether must the carrying out of preposition property select; namely no matter whether to manually select " digital certificate pattern "; it is even directly enter " digital certificate pattern " or " nonnumeric certificate pattern ", is also all that the present invention makes every effort to one of scheme protected.
If option and installment becomes digital certificate pattern, then:
Further comprising the steps of before described step S2:
Described first client is this document configuration available print certificate to be printed;
In described step S2, when configuring described available print number, it is the available print number that the available print certificate configuration configured is corresponding;
The preset system default available print number of times of first client is 2 times, and the first client can reset available print number of times according to actual conditions, and the first client can be configured to only once reset printing times authority;
S3: the printing configuration information of this document to be printed uploads onto the server by described first client; In described step S3, also the certificate of this document configuration to be printed is registered on described server;
Described step S3 comprises further: described first client is for each document to be printed, whether document to be printed is configured to the information of described digital certificate pattern and described available print number mate with described unique identification id and integrate, is uploaded to described server; If document to be printed is configured described digital certificate pattern, the available print certificate of correspondence, except by above-mentioned information integration, also mates with described unique identification id and integrates, and be registered in described server by described first client;
In the present embodiment, before described step S4, also comprise: repeat the step before step S4, need the available print certificate of configuration all to complete configuration, register and upload until all;
Step before above step S4 is all that the first client realizes substantially, and data interaction wherein is mainly carried out between the first client and server.Illustrate figure mainly Fig. 2 of this process, the step that following steps S4 starts mainly Printing realizes, and illustrates figure mainly Fig. 3 of following process.
S4: response external inputs, described Printing is selected to enter and is strengthened print procedure or direct print procedure;
The differentiation of two kinds of processes, mainly for print management and the control of electronic document, realizes the Version Control of paper document further, to adapt to the regulatory requirement of enterprises and institutions:
The result of direct printing is divided into two classes, and a class is when there is not E-seal, cannot carry out Print Control, therefore directly print electronic document; Another kind of is when there is seal, pass through if seal is verified, E-seal is discolored, after gray proces, " atomization " effect can be adopted again, change the normal appearance of E-seal, the paper document therefore printed can think the version of engineering noise in the daily circulation of enterprises and institutions.
And strengthen printing difference, because E-seal in the document that it prints normally shows, " effectively " version can be thought, so need to carry out strict control to it, it prints prerequisite and only has one, namely seal exists, seal is effective, authentication is passed through, reality prints number within available print number, just prints the document of the normal display seal of corresponding number.
Below furthermore:
Described direct print procedure comprises the steps:
S51: described Printing judges whether described printed document exists effective E-seal;
If exist, then enter step S52;
If do not exist, then print;
When judging whether described document to be printed exists effective E-seal, judged whether to there is E-seal before this, then be only and judge that whether this E-seal is effective, verify whether it effectively also can be expressed as " whether seal checking is passed through ", further comprising the steps:
Judge whether described document to be printed exists com object; Certainly, this is based in the present embodiment, and the described E-seal be awarded comprises com object; If the mode of write E-seal is different, the mode of judgement also can adaptively adjust, and any adaptive adjustment, all should be able to regard as the equivalent arrangements of the present embodiment;
If do not exist, then judge that described document to be printed does not exist effective E-seal;
If exist, then extract corresponding com object in described document to be printed; Whether the com object that further judgement is extracted has the like-identified of the E-seal issued with affiliated electronic stamp platform;
If have identical mark, then judge that described document to be printed exists effective E-seal;
If do not have identical mark, then judge that described document to be printed does not exist effective E-seal.
S52: the image of the E-seal in described document to be printed is discolored, prints after gray proces;
Discoloring described in carrying out, gray proces time, the value of R, G, B of each pixel of primary electron seal image is substituted into following formula, calculates the gray-scale value A of corresponding pixel points:
A=0.11R+0.59G+0.30B
Then build the gray level image of described E-seal according to the gray-scale value A of each pixel, discolor described in completing, gray proces.
With reference to figure 4, in described direct print procedure, also atomization process is carried out to the image of this E-seal carrying out discoloring, after gray proces, print again after process.What atomization process adopted is " Gaussian Blur ", and concrete fog-level can customize according to the actual requirements.Mainly in the occasion that black-and-white printer prints, if do not process the E-seal in document, the E-seal performance then directly printed and strengthen printing is identical, in order to distinguish this two kinds of printing effects, and control the version of paper document better, removing is discolored and gray proces to E-seal, and adopt atomization process to E-seal further, the E-seal printed shows as fuzzy form.
Described reinforcement print procedure at least comprises the steps:
S60: read the printing configuration information of this document to be printed from described server and obtain the print right of Printing;
If obtain successfully, then enter step S61;
If obtain unsuccessfully, then feedback cannot strengthen the information of printing;
Described step S60 is specially:
Read the certificate being connected to described Printing and holding, judge whether the certificate that itself and this document to be printed is registered on server mates;
If the match is successful, then judge that print right obtains successfully, enter step S61;
If it fails to match, then judge that print right obtains unsuccessfully, feedback cannot strengthen the information printed, and such as, can feed back word and " not inquire related credentials, cannot test chapter or strengthen printing ".
S61: described Printing judges whether described document to be printed exists effective E-seal;
If exist, then enter step S62;
If do not exist, then feedback cannot strengthen the information of printing;
Here judgement, the same with the deterministic process directly printed:
When judging whether described document to be printed exists effective E-seal, judged whether to there is E-seal before this, then be only and judge that whether this E-seal is effective, verify whether it effectively also can be expressed as " whether seal checking is passed through ", further comprising the steps:
Judge whether described document to be printed exists com object; Certainly, this is based in the present embodiment, and the described E-seal be awarded comprises com object, thus forms the document described to be printed after stamped signature; If the mode of write E-seal is different, the mode of judgement also can adaptively adjust, and any adaptive adjustment, all should be able to regard as the equivalent arrangements of the present embodiment;
If do not exist, then judge that described document to be printed does not exist effective E-seal; Such as, can be fed back to " there is not E-seal in document, cannot strengthen printing "
If exist, then extract corresponding com object in described document to be printed; Whether the com object that further judgement is extracted has the like-identified of the E-seal issued with affiliated electronic stamp platform;
If have identical mark, then judge that described document to be printed exists effective E-seal;
If do not have identical mark, then judge that described document to be printed does not exist effective E-seal.
S62: implement to print, client carries out the printing of described document to be printed, and makes the printing number of this document to be printed be not more than described available print number all the time.
In described step S62, the printing number of this document to be printed is not more than the described available print number that respective certificate is configured all the time.If number beyond, then do not print, can feed back " exceed available print number, can not print ".
Its concrete logic can refer to the display in Fig. 3, first judges that this prints number and whether exceeds available print number,
If do not exceed, then superadd-print daily record the available print number of update server end;
If exceed, then do not print, and information " exceeds available print number, cannot print ".
After described step S62, also comprise: obtain original available print number and the difference printing mark, it can be used as new available print number, be updated to described server.This can be understood as replacement available print number mentioned above, for example, assuming that the available print number that the certificate that Xiao Li holds is configured is 5 parts, the required printing number of current setting of printing is 3 parts, after three parts of printings, then reset available print number on the server, reset to 2 parts.
Therefrom also can see, for Printing, it can possess the basic setup of nearly all printer, the present embodiment and do not invent not do and enumerate completely, only because this enumerate too complicated, such as size, number, form etc. function is set, as long as do these further to configure on basis of the present invention, all drop in protection scope of the present invention; In addition, this printing, can be not only entity, also can be electronics, as long as printed document, just can apply the solution of the present invention.
Based on above method, the present embodiment additionally provides a kind of print control system based on E-seal, below each functional module of this system is not introduced, and be only the major function introducing each hardware, corresponding relation is there is in it with above-described method, the part if Rational Solutions has some setbacks, can see description above;
This system mainly comprises the first client, Printing and server, and described server carries out data interaction with described first client and Printing respectively;
Relevant described first client:
Described first client at least in order to:
Response external inputs, and is described document configuration print right to be printed, obtains printing configuration information, and described printing configuration information at least includes the available print number of document to be printed;
Response external inputs, and selects whether this document to be printed is configured to digital certificate pattern;
If so, then described document configuration to be printed is become digital certificate pattern,
Under described digital certificate pattern, described first client further in order to:
For this document configuration available print certificate to be printed and corresponding available print number;
The certificate of this document configuration to be printed is registered on described server;
Described first client also in order to:
For each described document structure tree to be printed unique identification id;
For each document to be printed, the printing configuration information of document to be printed is mated with described unique identification id and integrates, be uploaded to described server; If document to be printed is configured described digital certificate pattern, described first client is except by above-mentioned information integration, also available print number corresponding to the available print certificate of correspondence, each available print certificate is mated with described unique identification id and integrate, and be registered in described server.Described printing configuration information also comprises the information relevant with print right such as information whether configuring described digital certificate pattern.
For described Printing,
Described Printing at least in order to:
The printing configuration information of described document to be printed is obtained from described server;
Response external inputs, and selects to enter and strengthens print procedure or direct print procedure;
In described direct print procedure, described Printing is also in order to judge whether described document to be printed exists effective E-seal;
If exist, then the image of the E-seal in described document to be printed discolored, print after gray proces;
If do not exist, then print;
In described reinforcement print procedure, described Printing is also in order to judge whether described document to be printed exists effective E-seal;
If exist, and obtain print right success, can print;
If do not exist or obtain print right failure, then can not print;
Print, and make the printing number of this document to be printed be not more than described available print number all the time.
In direct print procedure, discoloring described in carrying out, gray proces time, described Printing, further in order to the value of R, G, B of the pixel of primary electron seal image is substituted into following formula, calculates the gray-scale value A of corresponding pixel points:
A=0.11R+0.59G+0.30B
Gray-scale value A according to each pixel builds the gray level image of described E-seal, discolors, gray proces described in completing.
In described direct print procedure, described Printing also in order to:
Also atomization process is carried out to the image of this E-seal carrying out discoloring, after gray proces, print again after process.Please refer to Fig. 4, what atomization process adopted is " Gaussian Blur ", and concrete fog-level can customize according to the actual requirements.This design be because, if print with black-and-white printer, when there is E-seal in a document, just cannot distinguish the difference of the printing effect directly printing and strengthen the document printed, so atomization process can be utilized, in other alternative-embodiments, also can strengthen adding anti-counterfei waterprint, to show difference in the document printed.
Under described digital certificate pattern, in described reinforcement print procedure, described Printing also in order to:
Read the certificate that described Printing is held, judge whether the certificate that itself and this document to be printed is registered on server mates;
If the match is successful, then judge to obtain print right success;
If it fails to match, then judge to obtain print right failure.
Under described digital certificate pattern, in described reinforcement print procedure, described Printing also in order to:
When the match is successful, the described available print number making the printing number of this document to be printed be not more than respective certificate all the time when printing to be configured.
Described Printing also in order to:
Obtain described document to be printed, about the acquisition pattern of document to be printed, the mode such as include but not limited to mail, copy, system downloads, copy.Whether Printing configures the information of described digital certificate pattern and described available print number according to unique identification id of this document to be printed from described server lookup and acquisition; Described Printing also in order to according to described unique identification id from described server lookup with obtain corresponding certificate information.
Described E-seal is issued by electronic stamp platform, and the described E-seal be awarded comprises com object;
So, be no matter directly print or strengthen to print, when judging whether described document to be printed exists effective E-seal, described Printing further in order to:
Judge whether described document to be printed exists com object;
If do not exist, then judge that described document to be printed does not exist effective E-seal;
If exist, then extract corresponding com object in described document to be printed; Whether the com object that further judgement is extracted has the like-identified of the E-seal issued with affiliated electronic stamp platform;
If have identical mark, then judge that described document to be printed exists effective E-seal;
If do not have identical mark, then judge that described document to be printed does not exist effective E-seal.
Described Printing also in order to:
After having printed required number, obtain original available print number and the difference printing number, it can be used as new available print number, be updated to described server.
The present embodiment, comprise client, server and the control method etc. that adopt based on E-seal print system in the present invention, the use be all supported in multiple conventional electronic document (includes but not limited to MSWord2000/XP/2003/2007/2010, MS Excel2000/XP/2003/2007/2010, Kingsoft WPS word, PDF).
In sum, the present invention proposes a kind of print control system and method for local electronic seal, there is provided and strengthen printing and directly printing two kinds of configuration modes, print management and the control of electronic document is realized by the form of expression of E-seal, realize the Version Control of paper document further, meet enterprises and institutions to document print management and the demand of paper document Version Control
Further, the present invention is affixing one's seal and is printing the concept that layoutprocedure introduces certificate, and the certificate of user both can be kept at computer, called at any time, referred to as " soft certificate "; Also can be stored in USB-Key, insert computer during use, referred to as " hard certificate ".Certificate has uniqueness, and certificate of utility carries out the acquisition of authentication and print right, to achieve in enterprises and institutions' office and business contact safety, secret demand, ensure that to only have the certificate that the match is successful ability successful print document; The present invention can also carry out concrete configuration with regard to the available print number of document, achieves effective Version Control of paper document.
Further, the available print number of document and certificate can also connect by the present invention, make specific certificate holder can only print the number of limit, have ensured effective Version Control of paper document further.