Background technology
Along with the increasing of China's E-Government promotion efficiency, in office automation (OA), Workflow Management, occurrences in human life source control electronic system, paper document is replaced by electronic document gradually. Mobile handwriting signing system utilizes database technology, network technology, OA technology etc., by the mechanism of circulation of official document flexibly, realizes green without paper, the safely and efficiently function such as official document writing signing flow process and the classification of electronic document, retrieval, filing management.
Current Handwriting Signature System is usually and PDF document is realized as bottom document. That is, at the PDF document hand-written layer of overlying lid layer. User can carry out the operation of writing signing at hand-written layer. Finally again the content of hand-written layer is merged on PDF, it is achieved thereby that the operation of writing signing. Hand-written by PDF, it is possible to bringing the hand-written experience of the most former person's handwriting to user, user has directly carried out writing signing operation on document. But, system is with regard to the handwriting area of uncontrollable user, thus causing whichever user can carry out hand-written problem at arbitrary region. Meanwhile, if the content of certain user input is too much, owing to PDF cannot stretch, user can only select hand-written in other regions or not continue to write.
As application number is: the Chinese patent of 201010287259.0 discloses a kind of method that realizes of mobile handwriting signing system, and the method includes: A, mobile terminal send, to writing signing server, the application request that official document is signed by mobile network; B, the user profile of described writing signing this mobile terminal of server authentication and authority, after verifying, take out official document from archive server system; C, by user this official document moved writing signing, and preserve this official document to archive server system. Wherein the process of signing includes: a, initialize mobile terminal sign control, official document to be signed is taken out from described archive server, and as signing the bottom of layer;B, newly-built signing layer, currently signing people can carry out signing of official document by MID or handwriting pad, and this information of signing is saved in and currently signs on layer; C, currently sign people and complete sign work and submit to writing signing server, this writing signing server current layer and this are signed layer and synthesize; D, the official document after synthesis is preserved to archive server system.
Wherein step a also includes: judge the access way currently signing the mobile terminal of people, if MID mode, it is necessary to the size signing control is adjusted to the form of applicable MID. Wherein step b also includes: if there is, on the official document taken out from described archive server system, the information signed by other users, then by this, oneself label layer covers on bottom, as current layer. Wherein also include between step c and d: if described in sign layer be last layer, then current layer is synthesized by this writing signing server with oneself label layer before, and the content signed and official document are finally synthesized, then again the official document after synthesis is preserved to archive server system for checking, downloading. The shortcoming of this system is: signs region and is not carried out compartmentalization, user can cover original content by signing content when signing, and be the document superposition by each layer, if it is a lot of not account for certain user input content, sign region to solve the problem that user cannot carry out inputting again to extend.
As application number is: the Chinese patent of 201510569708.3 discloses the authentication method of a kind of online signature, comprises the following steps: the personnel objects that identity is determined carries out the electronic signature sample collection of multisample amount, and registration forms the Sample Storehouse of these personnel; Before examining the whether corresponding designated person's object of signature of authorized person, according to the rate that is strayed into pre-seted and rate of refusing by mistake, qualification algorithm is adjusted, then identifies the whether corresponding designated person's object of signature of authorized person according to the algorithm after adjusting. When personnel register, the collection of small sample amount is carried out under the premise determined one's identity, stability training is carried out during registration, signature number of times more than sample number, should select sample number in all of signature, and the sample selected to be required to be feature immediate a collection of: after qualification, if definitely determining signature of authorized person correspondence designated person, then this signature of authorized person is added Sample Storehouse, then all signatures in Sample Storehouse are carried out feature degree of approximation comparison, then by signature removal Sample Storehouse minimum for the degree of approximation. When having drawbacks in that carrying out user identifies of this system, it is necessary to gather the electronic signature sample collection of the multisample of each personnel in advance, process tedious is complicated, is not suitable for many occasions, is unfavorable for promoting.
Summary of the invention
For overcome in prior art exist in writing signing process, the content of certain user input is too much, owing to PDF cannot stretch, user can only select hand-written in other regions or not continue the problem write, and the invention provides a kind of writing signing content and the mutual control method of bottom document and system.
The technical solution used in the present invention is:
A kind of writing signing content and the mutual control method of bottom document, it is characterised in that the method comprises the following steps:
Step 1: the terminal demonstration page to be signed, described in page setup to be signed need to sign region.
Step 2: terminal signs function according to user right is open, input ID in systems, whether this ID of terminal authentication is present in the ID the edited list signing region, if existing, allowing user to sign signing region, if being absent from, forbidding that user signs.
Step 3: sign the page according to the complete height adaptive signing content and refresh.
Step 4: will sign content and preserve to mutual server system, in order to printing or checking.
On this basis, the page to be signed in described step 1 is the flexible substrate document with element.
On this basis, described flexible substrate document is HTML convert documents.
On this basis, the page format to be signed in described step 1 includes signing official document, asks for leave, meeting room application and fixed assets are received.
On this basis, described element includes pattern element and can sign element, and described element of signing includes input through keyboard textarea and writing signing write.
On this basis, the ID the edited list in described step 2 is for can sign attribute of an element.
On this basis, described step 3 specifically includes following steps:
Step a1: identify that user's signs content and/or size, flexible substrate document obtains the distance completely signing one, the top point of content to a bottom point, and using this apart from as the true altitude signing region.
Step a2: the true altitude signing region obtained in step a1 is preserved to flexible substrate document.
Step a3: flexible substrate document revises the height of element and the height of element region according to the true altitude signing region obtained, and again refreshes whole document.
On this basis, the method revising height in described step a3 includes horizontal meaders cell and/or vertical Merge Cells.
On this basis, described step 4 concrete grammar is that flexible substrate document converts PDF to, and will sign after content is incorporated into PDF document and preserve.
Present invention also offers the system that a kind of writing signing content controls mutually with bottom document, it is characterised in that: include terminal, the page to be signed of terminal demonstration electronic form; Interactive server, it is connected with terminal, described terminal includes authentication unit, record unit and adaptive unit, described interactive server includes integral unit, described authentication unit checking ID, by after sign, described recording unit records user signs content, and content will be signed be sent to adaptive unit, described adaptive unit adjusts form height according to signing content-adaptive, and refresh, bottom document is converted to PDF by described integral unit, and will sign preservation after content merges with PDF.
Compared with prior art, the invention has the beneficial effects as follows:
1, the present invention uses the bottom document of improvement, is that PDF is different from traditional bottom document, for the convert documents of HTML, can revise document format in development process according to demand, as added constraints etc.; The document improved is less than the space shared by PDF.
2, the present invention has and can edit ID list, user self has an ID in systems, and bottom document has a list that can edit ID, if ID is included in the list that can edit ID, so this user just can sign on this element, ID in editable ID list can add deletion according to demand, and simple to operation, the suitability is strong.
3, the bottom document used in the present invention is that flexible substrate document can obtain one, the top point of completely signing content distance to one point in bottom, and using this distance as the true altitude signing region, flexible substrate document revises the height of element and the height of element region according to true altitude, and again refresh whole document, if the content solving certain user input is too much, owing to PDF cannot stretch, user can only select problem that is hand-written in other regions or that do not continue to write.
4, the present invention can be modified signing mode in certain region of Type Control of element: input through keyboard or writing signing, this design can meet the demand of each different scenes, as: sign official document, ask for leave, meeting room application, fixed assets are received, practical.
Detailed description of the invention
Below in conjunction with drawings and Examples, the present invention is further elaborated. Should be appreciated that specific embodiment described herein is only in order to explain the present invention, is not intended to limit the present invention.
In first embodiment of the present invention, it is provided that a kind of writing signing content and the mutual control method of bottom document, the method completes based on Handwriting Signature System, specifically includes following steps, as shown in Figure 2:
Step 1: the terminal demonstration page to be signed, described in page setup to be signed need to sign region.
Step 2: terminal signs function according to user right is open, input ID in systems, whether this ID of terminal authentication is present in the ID the edited list signing region, if existing, allowing user to sign signing region, if being absent from, forbidding that user signs.
Step 3: sign the page according to the complete height adaptive signing content and refresh.
Step 4: will sign content and preserve to mutual server system, in order to printing or checking.
Further, the page to be signed in step 1 is the flexible substrate document with element, is illustrated in figure 1 the structural representation of the writing signing page. Being perpendicular to or be approximately perpendicular to visual direction and arrange a visual page of signing, each page of signing includes at least one region of signing, and be shown in which one of Fig. 1 signs region.
The page described to be signed includes the sightless bottom document of user, and bottom document is provided with at least one element, and described element includes pattern element and can sign element. Pattern unit have and only has non-form word p, form table, row tr, row td, form caption caption, pattern border and line feed br, element can be signed and include text text, its Chinese version text, including input through keyboard textarea and writing signing write.
In the present invention, it is contemplated that sign the practicality in region, in order to avoid the image after signing or word cover other data or form, forbid direct writing signing on bottom document. That is, in a preferred embodiment of the invention, bottom document cannot be made directly writing signing, only be attached to the element on bottom document and just can carry out writing signing operation. On the other hand, consider the extensibility that the present invention is practical, if needing entire paper to sign, have only to cover one and an equal amount of element of bottom document on bottom document, owing to each content signed is compartmentalization, so after bottom document rendered, it is possible to know the particular location of each element.
Above-mentioned bottom document is considered a kind of flexible substrate document. The flexible substrate document present invention uses the bottom document of improvement, is that PDF is different from traditional bottom document, and the document of improvement can directly be got by HTML conversion, it is also possible to is write according to the bottom document improved by developer. Because the bottom document improved is a kind of data form, developer can write out the improvement document of corresponding effect according to form. In development process, user can revise document format according to demand, as added constraints etc.; Because the document improved can be come by HTML conversion, therefore little than the space shared by PDF. Preferably, HTML reservation major part html label in the process of the bottom document in the present invention is converted to.
Nonrestrictive, page format/scene to be signed in above-mentioned steps 1 includes the writing signing of government system, as: sign official document, ask for leave, meeting room application, fixed assets are received, it is possible to write by developer according to demand, simple in construction.
Wherein the ID the edited list in step 2 can with array representation, ID array can be edited for attribute of an element can be signed, namely the present invention has and can edit ID array, and user self has an ID in systems, and bottom document has an array that can edit ID. Judge whether user has the method signing authority as follows: if ID is included in the array that can edit ID, then this user just can sign on this element, the ID in editable ID array can add deletion according to demand.
In addition, it is contemplated that would be likely to occur different regions of signing in same document, different regions of signing is likely to be signed by different users, and the region signed of different users is also not quite similar. The ID edited array in step 2 is for can sign attribute of an element, and namely all there is the restriction of operable user in each region, it can be ensured that the region that can sign is consistent with user, does not result in confusion. In the preferred embodiment of the present invention, each bottom document corresponding at least one sign the page, each is signed at least corresponding one of the page and signs region (region that the right such as " application project, application time " is corresponding as shown in Figure 5), each signs region corresponding to an editable ID list, can edit ID list can with array representation, and can edit ID array is to sign this attribute of an element signing region. Namely having one in the present invention and can sign page listings, each can sign corresponding one of the page can sign zone list, and each can sign corresponding one of region can edit ID array, and user self has an ID in systems. Judge whether user has the method signing authority as follows: if ID is included in the array of the edited ID signing region, then this user just can sign on this element, otherwise forbids that it is signed. ID in editable ID array can add deletion according to demand; Each user opens with CSV, simple to operation, and the suitability is strong.
Wherein step 3 is signed the page according to the complete height adaptive signing content and refreshes, and specifically includes following steps, as shown in Figure 3:
Step a1: identify that user's signs content and/or size, further, flexible substrate document obtains the distance completely signing one, the top point of content to a bottom point, and using this apart from as the true altitude signing region; Above-mentioned point can be sign the pixel that data convert to after image in image, it is preferable that topmost point can be the distance between pixel to the distance of one point in bottom; Identify that the method for one, above-mentioned the top point and a bottom point has multiple, such as rim detection etc., in the present invention, preferred mode is as follows: the writing signing of each step in process signed in detection in real time record, and signing input equipment can be a mouse handwriting area in handwriting pad, a computer screen, an image ingress area etc. Because the size of handwriting pad is fixing, hand-written region is also fixing, therefore can detect the person's handwriting point (i.e. one point in bottom) bottom the person's handwriting point (namely topmost a point) at handwriting area top and handwriting area in hand-written process in real time.Converting hand-written data to picture format, passing ratio maps and namely may know that one, the top point and bottom some position in the picture in image, and then calculates the distance of the two.
Step a2: the true altitude signing region obtained in step a1 is preserved to flexible substrate document;
Step a3: flexible substrate document revises the height of element and the height of element region according to the true altitude signing region obtained, and again refreshes whole document. In this step, the operation of described refreshing can after user have signed, it is also possible to signs in process user and refreshes in real time. Having signed user and refreshed afterwards, user can browse the effect signed at once, and decide whether to cancel according to the effect signed and this time sign. Refresh in real time it is further preferable that sign in process user. The course synchronization that the operation refreshed can be signed with user, namely, obtain in real time the information of signing (such as hand-written person's handwriting, the person's handwriting etc. of mouse) signing input equipment input, identify the information of signing that input equipment gets of signing, and to signing document or signing region and refresh. Described refreshing can be the refreshing of constant duration, for instance arranging the refresh cycle is 1/10 second, 1/24 second etc.; Can also be refresh according to response, for instance judge the input state of early stage input equipment, when the content of input equipment changes (such as along with the movement of handwriting pen point), to signing document or signing region and refresh.
As shown in Figure 5, Fig. 5 is the schematic diagram signing the page of the present invention, this sign the page be divided good region exceed polishing correction file, it is in broken box and can sign region, in the input frame of " being checked unit ", input originally can sign the content in region, can sign the height in region according to signing content-adaptive. When the content of input is more or font is bigger, it is possible to adjust the height signing region that " being checked unit " is corresponding so that this is signed region and the content of input frame is all included, and the effect after adjustment is as shown in Figure 6. When input mode is hand-written, can the size of real-time judge handwritten content, and the height signing region is adjusted in real time, or treat hand-written after, the height signing region is adjusted by the size according to handwritten content, and writing signing effect is as shown in Figure 7.
The bottom document used in the present invention is that flexible substrate document can obtain one, the top point of completely signing content distance to one point in bottom, and using this distance as the true altitude signing region, flexible substrate document revises the height of element and the height of element region according to true altitude, and again refresh whole document, if the content solving certain user input is too much, owing to PDF cannot stretch, user can only select problem that is hand-written in other regions or that do not continue to write. User can see in signing region that in writing process the content signed just can see, without after waiting until to have signed, the effect signed in real time, it is to avoid bad and cancel and again sign because signing effect, improves the efficiency signed. Preferably, the method revising height in step a3 is horizontal meaders cell or vertical Merge Cells.
Wherein determine that the data form in the region signed outside is as follows according to the wide height of ID value and this td:
Concrete field meanings is as follows:
" td ": string;
" id ": " yffs ", id value, it is possible to determine the region that outside is signed according to the wide height of this id value and this td, thus having accomplished control perimeter;
" colspan ": 3, Merge Cells number is laterally;
" rowspan ": 3, Merge Cells number is longitudinally;
" width ": " 100 ", the width of string;
" border ": frame;
" color ": color;
Wherein it is worth knowing the height that input frame is final according to ID, thus the high data form of the row that controls this row of document is as follows:
Concrete field meanings is as follows:
" type ": " text ", input frame;
" height ": 33, the height of string;
" width ": 100, the width of string;
" id ": " yffs ", it is possible to be worth knowing the height that input frame is final according to this id, thus controlling the row height of this row of document.
Wherein step 4 concrete grammar is that flexible substrate document converts PDF to, and will sign after content is incorporated into PDF document and preserve.
Present invention also offers the system that a kind of writing signing content controls mutually with bottom document, as shown in Figure 4, including terminal 100, terminal 100 shows the page to be signed of electronic form; Interactive server 200, is connected with terminal 100, and wherein terminal 100 includes authentication unit 201, record unit 202 and adaptive unit 203; Interactive server 200 includes integral unit 204. Authentication unit 201 verifies ID, by after sign, what record unit 202 recorded user signs content, and content will be signed be sent to adaptive unit 203, adaptive unit 203 adjusts form height according to signing content-adaptive, and refresh, bottom document is converted to PDF by integral unit 204, and will sign preservation after content merges with PDF.
Wherein terminal can be personal desktop computer, notebook computer, PAD, mobile phone etc.
Described above illustrate and describes the preferred embodiments of the present invention, as previously mentioned, it is to be understood that the present invention is not limited to form disclosed herein, it is not to be taken as the eliminating to other embodiments, and can be used for other combinations various, amendment and environment, and in invention contemplated scope described herein, can be modified by the technology of above-mentioned instruction or association area or knowledge. And the change that those skilled in the art carry out and change are without departing from the spirit and scope of the present invention, then all should in the protection domain of claims of the present invention.