Integrated document processing system and method

The integrated document processing system automates email and document processing, solving the problem of cumbersome operations in existing technologies, improving work efficiency, and ensuring data security and consistency.

CN121808800APending Publication Date: 2026-04-07INSPUR GENERSOFT CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-11-10
Publication Date
2026-04-07

AI Technical Summary

Technical Problem

In the current technology, email and document processing software lack effective integration, which requires users to switch frequently during use, making the operation cumbersome and affecting work efficiency.

Method used

Design an integrated document processing system that interfaces with external systems through an access module, configures document processing rules using a rule engine configuration module, and combines a PDF conversion unit, an electronic signature unit, and an email or fax sending unit to achieve automated document processing, including PDF conversion, electronic signature, and email or fax sending.

Benefits of technology

It achieves automated integration of document processing functions, reduces manual operation, improves operational efficiency, and solves the problem of formatting errors in PDF conversion through OCR engine and layout analysis, ensuring data security and consistency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121808800A_ABST
    Figure CN121808800A_ABST
Patent Text Reader

Abstract

The invention discloses an integrated document processing system and method, and the system comprises an access module which is configured to be used for achieving the butt joint with at least one peripheral system and data encryption processing; the rule engine configuration module is configured to be used for configuring a document processing rule based on a docking demand of a peripheral system; the rule analysis module is configured to be used for analyzing the received configuration rule; the document processing module is configured to be used for automatically carrying out PDF (Portable Document Format) conversion, electronic signature and / or mail and fax sending operation on the document based on the analyzed configuration rule; and the monitoring management module is configured to be used for performing full-flow monitoring on the processing flow of the document and providing a document real-time processing flow query function and an operation failure early warning function. According to the invention, automatic PDF conversion, stamping and mail and fax sending functions of the document can be realized, manual operation and intervention are reduced, and document processing quality and operation efficiency are improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of document processing technology, and in particular to an integrated document processing system and method. Background Technology

[0002] The statements in this section are merely background information related to the present invention and do not necessarily constitute prior art.

[0003] In today's digital office era, document processing and email processing have become indispensable parts of daily business operations and individual work. Although mainstream email and document processing software perform well in their respective fields, they are mostly independent systems lacking effective integration. Users often need to frequently switch between email clients and document processing software, leading to low work efficiency. For example, if a user needs to electronically stamp an original document before sending it via email, the operator must affix the electronic stamp to the original document using document processing software, and then send the electronically stamped document through the email client. This lack of effective functional integration and automation makes the process cumbersome. Summary of the Invention

[0004] To address the aforementioned issues, this invention proposes an integrated document processing system and method that deeply integrates email management, document processing, and collaboration tools, providing a unified user interface and enabling functions such as automatic PDF conversion, document stamping, and email or fax sending. This reduces manual operation and intervention, and improves document processing quality and operational efficiency.

[0005] In some implementations, the following technical solutions are adopted: An integrated document processing system includes: The access module is configured to interface with at least one peripheral system and perform data encryption processing. The rules engine configuration module is configured to configure document processing rules based on the integration requirements of external systems; The rule parsing module is configured to parse the received configuration rules; The document processing module is configured to automatically perform PDF conversion, electronic signature, and / or email and fax sending operations based on the parsed configuration rules. The monitoring and management module is configured to monitor the entire document processing flow, providing real-time document processing flow query and operation failure alerts.

[0006] As a further solution, the rule engine configuration module configures document processing rules, including: whether to expedite processing, whether to convert to PDF, whether to add a watermark, whether to use electronic stamping, electronic stamping method, electronic stamp number, keywords, stamped page number, location text sequence number, electronic stamping location, email subject, recipient email address, and email content.

[0007] As a further embodiment, the document processing module includes: The PDF conversion unit is configured to convert the original document into PDF format; The electronic signature unit is configured to electronically sign received documents according to the configured electronic stamping method and stamping position. The email or fax sending unit is configured to send emails or faxes according to the configured subject, content, and recipient.

