Method and system suitable for custom generation of documents
By customizing document templates and dynamic tags, online signatures, seals, and packaged downloads of documents are realized, which solves the problem of complex document writing in complex business scenarios, reduces the coupling of business codes, and improves the scalability and scalability of business logic. System stability.
Patent Information
- Application Number
- CN202410706603.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-03
- Publication Date
- 2024-09-03
AI Technical Summary
The existing business system is complicated to write documents in complex business scenarios, the content is not fixed, and it is impossible to implement online signatures, seals, and packaged downloads, resulting in high coupling of business codes, complex logic, and difficulty in expansion.
Configure dynamic tags through customized document templates, parse business data to generate structural data, realize online signature, sealing and package downloading of documents, and archive documents through scheduled tasks to reduce business code coupling and improve logical scalability.
It realizes the flexible generation and management of documents in complex business scenarios, reduces the coupling of business codes, improves the robustness and reliability of the system, and supports the customized generation and archiving of documents of different business types.
Smart Images

Figure CN118585488A
Abstract
Description
Technical Field
[0001] The present invention relates to the field of government service technology, and in particular to a method and system suitable for customizing the generation of documents. Background Art
[0002] In the existing business system, the business logic of each business scenario is complex and changeable, and the requirements for data interaction in each business link are increasing. If each business scenario is personalized, a lot of redundant code will be generated. In addition, the document writing in complex business scenarios is complicated, the content is not fixed, and it is impossible to sign and seal online, and download in packages. A set of methods is needed to manage the dynamic generation, online signing and sealing, and package download of documents in various business scenarios. Summary of the invention
[0003] The technical task of the present invention is to address the above deficiencies and provide a method and system suitable for customized document generation, which can reduce the coupling of business codes and improve the scalability of business logic.
[0004] The technical solution adopted by the present invention to solve its technical problem is:
[0005] A method for customizing document generation, comprising:
[0006] 1) Customized document generation: Dynamic tags are configured through customized document templates;
[0007] 2) Online signature and seal of documents: In the process of business handling, documents need to be signed and sealed by relevant business personnel to complete a business transaction. Keywords are marked in the places where signatures and seals are required according to the business document template. After the user completes the signature, the signature image is uploaded to the document system. When the document is generated, the signature image is assigned to the corresponding position according to the custom keyword matching; when the document needs to be signed and sealed, the company's seal is stamped to the corresponding position;
[0008] 3) Document package download: Package and download relevant documents in the process of business handling. The document generation system provides file query, sorting and merging into a compressed package for download;
[0009] 4) Document archiving: When the business is completed, the documents and other relevant file materials in the business process are merged into an electronic file through a scheduled task, and classified and archived according to the business type, which helps business personnel to retrieve and query the electronic files in a timely manner.
[0010] This method can solve complex problems such as complex document writing, unstable content, inability to sign and seal online, and package download in complex business scenarios, further reduce the coupling of business codes, and improve the scalability of business logic.
[0011] Preferably, the dynamic label is configured through a custom document template, and the label is determined according to the business meaning, for example, the enterprise name is EntName.
[0012] Furthermore, the document is customized and generated by parsing business data, constructing the structural data required by the business template according to different business types, and dynamically assigning it to the document template, so as to generate the documents required for different business scenarios.
[0013] Furthermore, according to the configured custom document template and dynamic tags, the business-related data is parsed, encapsulated into a data packet, and the data is bound to the document in combination with the document template.
[0014] Furthermore, the documents are downloaded in a package, and relevant documents in the business handling process include: application form, articles of association, appointment documents, personnel-related certificates, face and signature pictures.
[0015] Furthermore, the document archiving is to find out relevant documents and other materials according to the business, and through the file synthesis technology, the documents and materials are synthesized into a PDF file in a specified order and archived.
[0016] The present invention also claims a system suitable for custom generation of documents, comprising:
[0017] The document customization generation module is used to configure dynamic tags through custom document templates;
[0018] The document online signature and seal module is used to mark the places where signatures and seals are required according to the business document template. After the user completes the signature, the signature image is uploaded to the document system. When the document is generated, the signature image is assigned to the corresponding position according to the custom keyword matching; when the document needs to be signed and sealed, the company's seal is stamped to the corresponding position;
[0019] The document package download module is used to package and download relevant documents in the process of business handling, and provides file query, sorting and merging into a compressed package for download;
[0020] The document filing module is used to merge the documents and other related documents in the business process into electronic files through scheduled tasks when the business is completed, and classify and file them according to the business type, which helps business personnel to retrieve and query electronic files in time;
[0021] The system implements the above-mentioned method applicable to the customized generation of documents.
[0022] Furthermore, after the system fills in and packages the business data, completes the custom generation and signature and seal, during the business processing, the business materials are packaged and downloaded according to the documents that have been generated. After the business is completed, the documents are archived through scheduled tasks to facilitate subsequent retrieval and review.
[0023] The present invention also claims a device suitable for custom generation of documents, comprising at least one memory and a processor;
[0024] The at least one memory is used to store a machine-readable program;
[0025] The at least one processor is used to call the machine-readable program to implement the above method.
[0026] The present invention also claims protection for a computer-readable medium having computer instructions stored thereon, which, when executed by a processor, cause the processor to perform the above-mentioned method.
[0027] Compared with the prior art, the method and system for customizing document generation of the present invention have the following beneficial effects:
[0028] The present invention configures different document templates according to different business scenarios, reduces business code coupling, and improves business logic scalability.
[0029] Flexible configuration is used to solve problems such as complex and changeable document content writing and inability to sign and seal online in complex business scenarios, thereby improving the robustness and reliability of the business system. BRIEF DESCRIPTION OF THE DRAWINGS
[0030] Figure 1 is a flowchart of a method for customizing document generation provided by an embodiment of the present invention;
[0031] Figure 2 This is an example diagram of a document customization generation provided by an embodiment of the present invention;
[0032] Figure 3 This is an example diagram of online signature and seal of a document provided by an embodiment of the present invention;
[0033] Figure 4 This is an example diagram of document package downloading provided by an embodiment of the present invention;
[0034] Figure 5 This is an example diagram of document archiving provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0035] The embodiment of the present invention provides a method suitable for customizing the generation of documents. Through customizing document templates and dynamic tag binding, in different business scenarios and business logics, relevant documents are generated according to business needs, online signatures and seals are completed, and document packaging, downloading and archiving services are provided. Customized document templates, dynamic tags, and signature and seal keywords are configured as the premise for customizing the generation of documents; according to the configured custom document templates and dynamic tags, business-related data is parsed, encapsulated into data packets, and the data is bound to the document in combination with the document template; relevant documents and other materials are queried according to the business, and the documents and materials are synthesized into a PDF file in a specified order through file synthesis technology and archived.
[0036] like Figure 1 As shown, the implementation of this method includes:
[0037] Customized generation of documents;
[0038] Online signature and seal of documents;
[0039] Download the documents in a package;
[0040] Document archiving.
[0041] 1. Customized document generation: Dynamic tags are configured through customized document templates. Tags are determined based on business meanings, such as the company name is EntName. By parsing business data and building the structural data required by the business template according to different business types, the data is dynamically assigned to the document template to generate the documents required for different business scenarios. Figure 2 Example shown.
[0042] 2. Online signature and seal of documents: The documents in the process of business handling need to be signed and sealed by relevant business personnel to complete the business handling. According to the business document template, the places where signatures and seals are required will be marked with keywords. After the user completes the signature, the signature image will be uploaded to the document system. When the document is generated, the signature image will be assigned to the corresponding position according to the custom keyword matching; if the document needs to be signed and sealed, the company's seal will be stamped to the corresponding position. Figure 3 Example shown.
[0043] 3. Download documents in a package: When the business is completed, you need to download the relevant documents in the business process in a package, including: application, articles of association, appointment documents, personnel-related certificates, face and signature pictures, etc. The document generation system will provide file query, sorting and merging into a compressed package for download. Figure 4 Example shown.
[0044] 4. Document filing: As the volume of business increases, different business types will generate a series of related documents and materials. The documents cannot be sorted and classified, and there is no way to uniformly review the documents. It is not convenient to retrieve historical business-related documents and materials in a timely manner, which affects the efficiency of handling business. Therefore, when the business is completed, the document system will merge the documents and other related file materials in the business handling process into electronic files through scheduled tasks, and classify and archive them according to business types, which will help business personnel to retrieve and query electronic files in a timely manner. Figure 5 Example shown.
[0045] The comprehensive government service platform has a wide range of business types. The main business involves establishment, change, filing, cancellation, etc. The licensed business involves food, measurement, industry, etc. Each business requires multiple types of documents to be uploaded, and personnel signatures and seals need to be completed online. If it is conventional development, different documents need to be developed for each business, and different document generation logic needs to be written, which leads to redundant business codes and repeated document templates. After adopting this method, different document templates can be configured according to different business types, and signatures and seals can be used as public services. Only a set of public document custom generation services needs to be developed.
[0046] An embodiment of the present invention also provides a system suitable for customized generation of documents, which implements the method suitable for customized generation of documents described in the above embodiment.
[0047] The system includes:
[0048] The document customization generation module is used to configure dynamic tags through customized document templates. Tags are determined based on business meanings. For example, the company name is EntName. By parsing business data and building the structural data required by the business template according to different business types, the data is dynamically assigned to the document template to generate the documents required for different business scenarios.
[0049] The document online signature and seal module is used to mark keywords for places that require signatures and seals based on business document templates. After the user completes the signature, the signature image will be uploaded to the document system. When the document is generated, the signature image will be assigned to the corresponding position based on the custom keyword matching; when the document needs to be signed and sealed, the company's seal will be stamped to the corresponding position.
[0050] The document package download module is used to package and download relevant documents in the process of business handling, including: application, articles of association, appointment documents, personnel-related certificates, face and signature pictures, etc. The document generation system will provide file query, sorting and merging into a compressed package for download.
[0051] The document archiving module is used to merge the documents and other related file materials in the business process into an electronic file through a scheduled task when the business is completed. The files are classified and archived according to the business type, which helps business personnel to retrieve and query the electronic files in time.
[0052] like Figure 1 As shown, after the system fills in and packages the business data, completes the custom generation and signature and seal, during the business handling process, the business materials are packaged and downloaded according to the documents that have been generated. After the business is completed, the documents are archived through scheduled tasks to facilitate subsequent retrieval and review.
[0053] An embodiment of the present invention also provides a device suitable for customizing document generation, comprising at least one memory and a processor;
[0054] The at least one memory is used to store a machine-readable program;
[0055] The at least one processor is used to call the machine-readable program to implement the method for customized document generation described in the above embodiment.
[0056] The embodiment of the present invention further provides a computer-readable medium, on which computer instructions are stored, and when the computer instructions are executed by a processor, the processor executes the method for customizing the generation of documents described in the above embodiment. Specifically, a system or device equipped with a storage medium can be provided, on which software program codes for implementing the functions of any of the above embodiments are stored, and a computer (or CPU or MPU) of the system or device reads and executes the program code stored in the storage medium.
[0057] In this case, the program code itself read from the storage medium can realize the function of any one of the above-mentioned embodiments, and thus the program code and the storage medium storing the program code constitute a part of the present invention.
[0058] The storage medium embodiments for providing the program code include a floppy disk, a hard disk, a magneto-optical disk, an optical disk (such as CD-ROM, CD-R, CD-RW, DVD-ROM, DVD-RAM, DVD-RW, DVD+RW), a magnetic tape, a non-volatile memory card, and a ROM. Alternatively, the program code can be downloaded from a server computer by a communication network.
[0059] In addition, it should be clear that the functions of any of the above embodiments can be implemented not only by executing the program code read by the computer, but also by enabling an operating system operating on the computer to complete part or all of the actual operations based on instructions from the program code.
[0060] In addition, it can be understood that the program code read from the storage medium is written to a memory provided in an expansion board inserted into the computer or written to a memory provided in an expansion unit connected to the computer, and then based on the instructions of the program code, a CPU installed on the expansion board or the expansion unit is enabled to perform part or all of the actual operations, thereby realizing the functions of any of the above-mentioned embodiments.
[0061] The present invention is shown and described in detail above through the accompanying drawings and preferred embodiments. However, the present invention is not limited to these disclosed embodiments. Based on the above multiple embodiments, those skilled in the art can know that the code review methods in the above different embodiments can be combined to obtain more embodiments of the present invention, and these embodiments are also within the protection scope of the present invention.
Claims
1. A method for customizing document generation, characterized in that: include: 1) Customized document generation: Dynamic tags are configured through customized document templates; 2) Online signature and seal of documents: Keywords are added to the places where signatures and seals are required according to the business document template. After the user completes the signature, the signature image is uploaded to the document system. When the document is generated, the signature image is assigned to the corresponding position according to the customized keyword matching; when the document needs to be signed and sealed, the company's seal is stamped to the corresponding position; 3) Document package download: Package and download relevant documents in the process of business handling. The document generation system provides file query, sorting and merging into a compressed package for download; 4) Document archiving: When the business is completed, the documents and other related file materials in the business process are merged into an electronic file through scheduled tasks, and classified and archived according to business type.
2. A method for customizing document generation according to claim 1, characterized in that: The dynamic labels are configured through custom document templates, and the labels are determined according to business meanings.
3. A method for customizing document generation according to claim 1, characterized in that: The document is custom generated by parsing business data, building the structural data required by the business template according to different business types, and dynamically assigning it to the document template, so as to generate the documents required in different business scenarios.
4. A method for customizing document generation according to claim 3, characterized in that: According to the configured custom document template and dynamic tags, business-related data is parsed, encapsulated into data packets, and bound to the document in combination with the document template.
5. A method for customizing document generation according to claim 1, characterized in that: The documents are downloaded in a package, and the relevant documents in the business process include: application form, articles of association, appointment documents, personnel-related certificates, face and signature pictures.
6. A method for customizing document generation according to claim 1, characterized in that: The document archiving is to find out relevant documents and other materials according to the business, and through the file synthesis technology, the documents and materials are synthesized into a PDF file in a specified order and archived.
7. A system suitable for customizing document generation, characterized in that: include: The document customization generation module is used to configure dynamic tags through custom document templates; The document online signature and seal module marks the places where signatures and seals are required according to the business document template. After the user completes the signature, the signature image is uploaded to the document system. When the document is generated, the signature image is assigned to the corresponding position according to the custom keyword matching; when the document needs to be signed and sealed, the company's seal is stamped to the corresponding position; The document package download module is used to package and download relevant documents in the process of business handling, and provides file query, sorting and merging into a compressed package for download; The document filing module is used to merge the documents and other related documents in the business process into electronic files through scheduled tasks when the business is completed, and classify and file them according to the business type; The system implements the method applicable to customized generation of documents as described in any one of claims 1 to 6.
8. A system suitable for customizing document generation according to claim 7, characterized in that: After the system fills in and packages the business data, completes the custom generation and signature and seal, during the business processing, the business materials are packaged and downloaded according to the documents that have been generated. After the business is completed, the documents are archived through scheduled tasks.
9. A device suitable for customizing the generation of documents, characterized in that: comprising at least one memory and a processor; The at least one memory is used to store a machine-readable program; The at least one processor is used to call the machine-readable program to implement the method described in any one of claims 1 to 6.
10. A computer readable medium, characterized in that The computer readable medium stores computer instructions, and when the computer instructions are executed by a processor, the processor executes the method according to any one of claims 1 to 6.
Citation Information
Patent Citations
Electronic delivery system capable of confirming judicial documents received by addressee and method thereof
CN103903123A
Secure generation method, client and system of traffic management electronic document
CN114580030A
Technical method for full paperless automatic archiving, cataloguing and page numbering of notarization materials
CN114817139A
Method and device for carrying out electronic signature
CN117473570A
Full-life-cycle management method and device for litigation documents and intelligent terminal
CN117540717A
