CN111985202A - Method, equipment and storage medium for generating PDF electronic signature based on template - Google Patents

Method, equipment and storage medium for generating PDF electronic signature based on template Download PDF

Info

Publication number
CN111985202A
CN111985202A CN202010880439.3A CN202010880439A CN111985202A CN 111985202 A CN111985202 A CN 111985202A CN 202010880439 A CN202010880439 A CN 202010880439A CN 111985202 A CN111985202 A CN 111985202A
Authority
CN
China
Prior art keywords
document
template
signed
content
added
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.)
Pending
Application number
CN202010880439.3A
Other languages
Chinese (zh)
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.)
OneConnect Smart Technology Co Ltd
OneConnect Financial Technology Co Ltd Shanghai
Original Assignee
OneConnect Financial Technology Co Ltd Shanghai
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 OneConnect Financial Technology Co Ltd Shanghai filed Critical OneConnect Financial Technology Co Ltd Shanghai
Priority to CN202010880439.3A priority Critical patent/CN111985202A/en
Publication of CN111985202A publication Critical patent/CN111985202A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/166Editing, e.g. inserting or deleting
    • G06F40/186Templates
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/166Editing, e.g. inserting or deleting
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/20Natural language analysis
    • G06F40/205Parsing

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Health & Medical Sciences (AREA)
  • Artificial Intelligence (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Computational Linguistics (AREA)
  • General Health & Medical Sciences (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Document Processing Apparatus (AREA)

Abstract

The embodiment of the application provides a method, equipment and a storage medium for generating a PDF electronic signature based on a template, wherein the information to be signed corresponding to the content of a document to be added is obtained by analyzing the content of the document to be added, and the information to be signed comprises the position to be signed; selecting a corresponding document template according to the content of the document to be added; adding the document content to be added into the document template; and based on the document template added with the document content, sequentially reading corresponding seal information data at each position to be sealed, and generating the target document content. The method and the device can configure the corresponding template according to the document content pertinence, so that the purpose of flexibly adding each electronic signature in the pdf electronic document is achieved.

Description

Method, equipment and storage medium for generating PDF electronic signature based on template
Technical Field
The application belongs to the technical field of electronic signatures, and particularly relates to a method, equipment and a storage medium for generating a PDF electronic signature based on a template.
Background
Due to the rise of the communication age and society, data applications have been continuously and alternately updated as the internet has been developed.
Further, with the rapid development of networks and the wide application of electronic documents, electronic signatures have the advantages of convenience, rapidness and low cost compared with the traditional paper seal, and are increasingly widely applied in the fields of e-government affairs, e-commerce and the like. In the documents of common contracts, agreements and the like, if the documents are paper documents, the legal validity of the identification documents such as official seals or signatures is generally added. When the electronic file is needed sometimes, the electronic signature is added to the official seal or the signature, and the electronic signature can be prevented from being tampered by others.
Further, the electronic signature of a general electronic document is mostly a fixed position, that is, after the content of the electronic document is filled, a special seal is covered and the electronic signature is added at the fixed position.
However, if the document content is relatively fixed, the electronic signature is easily applied to the designated position, and for the electronic document with unfixed document content, the signature page is uncertain, and then the signature cannot be applied to the desired position and the signature position is shifted to cause signature error, so that the electronic signature area in the related art may be occupied, thereby affecting the office efficiency.
Disclosure of Invention
The invention provides an electronic signature method, electronic signature equipment and a storage medium for generating PDF (Portable document Format) based on a template, and aims to solve the problem that the office efficiency is influenced because the position of an electronic signature area is occupied in the prior art.
According to a first aspect of the embodiments of the present application, there is provided a method for generating a PDF electronic signature based on a template, including the following steps:
analyzing the content of the document to be added, and acquiring the information to be signed corresponding to the content of the document to be added, wherein the information to be signed comprises the position to be signed;
selecting a corresponding document template according to the content of the document to be added;
adding the document content to be added into the document template;
and based on the document template after the document content is added, sequentially reading in corresponding seal information data at each position to be sealed, and generating target document content.
In some embodiments of the present application, selecting a corresponding document template according to the content of the document to be added includes:
and adding a mark to be signed at a corresponding position in the document template based on the information to be signed.
In some embodiments of the present application, adding a to-be-signed mark in a corresponding position in a document template based on to-be-signed information includes:
analyzing the information to be signed and determining the service type corresponding to the information to be signed;
and adding a mark to be signed at a corresponding position in the document template based on the service type corresponding to the information to be signed.
In some embodiments of the present application, sequentially reading in seal information data used by each electronic signature to generate target document content includes:
after the stamp information data used by each electronic signature is determined to be read in sequence, each mark to be signed added with the corresponding position is cleared.
In some embodiments of the present application, adding a to-be-signed mark in a corresponding position in a document template based on to-be-signed information includes:
analyzing the information to be signed, and determining a dimension parameter corresponding to the information to be signed, wherein the dimension parameter is used for representing at least one of size information and language information of the information to be signed;
and adding the mark to be signed at the corresponding position in the document template based on the dimension parameter corresponding to the information to be signed.
In some embodiments of the present application, adding the document content to be added to the document template includes:
adding the content of the document to be added into the document template through a template engine technology;
and identifying the to-be-signed mark of the to-be-signed information.
In some embodiments of the present application, after generating the target document content, the method further includes:
establishing a document corresponding relation containing document contents to be added, a corresponding document template and target document contents;
and when the content of the document to be added is received again, acquiring the document template and the target document content based on the corresponding relation of the document.
According to a second aspect of the embodiments of the present application, a system for generating a PDF electronic signature based on a template is provided, which specifically includes:
a system for generating PDF electronic signature based on template is characterized by comprising:
a to-be-added document parsing unit: the system comprises a processing module, a signature module and a signature module, wherein the processing module is used for analyzing the content of a document to be added and acquiring the information to be signed corresponding to the content of the document to be added, and the information to be signed comprises the position to be signed;
a document template unit: the system comprises a document template, a document adding module, a document matching module and a document matching module, wherein the document template is used for selecting a corresponding document template according to the content of a document to be added;
a template filling unit: the document template is used for adding the document content to be added into the document template;
an electronic signature document generation unit: and the device is used for sequentially reading corresponding seal information data at each position to be sealed based on the document template after the document content is added, and generating the target document content.
According to a third aspect of the embodiments of the present application, there is provided an electronic signature apparatus for generating PDF based on a template, including:
a memory: for storing executable instructions; and
the processor is used for connecting with the memory to execute the executable instructions so as to complete the electronic signature method for generating PDF based on the template.
According to a fourth aspect of embodiments of the present application, there is provided a computer-readable storage medium having a computer program stored thereon; the computer program is executed by a processor to implement an electronic signature method for generating a PDF based on a template.
By adopting the method, the equipment and the storage medium for generating the PDF electronic signature based on the template in the embodiment of the application, the content of the document to be added is analyzed, the information to be signed corresponding to the content of the document to be added is obtained, and the information to be signed comprises the position to be signed; selecting a corresponding document template according to the content of the document to be added; adding the document content to be added into the document template; and based on the document template added with the document content, sequentially reading corresponding seal information data at each position to be sealed, and generating the target document content. The method and the device can configure the corresponding template according to the document content pertinence, so that the purpose of flexibly adding each electronic signature in the pdf electronic document is achieved. The problem of prior art because document content is unfixed, appear that the signature page is uncertain, then the region that appears the electronic signature then probably appears the condition that the position is occupied to influence office efficiency is solved.
Drawings
The accompanying drawings, which are included to provide a further understanding of the application and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the application and together with the description serve to explain the application and not to limit the application. In the drawings:
FIG. 1 is a flowchart illustrating steps of a method for generating a PDF electronic signature based on a template according to an embodiment of the present application;
FIG. 2 is a flow chart illustrating a method for generating a PDF electronic signature based on a template according to another embodiment of the present application;
FIG. 3 is a schematic structural diagram illustrating a system for generating a PDF electronic signature based on a template according to an embodiment of the present application;
fig. 4 is a schematic structural diagram illustrating an electronic signature apparatus for generating a PDF based on a template according to an embodiment of the present application.
Detailed Description
In the process of implementing the present application, the inventor finds that the existing electronic document with unfixed document content has an uncertain signature page, and then has a situation that the signature cannot be added to a desired position and the signature position is shifted to cause signature errors, so that the electronic signature area in the related art may have a situation that the position is occupied, thereby affecting the office efficiency.
Compared with the prior art, the method and the device have the advantages that the content of the document to be added is analyzed, the information to be signed corresponding to the content of the document to be added is obtained, and the information to be signed comprises the position to be signed; selecting a corresponding document template according to the content of the document to be added; adding the document content to be added into the document template; and based on the document template added with the document content, sequentially reading corresponding seal information data at each position to be sealed, and generating the target document content. According to the method and the device, the corresponding template can be configured according to the pertinence of the document content, and then the corresponding seal information data is sequentially read in at each position to be signed, so that the purpose of flexibly adding each electronic signature in the pdf electronic document is achieved.
In order to make the technical solutions and advantages of the embodiments of the present application more apparent, the following further detailed description of the exemplary embodiments of the present application with reference to the accompanying drawings makes it clear that the described embodiments are only a part of the embodiments of the present application, and are not exhaustive of all embodiments. It should be noted that the embodiments and features of the embodiments in the present application may be combined with each other without conflict.
Example 1
A flowchart of steps of a method for generating a PDF electronic signature based on a template according to an embodiment of the present application is shown in fig. 1.
As shown in fig. 1, the method for generating a PDF electronic signature based on a template specifically includes the following steps:
s101: analyzing the content of the document to be added, and acquiring the information to be signed corresponding to the content of the document to be added, wherein the information to be signed comprises the position to be signed.
Specifically, typesetting is performed according to a webpage format corresponding to the document to be added, signature information needing to be added is determined during typesetting, the signature information comprises a position to be signed, and the position to be signed specifically comprises: the typesetting position of the official seal, the signature position and other signature positions.
Further, the signature information also includes a signature category, and the signature category may be a text signature, a pattern signature, an alphabetic signature, a digital signature, a special symbol signature, or a mixture thereof.
S102: and selecting a corresponding document template according to the content of the document to be added.
In some embodiments of the present application, selecting a corresponding document template according to the content of the document to be added includes: and adding a mark to be signed at a corresponding position in the document template based on the information to be signed.
According to the method and the device, different marks to be signed at corresponding positions can be added in the document template based on the specific information of the information to be signed.
Further, adding a mark to be signed at a corresponding position in the document template, including:
analyzing the information to be signed and determining the service type corresponding to the information to be signed;
and adding a mark to be signed at a corresponding position in the document template based on the service type corresponding to the information to be signed.
The method and the device can select the to-be-signed mark special for the business category based on the to-be-signed information or different business categories of the document content to be added. Therefore, when the signature is added in the template subsequently, the corresponding signature type can be selected according to different marks. For example, when the present electronic document corresponds to a medical service, a red cross mark is selected. This also prevents the position of the subsequent signature from being misplaced.
Or,
in other embodiments of the present application, adding a to-be-signed mark in a corresponding position in a document template based on to-be-signed information includes:
analyzing the information to be signed, and determining a dimension parameter corresponding to the information to be signed, wherein the dimension parameter is used for representing at least one of size information and language information of the information to be signed;
and adding the mark to be signed at the corresponding position in the document template based on the dimension parameter corresponding to the information to be signed.
The method and the device can select the to-be-signed mark special for the business category based on different dimension parameters of the to-be-signed information, wherein the dimension parameters include the size of the to-be-signed mark, English or Chinese, characters or patterns, whether the seal exists or not and the like. When the signature is added in the template, the corresponding signature type can be selected according to different marks.
S103: and adding the document content to be added into the document template.
In some embodiments of the present application, adding the document content to be added to the document template specifically includes:
adding the content of the document to be added into the document template through a template engine technology;
and identifying the to-be-signed mark of the to-be-signed information.
The method and the device use a template engine (FreeMarker) technology to fill various contents of the document template, such as fund, institution name, time node, money content and the like of the financial template according to the contents of the document to be added.
Regarding the template engine technology, in the template engine developed by the Web, which is generated in order to separate the user interface from the business data, it can generate a document in a specific format, and the template engine for the Web site generates a standard HTML document. The document template in the application corresponds to the document to be added, so that the content of the document to be added is reversely and correspondingly added to the corresponding position in the document template based on the template engine technology, and the content is displayed.
When the document template is filled, the new mark to be signed is identified, and the page number and the position information of each electronic signature in the document are positioned. The electronic signature and the seal can be conveniently added at the position to be signed subsequently according to the mark to be signed.
S104: and based on the document template after the document content is added, sequentially reading in corresponding seal information data at each position to be sealed, and generating target document content.
In some embodiments of the present application, when generating the target document content, the method specifically further includes:
after the stamp information data used by each electronic signature is determined to be read in sequence, each mark to be signed added with the corresponding position is cleared.
According to the method and the device, when the signature is added, each mark to be signed added with the corresponding position is cleared, and the tidiness of the electronic document is guaranteed.
In other embodiments of the present application, after generating the target document content, the method further includes:
establishing a document corresponding relation containing document contents to be added, a corresponding document template and target document contents;
and when the content of the document to be added is received again, acquiring the document template and the target document content based on the corresponding relation of the document.
According to the method and the device, the corresponding relation of the document containing the content of the document to be added, the corresponding document template and the target document content is established, so that the document template and the target document content can be conveniently obtained based on the corresponding relation of the document when the content of the document to be added is received again in the follow-up process, and the application efficiency and the office efficiency of the template are improved.
In the further implementation of the description, it is,
fig. 2 is a flowchart illustrating a method for generating a PDF electronic signature based on a template according to another embodiment of the present application.
As shown in fig. 2, the processing flow of the method for generating a PDF electronic signature is as follows:
1) configuring a corresponding document template according to document contents, performing template typesetting according to a corresponding webpage format, and adding typesetting of information to be signed in the document template typesetting, wherein the information to be signed comprises a position of a official seal, other electronic signatures or a signature; when the information to be signed is typeset, special mark marks are added, so that the position to be signed can be conveniently positioned according to the marks.
2) Adding the document content to be added to corresponding contents in the document template, such as fund, institution name, time node, money content and the like, by using a template engine (Freemarker) technology; and simultaneously, identifying the mark to be signed in the previous step.
3) And generating a file with the data filled in according to the content filled and typeset in the last step, and positioning the page number and the position information of each electronic signature in the file according to the identifier to be signed.
4) The position mark of the electronic signature is deleted, the seal information data used by the electronic signature is read in sequence, and each seal position is dynamically typeset according to the size of the picture of the seal information, so that the seal can be displayed at the required position without generating large position offset.
5) And landing the document added with the electronic signature to a document server or filing the document to a specified position.
Compared with the prior art, the method and the device are very suitable for a large number of documents with electronic signatures, and when the content of the documents is not fixed and the typesetting changes of different conditions can be generated, if approval process information and signature information of related approvers need to be added into the documents, the method and the device can be flexibly configured according to the template and flexibly cover the electronic signatures.
On one hand, according to the method for generating the PDF electronic signature based on the template in the embodiment of the application, on the one hand, the corresponding document template is obtained in advance according to the content of the document to be added, and the typesetting position of the corresponding electronic signature and the positions of other signatures or signatures need to be added into the document template, and the typesetting of the electronic signatures needs to be added with special mark identifications, so that the subsequent positioning according to the marks is facilitated.
On the other hand, in the case of a liquid,
after the document template is filled with the content, the page number and the position information of each electronic signature in the document are positioned. And after the mark marks corresponding to the positions are cleared, stamp information data used by the electronic signature are sequentially read in at the positions.
According to the method and the device, the document template containing the typesetting corresponding to the electronic signature positions can be selected through the document content to be added, so that the corresponding electronic signature can be read in at the electronic signature position after the document content is added to the document template in the following process.
In other embodiments, when the typesetting position corresponding to the electronic signature is added to the document template, different marks may be added at the corresponding typesetting position according to the type of the electronic signature to be added, for example, an electronic signature or a stamp.
Then, when the typesetting position corresponding to the electronic signature is added to the document template, different marks can be added at the corresponding typesetting position according to the size or dimension of the electronic signature to be added.
After the document added with the electronic signature falls to a document server or is filed to a designated position, the typesetted template can be retained and document object information can be established, so that the template can be directly taken out when the document object is cooperated with the document object again in the following process.
In the electronic signature method for generating PDF based on the template in the embodiment of the application, the document content to be added is analyzed to obtain the information to be signed corresponding to the document content to be added, and the information to be signed comprises the position to be signed; then, according to the content of the document to be added, selecting a corresponding document template; adding the document content to be added into the document template; and finally, based on the document template added with the document content, sequentially reading corresponding seal information data at each position to be sealed, and generating the target document content. The method and the device can configure the corresponding template according to the document content pertinence, so that the purpose of flexibly adding each electronic signature in the pdf electronic document is achieved. The problem of prior art because document content is unfixed, appear that the signature page is uncertain, then the region that appears the electronic signature then probably appears the condition that the position is occupied to influence office efficiency is solved.
Example 2
For details not disclosed in the electronic signature system for generating PDF based on a template in this embodiment, please refer to implementation contents of the electronic signature method for generating PDF based on a template in other embodiments.
A schematic structural diagram of a system for generating a PDF electronic signature based on a template according to an embodiment of the present application is shown in fig. 3.
As shown in fig. 3, the electronic signature system of the present application includes a to-be-added document parsing unit 10, a document template unit 20, a template filling unit 30, and an electronic signature document generating unit 40.
In particular, the method comprises the following steps of,
the to-be-added document parsing unit 10: the system is used for analyzing the content of the document to be added and acquiring the information to be signed corresponding to the content of the document to be added, wherein the information to be signed comprises the position to be signed.
The document template unit 20: and the method is used for selecting the corresponding document template according to the content of the document to be added.
The template filling unit 30: the method is used for adding the document content to be added into the document template.
Electronic signature document generating unit 40: and the device is used for sequentially reading corresponding seal information data at each position to be sealed based on the document template after the document content is added, and generating the target document content.
Compared with the prior art, the method and the device are very suitable for a large number of documents with electronic signatures, and when the content of the documents is not fixed and the typesetting changes of different conditions can be generated, if approval process information and signature information of related approvers need to be added into the documents, the method and the device can be flexibly configured according to the template and flexibly cover the electronic signatures.
The to-be-added document parsing unit 10 in the embodiment of the application typesets according to the web page format corresponding to the to-be-added document, determines signature information to be added during typesetting, where the signature information includes a to-be-signed position, and the to-be-signed position specifically includes: the typesetting position of the official seal, the signature position and other signature positions.
Further, the signature information includes a signature category, and the signature category may be a text signature, a pattern signature, an alphabet signature, a digital signature, a special symbol signature, or a mixture thereof.
In the system for generating a PDF electronic signature based on a template according to the embodiment of the present application, on one hand, the document template unit 20 obtains a corresponding document template in advance according to the content of the document to be added, and a typesetting position corresponding to the electronic signature and positions of other signatures or signatures need to be added to the document template, and the typesetting of the electronic signature needs to add a special mark identifier, so that the subsequent positioning according to the identifier is facilitated.
On the other hand, in the case of a liquid,
after the document template is filled with contents, the template filling unit 30 locates the page number and position information of each electronic signature in the document. And after the mark marks corresponding to the positions are cleared, stamp information data used by the electronic signature are sequentially read in at the positions. Finally, the target document content is generated by the electronic signature document generating unit 40 sequentially reading in the corresponding seal information data at each position to be signed based on the document template to which the document content is added.
The document template unit 20 of the present application may select a document template containing a plurality of electronic signatures with corresponding typesetting positions according to the document contents to be added, so that the corresponding electronic signatures are read in at the electronic signature positions that are typeset in advance after the document contents are added to the document template.
In other embodiments, when the document template unit 20 of the present application adds the typesetting position corresponding to the electronic signature to the document template, different marks may be added at the corresponding typesetting position according to the type of the electronic signature to be added, such as an electronic signature or a stamp.
Then, when the document template unit 20 adds the typesetting position corresponding to the electronic signature to the document template, different marks may be added at the corresponding typesetting position according to the size or dimension of the electronic signature to be added.
After the document with the electronic signature added in the last step in the document template unit 20 falls to a document server or is filed to a designated position, the typeset template can be retained and document object information can be established, so that the template can be taken out directly when the document template unit cooperates with the document object again in the following process.
The electronic signature system based on the template generating PDF in the embodiment of the application comprises a to-be-added document analysis unit 10, a document template unit 20, a template filling unit 30 and an electronic signature document generating unit 40; acquiring to-be-signed information corresponding to the to-be-added document content by analyzing the to-be-added document content, wherein the to-be-signed information comprises a to-be-signed position; then, according to the content of the document to be added, selecting a corresponding document template; adding the document content to be added into the document template; and finally, based on the document template added with the document content, sequentially reading corresponding seal information data at each position to be sealed, and generating the target document content. The method and the device can configure the corresponding template according to the document content pertinence, so that the purpose of flexibly adding each electronic signature in the pdf electronic document is achieved. The problem of prior art because document content is unfixed, appear that the signature page is uncertain, then the region that appears the electronic signature then probably appears the condition that the position is occupied to influence office efficiency is solved.
Example 3
For details that are not disclosed in the electronic signature device for generating a PDF based on a template of this embodiment, please refer to specific implementation contents of an electronic signature method or system for generating a PDF based on a template in other embodiments.
A schematic structural diagram of an electronic signature device 400 for generating PDF based on a template according to an embodiment of the present application is shown in fig. 4.
As shown in fig. 4, the electronic signature apparatus 400 includes:
the memory 402: for storing executable instructions; and
a processor 401 for interfacing with the memory 402 to execute executable instructions to perform an electronic signature method for generating a PDF based on a template.
Those skilled in the art will appreciate that the schematic diagram 4 is merely an example of the electronic signing apparatus 400 and does not constitute a limitation on the electronic signing apparatus 400, and may include more or less components than those shown, or combine some components, or different components, for example, the electronic signing apparatus 400 may also include input output devices, network access devices, buses, and the like.
The Processor 401 (CPU) may be other general-purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field-Programmable Gate Array (FPGA) or other Programmable logic device, a discrete Gate or transistor logic device, a discrete hardware component, or the like. The general purpose processor may be a microprocessor or the processor 401 may be any conventional processor or the like, the processor 401 being the control center of the electronic signature device 400 and connecting the various parts of the entire electronic signature device 400 using various interfaces and lines.
The memory 402 may be used to store the computer-readable instructions, and the processor 401 may implement the various functions of the electronic signature device 400 by executing or executing the computer-readable instructions or modules stored in the memory 402 and invoking the data stored in the memory 402. The memory 402 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the stored data area may store data created from use of the electronic signature device 400 by the computer device 30, and the like. Further, the Memory 301402 may include a hard disk, a Memory, a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash Memory Card (Flash Card), at least one disk storage device, a Flash Memory device, a Read-Only Memory (ROM), a Random Access Memory (RAM), or other non-volatile/volatile storage device.
The modules integrated by the electronic signature apparatus 400 may be stored in a computer-readable storage medium if they are implemented in the form of software functional modules and sold or used as separate products. Based on such understanding, all or part of the flow of the method according to the above embodiments may be implemented by hardware that is configured to be instructed by computer readable instructions, which may be stored in a computer readable storage medium, and when the computer readable instructions are executed by a processor, the steps of the method embodiments may be implemented.
Example 4
The present embodiment provides a computer-readable storage medium having stored thereon a computer program; the computer program is executed by a processor to implement the method of generating an electronic signature of a PDF based on a template in other embodiments.
The electronic signature device and the storage medium which are based on the template to generate PDF in the embodiment of the application are adopted to analyze the content of the document to be added and obtain the information to be signed corresponding to the content of the document to be added, wherein the information to be signed comprises the position to be signed; selecting a corresponding document template according to the content of the document to be added; adding the document content to be added into the document template; and based on the document template added with the document content, sequentially reading corresponding seal information data at each position to be sealed, and generating the target document content. The method and the device can configure the corresponding template according to the document content pertinence, so that the purpose of flexibly adding each electronic signature in the pdf electronic document is achieved. The problem of prior art because document content is unfixed, appear that the signature page is uncertain, then the region that appears the electronic signature then probably appears the condition that the position is occupied to influence office efficiency is solved.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
The terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. As used in this specification and the appended claims, the singular forms "a", "an", and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It should also be understood that the term "and/or" as used herein refers to and encompasses any and all possible combinations of one or more of the associated listed items.
It is to be understood that although the terms first, second, third, etc. may be used herein to describe various information, these information should not be limited to these terms. These terms are only used to distinguish one type of information from another. For example, first information may also be referred to as second information, and similarly, second information may also be referred to as first information, without departing from the scope of the present invention. The word "if" as used herein may be interpreted as "at … …" or "when … …" or "in response to a determination", depending on the context.
While the preferred embodiments of the present application have been described, additional variations and modifications in those embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including preferred embodiments and all alterations and modifications as fall within the scope of the application.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present application without departing from the spirit and scope of the application. Thus, if such modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is intended to include such modifications and variations as well.