[0008] As a further solution, the PDF conversion unit integrates an OCR engine to recognize all text in the converted PDF document, obtaining the original, coordinate-based text blocks; then, the text blocks are analyzed for layout, dividing the page into different regions and determining the logical relationships between these regions; finally, key metadata is extracted from different regions and verified according to predetermined rules. The text blocks, layout structure, and metadata of the converted PDF document are compared with the original PDF document, and any differences are repaired.

[0009] As a further step, the process of correcting the discrepancies includes: Template matching is used to complete missing titles, text and charts are re-associated based on semantic similarity, and table structure is reconstructed using table line detection; PDF conversion quality is judged by consistency scoring. The consistency score is calculated by scoring text similarity and layout similarity separately, and then weighted and summed to obtain the final consistency score.

[0010] As a further solution, the electronic signature unit automatically determines the final electronic signature position by determining the preset keyword position; and dynamically obtains a string composed of username, time and keywords, and adds the string as a dynamic watermark at the same time as the electronic signature action is completed.

[0011] As a further solution, the document processing module is also configured to use a preset sensitive word library, use NLP regular expression matching technology to identify sensitive fields, obtain the precise coordinates of the sensitive fields on the page, and use an irreversible overwrite method to blur the content of the sensitive fields to ensure that the original information cannot be recovered.

[0012] In other embodiments, the following technical solutions are adopted: An integrated document processing method includes: The peripheral system generates document processing rules into a TXT file based on the preset interface standards, and packages it together with the document to generate an encrypted compressed package, which is then placed in a fixed shared directory through the front-end machine; The system periodically scans encrypted compressed files in the shared directory, decompresses the files according to encryption and decryption rules, verifies and parses the document processing rules after decompression, and stores the original documents to be processed. The document processing rules include: whether to expedite processing, whether to convert to PDF, whether to add a watermark, whether to use electronic stamping, the method of electronic stamping, the electronic stamp number, keywords, the stamp page number, the location text sequence number, the electronic stamp location, the email subject, the recipient's email address, and the email content. After the document processing rules are verified and parsed, the corresponding operations are performed on the original document according to the document processing rules, and the operation execution process is monitored, and warnings are issued for operation failures; the operations include PDF conversion, electronic signature and / or email and fax sending operations; After the operation is completed, the external system queries the document processing results by calling the access interface.

[0013] As a further solution, the original document is processed according to document processing rules. The specific process includes: The system periodically scans for pending unconverted PDF document commands. If any are found, the corresponding document is converted to PDF. The document status is then updated according to the next task. The system periodically scans for documents that have completed PDF conversion or do not require PDF conversion and are in the "awaiting stamp" status. If such documents are found, the system stamps them, determining whether to use location stamping or keyword stamping based on document processing rules. It then applies the stamp based on the keywords or location coordinates and stamp number specified in the document processing rules, and adds a watermark as required by the rules. The system also modifies the document status according to the next task. The system periodically scans for documents that are in the pending email or fax sending status. If such documents are found, they are sent via email or fax. If different documents in a batch have the same recipient, the email or fax is sent as a single email or fax.

[0014] In other embodiments, the following technical solutions are adopted: A terminal device includes a processor and a memory, the processor for implementing instructions; the memory for storing multiple instructions adapted to be loaded by the processor and executed by the integrated document processing method described above.

[0015] Compared with the prior art, the beneficial effects of the present invention are: (1) This invention integrates PDF conversion, electronic signature and email sending functions together. Through a pre-configured rule engine, it realizes automatic PDF conversion, stamping and email and fax sending of documents, reducing manual operation and intervention, and improving document processing quality and operation efficiency.

[0016] (2) The present invention integrates an OCR engine, layout analysis and metadata verification during the PDF conversion process, performs structural comparison and repair before and after conversion, solves the problems of format disorder, font loss and image offset that often occur during PDF conversion, especially in automated scenarios where manual intervention is not possible.

[0017] (3) The present invention establishes a standard docking rule engine and transmits data based on the AES256 encryption mechanism of data packet compression, ensuring dual security of "static data" and "data in transit", and enabling different peripheral systems to use docking seamlessly, simplifying docking difficulty and complexity; avoiding the problems of complex operation process and inconsistent docking standards caused by the traditional solution requiring separate docking with PDF conversion platform, signature platform and email sending platform.

