Dynamic configurable automatic generation method of document
By obtaining and standardizing document content, predefined tag replacement and logical judgment, the problem of document generation relying on IE browser and Office plug-in is solved, and fast, safe and standardized document generation is achieved in any browser.
Patent Information
- Application Number
- CN202411419129.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-12
- Publication Date
- 2024-12-31
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
In the prior art, document generation relies on the IE browser kernel and template content can be modified, data replacement cannot be logically judged, document paragraphs cannot be automatically adjusted, and the server needs to install Office components, resulting in the generated documents being unsafe and irregular.
By obtaining the original report document for splitting and standardization, predefined custom tags for content replacement, administrators upload document templates and prevent modification, users enter data and make logical judgments to replace, generate standardized or non-standardized documents, and support any browser without requiring Office plugin.
It realizes the generation of documents without the need for Office plug-ins in any browser, which improves the security and standardization of documents. Users cannot modify templates online, and document generation is fast, efficient and safe.
Smart Images

Figure CN119227662A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of application software, and in particular to a method for dynamically configurable automatic generation of documents. Background Art
[0002] The function of automatically generating standardized and non-standardized documents in the information system appears in the functional modules of many web application systems under the BS architecture. The traditional way is to embed ActiveX components in the browser to generate documents by combining templates with tag replacement. Figure 1 As shown in the figure, this is a common real estate appraisal report cover. The content in [] is the label content, which needs to be dynamically replaced according to the specific circumstances of the project. After the replacement is completed, a standardized document is generated.
[0003] However, there are some defects in generating standardized or non-standardized documents. Specifically, the client environment of the operating system depends on the IE browser kernel that can support ActiveX components; the template content can be completely modified in the operating environment of the ActiveX component; data replacement cannot perform logical judgment; document paragraphs cannot be automatically adjusted; the server side of the web system deployment needs to install the Office component; and the server-side Office is easily locked. Summary of the invention
[0004] The purpose of the present invention is to propose a method for dynamically configurable automatic generation of documents in view of the problems that the system in the background technology needs to rely on the IE browser kernel, the data can be modified and is not safe enough, and the Office component is required.
[0005] The technical solution of the present invention is a method for dynamically configurable automatic generation of documents, comprising the following steps:
[0006] S1. Obtain the original report document, split it according to the content of the document to be generated, and standardize each split document;
[0007] S2. Predefine multiple custom tags to solve various processing requirements in the document generation process; replace tags for the content that needs to be dynamically replaced in each document, use different types of tags to process document content in different formats, and define the document containing the tag content as a document template after processing;
[0008] S3. The administrator uploads the document template to the corresponding system to prevent the template from being modified;
[0009] S4, the user enters data, and the system saves, calculates and processes the data corresponding to the user input;
[0010] S5. Replace the data into the corresponding document template, and combine the split documents into a whole standardized or non-standardized document through the program.
[0011] Preferably, in S1, before splitting the document content, format processing needs to be performed based on the original document content.
[0012] Preferably, in S1, standardization refers to a unified document format.
[0013] Preferably, in S2, ordinary users without management authority cannot modify the document template by themselves.
[0014] Preferably, in S3, the system is a micro-assessment system.
[0015] Preferably, in S5, the combined standardized or non-standardized document can be previewed and downloaded.
[0016] Preferably, in S5, it is necessary to judge the type of each tag in the template, and perform logical judgment and data replacement in the background according to the processing program of the predefined tags.
[0017] Compared with the prior art, the present invention has the following beneficial technical effects: it solves the problem that online document generation must use IE browser embedded office plug-in, and can use any browser without office plug-in to generate documents online, and has higher security for dynamically generated documents, and users cannot modify the preset template online, and the document content is more standard, normative and safe. For example, for real estate appraisal reports, the system calculates the relevant appraisal price and various appraisal parameters, fills them into the standardized appraisal report template, and generates the appraisal report quickly, efficiently and safely, and then converts it into a PDF document and stamps it with an electronic signature to ensure the security of the report. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] Figure 1 This is a schematic diagram of the cover of a real estate mortgage valuation report;
[0019] Figure 2 A schematic diagram of the working of an embodiment of the present invention;
[0020] Figure 3 This is a schematic diagram of the report after formatting;
[0021] Figure 4 and Figure 5 All of them are schematic diagrams of text segmentation;
[0022] Figure 6 Upload a schematic diagram for the document template;
[0023] Figure 7 Schematic diagram of replacing label data for data in user documents;
[0024] Figure 8 A complete diagram of a standardized or non-standardized document. DETAILED DESCRIPTION
[0025] Embodiment 1
[0026] like Figure 2 As shown, the present invention proposes a method for dynamically configurable automatic generation of a document, comprising the following steps:
[0027] S1. Obtain the original report document, process the format according to the original document content to meet the user's requirements, split the document according to the content of the document to be generated, there is no fixed standard for splitting, and the document can be split according to the document chapter, content, etc., and standardize each split document. Standardization refers to the unified document format;
[0028] S2. Predefine more than ten custom tags to solve various processing requirements in the document generation process, including field tags, table tags, image tags, list tags, deletion tags, paragraph tags, etc.; replace tags for the content that needs to be dynamically replaced in each document, use different types of tags to process document content in different formats, and after processing, the document containing the tag content is defined as a document template. Ordinary users without management authority cannot modify the document template by themselves;
[0029] S3, managers upload document templates to the corresponding system to prevent the templates from being modified. The system is a micro-assessment system;
[0030] S4, the user enters data, and the system saves, calculates and processes the data corresponding to the user input;
[0031] S5. To replace data to the corresponding document template, it is necessary to judge the type of each tag in the template, perform logical judgment and data replacement in the background according to the predefined tag processing program, or generate table data, or insert pictures, or delete text, tables, paragraphs, or paragraph splicing, etc. The split documents are combined into a whole standardized or non-standardized document through the program, and the combined standardized or non-standardized document can be previewed and downloaded.
[0032] Embodiment 2
[0033] The present invention proposes a method for dynamically configurable automatic generation of documents, which is now specifically described.
[0034] like Figure 3 As shown, first obtain the original report document, and then format the report according to the original report content to meet the user's requirements.
[0035] like Figure 4 and Figure 5As shown, the document is split into paragraphs, and the content that needs to be replaced in each paragraph is labeled, such as text data, image data, table data, judgment logic data, etc., and finally the templates for each chapter are completed.
[0036] like Figure 6 As shown, upload the processed report document to the application management system.
[0037] like Figure 7 As shown, in the application management system, the data entered by the user, the data automatically calculated by the system, the data determined by the system logic, etc. are called to replace the label data in the report document.
[0038] like Figure 8 As shown, the system completes the data replacement and generates a complete standardized report document that can be directly provided to users for download, preview, etc.
[0039] In summary, the present invention mainly solves the problem that online document generation must use IE browser embedded office plug-in, and can use any browser without office plug-in to generate documents online, and has higher security for dynamically generated documents, users cannot modify preset templates online, and the document content is more standard, normative and safe. For example, a real estate appraisal report, the system calculates the relevant appraisal price and various appraisal parameters, fills them into the standardized appraisal report template, and generates the appraisal report quickly, efficiently and safely, and then converts it into a PDF document and stamps it with an electronic signature to ensure the security of the report.
[0040] The embodiments of the present invention are described in detail above with reference to the accompanying drawings, but the present invention is not limited thereto, and various changes can be made within the knowledge scope of technicians in the relevant technical field without departing from the purpose of the present invention.
Claims
1. A method for dynamically configurable automatic generation of documents, characterized in that: The following steps are involved: S1. Obtain the original report document, split it according to the content of the document to be generated, and standardize each split document; S2. Predefine multiple custom tags to solve various processing requirements in the document generation process; replace tags for the content that needs to be dynamically replaced in each document, use different types of tags to process document content in different formats, and define the document containing the tag content as a document template after processing; S3. The administrator uploads the document template to the corresponding system to prevent the template from being modified; S4, the user enters data, and the system saves, calculates and processes the data corresponding to the user input; S5. Replace the data into the corresponding document template, and combine the split documents into a whole standardized or non-standardized document through the program.
2. The method for dynamically configurable automatic generation of documents according to claim 1, characterized in that: In S1, before splitting the document content, it is necessary to perform format processing based on the original document content.
3. The method for dynamically configurable automatic generation of documents according to claim 1, characterized in that: In S1, standardization refers to the unified document format.
4. The method for dynamically configurable automatic generation of documents according to claim 1, characterized in that: In S2, ordinary users without management privileges cannot modify document templates on their own.
5. The method for dynamically configurable automatic generation of documents according to claim 1, characterized in that: In S3, the system is a micro-assessment system.
6. The method for dynamically configurable automatic generation of documents according to claim 1, characterized in that: In S5, the combined standardized or non-standardized documents can be previewed and downloaded.
7. The method for dynamically configurable automatic generation of documents according to claim 1, characterized in that: In S5, it is necessary to judge the type of each tag in the template, and perform logical judgment and data replacement in the background according to the predefined tag processing procedure.
