Form control and change tracing integrated document online processing method and system
By generating HTML document templates and embedding interactive form controls, combined with a hybrid detection engine and change tracking mechanism, the problems of chaotic formatting and insufficient collaborative tools in enterprise document processing are solved, thereby improving the standardization, controllability, and efficiency of documents.
Patent Information
- Application Number
- CN202511430598.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-10-09
- Publication Date
- 2026-02-13
AI Technical Summary
Enterprises face problems such as chaotic document formats, insufficient refined management capabilities of collaborative tools, and difficulty in effectively integrating structured data and unstructured content during document processing, resulting in low document standardization, controllability, and efficiency.
By generating HTML document templates, embedding interactive form controls, and combining them with a hybrid detection engine, the system enables standardized document editing and real-time detection, supports multi-user collaborative editing, and records operation details through a change tracking mechanism.
It significantly improves the standardization and controllability of documents, reduces the time spent on formatting adjustments and error correction, and improves the efficiency of multi-person collaboration and document processing.
Smart Images

Figure CN121525635A_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of intelligent collaborative processing of enterprise-level standardized documents, and particularly discloses an online document processing method and system integrating form controls and change tracking. BACKGROUND
[0002] With the deepening of digital transformation, the refinement, processization and collaborative efficiency of enterprise operation have become the key driving force of core competitiveness. In this process, enterprise standardized documents, including technical specifications, standard operation processes, quality reports, equipment maintenance records, etc., as the basic carrier of daily operation, their generation, circulation and management specification, consistency and efficiency are crucial to production, quality control, technical research and development, and administrative office, and have been highly valued by enterprises. However, the current industry is generally facing severe challenges, and enterprises are facing multiple technical bottlenecks that restrict efficiency and quality in the document processing process.
[0003] The first bottleneck is the difficulty in ensuring the uniformity of document format and the specification of content. Due to the reliance on manual preparation by different departments or personnel, and the lack of effective mandatory constraint mechanism, individual habit differences or understanding biases can easily lead to systematic defects such as mixed template versions, incorrect or missing core fields (such as date format, unit of measurement), missing key data items or chaotic content expression. This randomness makes the final document quality "fragmented", and even if the documents describe the same thing or process, their structure and content expression are significantly different. This not only damages the professional image of enterprise documents, but also lays the foundation for communication misunderstandings, information errors and compliance risks when collaborating across departments, transmitting information upstream and downstream, or responding to external audits and certifications. At the same time, the unstructured data form makes subsequent document retrieval, information extraction and statistical analysis costly and inefficient.
[0004] To address the above challenges, some online collaborative editing tools (such as online document platforms) can provide multi-user collaborative editing and basic version record functions, which to some extent improve the team collaboration experience, but still have significant shortcomings in meeting the stringent needs of enterprise-level document standardized management. One of the core deficiencies is the weak fine-grained version control and change tracking capability. The "revision mode" or editing history overview provided by existing tools is usually rough, making it difficult to accurately locate the modification details of key fields or core paragraphs, and unable to efficiently track the complete background information of "who, when, why, and what content was modified" for each change. This significantly reduces the controllability and accountability of document changes, especially in important document scenarios that require strict audit tracking.
[0005] In particular, such tools have a fundamental obstacle in bridging the gap between structured data and unstructured content. Enterprise documents often need to contain both structured data that requires strict input constraints and unstructured text that allows free expression. However, the underlying architecture of mainstream rich text editors is designed to handle streaming text and is inherently difficult to seamlessly and efficiently embed structured form controls with complex interaction logic and strong data validation capabilities. Even if simple controls are embedded through external extensions, it often leads to interface and interaction confusion, frequent version compatibility problems, especially in multi-user collaboration scenarios, and the synchronization of control states is particularly tricky. This results in a long-term contradiction between the flexibility of document content creation (supporting free expression) and the standardization of content management (ensuring that key fields are controlled and structured).
[0006] In summary, whether it is traditional offline document processing or existing mainstream general online collaboration tools, enterprises are essentially faced with three intertwined technical difficulties in solving the problem of standardized document generation and management: document format confusion and serious lack of specifications, insufficient fine management capabilities of basic collaboration tools, and difficulty in effectively integrating structured data and unstructured content. The superimposed effects of these pain points have seriously restricted the document standardization, internal and external collaboration efficiency, data value mining potential, and the traceability of key documents.
[0007] Therefore, how to provide a document online processing method and system integrating form controls and change tracking to improve the standardization, controllability and efficiency of document processing has become a technical problem to be solved. SUMMARY
[0008] The technical problem to be solved by the present application is to provide a document online processing method and system integrating form controls and change tracking to improve the standardization, controllability and efficiency of document processing.
[0009] In a first aspect, the present application provides a document online processing method integrating form controls and change tracking, comprising the following steps: Step S1, obtaining an uploaded reference document in word format, parsing the reference document to obtain a document structure including a document directory and a document content; Step S2, generating a document template in html format based on the document structure, the document template including a directory area, a body area and a function area, configuring a directory function and an interactive form control of the document template; Step S3, the document template performs an editing operation of adding or deleting text content in the body area based on an input document editing instruction, and generates a text identifier for the corresponding text content during the editing operation; Step S4, the document template generates a text comment or copies and pastes the corresponding text content based on the input document auxiliary operation instruction for the corresponding text content; Step S5, the document template performs a filling operation on the interactive form control in the text area based on the input control filling instruction, and identifies the filling state of the interactive form control; Step S6, the document template generates a detection result by mixing a detection engine to detect the text content of the text area in real time; Step S7, the document template displays text identification, change records and detection results in the function area; Step S8, based on the detection result, the text content of the text area is corrected in combination with the directory function of the directory area, and saved and exported as a local document.
[0010] Further, the step S1 is specifically: After identity verification through a visual interface, a reference document in word format is uploaded, and the reference document is parsed in real time by ApachePOI to obtain a document structure including at least a document directory and a document content; The document content includes at least text elements, metadata and form control positions; the text elements include at least paragraphs, lists and tables; the metadata includes at least styles and fonts; In step S2, the directory area is located on the left side of the document template, the text area is located in the middle of the document template, and the function area is located on the right side of the document template; The directory function includes at least directory refreshing, document navigation and content selection; The interactive form control includes at least input boxes, selection boxes and check boxes.
[0011] Further, in step S3, when performing an added editing operation, a label with an added line style is wrapped around the text content; when performing a deleted editing operation, a label with a deletion line style is wrapped around the text content; In step S5, the filling state of the interactive form control is identified, specifically: When the filling state is not filled, the interactive form control is displayed in red; when the filling state is filled, the interactive form control is displayed in yellow.
[0012] Further, the step S6 is specifically: The document template passes through a hybrid detection engine, calls a preset rule library to perform real-time preliminary detection on the text content of the body area, simultaneously calls a pre-trained large language model to perform real-time deep detection on the text content of the body area based on an input deep detection instruction, and further generates a detection result.
[0013] Further, in the step S7, the change record at least includes an operation type, an operation time, a number of involved words, and an operation content.
[0014] In a second aspect, the present application provides a document online processing system integrating form controls and change tracing, comprising the following modules: A document structure analysis module is configured to obtain a reference document in a word format uploaded, and analyze the reference document to obtain a document structure including a document directory and a document content; A document template generation module is configured to generate a document template in an html format based on the document structure, the document template including a directory area, a body area, and a function area, and configure a directory function and interactive form controls of the document template; An editing operation module is configured to perform an editing operation of adding or deleting text content in the body area of the document template based on a document editing instruction input, and generate a text identifier for the corresponding text content during the editing operation; An auxiliary operation module is configured to generate a text note or copy and paste corresponding text content for the corresponding text content of the document template based on a document auxiliary operation instruction input; A control filling module is configured to perform a filling operation on the interactive form controls in the body area of the document template based on a control filling instruction input, and identify a filling state of the interactive form controls; A text content detection module is configured to perform real-time detection on the text content of the body area of the document template through a hybrid detection engine, and generate a detection result; A function area display module is configured to display a text identifier, a change record, and a detection result in the function area of the document template; A document export module is configured to save and export a local document after correcting the text content of the body area based on the detection result in combination with the directory function of the directory area.
[0015] Further, the document structure analysis module is specifically configured to: After identity verification through a visual interface, obtain a reference document in a word format uploaded, and analyze the reference document through ApachePOI to obtain a document structure including at least a document directory and a document content; The document content at least includes text elements, metadata and form control positions; the text elements at least include paragraphs, lists and tables; and the metadata at least includes styles and fonts; In the document template generation module, the directory area is located at the left side of the document template, the main text area is located at the middle of the document template, and the function area is located at the right side of the document template. The directory function at least includes directory refreshing, document navigation and content selection. The interactive form control at least includes an input box, a selection box and a check box.
[0016] Further, in the editing operation module, when the newly added editing operation is executed, a label of a newly added line style is wrapped on the text content; and when the deleted editing operation is executed, a label of a deletion line style is wrapped on the text content. In the control filling module, the filling state of the interactive form control is identified, and the identification specifically includes: When the filling state is not filled, the interactive form control is displayed in red; and when the filling state is filled, the interactive form control is displayed in yellow.
[0017] Further, the text content detection module is specifically used for: The document template is detected by a hybrid detection engine, a preset rule library is called to perform real-time preliminary detection on the text content of the main text area, a pre-trained large language model is called to perform real-time deep detection on the text content of the main text area based on an input deep detection instruction, and a detection result is generated.
[0018] Further, in the function area display module, the change record at least includes an operation type, an operation time, involved word numbers and operation content.
[0019] The present application has the following advantages: 1. By acquiring uploaded Word format reference documents, the document structure, including the table of contents and content, is parsed to generate an HTML document template with a table of contents, body, and function areas. The document template's table of contents and interactive form controls are configured. Based on input editing commands, the document template allows for adding or deleting text in the body area, generating text markers for the corresponding text during editing. Based on input auxiliary operation commands, the document template generates text annotations or allows copying and pasting of corresponding text. Based on input control filling commands, the document template performs filling operations on the interactive form controls in the body area and marks the filling status of the interactive form controls. The document template uses a hybrid detection engine to perform real-time detection of the text content in the body area and generates detection results. The document template displays text markers, change records, and detection results in the function areas. By integrating the directory function of the table of contents area, the text content in the main text area is corrected based on the detection results, then saved and exported as a local document. Specifically, by forcibly embedding interactive form controls (such as input boxes and selection boxes), users are guided to fill in key fields according to standard formats. Combined with a real-time hybrid detection engine (rule base + large language model), errors and logical contradictions are automatically identified, significantly improving document standardization. Visual identifiers (such as underlines / strikethroughs) are automatically generated for text addition and deletion operations, and color codes are set for control status (such as red for unfilled / yellow for filled). Detailed change records, including operation type, time, and content, are centrally displayed in the function area, enabling visual and precise traceability of text and control modifications, greatly enhancing document controllability. Simultaneously, the automated generation of standard templates, unified management of structured and unstructured content, and real-time detection and correction mechanisms effectively reduce the time spent on format adjustments and repeated error corrections, ultimately greatly improving the standardization, controllability, and efficiency of document processing.
[0020] 2. By generating HTML format document templates (including a table of contents, body, and function area) and integrating interactive form controls (such as input boxes and selection boxes), while deploying control operation locks and semantic merging algorithms (such as Operation Transformation (OT) merging and value priority strategies), the online editing mode avoids the cumbersome offline operation of traditional Word documents. Users can edit directly in the browser, reducing software switching costs and improving operational smoothness. The control operation lock automatically locks when the user focuses on a form control, preventing conflicts in collaborative editing by multiple users and shortening editing time. The value priority strategy (such as forcing the last compliant value for technical parameter controls) automatically handles common conflicts without manual intervention, improving editing efficiency.
[0021] 3. By generating semantic-level change markers for each editing operation (including operation subject digital fingerprint based on SM3 algorithm, content change type, associated form control ID), support field-level modification comparison (such as automatic value difference highlighting), and directory area with version tree visualization component; change markers contain digital fingerprints (SM3 algorithm) and control IDs, ensuring that each operation can be traced back to specific users and form fields, enhancing responsibility attribution and audit compliance, and reducing data tampering risks (suitable for sensitive scenarios such as contracts or technical documents); The version tree visualization component allows tracing back to any version of the document structure on the timeline, helping users quickly compare historical versions and improving version management efficiency; the field-level modification comparison function automatically highlights changes in the same control, improving review accuracy (avoiding manual comparison errors), and supporting compliance report generation.
[0022] 4. By deploying a dynamic form engine (including field-level cascading rule library and enterprise data bus interface), real-time detection is performed through a hybrid detection engine (combining rule library and large language model), and the data binding unit supports control and background database field mapping; the field-level cascading rule library (such as visibility / constraint value) automatically checks form data logic (such as dynamically rendering associated fields after selecting "product type"), reducing human error rate; the enterprise data bus interface connects ERP / MES systems in real time, ensuring the validity of control values (such as inventory data consistency), and improving the integration and reliability of business documents; the hybrid detection engine combines rule library (AST parser) and pre-trained large language model (loading enterprise knowledge graph) to provide preliminary and deep detection (such as logic structure compliance and technical parameter conflict identification), and the detection results are displayed in real time to help users correct problems immediately, reducing the risk of document release; the dual-channel mechanism of rule library and AI model (such as asynchronous model channel loading industry knowledge graph) solves the limitations of single-point detection tools (such as traditional spelling check), enhancing the intelligent governance capability of documents.
[0023] 5. By deploying a collaborative editing conflict resolution engine (including control operation lock and semantic merging algorithm), different controls are distinguished and processed (such as technical parameter type forced last value and description text type retaining modification traces); the semantic merging algorithm uses OT merging for non-conflicting text modifications, and the value priority strategy customizes rules for different controls (such as triggering electronic signature verification process for approval signature control), reducing version confusion caused by editing conflicts; the control operation lock broadcasts the state when the user focuses, preventing multiple users from modifying the same control at the same time, improving the stability and user-friendliness of multi-person collaboration (suitable for cross-department collaboration); differentiated strategies (such as retaining all traces of description text type) support flexible editing decisions, balancing automation and manual intervention needs.
[0024] 6. Through the layout optimization of the function area (left directory, middle text, right function area), the filling state of the control is marked by color (red for not filled, yellow for filled), and text marks, annotations, etc. are generated and displayed in real time; the three-area layout (directory, text, function area) directly displays the information, the directory function (such as document navigation) improves the user experience and reduces the learning curve; visual marks (such as color state labels) and text annotations help users quickly identify problem points (such as unfilled controls) and improve operation efficiency; version trees and change records enhance the interface interactivity and support more efficient document processing procedures; the interface design optimizes the integration of change, detection, and form functions, avoiding the information fragmentation of traditional tools, and helping to promote to enterprise user groups.
[0025] 7. By using the national SM3 algorithm to generate the digital fingerprint of the operation subject, the approval and seal control triggers electronic signature verification, and the industry knowledge graph is integrated for compliance detection; the SM3 algorithm provides high-strength digital fingerprints (tamper-proof), ensuring operation traceability and document security; the electronic signature process is verified in the approval, strengthening the legal effect and reducing unauthorized modifications; the industry knowledge graph integrates the automatic association of standard clause libraries, and the detection results are displayed in real time to assist users in quickly correcting compliance loopholes.
[0026] 8. By supporting dynamic field groups and data binding units, local documents can be saved and exported, and the entire scheme is suitable for different enterprise systems; dynamic field groups (rendering controls according to business rules) and data binding (automatically filling historical data) enhance the adaptability of the scheme and can be customized for various scenarios (such as technical documents, contract management); the export function maintains compatibility with traditional formats, facilitating document migration and sharing; the overall scheme can integrate enterprise private knowledge bases and support industry customization (such as manufacturing or legal fields).
[0027] 9. By innovatively integrating interactive form controls deeply into online document processing procedures, the dynamic form engine realizes field cascade rules and real-time enterprise data verification (such as connecting ERP / MES systems), while combining semantic-level change marks (including national SM3 algorithm digital fingerprints and control-level operation records) to realize fine-grained version tracking and auditing; the collaborative editing conflict resolution engine significantly improves multi-person collaboration efficiency through control operation locks and differential merging strategies (such as forcing the last compliant value for technical parameters and retaining multiple version traces for description text), while the hybrid detection engine integrates rule libraries and large model intelligent analysis to ensure data compliance while significantly reducing manual verification costs, ultimately forming a document processing solution with high interactivity, strong traceability, and intelligent verification capabilities. BRIEF DESCRIPTION OF DRAWINGS
[0028] The application will be further described below with reference to the accompanying drawings and embodiments.
[0029] Fig. 1It is a flow chart of a document online processing method fusing form controls and change tracing of the application.
[0030] Fig. 2 It is a structural schematic diagram of a document online processing system fusing form controls and change tracing of the application.
[0031] Fig. 3 It is a schematic diagram of a document template of the application.
[0032] Fig. 4 It is a configuration diagram of an interactive form control of the application. DETAILED DESCRIPTION
[0033] The technical solution in the embodiments of the application has the following general idea: by forcibly embedding interactive form controls (such as input boxes and selection boxes) to guide users to fill in key fields in a standard format, and by combining a real-time hybrid detection engine (rule library + large language model) to automatically identify content errors and logical contradictions, the standardization of documents is significantly improved; by automatically generating visual identifiers (such as underlines and deletion lines) for text addition and deletion operations, setting color codes (such as red for unfilled and yellow for filled) for control states, and displaying detailed change records containing operation types, times and contents in a function area, the visual and accurate tracing of text and control modifications is realized, and the controllability of documents is greatly enhanced; at the same time, based on the automatic generation of standard templates, the unified management of structured data and unstructured content, and the real-time detection and correction mechanism, the time consumption of format adjustment and repeated error modification is effectively reduced, and thus the standardization, controllability and efficiency of document processing are improved.
[0034] Please refer to Figs. 1 to 4 The preferred embodiment of a document online processing method fusing form controls and change tracing of the application includes the following steps: Step S1, a reference document in word format is obtained, and a document structure including a document directory and a document content is obtained by parsing the reference document; Step S2, an html format document template including a directory area, a text area and a function area is generated based on the document structure, a directory function and an interactive form control of the document template are configured (the interactive form control configuration insertion plays a quick filling and checking function for the document made by the document template subsequently), a dynamic form engine including a field cascade dynamic rule library and an enterprise data bus interface is deployed in the document template, the field cascade dynamic rule library is used to define the display / hide / value constraint relationship between form controls, and the enterprise data bus interface is used to connect an ERP / MES system in real time to check data validity; Step S3, the document template performs editing operation of adding or deleting text content in the body area based on the input document editing instruction, and generates a text identifier for the corresponding text content during the editing operation; a semantic level change marker is generated for each editing operation during the editing operation, including: operation subject digital fingerprint (based on the national standard SM3 algorithm); content change type (addition / deletion / replacement); associated form control ID (when the operation involves control content); Step S4, the document template generates a text note or copies and pastes the corresponding text content for the corresponding text content based on the input document auxiliary operation instruction; When the cursor selects the text content that needs to be noted, the selected area is copied to create a note identifier tag package. If the selected area crosses paragraphs, the cursor starting position is in the previous paragraph text, and the text content belongs to the previous paragraph. The line tag package is merged with the previous paragraph text, and an independent paragraph note tag is created in the middle paragraph. When the cursor end position also crosses paragraphs, the same principle is used to wrap the line note tag.
[0035] Step S5, the document template performs filling operation on the interactive form control in the body area based on the input control filling instruction, and identifies the filling state of the interactive form control; in specific implementation, a collaborative editing conflict resolution engine including a control operation lock and a semantic merging algorithm is also deployed. The control operation lock is used to automatically lock and broadcast the state when the user focuses on the form control. The semantic merging algorithm is used to adopt operation transformation (OT) merging for non-conflicting text modification, and value priority strategy for interactive form control modification; the value priority strategy includes: technical parameter class control: forced to use the last effective compliant value; description text class control: all version modification traces are retained for manual selection; approval and signature control: trigger electronic signature verification process; Step S6, the document template generates a detection result by using a hybrid detection engine to detect the text content in the body area in real time; Step S7, the document template displays the text identifier, change record and detection result in the function area; Step S8, after the text content in the body area is corrected based on the detection result in combination with the directory function of the directory area, the corrected text content is saved and exported as a local document. The interactive form controls in the original body area are converted into text that can be recognized by common document editors before downloading, such as underlined text for drop-down boxes, date selectors, etc.; check boxes and radio box controls are recognized as selection boxes; the downloaded document can still maintain the existing note record and editing record, which is convenient and intuitive for revision and confirmation.
[0036] The application pre-sets a standardized document template and inserts an interactive form control, forcibly specifies the content format, greatly improves the production efficiency and standardization of various standardized documents (such as reports, applications and contracts), realizes accurate tracing of all modification traces of the document through a non-destructive editing and merging algorithm based on labels, ensures the performance and stability of the system, solves the version confusion and data redundancy problems caused by online editing by multiple people and multiple times, and breaks through the process barriers between dynamic online collaboration and static offline review by intelligently converting the online interactive control into a static format of the offline document, thereby enhancing the applicability and flow convenience of the document.
[0037] The step S1 is specifically: After identity verification through a visual interface, a reference document in a word format is obtained, and the reference document is parsed in real time through ApachePOI to obtain a document structure including at least a document directory and a document content; The document content at least includes text elements, metadata and form control positions; the text elements at least include paragraphs, lists and tables; and the metadata at least includes styles and fonts; In the step S2, the directory area is located on the left side of the document template, the main text area is located in the middle of the document template, and the function area is located on the right side of the document template; the directory area is provided with a version tree visual component, and supports tracing back to any version of the document structure according to a time axis; The directory function at least includes a directory refreshing function (a newly added title paragraph can be identified as a document directory item through the refreshing function), a document navigation function (a user is scrolled to a corresponding text position by clicking the directory) and a content selection function (a right-click menu is provided, and all texts under the directory can be selected by clicking the content selection function, so as to facilitate the user's copy and paste); The interactive form control at least includes an input box, a selection box and a check box. The interactive form control further includes a dynamic field group, a data binding unit and an approval and signature control; the dynamic field group is used to respond to a pre-control selection value, and dynamically renders an associated field according to a pre-defined business rule; the data binding unit is used to map the control and a background database field, and supports automatic filling of historical data; and the approval and signature control is used to trigger an electronic signature verification process.
[0038] In the step S3, when a newly added editing operation is performed, a label of a newly added line style is wrapped on the text content; and when a deleted editing operation is performed, a label of a deletion line style is wrapped on the text content; In order to avoid deleting new text content and causing redundant label wrapping, when editing, it is judged whether the previous node and the subsequent node of the current input cursor position have been identified as the corresponding state, if identified, the current deleted or added text content is merged into the existing label, and the backspace key is used to delete the text content or the keyboard is used to frequently add the text content to generate too many labels.
[0039] In the step S5, the filling state of the interactive form control is identified as: When the filling state is not filled, the interactive form control is displayed in red; when the filling state is filled, the interactive form control is displayed in yellow.
[0040] The step S6 is specifically: The document template passes through a hybrid detection engine, first calls a preset rule library (such as a regular expression, a keyword list) to perform real-time preliminary detection on the text content of the body area, simultaneously based on an input depth detection instruction, calls a pre-trained large language model to perform real-time deep detection (for example, identifying inconsistent expressions in technical documents or ambiguous statements with potential risks in company reports) on the text content of the body area, and then generates a detection result. The hybrid detection engine integrates an industry knowledge graph, and is used for automatically associating the filling content of the interactive form control with a standard clause library.
[0041] The double-channel verification mechanism includes a real-time rule channel and an asynchronous model channel, the real-time rule channel passes through a preset AST (abstract syntax tree) parser, calls a preset rule library to verify document logical structure compliance, and the asynchronous model channel loads an enterprise private knowledge base (industry knowledge graph), and identifies technical parameter conflict risks.
[0042] In the step S7, the change record at least includes an operation type, an operation time, a number of involved words, and operation content. The change record supports field-level modification comparison functions, for example, automatically highlighting value differences of the same control in different versions.
[0043] The preferred embodiment of the document online processing system fusing the form control and the change tracing includes the following modules: A document structure analysis module is used to obtain a reference document in a word format uploaded, and analyze the reference document to obtain a document structure including a document directory and a document content. A document template generation module is configured to generate a document template in HTML format based on the document structure, the document template including a directory area, a body area, and a function area, configure a directory function of the document template, and configure an interactive form control (by interactive form control configuration insertion, the document template made subsequently plays a function of quick filling and verification of filled-in content); a dynamic form engine including a field cascade dynamic rule library and an enterprise data bus interface is deployed in the document template, the field cascade dynamic rule library is configured to define a display / valued constraint relationship between form controls, and the enterprise data bus interface is configured to connect an ERP / MES system in real time to verify data validity. An editing operation module is configured to perform an editing operation of adding or deleting text content in the body area based on an input document editing instruction, and generate a text identifier for the text content during the editing operation; a semantic level change marker is generated for each editing operation during the editing operation, including: an operation subject digital fingerprint (based on a national secret SM3 algorithm); a content change type (addition / deletion / replacement); and an associated form control ID (when the operation involves control content); An auxiliary operation module is configured to generate a text note or copy and paste corresponding text content for the text content based on an input document auxiliary operation instruction; When a cursor selects text content that needs to be noted, the text content selection area is copied to create a note identifier tag package, if the selection area crosses paragraphs, the cursor starting position is in the text content of the previous paragraph, and the text content of the previous paragraph is merged with the line tag package; when the cursor ending position also crosses paragraphs, the same principle is used to perform line note tag packaging.
[0044] A control filling module is configured to perform a filling operation on the interactive form control in the body area based on an input control filling instruction, and identify the filling state of the interactive form control; in specific implementation, a collaborative editing conflict resolution engine including a control operation lock and a semantic merging algorithm is also deployed, the control operation lock is configured to automatically lock and broadcast a state when a user focuses on a form control, and the semantic merging algorithm is configured to use an operation transformation (OT) merging for non-conflict text modification, and use a value priority strategy for interactive form control modification; the value priority strategy includes: a technical parameter type control: a last effective compliant value is forced to be used; a description text type control: all version modification traces are retained for manual selection; an approval signature control: an electronic signature verification process is triggered; A text content detection module is configured to perform real-time detection on text content in the body area by a hybrid detection engine to generate a detection result. The function area display module is used for displaying text marks, change records and detection results in the function area of the document template; The document export module is used for combining the directory function of the directory area, correcting the text content of the text area based on the detection result, and saving and exporting as a local document. The interactive form controls in the original text area are converted into text that can be recognized by common document editors before downloading, such as drop-down boxes, date selectors and the like are converted into underlined text; check boxes and radio box controls are recognized as selection boxes; the downloaded document can still maintain the existing annotation records and editing records, facilitating intuitive revision and confirmation.
[0045] The present application greatly improves the production efficiency and standardization of various standardized documents (such as reports, applications and contracts) by pre-setting standardized document templates and inserting interactive form controls to forcibly standardize the content format; through the non-destructive editing and merging algorithm based on labels, the accurate traceability of all modification traces of the document is realized, while the performance and stability of the system are ensured, solving the version confusion and data redundancy problems easily caused by online editing by multiple people and multiple times; by intelligently converting online interactive controls into static formats of offline documents, the process barriers between dynamic online collaboration and static offline review are broken down, and the applicability and flow convenience of the document are enhanced.
[0046] The document structure analysis module is specifically used for: After identity verification through the visual interface, a reference document in word format is obtained, and the reference document is analyzed in real time by ApachePOI to obtain a document structure including at least a document directory and a document content; The document content at least includes text elements, metadata and form control positions; the text elements at least include paragraphs, lists and tables; and the metadata at least includes styles and fonts; In the document template generation module, the directory area is located on the left side of the document template, the text area is located in the middle of the document template, and the function area is located on the right side of the document template; the directory area is provided with a version tree visual component, which supports tracing back to any version of the document structure according to a time axis; The directory function at least includes directory refreshing (newly added title paragraphs can be recognized as document directory items through the refreshing function), document navigation (users can be scrolled to the corresponding text position by clicking the directory), and content selection (a right-click menu is provided, and all text under the directory can be selected by clicking the content selection, facilitating the user's copy and paste); The interactive form control at least includes an input box, a selection box and a check box. The interactive form control further includes a dynamic field group, a data binding unit and an approval seal control; the dynamic field group is used for dynamically rendering an associated field according to a pre-control selection value and a predefined business rule; the data binding unit is used for mapping the control with a background database field and supporting automatic filling of historical data; and the approval seal control is used for triggering an electronic signature verification process.
[0047] In the editing operation module, when the added editing operation is executed, a tag of a line style is wrapped on the text content; and when the deleted editing operation is executed, a tag of a deletion line style is wrapped on the text content. In order to avoid deleting the added text content and causing redundant label wrapping, during editing, it is determined whether the previous node and the subsequent node of the current input cursor position have been identified as the corresponding state, if identified, the current deleted or added text content is merged into the existing label, and the backspace key is used to delete the text content word by word or the keyboard is used to frequently add the text content to generate too many labels.
[0048] In the control filling module, the filling state of the interactive form control is identified as follows: When the filling state is not filled, the interactive form control is displayed in red; and when the filling state is filled, the interactive form control is displayed in yellow.
[0049] The text content detection module is specifically used for: The document template calls a preset rule library (such as a regular expression, a keyword list) to perform real-time preliminary detection on the text content of the body area through a hybrid detection engine, simultaneously calls a pre-trained large language model to perform real-time deep detection (for example, identifying inconsistent expressions in technical documents or ambiguous statements with potential risks in company reports) on the text content of the body area based on an input deep detection instruction, and further generates a detection result. The hybrid detection engine integrates an industry knowledge graph to automatically associate the filling content of the interactive form control with a standard clause library.
[0050] The double-channel verification mechanism includes a real-time rule channel and an asynchronous model channel; the real-time rule channel calls a preset AST (abstract syntax tree) parser to verify the compliance of the logical structure of the document through a preset rule library; and the asynchronous model channel loads an enterprise private knowledge base (industry knowledge graph) through a large language model to identify technical parameter conflict risks.
[0051] In the function area display module, the change record includes at least the operation type, operation time, number of characters involved, and operation content. The change record supports field-level modification comparison functionality, such as automatically highlighting the value differences of the same control in different versions.
[0052] In summary, the advantages of this invention are: 1. By acquiring uploaded Word format reference documents, the document structure, including the table of contents and content, is parsed to generate an HTML document template with a table of contents, body, and function areas. The document template's table of contents and interactive form controls are configured. Based on input editing commands, the document template allows for adding or deleting text in the body area, generating text markers for the corresponding text during editing. Based on input auxiliary operation commands, the document template generates text annotations or allows copying and pasting of corresponding text. Based on input control filling commands, the document template performs filling operations on the interactive form controls in the body area and marks the filling status of the interactive form controls. The document template uses a hybrid detection engine to perform real-time detection of the text content in the body area and generates detection results. The document template displays text markers, change records, and detection results in the function areas. By integrating the directory function of the table of contents area, the text content in the main text area is corrected based on the detection results, then saved and exported as a local document. Specifically, by forcibly embedding interactive form controls (such as input boxes and selection boxes), users are guided to fill in key fields according to standard formats. Combined with a real-time hybrid detection engine (rule base + large language model), errors and logical contradictions are automatically identified, significantly improving document standardization. Visual identifiers (such as underlines / strikethroughs) are automatically generated for text addition and deletion operations, and color codes are set for control status (such as red for unfilled / yellow for filled). Detailed change records, including operation type, time, and content, are centrally displayed in the function area, enabling visual and precise traceability of text and control modifications, greatly enhancing document controllability. Simultaneously, the automated generation of standard templates, unified management of structured and unstructured content, and real-time detection and correction mechanisms effectively reduce the time spent on format adjustments and repeated error corrections, ultimately greatly improving the standardization, controllability, and efficiency of document processing.
[0053] 2. By generating HTML format document templates (including a table of contents, body, and function area) and integrating interactive form controls (such as input boxes and selection boxes), while deploying control operation locks and semantic merging algorithms (such as Operation Transformation (OT) merging and value priority strategies), the online editing mode avoids the cumbersome offline operation of traditional Word documents. Users can edit directly in the browser, reducing software switching costs and improving operational smoothness. The control operation lock automatically locks when the user focuses on a form control, preventing conflicts in collaborative editing by multiple users and shortening editing time. The value priority strategy (such as forcing the last compliant value for technical parameter controls) automatically handles common conflicts without manual intervention, improving editing efficiency.
[0054] 3. By generating semantic-level change markers for each editing operation (including the digital fingerprint of the operation subject based on the SM3 algorithm, the content change type, and the associated form control ID), it supports field-level modification comparison (such as automatically highlighting value differences). The directory area has a version tree visualization component. The change markers contain digital fingerprints (national cryptographic SM3 algorithm) and control IDs, ensuring that each operation can be traced back to a specific user and form field, enhancing accountability and audit compliance, and reducing the risk of data tampering (suitable for sensitive scenarios such as contracts or technical documents). The version tree visualization component allows users to trace back any version document structure along the timeline, helping users quickly compare historical versions and improve version management efficiency. The field-level modification comparison function automatically highlights changes to the same control, improving review accuracy (avoiding errors from manual comparison) and supporting the generation of compliance reports.
[0055] 4. By deploying a dynamic form engine (including a field-level linked rule base and an enterprise data bus interface), and using a hybrid detection engine (integrating a rule base and a large language model) for real-time detection, the data binding unit supports the mapping of controls to backend database fields. The field-level linked rule base (such as explicit / implicit / value constraints) automatically verifies the form data logic (such as dynamically rendering associated fields after selecting "product type"), reducing human error rates. The enterprise data bus interface connects to the ERP / MES system in real time to ensure the validity of the values entered in the controls (such as inventory data consistency), improving the integration and reliability of business documents. The hybrid detection engine combines a rule base (AST parser) and a pre-trained large language model (loading enterprise knowledge graph) to provide preliminary and in-depth detection (such as logical structure compliance and technical parameter conflict identification). The detection results are displayed in real time, helping users to correct problems immediately and reducing document release risks. The dual-channel mechanism of the rule base and AI model (such as asynchronous model channel loading industry knowledge graph) solves the limitations of single-point detection tools (such as traditional spell checking) and enhances the intelligent document governance capabilities.
[0056] 5. By deploying a collaborative editing conflict resolution engine (including control operation locks and semantic merging algorithms), different controls are handled differently (e.g., technical parameters are forced to the last value, while descriptive text retains modification traces); the semantic merging algorithm uses OT merging to modify non-conflicting text, while the value priority strategy customizes rules for different controls (e.g., approval and signature controls trigger electronic signature verification processes), reducing version chaos caused by editing conflicts; the control operation lock broadcasts its status when the user focuses, preventing multiple users from modifying the same control simultaneously, improving the stability and user-friendliness of multi-user collaboration (suitable for cross-departmental collaboration); the differentiated strategy (e.g., retaining all traces of descriptive text) supports flexible editing decisions, balancing the needs of automation and manual intervention.
[0057] 6. Optimized functional area layout (left-side directory, middle body, right-side function area), color-coded status indicators (red for unfilled, yellow for filled), real-time generation and display of text indicators and annotations; the three-zone layout (directory, body, function area) intuitively displays information, and the directory function (such as document navigation) enhances user experience and reduces the learning curve; visual indicators (such as color status labels) and text annotations help users quickly identify problems (such as unfilled controls), improving operational efficiency; version tree and change history enhance interface interactivity and support a more efficient document processing workflow; the optimized interface design integrates change, detection, and form functions, avoiding the information fragmentation of traditional tools and facilitating promotion to enterprise user groups.
[0058] 7. By using the national cryptographic algorithm SM3 to generate a digital fingerprint of the operating entity, the approval and signing control triggers electronic signature verification, and industry knowledge graphs are integrated for compliance testing; the SM3 algorithm provides high-strength digital fingerprints (tamper-proof), ensuring operational traceability and document security; the electronic signature process is subject to mandatory verification during approval, strengthening legal validity and reducing unauthorized modifications; the industry knowledge graph is integrated with an automatic association standard clause library, and the test results are displayed in real time, assisting users in quickly correcting compliance vulnerabilities.
[0059] 8. By supporting dynamic field groups and data binding units, it can save and export to local documents, and the whole solution is applicable to different enterprise systems; dynamic field groups (rendering controls according to business rules) and data binding (automatically filling historical data) enhance the adaptability of the solution and can be customized for diverse scenarios (such as technical documents and contract management); the export function maintains compatibility with traditional formats, which facilitates document migration and sharing; the overall solution can be integrated with the enterprise's private knowledge base and supports industry customization (such as manufacturing or legal fields).
[0060] 9. By innovatively integrating interactive form controls deep into the online document processing workflow, the system achieves field-level linkage rules and real-time enterprise data verification through a dynamic form engine (such as connecting to ERP / MES systems). Simultaneously, it combines semantic-level change markers (including national cryptographic SM3 algorithm digital fingerprints and control-level operation records) to achieve refined version traceability and auditing. Its collaborative editing conflict resolution engine significantly improves multi-user collaboration efficiency through control operation locks and differentiated merging strategies (such as forcing the final compliance value for technical parameters and retaining multiple version traces in description text). The hybrid detection engine integrates rule bases and large-scale intelligent model analysis, significantly reducing manual verification costs while ensuring data compliance. Ultimately, this results in a document processing solution with high interactivity, strong traceability, and intelligent verification capabilities.
[0061] While specific embodiments of the present invention have been described above, those skilled in the art should understand that the specific embodiments described are merely illustrative and not intended to limit the scope of the present invention. Equivalent modifications and variations made by those skilled in the art in accordance with the spirit of the present invention should be covered within the scope of protection of the claims of the present invention.
Claims
1. A document online processing method integrating form controls and change tracking, characterized in that: The method comprises the following steps: Step S1, obtaining an uploaded reference document in word format, and parsing the reference document to obtain a document structure comprising a document directory and document content; Step S2, generating a document template in html format comprising a directory area, a text area, and a function area based on the document structure, and configuring a directory function and an interactive form control of the document template; Step S3, performing an editing operation of adding or deleting text content in the text area based on an input document editing instruction, and generating a text identifier for the corresponding text content during the editing operation; Step S4, generating a text note or copying and pasting corresponding text content for the corresponding text content based on an input document auxiliary operation instruction; Step S5, performing a filling operation on the interactive form control in the text area based on an input control filling instruction, and identifying the filling state of the interactive form control; Step S6, performing real-time detection on the text content in the text area by a hybrid detection engine to generate a detection result; Step S7, displaying the text identifier, change record, and detection result in the function area; Step S8, after correcting the text content in the text area based on the detection result in combination with the directory function of the directory area, saving and exporting as a local document.
2. The online document processing method integrating form controls and change tracking as described in claim 1, characterized in that: The step S1 specifically comprises: After identity verification through a visual interface, obtaining an uploaded reference document in word format, and obtaining a document structure comprising at least a document directory and document content by real-time parsing of the reference document through Apache POI; The document content at least comprises text elements, metadata, and form control positions; the text elements at least comprise paragraphs, lists, and tables; the metadata at least comprises styles and fonts; In the step S2, the directory area is located on the left side of the document template, the text area is located in the middle of the document template, and the function area is located on the right side of the document template; The directory function at least comprises directory refreshing, document navigation, and content selection; The interactive form control at least comprises an input box, a selection box, and a check box.
3. The online document processing method integrating form controls and change tracking as described in claim 1, characterized in that: In the step S3, when performing an adding editing operation, a label of an adding line style is wrapped on the text content; when performing a deleting editing operation, a label of a deletion line style is wrapped on the text content; In the step S5, the identification of the filling state of the interactive form control specifically comprises: When the filling state is not filled, the interactive form control is displayed in red; when the filling state is filled, the interactive form control is displayed in yellow.
4. The online document processing method integrating form controls and change tracking as described in claim 1, characterized in that: The step S6 specifically comprises: The document template calls a preset rule library to perform real-time preliminary detection on the text content in the text area through a hybrid detection engine, simultaneously calls a pre-trained large language model to perform real-time deep detection on the text content in the text area based on an input deep detection instruction, and then generates a detection result.
5. The online document processing method integrating form controls and change tracking as described in claim 1, characterized in that: The change record in the step S7 at least includes an operation type, an operation time, a number of words involved, and an operation content.
6. A document online processing system that fuses form controls with change tracking, characterized by: The method comprises the following steps: The document structure analysis module is configured to: After identity verification through a visual interface, the document structure analysis module acquires a reference document in a word format uploaded by a user and analyzes the reference document through Apache POI to obtain a document structure comprising at least a document directory and a document content. The document content comprises at least text elements, metadata, and form control positions. The text elements comprise at least paragraphs, lists, and tables. The metadata comprise at least styles and fonts. The document template generation module is configured to: The directory area is located on the left side of the document template, the text area is located in the middle of the document template, and the function area is located on the right side of the document template. The directory function comprises at least a directory refresh, a document navigation, and a content selection.
7. A document online processing system that fuses form controls with change tracking, as recited in claim 6, wherein: The interactive form control comprises at least an input box, a selection box, and a check box. The editing operation module is configured to: When the editing operation is an addition operation, the editing operation module wraps a newly added line style tag around the text content. When the editing operation is a deletion operation, the editing operation module wraps a deletion line style tag around the text content. The control filling module is configured to: When the filling state is not filled, the control filling module displays the interactive form control in red.
8. A document online processing system that fuses form controls with change tracking, as recited in claim 6, wherein: When the filling state is filled, the control filling module displays the interactive form control in yellow. The text content detection module is configured to: The function area display module is configured to:
9. A document online processing system that fuses form controls with change tracking, as recited in claim 6, wherein: The document export module is configured to: After the text content detection module detects the text content in the text area and generates a detection result, the document export module corrects the text content in the text area based on the detection result, combines the directory function of the directory area, and saves and exports the document as a local document. The document template is called by a hybrid detection engine to perform real-time preliminary detection on the text content of the body area based on a preset rule library, and based on an input deep detection instruction, a pre-trained large language model is called to perform real-time deep detection on the text content of the body area, and then a detection result is generated.
10. A document online processing system that fuses form controls with change tracking, as recited in claim 6, wherein: In the function area display module, the change record at least includes an operation type, an operation time, a number of involved words, and an operation content.