[0018] Other features and advantages of the invention will be set forth in part in the description which follows, and in part will be obvious from the description, or may be learned by practice of the invention. Attached Figure Description

[0019] Figure 1 This is a schematic diagram of the integrated document processing system structure in an embodiment of the present invention; Figure 2 This is a flowchart of the integrated document processing method in an embodiment of the present invention; Figure 3 This is an example diagram of the monitoring and management module interface in an embodiment of the present invention. Detailed Implementation

[0020] It should be noted that the following detailed description is illustrative and intended to provide further explanation of the invention. Unless otherwise specified, all technical and scientific terms used in this invention have the same meaning as commonly understood by one of ordinary skill in the art to which this invention pertains.

[0021] It should be noted that the terminology used herein is for the purpose of describing particular embodiments only and is not intended to limit the scope of exemplary embodiments according to the invention. As used herein, the singular form is intended to include the plural form as well, unless the context clearly indicates otherwise. Furthermore, it should be understood that when the terms "comprising" and / or "including" are used in this specification, they indicate the presence of features, steps, operations, devices, components, and / or combinations thereof.

[0022] Example 1 In one or more embodiments, an integrated document processing system is disclosed, combining... Figure 1 Mainly includes: (1) The access module is configured to enable interface with at least one peripheral system and data encryption processing.

[0023] In this embodiment, the peripheral system may be an OA system (office automation system), an ERP system (enterprise resource planning system), a CRM system (customer relationship management system), a financial system, or other core business systems.

[0024] This embodiment of the integrated document processing system allows for customized rule configuration based on different peripheral systems. Specifically, it specifies which configuration items need to be included in the rules when interfacing with different peripheral systems. Therefore, the integrated document processing system can interface with various peripheral systems. Data interaction between the peripheral system and the integrated document processing system can be achieved through various trigger sources such as file uploads, API calls, or scheduled tasks. Transmission is based on AES256 encryption of data packets, ensuring dual security for both "static data" and "data in transit," and enabling seamless integration with peripheral systems, simplifying the difficulty and complexity of the integration process.

[0025] (2) The rule engine configuration module is configured to configure document processing rules based on the interface requirements of the external system.

[0026] In this embodiment, the document processing rules include configuration of rule data items such as PDF conversion, stamping, email sending, and faxing. For example, the configuration of data items and rules includes: whether to expedite processing, whether to convert to PDF, whether to stamp, whether to add a watermark, electronic stamping method (location stamping, keyword stamping, seal across the seam), electronic seal number, stamping method (fixed location stamping, keyword stamping), keywords, stamped page number, location text sequence number, X and Y coordinates of electronic stamping location, email subject, recipient email address, and email content.

[0027] This embodiment's rule engine configuration module provides a drag-and-drop rule editor on the web, supporting conditional statements (IF-THEN), loops, priority settings, and variable binding; it also supports hot deployment of rules, enabling rules to take effect in real time without restarting the application.

[0028] (3) The rule parsing module is configured to parse the received configuration rules.

[0029] Specifically, the rule parsing module parses the received configuration rules and then performs rule verification, including whether each rule attribute is required, attribute length, and related technical verifications, such as whether the stamp number must exist in the system and whether the transmitted dictionary code value does not exist in the system.

[0030] After verification, the parsed specific processing rules are sent to the document processing module so that the document processing module can perform relevant processing on the document according to the parsed rules.

[0031] (3) The document processing module is configured to automatically perform PDF conversion, electronic signature and / or email and fax sending operations based on the configuration rules obtained from parsing.

[0032] In this embodiment, the document processing module specifically includes: (3-1) A PDF conversion unit is configured to convert the original document into PDF format; In this embodiment, after parsing the configuration rules, the PDF conversion unit will periodically scan for unprocessed PDF document tasks. If such tasks exist, the PDF conversion process will be performed on the documents in those tasks.

