A control method and device of an electronic file, an electronic device and a medium
By writing the tracking interface link into the header or footer configuration file of electronic documents and modifying its access mode, the problem of low efficiency in electronic document tracking and tracing is solved, realizing efficient tracking and widespread application without the user's awareness.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- JIANGSU MANYUN SOFTWARE TECH CO LTD
- Filing Date
- 2022-01-26
- Publication Date
- 2026-04-17
AI Technical Summary
Existing technologies for tracking and tracing electronic documents are extremely inefficient, have poor user awareness, and have limited application scenarios.
Write a tracking interface link in the configuration file of the header or footer of the electronic document, modify its access mode to allow external references, compress the content after writing the tracking interface link, and track the target electronic document based on the received access information.
It improves the efficiency of file tracking and tracing without the user noticing, and is suitable for various scenarios and all versions of Office and WPS software.
Smart Images

Figure CN114416663B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of computer technology, and in particular to a method, apparatus, electronic device, and medium for controlling electronic documents. Background Technology
[0002] Due to issues such as copyright and information security, it is often necessary to control the flow of electronic documents. For example, it is important to prevent important or confidential electronic documents from being transferred to external parties, especially to competitors, as this could lead to unpredictable disasters for the company.
[0003] Currently, electronic document tracking is achieved by writing VBA functions. VBA (Visual Basic for Applications) is a macro language of Visual Basic that can run on Microsoft Office software. It only requires obtaining the IP address in the Win32_NetworkAdapterConfiguration class, and document tracking can be achieved when the electronic document is sent to the target link.
[0004] However, when writing VBA functions for electronic document tracking, Office does not enable macros by default. Users need to enable macros when opening Office files, and Office will display a warning message suggesting that macros should not be enabled. Furthermore, the free version of WPS does not have macro functionality. Therefore, for users, unless macros are enabled or the free version of WPS is used to view the electronic document, the document's progress cannot be tracked. Consequently, this method is extremely inefficient for tracking and tracing electronic documents, has poor user awareness, and has limited application scenarios. Summary of the Invention
[0005] This invention provides a method, apparatus, electronic device, and medium for controlling electronic documents, in order to solve the problems of extremely low efficiency, poor user non-perceptibility, and narrow application scenarios in the prior art for tracking and tracing electronic documents.
[0006] According to one aspect of the present invention, a method for controlling electronic documents is provided, comprising:
[0007] In response to the fact that the decompressed content of the electronic file contains a configuration file with a header or footer, a tracking interface link is written into the configuration file with the header or footer, and the access mode of the tracking interface link is modified to allow external references;
[0008] The decompressed content written to the tracking interface link is compressed to obtain the target electronic file;
[0009] The target electronic document is tracked based on the received access information to the tracking interface link.
[0010] According to another aspect of the present invention, a control device for electronic documents is provided, comprising:
[0011] The tracking interface link writing module is used to write a tracking interface link into the header or footer configuration file in response to the decompressed content of the electronic file, and modify the access mode of the tracking interface link to allow external reference.
[0012] The file compression module is used to compress the decompressed content written to the tracking interface link to obtain the target electronic file;
[0013] The file tracking module is used to track the target electronic file based on the received access information of the tracking interface link.
[0014] According to another aspect of the present invention, an electronic device is provided, the electronic device comprising:
[0015] At least one processor; and
[0016] A memory communicatively connected to the at least one processor; wherein,
[0017] The memory stores a computer program that can be executed by the at least one processor, which enables the at least one processor to perform the electronic document control method according to any embodiment of the present invention.
[0018] According to another aspect of the present invention, a computer-readable storage medium is provided, the computer-readable storage medium storing computer instructions for causing a processor to execute and implement the electronic document control method according to any embodiment of the present invention.
[0019] The technical solution of this invention writes the tracking interface link into the configuration file of the header or footer of the decompressed electronic file. Once the electronic file is triggered, the access information of the tracking interface link can be obtained, thereby tracking the electronic file based on the access information. This improves the efficiency of file tracking and tracing, and is imperceptible to the user, making it universally applicable.
[0020] It should be understood that the description in this section is not intended to identify key or essential features of the embodiments of the present invention, nor is it intended to limit the scope of the invention. Other features of the invention will become readily apparent from the following description. Attached Figure Description
[0021] To more clearly illustrate the technical solutions in the embodiments of the present invention, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0022] Figure 1 This is a flowchart of an electronic document control method provided in Embodiment 1 of the present invention;
[0023] Figure 2a This is a flowchart of an electronic document control method provided according to Embodiment 2 of the present invention;
[0024] Figure 2b This is a schematic diagram of the decompressed contents of a Word file that does not include a footer configuration file in Embodiment 2 of the present invention;
[0025] Figure 2c This is a schematic diagram of the decompressed contents of a Word file after creating a footer configuration file in Embodiment 2 of the present invention;
[0026] Figure 3 This is a flowchart of an electronic document control method provided in Embodiment 3 of the present invention;
[0027] Figure 4 This is a schematic diagram of the structure of an electronic document control device according to Embodiment 4 of the present invention;
[0028] Figure 5 This is a schematic diagram of the structure of an electronic device that implements the electronic document control method of the present invention. Detailed Implementation
[0029] To enable those skilled in the art to better understand the present invention, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings of the embodiments of the present invention. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort should fall within the scope of protection of the present invention.
[0030] It should be noted that the terms "first," "second," etc., in the specification, claims, and accompanying drawings of this invention are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of the invention described herein can be implemented in orders other than those illustrated or described herein. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover a non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.
[0031] Example 1
[0032] Figure 1 This is a flowchart illustrating an electronic document control method according to Embodiment 1 of the present invention. This embodiment is applicable to situations involving the management and control of important electronic documents, such as tracking and tracing their origin. The method can be executed by an electronic document control device, which can be implemented in hardware and / or software and configured in an electronic device, such as a computer or server. Figure 1 As shown, the method includes:
[0033] S110. In response to the fact that the decompressed content of the electronic document contains a configuration file with a header or footer, write a tracking interface link in the configuration file with the header or footer, and modify the access mode of the tracking interface link to allow external references.
[0034] The electronic files can be any type of file, such as Word documents, Excel files, or PowerPoint files. For important electronic files that require management and control, first decompress them to obtain their contents. If the decompressed contents contain header or footer configuration files, then add a tracking interface link to the header or footer configuration file and modify the access mode of the tracking interface link to allow external references.
[0035] S120. Compress the decompressed content after writing to the trace interface to obtain the target electronic file.
[0036] The target electronic file obtained after writing the tracking interface link and recompressing it has the same content as the previous electronic file. Moreover, the tracking interface link is imperceptible to users who view the electronic file. That is, although the tracking interface link is written in the configuration file in the header or footer, users will not see the tracking interface link after opening the target electronic file.
[0037] S130. Based on the received access information for the tracking interface link, track the target electronic document.
[0038] The tracking interface link can be the server address used to control electronic files. When the target electronic file is opened, the tracking interface link is triggered, and the server can receive access information for the tracking interface link. This access information carries information related to the user who opened the target electronic file and the network to which they belong. Therefore, the target electronic file can be tracked through this access information.
[0039] The technical solution of this invention, by writing the tracking interface link into the configuration file of the header or footer of the decompressed electronic file, allows access information to be obtained once the electronic file is triggered. This access information enables tracking of the electronic file, improving the efficiency of file tracking and tracing. Moreover, this process is seamless for the user, requiring no user intervention, and can be widely applied in various scenarios.
[0040] Example 2
[0041] Figure 2a This is a flowchart of an electronic document control method provided in Embodiment 2 of the present invention. This embodiment further limits the above embodiments. Figure 2a As shown, the method includes:
[0042] S210. Decompress the electronic file and obtain the decompressed contents.
[0043] S220. Determine whether the decompressed contents of the electronic file contain a header or footer configuration file. If the determination is no, execute S230 and then S240; otherwise, execute S240 directly.
[0044] Taking a Word document as an example, where the configuration file is a footer configuration file, we can check if the directory-type file ([Content_Type].xml file) in the unzipped contents contains a reference to the footer attribute. If the check fails, it means the unzipped contents of the Word document do not contain a footer configuration file; otherwise, it means the unzipped contents of the Word document contain a footer configuration file. If the Word document does not contain a footer configuration file, its unzipped contents will look like this: Figure 2b As shown.
[0045] S230. Create a configuration file for the header or footer in the unzipped contents.
[0046] Specifically, if the extracted contents of a Word file do not include a footer configuration file, you can create one using the following method. The extracted contents after creating the footer configuration file will look like this: Figure 2c As shown:
[0047] (1) Create three new files: footer1.xml, endnotes.xml, and footnotes.xml in the word folder within the unzipped contents;
[0048] (2) Write the footer attribute information in the footer1.xml, endnotes.xml and footnotes.xml files respectively;
[0049] (3) In the document.xml.rels file under the folder representing the relation index (word\_rels\ folder) in the unzipped content, add the index information of the footer1.xml file, endnotes.xml file and footnotes.xml file respectively;
[0050] (4) In the document.xml file under the word folder, add an index link to the attribute information of the footer of the document.xml.rels file (the footer attribute of document.xml.rels);
[0051] (5) Add footer attribute information to the settings.xml file in the word folder.
[0052] It should be noted that this embodiment only creates the header or footer configuration file; it does not create the actual content displayed in the header or footer of the electronic document. When the user opens the electronic document, they will still see the content displayed in the header or footer before its creation. Simultaneously, writing a tracking interface link into the header and footer configuration files of the electronic document can achieve the same technical effect.
[0053] S240. Write the tracking interface link in the header or footer configuration file and change the access mode of the tracking interface link to allow external references.
[0054] Using a Word document as an example, and a footer configuration file as the example, the footer configuration file includes footer1.xml.rels and footer1.xml. That is, the tracking interface link needs to be written in both footer1.xml.rels and footer1.xml files, and its access mode needs to be set to allow external access. This ensures that the tracking interface link can be accessed after the file is triggered, and the stability of the written tracking interface link is enhanced, thus ensuring that the method can be implemented normally.
[0055] S250. Compress the decompressed content after linking the write tracking interface to obtain the target electronic file.
[0056] S260. Obtain the IP address of the access tracing interface link from the received access information of the tracing interface link, and determine the network and location of the access tracing interface link based on the IP address.
[0057] The access information for the tracking interface link carries the current IP address of the device accessing the link, which can be obtained by parsing the access information. Based on the IP address, the network and location accessing the tracking interface link can be determined, thus enabling the tracking function. For example, if the network or location corresponding to the IP address is different from the inherent network or location of the company or individual to whom the electronic document belongs, then it can be confirmed that the electronic document has been transferred externally and requires appropriate processing.
[0058] Furthermore, electronic documents can be traced. Specifically, the tracking interface link must include at least the owner of the target electronic document. For example, whoever created the target electronic document within the company, or who has the right to use the target electronic document, is the owner of the document. The owner's unique identification information can be carried in the tracking interface link. Consequently, when an electronic document is transferred externally, the owner's information can be obtained from the access information. Based on this information, the owner can be identified, and the reason for the document's transfer can be understood, thus achieving the traceability function.
[0059] The technical solution of this invention, by writing the tracking interface link into the configuration file of the header or footer of the decompressed electronic file, allows access information to the tracking interface link to be obtained once the electronic file is triggered. This enables tracking and tracing of the electronic file without the user's knowledge, improving the efficiency of file tracking and tracing. Furthermore, even when the decompressed electronic file does not contain a header or footer configuration file, this embodiment can still write the tracking interface link by creating a header or footer configuration file, ensuring the security of any file and offering greater versatility.
[0060] Example 3
[0061] Figure 3 This is a flowchart of an electronic document control method provided in Embodiment 3 of the present invention. Based on the above embodiments, this embodiment adds steps to determine whether the electronic document contains embedded tables or other files, and to send the record information of the target electronic document linked by the tracking interface to the gateway. Figure 3 As shown, the method includes:
[0062] S310. In response to the fact that the decompressed content of the electronic document contains a configuration file with a header or footer, write a tracking interface link in the configuration file with the header or footer, and modify the access mode of the tracking interface link to allow external references.
[0063] S320. Compress the decompressed content after linking the write tracking interface to obtain the target electronic file.
[0064] S330. Based on the received access information for the tracking interface link, track the target electronic document.
[0065] S340. Based on the decompressed contents of the electronic file, determine whether the electronic file contains embedded tables or other files. If so, transfer the electronic file to a human reviewer.
[0066] Taking a Word document as an example, based on the unzipped content, determine whether the document contains embedded tables or other files. Specifically, this includes checking whether the document.xml file within the unzipped content contains a specific tag (...). <w:tbl>If the tag is found to be present, then the electronic file contains an embedded table. The system also checks if the extracted Word folder contains an "embeddings" folder. If so, and the "embeddings" folder contains content, then the electronic file contains other embedded files. If the electronic file contains embedded tables or other files, there is a possibility of malicious insertion. Therefore, before the electronic file is distributed externally, it is checked for malicious insertion. If such insertion is found, the electronic file is transferred to a human for further review.
[0067] Similarly, Excel files can be identified by checking the / xl / embedding folder; PowerPoint files can be identified by checking the / ppt / embedding folder.
[0068] S350. The record information of the target electronic file linked by the tracking interface is sent to the gateway. The gateway is used to filter the electronic files in the data packets passing through the gateway according to the record information. If a target data packet containing the target electronic file is selected, the destination IP address of the target data packet is sent to a human for review.
[0069] Gateways are typically the last line of defense for electronic documents flowing to the outside world. If the gateway can screen and control potential malicious leaks of documents, the information security of electronic documents can be further improved. In this embodiment, the record information of the target electronic document linked to the tracking interface is sent to the gateway. The gateway can then filter electronic documents in data packets passing through it based on this record information. If a target data packet containing the target electronic document is identified, its destination IP address can be sent to a human for further review.
[0070] The technical solution of this invention has three aspects: First, it determines whether electronic files are maliciously inserted into other files, and controls the leakage process before such leakage occurs. Second, by writing the tracking interface link into the configuration file of the header or footer of the electronic file, when an internal network user attempts to send a file externally, the data packets are filtered according to the written content, and the destination IP of the filtered target data packets is identified, thereby controlling the leakage when it occurs. Third, when a user views a recompressed target electronic file, an access operation is automatically performed through the written tracking interface link. By analyzing the access information, the IP address of the visitor, as well as file information, sender information, etc., can be obtained, thereby realizing the tracking and tracing of electronic files and enabling immediate control and accountability after a leakage occurs. If a file is leaked, it can be detected and alerted immediately, reducing the difficulty of tracing the source of confidential leaks and improving speed and effectiveness. When confidential internal electronic files are circulated externally, accountability can be traced in a timely manner, and the time of leakage, the leaker, and the external accessor can be quickly located, indirectly reducing the risk of malicious dissemination of sensitive data and timely mitigating potential losses due to file leakage.
[0071] Meanwhile, the technical solution of this invention is seamless for users and applicable to all versions of Office and WPS software, thus having a wider range of applications. Compared to existing methods, by adding more referencing processes to the [Content_Types].xml and document.xml.rels files of Word files, it can still achieve file traceability without requiring headers or footers in the file itself. Furthermore, it offers greater stability for embedded content, avoiding prompts such as "The file is corrupted, do you need to repair it?", and all processes are automated, resulting in lower labor costs.
[0072] Example 4
[0073] Figure 4 This is a schematic diagram of the structure of an electronic document control device provided in Embodiment 4 of the present invention. Figure 4 As shown, the device 400 includes:
[0074] The tracking interface link writing module 410 is used to write a tracking interface link into the header or footer configuration file in response to the decompressed content of the electronic file containing such a configuration file, and to modify the access mode of the tracking interface link to allow external references.
[0075] The file compression module 420 is used to compress the decompressed content written to the tracking interface link to obtain the target electronic file;
[0076] The file tracking module 430 is used to track the target electronic file based on the received access information to the tracking interface link.
[0077] Optionally, the electronic file includes a Word file, an Excel file, or a PowerPoint file.
[0078] Optionally, the electronic file is a Word file, and the configuration file is a footer configuration file; correspondingly, the configuration file includes footer1.xml.rels and footer1.xml.
[0079] Optionally, the device further includes:
[0080] A module is created to respond to a configuration file in the decompressed content of an electronic file that does not contain a header or footer. After creating a configuration file corresponding to the header or footer in the decompressed content, the operation of writing a tracking interface link in the configuration file of the header or footer is performed.
[0081] Optionally, the electronic file is a Word file, and the configuration file is a footer configuration file; correspondingly, the creation module is specifically used for:
[0082] Determine whether the directory-type files in the decompressed content contain references to footer attributes;
[0083] If the result is negative, then create a new file named footer1.xml, an endnotes.xml file, and a footnotes.xml file in the word folder within the unzipped contents.
[0084] Write the footer attribute information into the footer1.xml, endnotes.xml, and footnotes.xml files respectively;
[0085] In the document.xml.rels file under the folder representing the relation index in the word folder of the unzipped content, add the index information of the footer1.xml file, endnotes.xml file, and footnotes.xml file respectively;
[0086] In the document.xml file under the word folder, add an index link to the attribute information of the footer in the document.xml.rels file;
[0087] Add footer attribute information to the settings.xml file located in the word folder.
[0088] Optionally, the file tracking module 430 is specifically used for:
[0089] Obtain the IP address of the link accessing the tracing interface from the access information, and determine the network and its location that accessed the tracing interface link based on the IP address.
[0090] Optionally, the tracking interface link includes at least the owner of the target electronic file; correspondingly, the device further includes:
[0091] The traceability module is used to obtain the owner of the target electronic file from the access information in order to trace the source of the target electronic file.
[0092] Optionally, the device further includes a determination module, specifically used for:
[0093] Based on the decompressed contents of the electronic file, determine whether the electronic file contains embedded tables or other files;
[0094] If the determination is yes, the electronic document will be transferred to a human reviewer.
[0095] Optionally, the electronic file is a Word file; correspondingly, the judgment module is specifically used for:
[0096] Determine whether the document.xml file in the decompressed content contains a specific tag. If it does, then it is determined that the electronic file contains an embedded table.
[0097] Determine whether the word folder in the unzipped content contains an embeddings folder. If it does, and the embeddings folder contains content, then it is determined that other files are embedded in the electronic file.
[0098] Optionally, the device further includes a transmitting module, specifically used for:
[0099] The record information of the target electronic file linked by the writing tracking interface is sent to the gateway. The gateway is used to filter electronic files in the data packets passing through the gateway based on the record information. If a target data packet containing the target electronic file is selected, the destination IP address of the target data packet is sent to a human for review.
[0100] The electronic document control device provided in the embodiments of the present invention can execute the electronic document control method provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the method execution.
[0101] Example 5
[0102] Figure 5 A schematic diagram of an electronic device 10 that can be used to implement embodiments of the present invention is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processors, cellular phones, smartphones, wearable devices (e.g., helmets, glasses, watches, etc.), and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely illustrative and are not intended to limit the implementation of the invention described and / or claimed herein.
[0103] like Figure 5 As shown, the electronic device 10 includes at least one processor 11 and a memory, such as a read-only memory (ROM) 12 or a random access memory (RAM) 13, communicatively connected to the at least one processor 11. The memory stores computer programs executable by the at least one processor. The processor 11 can perform various appropriate actions and processes based on the computer program stored in the ROM 12 or loaded from storage unit 18 into the RAM 13. The RAM 13 may also store various programs and data required for the operation of the electronic device 10. The processor 11, ROM 12, and RAM 13 are interconnected via a bus 14. An input / output (I / O) interface 15 is also connected to the bus 14.
[0104] Multiple components in electronic device 10 are connected to I / O interface 15, including: input unit 16, such as keyboard, mouse, etc.; output unit 17, such as various types of displays, speakers, etc.; storage unit 18, such as disk, optical disk, etc.; and communication unit 19, such as network card, modem, wireless transceiver, etc. Communication unit 19 allows electronic device 10 to exchange information / data with other devices through computer networks such as the Internet and / or various telecommunications networks.
[0105] Processor 11 can be a variety of general-purpose and / or special-purpose processing components with processing and computing capabilities. Some examples of processor 11 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various special-purpose artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any suitable processor, controller, microcontroller, etc. Processor 11 performs the various methods and processes described above, such as methods for controlling electronic documents.
[0106] In some embodiments, the electronic document control method may be implemented as a computer program tangibly contained in a computer-readable storage medium, such as storage unit 18. In some embodiments, part or all of the computer program may be loaded and / or installed on electronic device 10 via ROM 12 and / or communication unit 19. When the computer program is loaded into RAM 13 and executed by processor 11, one or more steps of the electronic document control method described above may be performed. Alternatively, in other embodiments, processor 11 may be configured to execute the electronic document control method by any other suitable means (e.g., by means of firmware).
[0107] Various embodiments of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field-programmable gate arrays (FPGAs), application-specific integrated circuits (ASICs), application-specific standard products (ASSPs), systems-on-a-chip (SoCs), payload-programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various embodiments may include implementations in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which may be a dedicated or general-purpose programmable processor, capable of receiving data and instructions from a storage system, at least one input device, and at least one output device, and transmitting data and instructions to the storage system, the at least one input device, and the at least one output device.
[0108] Computer programs used to implement the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, such that when executed by the processor, the computer programs cause the functions / operations specified in the flowcharts and / or block diagrams to be performed. The computer programs may be executed entirely on a machine, partially on a machine, or as a standalone software package, partially on a machine and partially on a remote machine, or entirely on a remote machine or server.
[0109] In the context of this invention, a computer-readable storage medium can be a tangible medium that may contain or store a computer program for use by or in conjunction with an instruction execution system, apparatus, or device. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination thereof. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. More specific examples of machine-readable storage media include electrical connections based on one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fibers, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination thereof.
[0110] To provide interaction with a user, the systems and techniques described herein can be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user provides input to the electronic device. Other types of devices can also be used to provide interaction with the user; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including sound input, voice input, or tactile input).
[0111] The systems and technologies described herein can be implemented in computing systems that include backend components (e.g., as data servers), or computing systems that include middleware components (e.g., application servers), or computing systems that include frontend components (e.g., user computers with graphical user interfaces or web browsers through which users can interact with implementations of the systems and technologies described herein), or any combination of such backend, middleware, or frontend components. The components of the system can be interconnected via digital data communication of any form or medium (e.g., communication networks). Examples of communication networks include local area networks (LANs), wide area networks (WANs), blockchain networks, and the Internet.
[0112] A computing system can include clients and servers. Clients and servers are generally located far apart and typically interact through communication networks. The client-server relationship is created by computer programs running on the respective computers and having a client-server relationship with each other. The server can be a cloud server, also known as a cloud computing server or cloud host, which is a hosting product within the cloud computing service system to address the shortcomings of traditional physical hosts and VPS services, such as high management difficulty and weak business scalability.
[0113] It should be understood that the various forms of processes shown above can be used, with steps reordered, added, or deleted. For example, the steps described in this invention can be executed in parallel, sequentially, or in different orders, as long as the desired result of the technical solution of this invention can be achieved, and this is not limited herein.
[0114] The specific embodiments described above do not constitute a limitation on the scope of protection of this invention. Those skilled in the art should understand that various modifications, combinations, sub-combinations, and substitutions can be made according to design requirements and other factors. Any modifications, equivalent substitutions, and improvements made within the spirit and principles of this invention should be included within the scope of protection of this invention.< / w:tbl>
Claims
1. A method for controlling electronic documents, characterized in that, include: In response to the fact that the decompressed content of the electronic file contains a configuration file with a header or footer, a tracking interface link is written into the configuration file with the header or footer, and the access mode of the tracking interface link is modified to allow external references; wherein, the configuration file does not display actual content in the header or footer; The decompressed content written to the tracking interface link is compressed to obtain the target electronic file; Based on the received access information to the tracking interface link, the target electronic file is tracked; Before compressing the decompressed content after writing the tracking interface link to obtain the target electronic file, the method further includes: in response to the fact that the decompressed content of the electronic file does not contain a header or footer configuration file, after creating a configuration file corresponding to the header or footer in the decompressed content, the operation of writing the tracking interface link in the configuration file of the header or footer is performed. Wherein, when the electronic file is a Word file, the configuration file is a footer configuration file; correspondingly, in response to the configuration file not containing a header or footer in the decompressed content of the electronic file, creating a configuration file corresponding to the header or footer in the decompressed content includes: Determine whether the directory-type files in the decompressed content contain references to footer attributes; If the result is negative, then create a new file named footer1.xml, an endnotes.xml file, and a footnotes.xml file in the word folder within the unzipped contents. Write the footer attribute information into the footer1.xml, endnotes.xml, and footnotes.xml files respectively; In the document.xml.rels file under the folder representing the relation index in the word folder of the unzipped content, add the index information of the footer1.xml file, endnotes.xml file, and footnotes.xml file respectively; In the document.xml file under the word folder, add an index link to the attribute information of the footer in the document.xml.rels file; Add footer attribute information to the settings.xml file located in the word folder.
2. The method according to claim 1, characterized in that, The electronic file is a Word file, and the configuration file is a footer configuration file; correspondingly, the configuration file includes footer1.xml.rels and footer1.xml.
3. The method according to claim 1, characterized in that, The step of tracking the target electronic file based on the received access information to the tracking interface link includes: Obtain the IP address of the link accessing the tracing interface from the access information, and determine the network and its location that accessed the tracing interface link based on the IP address.
4. The method according to claim 3, characterized in that, The tracking interface link includes at least the owner of the target electronic file; correspondingly, the method further includes: The owner of the target electronic file is obtained from the access information in order to trace the origin of the target electronic file.
5. The method according to claim 1, characterized in that, The method further includes: Based on the decompressed contents of the electronic file, determine whether the electronic file contains embedded tables or other files; If the determination is yes, the electronic document will be transferred to a human reviewer.
6. The method according to claim 5, characterized in that, The electronic file is a Word file; correspondingly, determining whether the electronic file contains embedded tables or other files based on its uncompressed content includes: Determine whether the document.xml file in the decompressed content contains a specific tag. If it does, then it is determined that the electronic file contains an embedded table. Determine whether the word folder in the unzipped content contains an embeddings folder. If it does, and the embeddings folder contains content, then it is determined that other files are embedded in the electronic file.
7. The method according to claim 1, characterized in that, The method further includes: The record information of the target electronic file linked by the writing tracking interface is sent to the gateway. The gateway is used to filter electronic files in the data packets passing through the gateway based on the record information. If a target data packet containing the target electronic file is selected, the destination IP address of the target data packet is sent to a human for review.
8. A control device for electronic documents, characterized in that, include: The tracking interface link writing module is used to write a tracking interface link into the header or footer configuration file in response to the decompressed content of the electronic file, and modify the access mode of the tracking interface link to allow external reference. The file compression module is used to compress the decompressed content written to the tracking interface link to obtain the target electronic file; The file tracking module is used to track the target electronic file based on the received access information to the tracking interface link; A creation module is used to compress the decompressed content after writing the tracking interface link to obtain the target electronic file. In response to the fact that the decompressed content of the electronic file does not contain a header or footer configuration file, after creating a configuration file corresponding to the header or footer in the decompressed content, the operation of writing the tracking interface link in the header or footer configuration file is performed. Specifically, the creation module is used when the electronic file is a Word file and the configuration file is a footer configuration file; it determines whether the directory type file in the unzipped content contains a reference to the footer attribute; if the determination is no, it creates three new files, footer1.xml, endnotes.xml, and footnotes.xml, in the word folder in the unzipped content; it writes the footer attribute information into the footer1.xml, endnotes.xml, and footnotes.xml files respectively; it adds the index information of the footer1.xml, endnotes.xml, and footnotes.xml files to the document.xml.rels file in the folder representing the relation index in the word folder in the unzipped content; it adds an index link to the footer attribute information of the document.xml.rels file in the document.xml file in the word folder; and it adds the footer attribute information to the settings.xml file in the settings.xml file in the word folder.
9. An electronic device, characterized in that, The electronic device includes: At least one processor; and A memory communicatively connected to the at least one processor; wherein, The memory stores a computer program that can be executed by the at least one processor, the computer program being executed by the at least one processor to enable the at least one processor to perform the electronic document control method according to any one of claims 1-7.
10. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer instructions that, when executed by a processor, implement the control method for the electronic document as described in any one of claims 1-7.
Citation Information
Patent Citations
Method for embedding hidden tracing watermark in Word document
CN107358073A
Excel document tracking method and system, electronic equipment and storage medium
CN112650956A