Claims (10)

1. A method for generating a PDF electronic signature based on a template is characterized by comprising the following steps:
analyzing the content of a document to be added, and acquiring information to be signed corresponding to the content of the document to be added, wherein the information to be signed comprises a position to be signed;
selecting a corresponding document template according to the content of the document to be added;
adding the document content to be added into the document template;
and based on the document template after the document content is added, sequentially reading corresponding seal information data at each position to be sealed, and generating target document content.
2. The electronic signature method of claim 1, wherein the selecting a corresponding document template according to the content of the document to be added comprises:
and adding a mark to be signed at a corresponding position in the document template based on the information to be signed.
3. The electronic signature method of claim 2, wherein adding a to-be-signed mark at a corresponding position in the document template based on the to-be-signed information comprises:
analyzing the information to be signed and determining the service type corresponding to the information to be signed;
and adding a mark to be signed at a corresponding position in the document template based on the service type corresponding to the information to be signed.
4. The electronic signature method of claim 1, wherein the sequentially reading in seal information data used by each electronic signature to generate target document content comprises:
after the stamp information data used by each electronic signature is determined to be read in sequence, each mark to be signed added with the corresponding position is cleared.
5. The electronic signature method according to claim 2 or 4, wherein the adding of the mark to be signed at the corresponding position in the document template based on the information to be signed comprises:
analyzing the information to be signed, and determining a dimension parameter corresponding to the information to be signed, wherein the dimension parameter is used for representing at least one of size information and language information of the information to be signed;
and adding a mark to be signed at a corresponding position in the document template based on the dimension parameter corresponding to the information to be signed.
6. The electronic signature method of claim 1, wherein the adding the document content to be added into the document template comprises:
adding the content of the document to be added into the document template through a template engine technology;
and identifying the to-be-signed mark of the to-be-signed information.
7. The electronic signature method of claim 2, 3, 4 or 6, further comprising, after the generating target document content:
establishing a document corresponding relation containing the content of the document to be added, a corresponding document template and the content of the target document;
and when the content of the document to be added is received again, acquiring the document template and the target document content based on the corresponding relation of the document.
8. A system for generating PDF electronic signature based on template is characterized by comprising:
a to-be-added document parsing unit: the system comprises a processing unit, a signature unit and a signature unit, wherein the processing unit is used for analyzing the content of a document to be added and acquiring the information to be signed corresponding to the content of the document to be added, and the information to be signed comprises the position to be signed;
a document template unit: the document template is used for selecting a corresponding document template according to the content of the document to be added;
a template filling unit: the document template is used for adding the document content to be added into the document template;
an electronic signature document generation unit: and the device is used for sequentially reading corresponding seal information data at each position to be signed based on the document template after the document content is added, and generating target document content.
9. An apparatus for generating a PDF electronic signature based on a template, comprising:
a memory: for storing executable instructions; and
a processor for interfacing with the memory to execute the executable instructions to perform the method of generating a PDF electronic signature based on a template of any of claims 1-7.
10. A computer-readable storage medium, having stored thereon a computer program; the computer program is executed by a processor to implement the method of generating a PDF electronic signature based on a template according to any one of claims 1 to 7.
CN202010880439.3A 2020-08-27 2020-08-27 Method, equipment and storage medium for generating PDF electronic signature based on template Pending CN111985202A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010880439.3A CN111985202A (en) 2020-08-27 2020-08-27 Method, equipment and storage medium for generating PDF electronic signature based on template

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010880439.3A CN111985202A (en) 2020-08-27 2020-08-27 Method, equipment and storage medium for generating PDF electronic signature based on template