[0033] The PDF conversion unit integrates an OCR engine to recognize all text in the converted PDF document, obtaining the original, coordinate-based text blocks. Then, it performs layout analysis on the text blocks, dividing the page into different regions and determining the logical relationships between these regions. Finally, it extracts key metadata from different regions and verifies it according to predetermined rules. Specifically, an OCR engine converts visual elements (including scanned images and digital text) on a PDF page into machine-readable text blocks with precise location information. Then, layout analysis organizes the disorganized text blocks into logically meaningful regions (such as headers, footers, titles, body text, and tables), and understands the relationships between these regions (such as reading order and hierarchical structure). Finally, from the analyzed layout regions, key metadata fields (such as contract number, amount, and date) are located and extracted.

[0034] The validation of metadata mainly includes the following: ① Existence check: Check whether key fields (such as contract number and amount) have been successfully extracted and cannot be empty.

[0035] ② Format validation: Use regular expressions to validate whether the field format is correct (such as date format, numbering rules).

[0036] ③ Logical consistency check: Compare different fields within the document, for example: "Effective Date" must be earlier than "Expiration Date".

[0037] ④ Value range verification: Check whether the numerical or enumerated value is within an acceptable range (e.g., "Amount" > 0).

[0038] After verification, the text blocks, layout structure, and metadata of the PDF-converted document are compared with the original PDF document, and any differences are repaired. The specific repair process includes: using template matching to complete missing titles, re-associating text and charts based on semantic similarity, and reconstructing table structures using table line detection, etc.

[0039] Finally, the consistency score is used to determine the quality of the PDF conversion. In this embodiment, the consistency score can be scored from two dimensions: text similarity and layout similarity. The scores are then weighted and summed to obtain the final consistency score. If the consistency score is greater than a set threshold (e.g., 95%), the quality of the converted PDF document is determined to meet the requirements.

[0040] It should be noted that the scoring of text similarity and layout similarity is implemented using existing technologies. For example, text similarity can be achieved by extracting text blocks from both the original and converted PDF documents, concatenating all text blocks into a string in reading order, converting the string into a word frequency vector, and calculating the cosine similarity between the word frequency vectors of the original and converted PDF documents to obtain the text similarity score. Layout similarity can be achieved by matching text blocks from both the original and converted PDF documents, calculating the Euclidean distance between the center points of two matching text blocks, averaging the Euclidean distances between all matching text blocks, and then normalizing the average Euclidean distance to obtain the layout similarity score.

[0041] It should also be noted that the weights of text similarity and layout similarity can be set based on actual needs, for example, setting the weight of text similarity to 60% and the weight of layout similarity to 40%.

[0042] By comparing and repairing the structure of documents before and after conversion, this method solves common problems in PDF conversion such as formatting errors, font loss, and image offset, ensuring a high degree of restoration of semantics, layout, and readability. It is especially suitable for automated scenarios without human intervention.

[0043] (3-2) Electronic signature unit, configured to electronically sign received documents according to the configured electronic stamping method and stamping position; In this embodiment, the electronic signature unit periodically scans for documents that have completed PDF conversion or do not require PDF conversion and whose stamping status is pending. If such documents exist, the unit stamps the documents in the task, determines whether to stamp based on location or keywords according to the document processing rules, and stamps based on the keywords or location coordinates and the stamping number in the rules.

[0044] In this embodiment, the electronic signature unit automatically determines the final electronic signature position by determining the preset keyword position. Specifically, PDFBox technology (an open-source Java library specifically for processing PDF documents) is used to parse the PDF text content and layout, extract the text content and coordinate information of each page, and use regular expression fuzzy matching to determine the coordinates (X, Y) of the keyword in the document and the size of the text box. If the keyword is "stamping location", the signature is placed at a fixed offset position (such as X+50, Y+10) to its right or below. If there is a blank area near the keyword, an image processing algorithm (such as OpenCV) is used to detect the blank rectangular area to avoid covering the text.

[0045] At the same time, the electronic signature unit dynamically obtains the username, time, and keywords to form a string. As the electronic signature action is completed, it uses the PDF library iText to draw semi-transparent text on a virtual layer, sets the font (such as SimSun), 45° slant, low opacity (0.2), and gray fill, and covers the entire page or a specified area. The watermark layer is merged into each page of the original document as the underlying background to ensure that it is inseparable, thus adding the string as a dynamic watermark.

[0046] The electronic signature unit supports open-source integration solutions for the SM2 / SM3 national cryptographic algorithms, ensuring data security.

[0047] (3-3) Email or fax sending unit, configured to send emails or faxes according to the configured subject, content and recipient.

[0048] In this embodiment, the email or fax sending unit will periodically scan for tasks where the document email sending status is pending and (stamping completed or (no stamping required and PDF conversion completed) or (no stamping required and no PDF conversion required)). If such tasks exist, the email or fax sending process will be performed. If the recipients are the same in a batch, the documents will be merged into one email or fax for sending (i.e., the email or fax contains multiple attachments). The document processing module system uses a timer polling mechanism, such as scanning pending tasks every specified time interval (e.g., 1 minute), and supports concurrent processing of pending tasks from multiple external systems through a thread pool. This enables more efficient automated collaborative operations based on the rule engine, including PDF conversion, document stamping, document email sending, and fax sending, reducing manual intervention.

[0049] As an optional implementation, the document processing module is also equipped with a preset sensitive word library, which supports the automatic identification and blocking of sensitive information. Specifically, the document processing module can use NLP regular expression matching technology to identify sensitive fields, including: ID card number, mobile phone number, bank account number, email address, etc., and also supports custom sensitive word library.

[0050] Sensitive information (such as "ID card" followed by 18 digits) is identified by combining contextual semantic analysis, and then the precise coordinates (rectangular area) of the sensitive text on the page are obtained based on PDFBox.

[0051] When masking sensitive information, an irreversible overlay method can be used, which involves applying Gaussian blur to the image area in its original location to ensure that the original information cannot be recovered. Field-level masking (e.g., replacing a phone number with 138****8888) or masking entire areas can be achieved. Structural validation is performed before and after masking to prevent layout errors, and a masking log (including time, operator, and masking location) is generated for auditing purposes.

[0052] (4) Monitoring and management module, which is configured to monitor the entire document processing process, and provide real-time document processing process query and operation failure warning functions.

[0053] In this embodiment, the monitoring and management module provides real-time document processing workflow monitoring, querying, and resending functions, and can monitor the entire process results from PDF conversion to stamping and email sending. Figure 3 An example interface of the monitoring and management module is provided. Additionally, due to differences in document formats, document processing from external systems may fail, such as PDF conversion failure or printing failure. The monitoring and management module supports an early warning mechanism; if a processing failure occurs, it will automatically send an alert to the responsible personnel of the external systems and the operations and maintenance team.

[0054] The monitoring and management module also provides a RESTful query interface, which external systems can call to query the document processing results.

[0055] As an optional implementation, the integrated document processing system in this embodiment also includes: a user management module, a public management module, and a middleware management module. The user management module is mainly responsible for functions such as system user creation, menu authorization, and role authorization. The public management module is used to support functions such as standard dictionary configuration, process definition, and timer configuration. The middleware management module is used to support middleware platform integration configuration, including the maintenance of basic information such as APIKey, IP, port, and interface.

[0056] This embodiment of the integrated document processing system integrates functions such as PDF conversion, electronic signature, and email sending. Through a pre-configured rule engine, it realizes automatic PDF conversion, stamping, and email and fax sending of documents, reducing manual operation and intervention, and improving document processing quality and operational efficiency.

[0057] Example 2 In one or more embodiments, an integrated document processing method is disclosed, combining... Figure 2 Specifically, it includes the following process: The peripheral system generates document processing rules into a TXT file based on the preset interface standards, and packages it together with the document to generate an encrypted compressed package, which is then placed in a fixed shared directory through the front-end machine; The system periodically scans encrypted compressed files in the shared directory, decompresses the files according to encryption and decryption rules, verifies and parses the document processing rules after decompression, and stores the original documents to be processed. The document processing rules include: whether to expedite processing, whether to convert to PDF, whether to add a watermark, whether to use electronic stamping, the method of electronic stamping, the electronic stamp number, keywords, the stamp page number, the location text sequence number, the electronic stamp location, the email subject, the recipient's email address, and the email content. After the document processing rules are verified and parsed, the corresponding operations are performed on the original document according to the document processing rules, and the operation execution process is monitored, and warnings are issued for operation failures; the operations include PDF conversion, electronic signature and / or email and fax sending operations; After the operation is completed, the external system queries the document processing results by calling the access interface.

[0058] This involves performing corresponding operations on the original document according to document processing rules. The specific process includes: The system periodically scans for pending unconverted PDF document commands. If any are found, the corresponding document is converted to PDF. The document status is then updated according to the next task. The system periodically scans for documents that have completed PDF conversion or do not require PDF conversion and are in the "awaiting stamp" status. If such documents are found, the system stamps them, determining whether to use location stamping or keyword stamping based on document processing rules. It then applies the stamp based on the keywords or location coordinates and stamp number specified in the document processing rules, and adds a watermark as required by the rules. The system also modifies the document status according to the next task. The system periodically scans for documents that are in the pending email or fax sending status. If such documents are found, they are sent via email or fax. If different documents in a batch have the same recipient, the email or fax is sent as a single email or fax.

[0059] The specific implementation of the above process is exactly the same as in Example 1, and will not be described in detail again.

[0060] Example 3 In one or more embodiments, a terminal device is disclosed, comprising a processor and a memory. The processor is used to implement instructions; the memory is used to store multiple instructions adapted to be loaded by the processor and executed by the integrated document processing method described in Embodiment 1. Specifically, the process includes the following steps: The peripheral system generates document processing rules into a TXT file based on the preset interface standards, and packages it together with the document to generate an encrypted compressed package, which is then placed in a fixed shared directory through the front-end machine; The system periodically scans encrypted compressed files in the shared directory, decompresses the files according to encryption and decryption rules, verifies and parses the document processing rules after decompression, and stores the original documents to be processed. The document processing rules include: whether to expedite processing, whether to convert to PDF, whether to add a watermark, whether to use electronic stamping, the method of electronic stamping, the electronic stamp number, keywords, the stamp page number, the location text sequence number, the electronic stamp location, the email subject, the recipient's email address, and the email content. After the document processing rules are verified and parsed, the corresponding operations are performed on the original document according to the document processing rules, and the operation execution process is monitored, and warnings are issued for operation failures; the operations include PDF conversion, electronic signature and / or email and fax sending operations; After the operation is completed, the external system queries the document processing results by calling the access interface.

[0061] This involves performing corresponding operations on the original document according to document processing rules. The specific process includes: The system periodically scans for pending unconverted PDF document commands. If any are found, the corresponding document is converted to PDF. The document status is then updated according to the next task. The system periodically scans for documents that have completed PDF conversion or do not require PDF conversion and are in the "awaiting stamp" status. If such documents are found, the system stamps them, determining whether to use location stamping or keyword stamping based on document processing rules. It then applies the stamp based on the keywords or location coordinates and stamp number specified in the document processing rules, and adds a watermark as required by the rules. The system also modifies the document status according to the next task. The system periodically scans for documents that are in the pending email or fax sending status. If such documents are found, they are sent via email or fax. If different documents in a batch have the same recipient, the email or fax is sent as a single email or fax.

[0062] It should be understood that in this embodiment, the processor can be a central processing unit (CPU), or it can be other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor can be a microprocessor or any conventional processor, etc.

[0063] Memory may include read-only memory and random access memory, and provides instructions and data to the processor. A portion of memory may also include non-volatile random access memory. For example, memory may also store information about the device type.

[0064] In the implementation process, each step of the above method can be completed by the integrated logic circuits in the processor hardware or by software instructions.

[0065] While the specific embodiments of the present invention have been described above in conjunction with the accompanying drawings, this is not intended to limit the scope of protection of the present invention. Those skilled in the art should understand that various modifications or variations that can be made by those skilled in the art without creative effort based on the technical solutions of the present invention are still within the scope of protection of the present invention.

Claims

1. An integrated document processing system, characterized in that, include: The access module is configured to interface with at least one peripheral system and perform data encryption processing. The rules engine configuration module is configured to configure document processing rules based on the integration requirements of external systems; The rule parsing module is configured to parse the received configuration rules; The document processing module is configured to automatically perform PDF conversion, electronic signature, and / or email and fax sending operations based on the parsed configuration rules. The monitoring and management module is configured to monitor the entire document processing flow, providing real-time document processing flow query and operation failure alerts.

2. The integrated document processing system as described in claim 1, characterized in that, The rule engine configuration module configures document processing rules, including: whether to expedite processing, whether to convert to PDF, whether to add a watermark, whether to use electronic stamping, electronic stamping method, electronic stamp number, keywords, stamped page number, location text sequence number, electronic stamping location, email subject, recipient email address, and email content.

3. The integrated document processing system as described in claim 1, characterized in that, The document processing module includes: The PDF conversion unit is configured to convert the original document into PDF format; The electronic signature unit is configured to electronically sign received documents according to the configured electronic stamping method and stamping position. The email or fax sending unit is configured to send emails or faxes according to the configured subject, content, and recipient.

4. The integrated document processing system as described in claim 3, characterized in that, The PDF conversion unit integrates an OCR engine to recognize all text in the converted PDF document, obtaining original, coordinate-based text blocks; then, it performs layout analysis on the text blocks, dividing the page into different regions and determining the logical relationships between these regions; finally, it extracts key metadata from different regions and verifies it according to predetermined rules. The text blocks, layout structure, and metadata of the converted PDF document are compared with the original PDF document, and any differences are repaired.

5. An integrated document processing system as described in claim 4, characterized in that, The process of repairing discrepancies includes: Template matching is used to complete missing titles, text and charts are re-associated based on semantic similarity, and table structure is reconstructed using table line detection; PDF conversion quality is judged by consistency scoring. The consistency score is calculated by scoring text similarity and layout similarity separately, and then weighted and summed to obtain the final consistency score.

6. An integrated document processing system as described in claim 3, characterized in that, The electronic signature unit automatically determines the final electronic signature position by determining the preset keyword position; and dynamically obtains the username, time and keywords to form a string, and adds the string as a dynamic watermark at the same time as the electronic signature action is completed.

7. An integrated document processing system as described in claim 1, characterized in that, The document processing module is also configured to use a preset sensitive word library, use NLP regular expression matching technology to identify sensitive fields, obtain the precise coordinates of the sensitive fields on the page, and use an irreversible overwrite method to blur the content of the sensitive fields to ensure that the original information cannot be recovered.

8. An integrated document processing method, characterized in that, include: The peripheral system generates document processing rules into a TXT file based on the preset interface standards, and packages it together with the document to generate an encrypted compressed package, which is then placed in a fixed shared directory through the front-end machine; The system periodically scans encrypted compressed files in the shared directory, decompresses the files according to encryption and decryption rules, verifies and parses the document processing rules after decompression, and stores the original documents to be processed. The document processing rules include: whether to expedite processing, whether to convert to PDF, whether to add a watermark, whether to use electronic stamping, the method of electronic stamping, the electronic stamp number, keywords, the stamp page number, the location text sequence number, the electronic stamp location, the email subject, the recipient's email address, and the email content. After the document processing rules are verified and parsed, the corresponding operations are performed on the original document according to the document processing rules, and the operation execution process is monitored, and warnings are issued for operation failures; the operations include PDF conversion, electronic signature and / or email and fax sending operations; After the operation is completed, the external system queries the document processing results by calling the access interface.

9. The integrated document processing method as described in claim 8, characterized in that, The original document is processed according to the document processing rules. The specific process includes: The system periodically scans for pending unconverted PDF document commands. If any are found, the corresponding document is converted to PDF. The document status is then updated according to the next task. The system periodically scans for documents that have completed PDF conversion or do not require PDF conversion and are in the "awaiting stamp" status. If such documents are found, the system stamps them, determining whether to use location stamping or keyword stamping based on document processing rules. It then applies the stamp based on the keywords or location coordinates and stamp number specified in the document processing rules, and adds a watermark as required by the rules. The system also modifies the document status according to the next task. The system periodically scans for documents that are in the pending email or fax sending status. If such documents are found, they are sent via email or fax. If different documents in a batch have the same recipient, the email or fax is sent as a single email or fax.

10. A terminal device comprising a processor and a memory, the processor for implementing instructions; the memory for storing multiple instructions, characterized in that, The instructions are adapted to be loaded by a processor and executed as the integrated document processing method according to any one of claims 8-9.