Format document processing method, device and equipment
By performing object recognition, label data generation and encryption processing on layout documents, the problems of low efficiency and insufficient security of layout documents in the prior art are solved, and more efficient and secure document processing is achieved.
Patent Information
- Application Number
- CN202510006085.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-01-03
- Publication Date
- 2025-02-07
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
The encryption technology of existing layout documents is inefficient in decryption and encryption efficiency, and is insufficient in security, making it difficult to meet complex and changing business needs.
By performing object recognition processing on the layout document, marking data is generated, and multiple layout analysis data is marked. Finally, encrypting the layout document data with the tag to generate the target layout document.
Improves the processing security of layout documents, expands its application scenarios, and solves the problems of low decryption and insufficient security.
Smart Images

Figure CN119398029A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of computer information processing, and in particular to a method, device and equipment for processing formatted documents. Background Art
[0002] With the popularization of digital information, formatted documents have been widely used in various fields. However, sensitive information in electronic documents, such as confidential information, personal privacy information, and trade secrets, faces the risk of illegal acquisition and leakage. Existing document security mainly relies on physical isolation and manual authorization, which is time-consuming, labor-intensive and prone to errors. Although there are some automated encryption technologies, these encryption technologies are still insufficient in accuracy, flexibility, security, and applicability, and are difficult to meet complex and changing business needs.
[0003] Since the release of layout documents, document data still lacks security and a reasonable and effective permission management mechanism. In layout documents, document data is stored in plain text with high readability, which is easy to cause information leakage during data transmission and distribution. Effective encryption methods are more conducive to efficient file storage and ensure the security of document data.
[0004] The commonly used layout document encryption scheme currently available generally encrypts the entire layout document using an encryption algorithm. Although this can improve the security of the document, the decryption and encryption efficiency of the document is low, which is not conducive to the application of the document in scenarios where the document contains a large amount of data or is frequently unpacked. Taking the decryption of a document with a memory size of 50MB as an example, during the encryption and decryption process of the layout document, the 50MB data needs to be repeatedly transferred to the memory for processing, which seriously increases the memory overhead; if the document memory is larger, it may cause decryption failure. Summary of the invention
[0005] The present invention provides a method, device and equipment for processing layout documents, which solve the problems of low efficiency in decryption and encryption of layout documents and risks in security.
[0006] In order to solve the above technical problems, the technical solution of the present invention is as follows:
[0007] An embodiment of the present invention provides a method for processing a layout document, comprising:
[0008] Get the layout document;
[0009] Performing object recognition processing on the layout document to obtain a plurality of layout analysis data;
[0010] Generate labeled data;
[0011] According to the marking data, the plurality of layout analysis data are marked to obtain a marked layout document;
[0012] The marked layout document data is encrypted to obtain a target layout document.
[0013] Optionally, object recognition processing is performed on the layout document to obtain a plurality of layout analysis data, including:
[0014] Parsing the layout document to obtain multiple object data;
[0015] Performing layout analysis on the layout document to obtain position data and layout data of multiple objects;
[0016] According to the position data and layout data of the multiple objects, the multiple object data are cut and processed to obtain multiple layout analysis data.
[0017] Optionally, generating the label data includes:
[0018] The marking data is generated according to at least one of target information, marking style data and user authority data, wherein the target information includes at least one preset character.
[0019] Optionally, the plurality of layout analysis data are marked according to the marking data to obtain a marked layout document, including:
[0020] According to the target information, the plurality of layout analysis data are identified and processed to obtain a plurality of object data containing the at least one preset character;
[0021] According to at least one of the marking style data and the user authority data, marking processing is performed on the plurality of object data containing the target information to obtain a plurality of marking information, wherein the plurality of marking information includes at least one of the position of the target information, the type of the target information, the marking style data, and the user authority data;
[0022] The plurality of marking information are combined with the layout document to obtain a layout document with markings.
[0023] Optionally, encrypting the marked layout document data to obtain a target layout document includes:
[0024] According to the plurality of marking information, the format document data with the markings is recognized and processed to obtain a plurality of segmented data;
[0025] Encrypting the plurality of segmented data to obtain a plurality of encrypted segmented data;
[0026] The plurality of encrypted segmented data are combined with the marked layout document to obtain an encrypted layout document.
[0027] The method for processing the layout document further includes:
[0028] Get user permission data;
[0029] According to the user authority data, user format document data is obtained.
[0030] Optionally, obtaining user layout document data according to the user authority data includes:
[0031] According to the user authority data, the encrypted layout document is screened to obtain a plurality of screened segmented data;
[0032] The plurality of filtered segmented data are merged to obtain user layout document data.
[0033] The embodiment of the present invention further provides a layout document processing device, comprising:
[0034] The first acquisition module is used to acquire the layout document;
[0035] A first processing module is used to perform object recognition processing on the layout document to obtain a plurality of layout analysis data;
[0036] A first generating module, used for generating labeled data;
[0037] A second processing module, used for marking the plurality of layout analysis data according to the marking data to obtain a layout document with markings;
[0038] The second generating module is used to encrypt the format document data with the mark to obtain the target format document.
[0039] An embodiment of the present invention further provides a computing device, comprising: a processor and a memory storing a computer program, wherein the computer program executes the above method when executed by the processor.
[0040] An embodiment of the present invention further provides a computer-readable storage medium storing instructions, which, when executed on a computer, enable the computer to execute the above method.
[0041] The technical solution of the present invention includes at least the following effects:
[0042] The above scheme of the present invention obtains a layout document; performs object recognition processing on the layout document to obtain multiple layout analysis data; generates marking data; performs marking processing on the multiple layout analysis data according to the marking data to obtain a layout document with a mark; performs encryption processing on the layout document data with a mark to obtain a target layout document. This scheme improves the security of layout document processing and expands the application occasions of layout documents. BRIEF DESCRIPTION OF THE DRAWINGS
[0043] 1 is a flow chart of a method for processing a layout document provided by an embodiment of the present invention;
[0044] 2 is a structural diagram of a layout document processing device provided by an embodiment of the present invention;
[0045] FIG. 3 is a schematic diagram of the structure of a computing device provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0046] The exemplary embodiments of the present invention will be described in more detail below with reference to the accompanying drawings. Although the exemplary embodiments of the present invention are shown in the accompanying drawings, it should be understood that the present invention can be implemented in various forms and should not be limited by the embodiments set forth herein. On the contrary, these embodiments are provided in order to enable a more thorough understanding of the present invention and to enable the scope of the present invention to be fully communicated to those skilled in the art.
[0047] As shown in FIG1 , an embodiment of the present invention provides a method for processing a layout document, including:
[0048] Step 11, obtaining the layout document;
[0049] Step 12, performing object recognition processing on the layout document to obtain a plurality of layout analysis data;
[0050] Step 13, generating labeled data;
[0051] Step 14, marking the plurality of layout analysis data according to the marking data to obtain a layout document with markings;
[0052] Step 15, encrypting the marked layout document data to obtain a target layout document.
[0053] In this embodiment, firstly, a layout document is obtained from a local disk storage or through a network. A layout document refers to a file with a fixed layout format, and its page layout, text layout, image position, etc. are all fixedly presented. For the obtained layout document, different elements therein are identified and split as independent objects. For example, for a layout document containing text, pictures, and charts, each paragraph of text, each picture, each chart, etc. will be identified separately, and its features, attributes, and other information will be extracted and sorted, and finally a plurality of relatively independent layout analysis data will be formed. After obtaining a plurality of layout analysis data, the tag data corresponding to the layout document is obtained. The tag data is created according to a preset rule. It is used to mark the designated position of the designated object of the document, and the types of marks include highlighting, underlining, deleting lines, and custom styles; based on the generated marking data, the corresponding marks are assigned to each layout analysis data; for example, the specific position of the text object is highlighted, or part of the content of the corresponding chart object is hidden and displayed, and finally a layout document with marks is obtained; in order to ensure the security and confidentiality of the document, the marked layout document data is encrypted, and the data in the marked layout document is converted by setting an encryption key, and its original content is encrypted according to the encryption rules, so that unauthorized users cannot directly view and access the content. After encryption, the target layout document that meets the security requirements is finally obtained. The document can ensure the security of information in subsequent storage, transmission and other links. Only the authorized party with the correct decryption key can restore it and view it for use.
[0054] The layout document processing method proposed in this embodiment solves the problems of low efficiency in layout document decryption and encryption and security risks, improves the security of layout document processing, and expands the application occasions of layout documents.
[0055] In an optional embodiment of the present invention, step 12 may include:
[0056] Step 121, parsing the layout document to obtain a plurality of object data;
[0057] Step 122, performing layout analysis processing on the layout document to obtain position data and layout data of multiple objects;
[0058] Step 123, cutting the plurality of object data according to the position data and layout data of the plurality of objects to obtain a plurality of layout analysis data.
[0059] In this embodiment, the layout document is first read and loaded, and then parsed. The purpose of the parsing is to identify and extract various components (i.e., objects) in the document; these objects may include text, pictures, graphics, tables, page numbers, and other elements; the parsing process includes an in-depth understanding of the document structure, such as identifying paragraphs, sentences, words, and the hierarchical relationship between them, and also extracting the attribute information of the object, such as font, color, size, etc.; then the identified objects and their attribute information are stored in the memory or database to obtain multiple object data;
[0060] After parsing the objects in the document, the next step is to analyze the position and layout of these objects in the document to obtain the precise position of each object in the document, such as coordinate data, and the relative layout relationship between objects, such as up and down, left and right, alignment, etc., and then extract the position and layout relationship information and store it in the database to form the position data and layout data of multiple objects;
[0061] After obtaining the location and layout data of the object, the object data is cropped based on this information; the purpose of cropping is to split the original object data into smaller, independent units, which correspond to single pages, paragraphs, pictures, etc. in the document, forming multiple layout analysis data.
[0062] In an optional embodiment of the present invention, step 14 may include:
[0063] Step 141, performing recognition processing on the plurality of layout analysis data according to the target information to obtain a plurality of object data containing the at least one preset character;
[0064] Step 142, marking the plurality of object data containing the target information according to at least one of the marking style data and the user authority data, to obtain a plurality of marking information, wherein the plurality of marking information includes at least one of the position of the target information, the type of the target information, the marking style data, and the user authority data;
[0065] Step 143: merge the multiple marking information with the layout document to obtain a layout document with markings.
[0066] In this embodiment, firstly, the split object data is scanned and identified according to the preset target information rule; in this process, it is necessary to check whether each object data contains any target information, and once the target information is identified, the object data containing the target information will be screened out;
[0067] The purpose of marking is to clearly identify the location and type of target information in the layout document so that users can quickly identify and take appropriate protection measures;
[0068] Marking style data refers to the visual style used to mark the target information, such as color, font, underline, border, etc.; these styles can be customized according to different target information types or user preferences; user permission data refers to user access rights related to the target information, such as which users or roles can view, edit or delete the target information;
[0069] The system will mark the target information according to the marking style data and the user permission data (or at least one of them); the marking information will include the location of the target information, such as the specific location or coordinates in the document, the type of the target information, such as personal privacy, company confidentiality, etc., the marking style data used, such as red highlight, bold font, etc., and related user permission data, such as which users can view this target information;
[0070] After obtaining the marking information, multiple marking information needs to be merged back into the original layout document, including accurately placing the marking information in the corresponding position in the document to ensure that the user can clearly see the target information and its markings; the merging process includes adjusting the document format to ensure that the marking information does not destroy the original layout or readability of the document; for example, if the marking information is displayed in a highlighted color, the system may adjust the background color or text color of the document to ensure that the highlighting effect is visually obvious enough and does not cause reading difficulties; finally, a layout document with markings is generated, in which the target information has been clearly marked and is accompanied by relevant user permission information. In this way, users can quickly identify the target information based on the marking information and take corresponding protection measures according to their own permissions.
[0071] In an optional embodiment of the present invention, step 15 may include:
[0072] Step 151, according to the plurality of marking information, the format document data with the marking is recognized and processed to obtain a plurality of segmented data;
[0073] Step 152, encrypting the plurality of segmented data to obtain a plurality of encrypted segmented data;
[0074] Step 153: merge the plurality of encrypted segmented data with the marked layout document to obtain an encrypted layout document.
[0075] In this embodiment, the formatted document data with the mark is first read, and the structure of the document is parsed to identify the content area corresponding to each mark, and these areas are extracted as independent segmented data, so that the formatted document with the mark is decomposed into multiple independent segmented data;
[0076] After obtaining multiple segmented data, they are encrypted respectively. The purpose of encryption is to protect the security of data and prevent unauthorized access or tampering. The preset encryption algorithm refers to an encryption algorithm that is determined and configured in advance. The selection of the encryption algorithm depends on the requirements for security, the limitation of computing resources and the characteristics of the application scenario. The encryption process includes taking the segmented data as input and generating encrypted data as output through the encryption algorithm. Each segmented data can be encrypted using the same or different encryption algorithms, depending on the requirements of the encryption strategy. If the same encryption algorithm is used for encryption, the efficiency of decryption can be improved, and the user can decrypt the entire document content using one decryption key. If different encryption algorithms are used for encryption, the security of the document can be improved. According to the user's key, only the objects that can be read within the user's authority can be decrypted, and the object data that is not within the user's authority cannot be read. The specific process of encrypting the multiple segmented data may include:
[0077] A 128-bit master key is generated based on the user password, and 32 round keys are generated through the key expansion algorithm, and the subkeys are guaranteed to have good randomness and independence; then the plaintext data is grouped into 128-bit data groups and its permutation state is initialized; finally, the master key is used to generate 128-bit ciphertext data after 32 rounds of permutation encryption; through the above processing, the original segmented data is converted into encrypted segmented data, which improves the security of the data;
[0078] The encrypted segmented data is merged with the original layout document with tags. The specific method of the merging process depends on the format of the layout document and the requirements of the encryption strategy. For example, the encrypted segmented data is inserted into the corresponding position of the original document as new content, while retaining the original tag information, which also needs to be encrypted during the encryption process; or a new layout document is created, and the encrypted segmented data and necessary tag information are reorganized and embedded in it according to the layout and structure of the original document; no matter which merging method is used, the final result is an encrypted layout document; this document not only retains the structure and layout of the original document, but also improves the security of the data through encryption processing. When users or programs access this encrypted layout document, they need to decrypt it to obtain the original segmented data.
[0079] A specific embodiment of the method for processing a layout document provided by an embodiment of the present invention is:
[0080] Step 1, obtain the layout document;
[0081] The layout document to be processed can be obtained from local storage or the network.
[0082] Step 2, performing object recognition processing on the layout document to obtain a plurality of layout analysis data;
[0083] Perform structural analysis on the obtained layout document and extract key information according to the specified position; the specific steps are as follows:
[0084] (1) Document loading: read the layout document and parse its structure and content;
[0085] (2) Object recognition: identifying objects such as text, graphics, and images in documents;
[0086] (3) Layout analysis: Analyze the layout information of the document, determine the position and hierarchical relationship of each object, and generate layout analysis layer data;
[0087] (4) Content trimming: Split document objects according to location information and layout information.
[0088] Step 3, generate labeled data;
[0089] Mark types include highlight, underline, strikethrough, and custom styles.
[0090] Step 4, marking the plurality of layout analysis data according to the marking data to obtain a layout document with markings;
[0091] Mark the specified document location information in sections, supporting multiple marking styles (such as highlight, underline, strikethrough, and custom styles, etc.); the specific steps are as follows:
[0092] (1) Segmentation: Divide the target information in the location information into multiple areas;
[0093] (2) Tag generation: Generate tag information, including the location, type, style, user permissions, and other information of the target information;
[0094] (3) Tag preservation: embed the tag information into the original layout document to generate a layout document with tags.
[0095] Step 5: encrypt the marked layout document data to obtain the target layout document.
[0096] The classified information is encrypted in sections to ensure the security of data during transmission and storage. The specific steps are as follows:
[0097] (1) Encryption algorithm: Use strong encryption algorithms such as SM4 to encrypt specified information;
[0098] (2) Key management: Generate and manage encryption keys to ensure key security;
[0099] (3) Segment encryption: Encrypt each target information segment separately to generate encrypted text data;
[0100] (4) Integrity check: Use a hash algorithm to calculate summary information for each segment of encrypted data;
[0101] (5) Encryption process: First, a 128-bit master key is generated based on the user password, and 32 round keys are generated through the key expansion algorithm, and the subkeys are guaranteed to have good randomness and independence; then the initialization state of the 128-bit block plaintext is initialized (linear change); finally, the master key is used to generate 128-bit ciphertext data after 32 rounds of permutation encryption;
[0102] (6) Decryption process: First, the user password is verified according to the user's 128-bit master key. If the verification fails, the decryption is exited; secondly, the 128-bit master key is used through the key expansion algorithm (linear change) to generate 32 128-bit subkeys (note: K_1, K_2, K_3, .., K_{32}); finally, the 32 groups of subkey pairs are used cyclically to decrypt the ciphertext data;
[0103] Among them, the key expansion algorithm is an algorithm used in cryptography to expand a relatively short original key (such as a password entered by a user) into a series of longer subkeys; these subkeys are used in different rounds or stages of the encryption process to increase the security and complexity of encryption; for example, in a byte substitution operation, an S-box (Substitution-box) is used to replace each byte. This S-box is a carefully designed lookup table that can convert an input byte into a nonlinear output byte;
[0104] Assume that the original key is K = (K 0 , K 1 , K 2 , .., K n-1 ), where n is the key length (in bytes); during the key expansion process, new subkeys are generated according to certain rules and round constants; the round constant is a fixed value added in each round of key expansion to increase the diversity of the key;
[0105] The sub-key after the first round of expansion may be obtained by performing specific byte operations on the original key (such as circular shift, XOR operation with round constant, etc.); the sub-keys of subsequent rounds are generated based on the sub-keys of the previous round combined with more complex transformations.
[0106] Permission management: The access rights to encrypted information are limited to individual users, multiple users, user groups (domains), etc. A fine-grained permission control system is established to ensure that only authorized users or groups can view or edit the encrypted segment information; the specific steps are as follows:
[0107] (1) User authentication: Ensure the legitimacy of user identity through a multi-factor authentication mechanism;
[0108] (2) Permission allocation: assign different access rights based on the user's role and responsibilities;
[0109] Layout document storage: Encrypted data will be saved to user files according to different user and group permissions; the specific steps are as follows:
[0110] (1) Save segmented data: write each segment into a document according to the user;
[0111] (2) Save mapping: Create mapping information for segmented data (including encryption algorithm, summary information, user information, and user description extension information), and write the information into the document.
[0112] The above technical solution of the present invention provides an efficient and accurate method for segmenting and marking the text information of layout documents, which improves the security of layout document information during document processing, enhances the security of document processing, and enriches the applicability of documents.
[0113] As shown in FIG. 2 , an embodiment of the present invention further provides a layout document processing device 20, comprising:
[0114] A first acquisition module 21, used for acquiring a layout document;
[0115] A first processing module 22 is used to perform object recognition processing on the layout document to obtain a plurality of layout analysis data;
[0116] A first generating module 23, used to generate marking data;
[0117] The second processing module 24 is used to mark the plurality of layout analysis data according to the marking data to obtain a layout document with markings;
[0118] The second generating module 25 is used to encrypt the formatted document data with the mark to obtain the target formatted document.
[0119] Optionally, the first processing module 22 is specifically used for:
[0120] Parsing the layout document to obtain multiple object data;
[0121] Performing layout analysis on the layout document to obtain position data and layout data of multiple objects;
[0122] According to the position data and layout data of the multiple objects, the multiple object data are cut and processed to obtain multiple layout analysis data.
[0123] Optionally, the first generating module 23 is specifically used for:
[0124] The marking data is generated according to at least one of target information, marking style data and user authority data, wherein the target information includes at least one preset character.
[0125] Optionally, the second processing module 24 is specifically used for:
[0126] According to the target information, the plurality of layout analysis data are identified and processed to obtain a plurality of object data containing the at least one preset character;
[0127] According to at least one of the marking style data and the user authority data, marking processing is performed on the plurality of object data containing the target information to obtain a plurality of marking information, wherein the plurality of marking information includes at least one of the position of the target information, the type of the target information, the marking style data, and the user authority data;
[0128] The plurality of marking information are combined with the layout document to obtain a layout document with markings.
[0129] Optionally, the second generating module 25 is specifically used for:
[0130] According to the plurality of marking information, the format document data with the markings is recognized and processed to obtain a plurality of segmented data;
[0131] Encrypting the plurality of segmented data to obtain a plurality of encrypted segmented data;
[0132] The plurality of encrypted segmented data are combined with the marked layout document to obtain an encrypted layout document.
[0133] The layout document processing device 20 further includes:
[0134] The second acquisition module 26 is used to obtain user authority data;
[0135] The third generating module 27 is used to obtain user format document data according to the user authority data.
[0136] Optionally, the third generating module 27 is specifically used for:
[0137] According to the user authority data, the encrypted layout document is screened to obtain a plurality of screened segmented data;
[0138] The plurality of filtered segmented data are merged to obtain user layout document data.
[0139] It should be noted that the device is a device corresponding to the above method, and all implementation methods in the above method embodiment are applicable to this embodiment and can achieve the same technical effect.
[0140] As shown in FIG3 , the embodiment of the present invention further provides a computing device 30, including a processor 31, a memory 32, and a program or instruction stored in the memory 32 and executable on the processor 31. When the program or instruction is executed by the processor 31, each process of the above-mentioned format document processing method embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, it is not described here. It should be noted that the computing device in the embodiment of the present invention includes the above-mentioned mobile electronic device and non-mobile electronic device.
[0141] Those skilled in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.
[0142] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
[0143] In the embodiments provided by the present invention, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic, for example, the division of units is only a logical function division, and there may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0144] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0145] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
[0146] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art, or the part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, server, or network device, etc.) to perform all or part of the steps of the methods of various embodiments of the present invention. The aforementioned storage medium includes: various media that can store program codes, such as USB flash drives, mobile hard disks, ROM, RAM, magnetic disks, or optical disks.
[0147] In addition, it should be pointed out that in the apparatus and method of the present invention, it is obvious that each component or each step can be decomposed and / or recombined. These decompositions and / or recombinations should be regarded as equivalent schemes of the present invention. Moreover, the steps of performing the above series of processing can naturally be performed in chronological order according to the order of description, but it is not necessary to perform them in chronological order, and some steps can be performed in parallel or independently of each other. For those of ordinary skill in the art, it is understandable that all or any steps or components of the method and apparatus of the present invention can be implemented in hardware, firmware, software or a combination thereof in any computing device (including processors, storage media, etc.) or a network of computing devices, which can be achieved by those of ordinary skill in the art using their basic programming skills after reading the description of the present invention.
[0148] Therefore, the purpose of the present invention can also be achieved by running a program or a group of programs on any computing device. The computing device can be a well-known general-purpose device. Therefore, the purpose of the present invention can also be achieved by simply providing a program product containing a program code for implementing a method or device. That is to say, such a program product also constitutes the present invention, and a storage medium storing such a program product also constitutes the present invention. Obviously, the storage medium can be any well-known storage medium or any storage medium developed in the future. It should also be pointed out that in the device and method of the present invention, it is obvious that each component or each step can be decomposed and / or recombined. These decompositions and / or recombinations should be regarded as equivalent schemes of the present invention. In addition, the steps of performing the above-mentioned series of processing can naturally be performed in chronological order according to the order of description, but it is not necessary to perform them in chronological order. Some steps can be performed in parallel or independently of each other.
[0149] The above are preferred embodiments of the present invention. It should be pointed out that, for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present invention. These improvements and modifications should also be regarded as within the scope of protection of the present invention.
Claims
1. A method for processing a layout document, characterized in that: include: Get the layout document; Performing object recognition processing on the layout document to obtain a plurality of layout analysis data; Generate labeled data; According to the marking data, the plurality of layout analysis data are marked to obtain a marked layout document; Encrypting the marked layout document data to obtain a target layout document; The layout document is subjected to object recognition processing to obtain a plurality of layout analysis data, including: Parsing the layout document to obtain multiple object data; Performing layout analysis on the layout document to obtain position data and layout data of multiple objects; According to the position data and layout data of the multiple objects, the multiple object data are cut and processed to obtain multiple layout analysis data.
2. The method for processing layout documents according to claim 1, characterized in that: The generating of the marking data comprises: The marking data is generated according to at least one of target information, marking style data and user authority data, wherein the target information includes at least one preset character.
3. The method for processing layout documents according to claim 2, characterized in that: According to the marking data, the plurality of layout analysis data are marked to obtain a layout document with markings, including: According to the target information, the plurality of layout analysis data are identified and processed to obtain a plurality of object data containing the at least one preset character; According to at least one of the marking style data and the user authority data, marking processing is performed on the plurality of object data containing the target information to obtain a plurality of marking information, wherein the plurality of marking information includes at least one of the position of the target information, the type of the target information, the marking style data, and the user authority data; The plurality of marking information are combined with the layout document to obtain a layout document with markings.
4. The method for processing layout documents according to claim 3, characterized in that: The marked layout document data is encrypted to obtain a target layout document, including: According to the plurality of marking information, the format document data with the markings is recognized and processed to obtain a plurality of segmented data; Encrypting the plurality of segmented data to obtain a plurality of encrypted segmented data; The plurality of encrypted segmented data are combined with the marked layout document to obtain an encrypted layout document.
5. The method for processing layout documents according to claim 1, characterized in that: Also includes: Get user permission data; According to the user authority data, user format document data is obtained.
6. The method for processing layout documents according to claim 5, characterized in that: According to the user authority data, user layout document data is obtained, including: According to the user authority data, the encrypted layout document is screened to obtain a plurality of screened segmented data; The plurality of filtered segmented data are merged to obtain user layout document data.
7. A layout document processing device, characterized in that: include: The first acquisition module is used to acquire the layout document; A first processing module is used to perform object recognition processing on the layout document to obtain a plurality of layout analysis data; A first generating module, used for generating labeled data; A second processing module, used for marking the plurality of layout analysis data according to the marking data to obtain a layout document with markings; A second generating module is used to encrypt the format document data with the mark to obtain a target format document; The layout document is subjected to object recognition processing to obtain a plurality of layout analysis data, including: Parsing the layout document to obtain multiple object data; Performing layout analysis on the layout document to obtain position data and layout data of multiple objects; According to the position data and layout data of the multiple objects, the multiple object data are cut and processed to obtain multiple layout analysis data.
8. A computing device, characterized in that include: A processor and a memory storing a computer program, wherein when the computer program is executed by the processor, the method according to any one of claims 1 to 6 is executed.
9. A computer-readable storage medium, characterized in that: Instructions are stored, and when the instructions are executed on a computer, the computer is caused to execute the method according to any one of claims 1 to 6.
Citation Information
Patent Citations
Electronic document management method and management device
CN107291763A
Method and device for creating layout file through block chain, electronic equipment and storage medium
CN113468862A
Electronic medical record processing method and device based on layout file, equipment and medium
CN113886843A
Traceability protection method and device for digital document, electronic equipment and storage medium
CN118898057A
Document recording method meeting requirement of separation of form and content and mixed set simulataneously
CN1680933A