Publications (1)

Publication Number Publication Date
CN111985202A true CN111985202A (en) 2020-11-24

Family

ID=73440951

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010880439.3A Pending CN111985202A (en) 2020-08-27 2020-08-27 Method, equipment and storage medium for generating PDF electronic signature based on template

Country Status (1)

Country Link
CN (1) CN111985202A (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112507682A (en) * 2020-12-15 2021-03-16 福建捷宇电脑科技有限公司 Document generation method and device for reducing server and network load
CN112733493A (en) * 2020-12-17 2021-04-30 浙江高速信息工程技术有限公司 Electronic signature method and device, computer equipment and storage medium
CN112926946A (en) * 2021-03-16 2021-06-08 上海晓途网络科技有限公司 Electronic contract generating method and device, computer equipment and storage medium
CN113779656A (en) * 2021-09-18 2021-12-10 厦门海迈科技股份有限公司 Stamping method, electronic file platform and computer readable storage medium
CN114676451A (en) * 2020-12-24 2022-06-28 航天信息股份有限公司 Electronic document signature method and device, storage medium and electronic equipment
CN115035527A (en) * 2022-08-10 2022-09-09 北京佳萌锐普科技发展有限公司 Method, device and equipment for identifying electronic signature position
CN116795383A (en) * 2023-05-18 2023-09-22 中国电子科技集团公司第三十八研究所 Process data issuing method, issuing device, electronic equipment and storage medium

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112507682A (en) * 2020-12-15 2021-03-16 福建捷宇电脑科技有限公司 Document generation method and device for reducing server and network load
CN112733493A (en) * 2020-12-17 2021-04-30 浙江高速信息工程技术有限公司 Electronic signature method and device, computer equipment and storage medium
CN112733493B (en) * 2020-12-17 2022-12-02 浙江高信技术股份有限公司 Electronic signature method, device, computer equipment and storage medium
CN114676451A (en) * 2020-12-24 2022-06-28 航天信息股份有限公司 Electronic document signature method and device, storage medium and electronic equipment
CN112926946A (en) * 2021-03-16 2021-06-08 上海晓途网络科技有限公司 Electronic contract generating method and device, computer equipment and storage medium
CN113779656A (en) * 2021-09-18 2021-12-10 厦门海迈科技股份有限公司 Stamping method, electronic file platform and computer readable storage medium
CN113779656B (en) * 2021-09-18 2023-09-12 厦门海迈科技股份有限公司 Stamping method, electronic archive platform and computer readable storage medium
CN115035527A (en) * 2022-08-10 2022-09-09 北京佳萌锐普科技发展有限公司 Method, device and equipment for identifying electronic signature position
CN115035527B (en) * 2022-08-10 2022-11-11 北京佳萌锐普科技发展有限公司 Method, device and equipment for identifying electronic signature position
CN116795383A (en) * 2023-05-18 2023-09-22 中国电子科技集团公司第三十八研究所 Process data issuing method, issuing device, electronic equipment and storage medium
CN116795383B (en) * 2023-05-18 2024-04-23 中国电子科技集团公司第三十八研究所 Process data issuing method, issuing device, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
CN111985202A (en) Method, equipment and storage medium for generating PDF electronic signature based on template
CN108427731B (en) Page code processing method and device, terminal equipment and medium
CN113609820B (en) Method, device and equipment for generating word file based on extensible markup language file
CN110990010B (en) Method and device for generating software interface code
CN110347984B (en) Policy page changing method and device, computer equipment and storage medium
CN113032580B (en) Associated file recommendation method and system and electronic equipment
US20170364981A1 (en) Brand-Based Product Management
CN114090671A (en) Data import method and device, electronic equipment and storage medium
CN112948418A (en) Dynamic query method, device, equipment and storage medium
CN112417899A (en) Character translation method, device, computer equipment and storage medium
CN113033177B (en) Method and device for analyzing electronic medical record data
CN111581937A (en) Document generation method and device, computer readable medium and electronic equipment
CN113297425B (en) Document conversion method, device, server and storage medium
CN113177543B (en) Certificate identification method, device, equipment and storage medium
CN109409362A (en) The detection of picture sensitive word and localization method and device based on tesseract engine
CN115618838A (en) Report generation method and equipment
CN110245308B (en) Image extraction method and device and terminal equipment
CN113296785A (en) Document generation method, system, device and readable storage medium
CN111882419A (en) Method and device for quality inspection of files and server
CN111897728A (en) Interface debugging method and related equipment
CN113704650A (en) Information display method, device, system, equipment and storage medium
CN115035527B (en) Method, device and equipment for identifying electronic signature position
CN114781005B (en) Multi-party-based electronic signature method and device
CN112069789B (en) Method, equipment and medium for matching appointed content based on domestic CPU text domain
CN117437649A (en) File signing method, device, computer equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination