Online document processing method and online document processing device

By receiving the user's online document processing request, obtaining the component collection and determining the target editing component, and editing the online document, the problem of low efficiency in online document processing in the prior art is solved, and efficient reuse and processing of document elements is realized.

CN118917282APending Publication Date: 2024-11-08中国邮政储蓄银行股份有限公司
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202411116361.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-14
Publication Date
2024-11-08

Smart Images

  • Figure CN118917282A_ABST
    Figure CN118917282A_ABST
Patent Text Reader

Abstract

The invention provides an online document processing method and an online document processing device.The method comprises the steps that an online document processing request sent by a user is received, and the online document processing request is used for requesting editing processing of a to-be-processed document; the online document processing request comprises a unique identity identifier of a user and a document identifier of a to-be-processed document; the to-be-processed document is preprocessed to obtain a preliminary document, the preliminary document comprises a plurality of document elements, the data format of the preliminary document is a predetermined format, and the document elements are minimum units forming the preliminary document; a component set is obtained, at least one editing component in the component set is determined as a target editing component according to the document identifier and the unique identity identifier, and the editing components are used for editing the document elements; and processing the prepared document by adopting the target editing component to obtain a target document. According to the method, the problem of low online document processing efficiency is solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer technology, and in particular to an online document processing method, an online document processing device, and a computer-readable storage medium. Background Art

[0002] With the continuous development of computer technology, the popularity of online document office avoids the mutual transmission of offline files, brings great convenience, and improves work efficiency and experience. In the process of using online documents, it is still inevitable that some common document elements need to be repeatedly edited in multiple online documents. Copying and pasting text can solve the problem of manual editing to a certain extent. However, searching for suitable copyable text is time-consuming and laborious, and copying and pasting may also cause some styles to be lost. Common document elements cannot be shared and reused in a timely manner, resulting in a waste of text resources and greatly affecting the processing efficiency of online documents.

[0003] Therefore, there is an urgent need for a method to solve the problem of low efficiency of online document processing in the prior art. Summary of the invention

[0004] The main purpose of the present application is to provide an online document processing method, an online document processing device and a computer-readable storage medium, so as to at least solve the problem of low efficiency of online document processing in the prior art.

[0005] According to one aspect of the present application, a method for processing an online document is provided, comprising: receiving an online document processing request sent by a user, the online document processing request being used to request editing of a document to be processed, the online document processing request comprising a unique identity of the user and a document identity of the document to be processed; preprocessing the document to be processed to obtain a preliminary document, wherein the preliminary document comprises a plurality of document elements, the data format of the preliminary document is a predetermined format, and the document element is the smallest unit constituting the preliminary document; acquiring a component set and determining, based on the document identity and the unique identity, that at least one editing component in the component set is a target editing component, wherein the editing component is used to edit the document element; processing the preliminary document using the target editing component to obtain a target document.

[0006] Optionally, the document to be processed is preprocessed to obtain a preliminary document, including: performing format conversion processing on the document to be processed to obtain a preprocessed document, wherein the data format of the preprocessed document is JSON format; performing online rendering processing on the preprocessed document to obtain the preliminary document.

[0007] Optionally, the pre-processed document is rendered online to obtain the preliminary document, including: obtaining the style of the document element of the pre-processed document to obtain a plurality of styles to be processed, wherein the styles to be processed include at least a paragraph style, a text block style and a document default style; determining whether the style attributes of any two of the plurality of styles to be processed are the same, and when the style attributes are different, performing a union process on the styles to be processed to obtain a first preliminary style; when the style attributes are the same, determining that the text block style is a second preliminary style; performing a union process on the first preliminary style and the second preliminary style to obtain a target style; and obtaining the document content of the pre-processed document, wherein the document content and the target style form the target document.

[0008] Optionally, the component set includes at least a recommendation component, and obtaining the component set includes: obtaining historical usage data, wherein the historical usage data is a usage record of a history editing component used by multiple users before a current moment, and the history editing component is used to edit the document elements; using a neighbor-based collaborative filtering algorithm to process the historical usage data to obtain the recommendation component, wherein the neighbor-based collaborative filtering algorithm is used to predict the user's preference for the history editing component, and the preference level of the recommendation component is in the top n places among the preference levels of multiple history editing components.

[0009] Optionally, after the historical usage data is processed using a neighbor-based collaborative filtering algorithm to obtain the recommended components, the method further includes one of the following: determining that multiple users with the same user attributes are recommended users, and recommending the same set of components to the multiple recommended users; calculating the similarity between any two recommended components to obtain multiple similarities, and determining that the recommended component corresponding to the maximum value among the multiple similarities is a similar component, and recommending the recommended component and the similar component to the users.

[0010] Optionally, the component set includes at least a custom component, and obtaining the component set includes: obtaining an online document, and determining an area in the online document containing a predetermined document element as a target area; removing annotation information of the target area and a document default style of the predetermined document element to obtain the custom component.

[0011] Optionally, at least one of the editing components in the component set is determined as a target editing component based on the document identifier and the unique identity identifier, including: determining a keyword based on the document identifier and the unique identity identifier, wherein the keyword is used to characterize the name of the editing component or the type of the editing component; and determining the editing component corresponding to the keyword in the component set as the target editing component.

[0012] Optionally, the target editing component is used to process the prepared document to obtain the target document, including: copying the document data of the target editing component to the editing area of ​​the prepared document to obtain a processing result; determining whether the processing result meets the editing requirements of the user, and if the processing result meets the editing requirements of the user, rendering the prepared document to obtain the target document.

[0013] According to another aspect of the present application, an online document processing device is provided, comprising: a receiving unit, configured to receive an online document processing request sent by a user, wherein the online document processing request is used to request editing of a document to be processed, and the online document processing request includes a unique identity identifier of the user and a document identifier of the document to be processed; a first processing unit, configured to pre-process the document to be processed to obtain a prepared document, wherein the prepared document includes a plurality of document elements, the data format of the prepared document is a predetermined format, and the document element is the smallest unit constituting the prepared document; a determining unit, configured to obtain a component set and determine, based on the document identifier and the unique identity identifier, that at least one editing component in the component set is a target editing component, wherein the editing component is used to edit the document element; and a second processing unit, configured to process the prepared document using the target editing component to obtain a target document.

[0014] According to another aspect of the present application, a computer-readable storage medium is provided, wherein the computer-readable storage medium includes a stored program, wherein when the program is executed, the device where the computer-readable storage medium is located is controlled to execute any one of the methods described.

[0015] Applying the technical solution of the present application, a method for processing an online document is provided. First, an online document processing request sent by a user is received. The online document processing request is used to request editing of a document to be processed. The online document processing request includes a unique identification of the user and a document identification of the document to be processed. Then, the document to be processed is preprocessed to obtain a prepared document. The prepared document includes multiple document elements. The data format of the prepared document is a predetermined format. The document element is the smallest unit constituting the prepared document. Then, a component set is obtained and at least one editing component in the component set is determined as a target editing component according to the document identification and the unique identification. The editing component is used to edit the document element. The prepared document is processed using the target editing component to obtain the target document. By directly obtaining a component set including multiple components and determining the corresponding target editing component according to different identifications corresponding to different documents, the online document is directly edited by the target editing component, instead of manually downloading a large number of components, the efficiency of online document processing can be improved, and the problem of low efficiency of online document processing in the prior art is solved. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] The drawings constituting part of the present application are used to provide a further understanding of the present application. The exemplary embodiments and descriptions of the present application are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:

[0017] Figure 1 A hardware structure block diagram of a mobile terminal for executing an online document processing method provided in an embodiment of the present application is shown;

[0018] Figure 2 A schematic diagram showing a flow chart of a method for processing an online document provided according to an embodiment of the present application;

[0019] Figure 3 A schematic diagram of the structure of a recommendation system provided in an embodiment of the present application is shown;

[0020] Figure 4 A schematic diagram of a process for generating a custom component according to an embodiment of the present application is shown;

[0021] Figure 5 A flowchart of a use process of a document component provided according to an embodiment of the present application is shown.

[0022] Figure 6 A structural block diagram of an online document processing device provided according to an embodiment of the present application is shown.

[0023] The above drawings include the following reference numerals:

[0024] 102, processor; 104, memory; 106, transmission device; 108, input and output devices. DETAILED DESCRIPTION

[0025] It should be noted that, in the absence of conflict, the embodiments and features in the embodiments of the present application can be combined with each other. The present application will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.

[0026] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present application.

[0027] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequential order. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present application described here. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0028] For the convenience of description, some nouns or terms involved in the embodiments of the present application are explained below:

[0029] Document elements: various elements contained in a document, such as text, symbols, tables, and pictures.

[0030] Component: A simple encapsulation of data and methods. In C++Builder, a component is a specific object derived from TComponent. Components can be used to implement drag-and-drop programming, fast attribute processing, and true object-oriented design. The definition of a component is: a physical, replaceable part of a system that encapsulates the implementation and provides a series of available interfaces. A component represents the physical part of a system implementation, including software code (source code, binary code, and executable code) or some similar content, such as scripts or command files.

[0031] Document component: The document component in the present invention is derived from the component definition in the above software engineering. It extracts common and reusable document elements from multiple online documents and encapsulates them into a document component. The document component can be a text paragraph, a table, a picture, or a combination of various elements. The document component not only records the text content, but also records the layout and style of the document elements in detail. The document component can be applied to multiple online documents by others and become a component of the online document, so that the document can be edited quickly and unnecessary workload can be reduced.

[0032] Document component label: A document component label is used to identify different categories of document components. Specifically, it can be the category to which the document component belongs, or the keyword corresponding to the document component.

[0033] As introduced in the background technology, the efficiency of online document processing in the prior art is low. To solve the above problem, the embodiments of the present application provide an online document processing method, an online document processing device and a computer-readable storage medium.

[0034] The technical solutions in the embodiments of the present invention will be described clearly and completely below in conjunction with the accompanying drawings in the embodiments of the present invention.

[0035] The method embodiments provided in the embodiments of the present application can be executed in a mobile terminal, a computer terminal or a similar computing device. Taking running on a mobile terminal as an example, Figure 1 FIG. 1 is a hardware structure block diagram of a mobile terminal of an online document processing method according to an embodiment of the present invention. Figure 1 As shown, the mobile terminal may include one or more ( Figure 1 Only one is shown in the figure) a processor 102 (the processor 102 may include but is not limited to a processing device such as a microprocessor MCU or a programmable logic device FPGA) and a memory 104 for storing data, wherein the mobile terminal may also include a transmission device 106 and an input / output device 108 for communication functions. It can be understood by those skilled in the art that Figure 1 The structure shown is only for illustration and does not limit the structure of the mobile terminal. Figure 1 More or fewer components as shown, or with Figure 1 Different configurations are shown.

[0036] The memory 104 can be used to store computer programs, for example, software programs and modules of application software, such as the computer program corresponding to the online document processing method in the embodiment of the present invention. The processor 102 executes various functional applications and data processing by running the computer program stored in the memory 104, that is, the above method is implemented. The memory 104 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 104 may further include a memory remotely arranged relative to the processor 102, and these remote memories can be connected to the mobile terminal via a network. Examples of the above-mentioned network include but are not limited to the Internet, an intranet, a local area network, a mobile communication network, and a combination thereof. The transmission device 106 is used to receive or send data via a network. The above-mentioned specific examples of the network may include a wireless network provided by a communication provider of the mobile terminal. In one example, the transmission device 106 includes a network adapter (Network Interface Controller, referred to as NIC), which can be connected to other network devices through a base station so as to communicate with the Internet. In one example, the transmission device 106 may be a radio frequency (RF) module, which is used to communicate with the Internet wirelessly.

[0037] In this embodiment, a method for processing online documents running on a mobile terminal, a computer terminal or a similar computing device is provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.

[0038] Figure 2 is a flow chart of a method for processing online documents according to an embodiment of the present application. Figure 2 As shown, the method comprises the following steps:

[0039] Step S201, receiving an online document processing request sent by a user, wherein the online document processing request is used to request editing of a document to be processed, and the online document processing request includes a unique identity of the user and a document identity of the document to be processed;

[0040] Specifically, there is no limitation on the format of the document to be processed, for example, TXT, PDF, Word, PPT, Excel and other formats.

[0041] Step S202, preprocessing the to-be-processed document to obtain a preliminary document, wherein the preliminary document includes a plurality of document elements, the data format of the preliminary document is a predetermined format, and the document element is the smallest unit constituting the preliminary document;

[0042] Specifically, since the format of the document to be processed is not conducive to the retrieval and secondary extraction of the document structure and content, the pre-processing can make the prepared document obtained after the processing meet the subsequent requirements.

[0043] Step S203, obtaining a component set and determining at least one of the editing components in the component set as a target editing component according to the document identifier and the unique identity identifier, wherein the editing component is used to edit the document element;

[0044] Specifically, in the front-end online document editor, when users edit online documents, if they need to reuse document components, they can trigger the document component module and query the document component list; quickly search for the required document components in the component warehouse, i.e., the target editing component, by component name and component category, and select the corresponding required document components.

[0045] Step S204: Process the prepared document using the target editing component to obtain a target document.

[0046] Specifically, after determining the target editing component, the user can select the document insertion position in the document editing area of ​​the prepared document by using the mouse.

[0047] Through this embodiment, a method for processing an online document is provided. First, an online document processing request sent by a user is received. The online document processing request is used to request editing of a document to be processed. The online document processing request includes a unique identification of the user and a document identification of the document to be processed. Then, the document to be processed is preprocessed to obtain a preliminary document. The preliminary document includes multiple document elements. The data format of the preliminary document is a predetermined format. The document element is the smallest unit constituting the preliminary document. Then, a component set is obtained and at least one editing component in the component set is determined as a target editing component according to the document identification and the unique identification. The editing component is used to edit the document element. The preliminary document is processed using the target editing component to obtain the target document. By directly obtaining a component set including multiple components and determining the corresponding target editing component according to different identifications corresponding to different documents, the online document is directly edited by the target editing component, instead of manually downloading a large number of components, the efficiency of online document processing can be improved, and the problem of low efficiency of online document processing in the prior art is solved.

[0048] In the specific implementation process, the above step S202 can be implemented by the following steps: step S2021, performing format conversion processing on the above document to be processed to obtain a pre-processed document, wherein the data format of the above pre-processed document is JSON format; step S2022, performing online rendering processing on the above pre-processed document to obtain the above prepared document. This method can further improve the processing efficiency of the above document to be processed.

[0049] Specifically, taking the word format of the document to be processed as an example, since word itself is a binary file, it is not convenient to directly search and perform secondary extraction development on the document structure and content. The OpenXml protocol can be followed to decompose the word document data into layers and represent it as a hierarchical structure data, which is convenient for document information storage and retrieval, and can improve the development efficiency of word documents. Finally, the word information data is represented as a specific data format for storage.

[0050] In order to further improve the efficiency of rendering the pre-processed document, the step S2022 of the present application can be implemented by the following steps: step S20221, obtaining the style of the document element of the pre-processed document to obtain multiple styles to be processed, wherein the styles to be processed include at least paragraph style, text block style and document default style; step S20222, determining whether the style attributes of any two of the multiple styles to be processed are the same, and when the style attributes are different, performing union processing on the styles to be processed to obtain a first preliminary style; step S20223, when the style attributes are the same, determining that the text block style is the second preliminary style; step S20224, performing union processing on the first preliminary style and the second preliminary style to obtain a target style; step S20225, obtaining the document content of the pre-processed document, and the document content and the target style form the target document.

[0051] Specifically, after obtaining Word data stored in a specific data format, the data of paragraphs and tables are rendered into different web document contents respectively, the paragraph style, text block style, and default style of the data itself are calculated, different styles are merged, and the priorities of the same styles are compared respectively, and the style content in the paragraph or table is rendered. By rendering the document content and style content respectively, a one-to-one restoration with the document to be processed is achieved. In actual applications, the three styles of the paragraph style, text block style, and document default style of the pre-processed document will have different style attributes. For different style attributes, the paragraph style, text block style, and document default style will be combined; for the same style attribute, that is, at least two of the paragraph style, text block style, and document default style include this style attribute, that is, the style attributes conflict, and the style attribute priority is calculated and compared according to the following principle: document default attribute < paragraph attribute < text block attribute, and the text block attribute has the highest priority. For example: the font size attribute fontSize of a paragraph of text in an online document displays the font size. The fontSize is set to size 5 in the default document style of the online document, and the fontSize is set to size 4 in the text block style. Then the font size attribute for this paragraph of text is size 4. Other attributes can be calculated using a similar method.

[0052] The above component set includes at least a recommendation component. The above step S203 can also be implemented in other ways, for example: step S2031, obtaining historical usage data, wherein the above historical usage data is a usage record of the history editing component used by the multiple users before the current moment, and the history editing component is used to edit the document elements; step S2032, using a neighbor-based collaborative filtering algorithm to process the above historical usage data to obtain the above recommendation component, wherein the above neighbor-based collaborative filtering algorithm is used to predict the user's preference for the history editing component, and the preference of the recommendation component is in the top n positions of the preference of the multiple history editing components. This method can further quickly establish a component set containing multiple recommendation components.

[0053] Specifically, the acquisition of the above-mentioned recommended components can be achieved through a component recommendation system. The structural diagram of the component recommendation system is as follows: Figure 3 As shown in the figure, the data interface layer is used to communicate with the upper business system. The user log system contains the usage records of user components, and the user's component usage information is extracted from the log system. The knowledge base is a collection of all components, a collection of all users, and a learning set of the recommendation system. The entity relationship graph library is used to store the relationship between users, components, etc. The recommendation operation system automatically recommends components of interest to users based on specific algorithms based on user component usage data and user attributes, which facilitates user operation and improves work efficiency.

[0054] In some embodiments, the above step S2032 can be specifically implemented by one of the following steps: step S2033, determining that the above users with the same user attributes are recommended users, and recommending the same component set to the above recommended users; step S2034, calculating the similarity of any two of the above recommended components, obtaining multiple similarities, and determining that the recommended component corresponding to the maximum value of the multiple similarities is a similar component, and recommending the recommended component and the similar component to the above users. This method can further meet the editing needs of different users through the recommendation algorithm.

[0055] Specifically, the neighbor-based method can be used to study the similarity calculation problem between users or items. By finding users with similar attributes (same or similar positions), and then collecting and analyzing the component usage data of neighbors, components of interest can be recommended to target users. Components of interest can also be recommended to target users based on component usage and the similarity between components.

[0056] The component set includes at least a custom component, and the step S203 further includes: step S2035, obtaining an online document, and determining that an area in the online document that includes a predetermined document element is a target area; step S2036, removing the annotation information of the target area and the document default style of the predetermined document element to obtain the custom component. The method can further quickly establish a component set including multiple custom components.

[0057] Specifically, the user can select a part of the area in the online document with the mouse, and then click the Create Document Component menu on the selected area. The editor will copy the content, style attributes and document information of the selected area in the online document and pass it to the server. The server removes the document default style and annotation information of the original online document, saves the paragraph style and text block style, and stores them in the library together with the component content to generate a new component. In actual applications, the generated custom component is reviewed based on whether the custom component is set as a public component identifier. If it is set as a public component, the component warehouse administrator will be notified for review. After approval, it will take effect and can be shared by users. Otherwise, it is a personalized component that can only be used by the creator personally.

[0058] The above process diagram for generating custom components is as follows Figure 4As shown, in the front-end editor module, when the user edits an online document, if the content in the document needs to be created as a component, the user can select any part of the content in the document with the left mouse button or double-click the table to directly select the current table content, triggering the document component generation function; by reading the selected document content area, then generating the corresponding content fragment, removing the annotation information, and saving the structured storage field, data source return and other business-related information, and then copying the document information of the current document, including the default style of the full text of the document, document creation information and business-related information, etc., and then merging based on the current user information, and then generating the final document content to obtain a new document component; the document component module receives the generation instruction, and the component module sets the business classification, name and other attribute information for the component; according to whether the document component is set as a public component identifier, the generated document component is reviewed. If it is set as a public component, the component warehouse administrator will be notified for review. After passing, it will take effect and can be shared and used by users. Otherwise, it is a personalized component that can only be used by the creator personally. The generated document components are uniformly saved in the component warehouse, that is, a document component is generated.

[0059] The above step S203 can also be implemented by the following steps: step S2037, determining a keyword based on the above document identifier and the above unique identity identifier, wherein the above keyword is used to characterize the name of the above editing component or the type of the above editing component; step S2038, determining that the above editing component corresponding to the above keyword in the above component set is the above target editing component. This method can further quickly determine the target editing component from the component set.

[0060] Specifically, the schematic diagram of the selection and use process of the target editing component is as follows: Figure 5 As shown, in the front-end editor module, when the user edits an online document, if the document component needs to be reused, the document component module can be triggered to query the document component list; the required document component can be quickly searched in the component warehouse by component name and component category, and the corresponding required document component can be selected, and the preview button can be clicked to trigger the document component preview module. If no preview is required, the Add button can also be directly clicked; the document component preview module is triggered, and the document component content will be echoed to the front-end page in the form of a picture or other form for the user to preview; after the previewed document component content is confirmed to be correct, the Add button is clicked, and the document component module sends the component tag information to the component library; the document component module obtains the corresponding document component information according to the component tag information, and sends the component related information to the document merge module; the document merge module merges the document content and the component content into a new document according to the tag information, and then sends it to the front-end editor module. The front-end editor module obtains the new document data and re-renders the document data into a new document. That is, a quick application of a document component is completed; the above steps can be repeated until the entire online document editing is completed.

[0061] The above step S204 can be implemented by the following steps: step S2041, copying the document data of the above target editing component to the editing area of ​​the above prepared document to obtain a processing result; step S2042, determining whether the above processing result meets the editing needs of the above user, and if the above processing result meets the editing needs of the above user, rendering the above prepared document to obtain the above target document. This method can further meet the editing needs of different users.

[0062] Specifically, the user can select the desired document component through the document component preview. If the user's needs are not met, the target editing component can be selected and previewed again. If the user's editing needs are met, after confirmation, click Confirm Add to add the document component to the editing area of ​​the prepared document, that is, copy the document data of the target editing component, add the unique paragraph style Id and other document information content of the target editing component to the document information content in the prepared document, and insert the content data of the target editing component into the position of the cursor, and render the inserted content again to obtain the target document.

[0063] The embodiment of the present application also provides a device for processing online documents. It should be noted that the device for processing online documents in the embodiment of the present application can be used to execute the method for processing online documents provided in the embodiment of the present application. The device is used to implement the above-mentioned embodiments and preferred implementation modes, and the descriptions thereof will not be repeated. As used below, the term "module" can implement a combination of software and / or hardware for a predetermined function. Although the device described in the following embodiments is preferably implemented in software, the implementation in hardware, or a combination of software and hardware, is also possible and conceivable.

[0064] The following is an introduction to the online document processing device provided in an embodiment of the present application.

[0065] Figure 6 Schematic diagram of an online document processing device according to an embodiment of the present application. Figure 6 As shown, the device comprises:

[0066] The receiving unit 10 is used to receive an online document processing request sent by a user, wherein the online document processing request is used to request editing of a document to be processed, and the online document processing request includes a unique identity of the user and a document identity of the document to be processed;

[0067] Specifically, there is no limitation on the format of the document to be processed, for example, TXT, PDF, Word, PPT, Excel and other formats.

[0068] A first processing unit 20 is used to pre-process the document to be processed to obtain a preliminary document, wherein the preliminary document includes a plurality of document elements, the data format of the preliminary document is a predetermined format, and the document element is the smallest unit constituting the preliminary document;

[0069] Specifically, since the format of the document to be processed is not conducive to the retrieval and secondary extraction of the document structure and content, the pre-processing can make the prepared document obtained after the processing meet the subsequent requirements.

[0070] A determination unit 30, configured to obtain a component set and determine, based on the document identifier and the unique identity identifier, at least one of the editing components in the component set as a target editing component, wherein the editing component is used to perform editing processing on the document element;

[0071] Specifically, in the front-end online document editor, when users edit online documents, if they need to reuse document components, they can trigger the document component module and query the document component list; quickly search for the required document components in the component warehouse, i.e., the target editing component, by component name and component category, and select the corresponding required document components.

[0072] The second processing unit 40 is used to process the prepared document using the target editing component to obtain a target document.

[0073] Specifically, after determining the target editing component, the user can select the document insertion position in the document editing area of ​​the prepared document by using the mouse.

[0074] Through this embodiment, an online document processing device is provided, wherein a receiving unit receives an online document processing request sent by a user, the online document processing request is used to request editing of a document to be processed, and the online document processing request includes a unique identification of the user and a document identification of the document to be processed; a first processing unit pre-processes the document to be processed to obtain a prepared document, the prepared document includes multiple document elements, the data format of the prepared document is a predetermined format, and the document element is the smallest unit constituting the prepared document; a determining unit obtains a component set and determines at least one editing component in the component set as a target editing component according to the document identification and the unique identification, and the editing component is used to edit the document element; a second processing unit processes the prepared document using the target editing component to obtain a target document. By directly obtaining a component set including multiple components, and determining the corresponding target editing component according to different identifications corresponding to different documents, and directly editing the online document through the target editing component, instead of manually downloading a large number of components, the efficiency of online document processing can be improved, and the problem of low efficiency of online document processing in the prior art is solved.

[0075] In the specific implementation process, the first processing unit includes a first processing module and a second processing module, wherein the first processing module is used to perform format conversion processing on the above-mentioned document to be processed to obtain a pre-processed document, wherein the data format of the above-mentioned pre-processed document is JSON format; the second processing module is used to perform online rendering processing on the above-mentioned pre-processed document to obtain the above-mentioned prepared document. The device can further improve the processing efficiency of the above-mentioned document to be processed.

[0076] Specifically, taking the word format of the document to be processed as an example, since word itself is a binary file, it is not convenient to directly search and perform secondary extraction development on the document structure and content. The OpenXml protocol can be followed to decompose the word document data into layers and represent it as a hierarchical structure data, which is convenient for document information storage and retrieval, and can improve the development efficiency of word documents. Finally, the word information data is represented as a specific data format for storage.

[0077] In order to further improve the efficiency of rendering the pre-processed document, the second processing module of the present application includes a first acquisition submodule, a first determination submodule, a second determination submodule, a processing submodule and a second acquisition submodule, wherein the first acquisition submodule is used to acquire the style of the document element of the pre-processed document to obtain multiple styles to be processed, wherein the styles to be processed at least include paragraph styles, text block styles and document default styles; the first determination submodule is used to determine whether the style attributes of any two of the multiple styles to be processed are the same, and when the style attributes are different, the styles to be processed are unioned to obtain a first preliminary style; the second determination submodule is used to determine that the text block style is a second preliminary style when the style attributes are the same; the processing submodule is used to union the first preliminary style and the second preliminary style to obtain a target style; the second acquisition submodule is used to acquire the document content of the pre-processed document, and the document content and the target style form the target document.

[0078] Specifically, after obtaining Word data stored in a specific data format, the data of paragraphs and tables are rendered into different web document contents respectively, the paragraph style, text block style, and default style of the data itself are calculated, different styles are merged, and the priorities of the same styles are compared respectively, and the style content in the paragraph or table is rendered. By rendering the document content and style content respectively, a one-to-one restoration with the document to be processed is achieved. In actual applications, the three styles of the paragraph style, text block style, and document default style of the pre-processed document will have different style attributes. For different style attributes, the paragraph style, text block style, and document default style will be combined; for the same style attribute, that is, at least two of the paragraph style, text block style, and document default style include this style attribute, that is, the style attributes conflict, and the style attribute priority is calculated and compared according to the following principle: document default attribute < paragraph attribute < text block attribute, and the text block attribute has the highest priority. For example: the font size attribute fontSize of a paragraph of text in an online document displays the font size. The fontSize is set to size 5 in the default document style of the online document, and the fontSize is set to size 4 in the text block style. Then the font size attribute for this paragraph of text is size 4. Other attributes can be calculated using a similar method.

[0079] The component set at least includes a recommendation component, and the determination unit includes an acquisition module and a third processing module, wherein the acquisition module is used to acquire historical usage data, wherein the historical usage data is a usage record of the history editing component used by multiple users before the current moment, and the history editing component is used to edit the document elements; the third processing module is used to process the historical usage data using a neighbor-based collaborative filtering algorithm to obtain the recommendation component, wherein the neighbor-based collaborative filtering algorithm is used to predict the user's preference for the history editing component, and the preference of the recommendation component is in the top n positions of the preference of the multiple history editing components. The device can further quickly establish a component set including multiple recommendation components.

[0080] Specifically, the acquisition of the above-mentioned recommended components can be achieved through a component recommendation system. The structural diagram of the component recommendation system is as follows: Figure 3 As shown in the figure, the data interface layer is used to communicate with the upper business system. The user log system contains the usage records of user components, and the user's component usage information is extracted from the log system. The knowledge base is a collection of all components, a collection of all users, and a learning set of the recommendation system. The entity relationship graph library is used to store the relationship between users, components, etc. The recommendation operation system automatically recommends components of interest to users based on specific algorithms based on user component usage data and user attributes, which facilitates user operation and improves work efficiency.

[0081] In some embodiments, the determination unit includes a first determination module and a calculation module, wherein the first determination module is used to determine that the users with the same user attributes of the multiple users are recommended users, and recommend the same set of components to the multiple recommended users; the calculation module is used to calculate the similarity of any two of the recommended components, obtain multiple similarities, and determine that the recommended component corresponding to the maximum value of the multiple similarities is a similar component, and recommend the recommended component and the similar component to the users. The device can further meet the editing needs of different users through the recommendation algorithm.

[0082] Specifically, the neighbor-based method can be used to study the similarity calculation problem between users or items. By finding users with similar attributes (same or similar positions), and then collecting and analyzing the component usage data of neighbors, components of interest can be recommended to target users. Components of interest can also be recommended to target users based on component usage and the similarity between components.

[0083] The component set includes at least a custom component, and the determination unit includes a second determination module and a removal module, wherein the second determination module is used to obtain an online document and determine that an area in the online document containing a predetermined document element is a target area; and the removal module is used to remove the annotation information of the target area and the document default style of the predetermined document element to obtain the custom component. The device can further quickly establish a component set including multiple custom components.

[0084] Specifically, the user can select a part of the area in the online document with the mouse, and then click the Create Document Component menu on the selected area. The editor will copy the content, style attributes and document information of the selected area in the online document and pass it to the server. The server removes the document default style and annotation information of the original online document, saves the paragraph style and text block style, and stores them in the library together with the component content to generate a new component. In actual applications, the generated custom component is reviewed based on whether the custom component is set as a public component identifier. If it is set as a public component, the component warehouse administrator will be notified for review. After approval, it will take effect and can be shared by users. Otherwise, it is a personalized component that can only be used by the creator personally.

[0085] The above process diagram for generating custom components is as follows Figure 4As shown, in the front-end editor module, when the user edits an online document, if the content in the document needs to be created as a component, the user can select any part of the content in the document with the left mouse button or double-click the table to directly select the current table content, triggering the document component generation function; by reading the selected document content area, then generating the corresponding content fragment, removing the annotation information, and saving the structured storage field, data source return and other business-related information, and then copying the document information of the current document, including the default style of the full text of the document, document creation information and business-related information, etc., and then merging based on the current user information, and then generating the final document content to obtain a new document component; the document component module receives the generation instruction, and the component module sets the business classification, name and other attribute information for the component; according to whether the document component is set as a public component identifier, the generated document component is reviewed. If it is set as a public component, the component warehouse administrator will be notified for review. After passing, it will take effect and can be shared and used by users. Otherwise, it is a personalized component that can only be used by the creator personally. The generated document components are uniformly saved in the component warehouse, that is, a document component is generated.

[0086] The determination unit further includes a third determination module and a fourth determination module, wherein the third determination module is used to determine a keyword based on the document identifier and the unique identity identifier, wherein the keyword is used to characterize the name of the editing component or the type of the editing component; and the fourth determination module is used to determine that the editing component corresponding to the keyword in the component set is the target editing component. The device can further quickly determine the target editing component from the component set.

[0087] Specifically, the schematic diagram of the selection and use process of the target editing component is as follows: Figure 5 As shown, in the front-end editor module, when the user edits an online document, if the document component needs to be reused, the document component module can be triggered to query the document component list; the required document component can be quickly searched in the component warehouse by component name and component category, and the corresponding required document component can be selected, and the preview button can be clicked to trigger the document component preview module. If no preview is required, the Add button can also be directly clicked; the document component preview module is triggered, and the document component content will be echoed to the front-end page in the form of a picture or other form for the user to preview; after the previewed document component content is confirmed to be correct, the Add button is clicked, and the document component module sends the component tag information to the component library; the document component module obtains the corresponding document component information according to the component tag information, and sends the component related information to the document merge module; the document merge module merges the document content and the component content into a new document according to the tag information, and then sends it to the front-end editor module. The front-end editor module obtains the new document data and re-renders the document data into a new document. That is, a quick application of a document component is completed; the above steps can be repeated until the entire online document editing is completed.

[0088] The second processing unit includes a copy module and a fourth processing module, wherein the copy module is used to copy the document data of the target editing component to the editing area of ​​the prepared document to obtain a processing result; the fourth processing module is used to determine whether the processing result meets the editing requirements of the user, and if the processing result meets the editing requirements of the user, the prepared document is rendered to obtain the target document. The device can further meet the editing requirements of different users.

[0089] Specifically, the user can select the desired document component through the document component preview. If the user's needs are not met, the target editing component can be selected and previewed again. If the user's editing needs are met, after confirmation, click Confirm Add to add the document component to the editing area of ​​the prepared document, that is, copy the document data of the target editing component, add the unique paragraph style Id and other document information content of the target editing component to the document information content in the prepared document, and insert the content data of the target editing component into the position of the cursor, and render the inserted content again to obtain the target document.

[0090] The above-mentioned online document processing device includes a processor and a memory, and the above-mentioned receiving unit, the first processing unit, the determining unit and the second processing unit are all stored in the memory as program units, and the processor executes the above-mentioned program units stored in the memory to realize corresponding functions. The above-mentioned modules are all located in the same processor; or, the above-mentioned modules are located in different processors in any combination.

[0091] The processor includes a kernel, which calls the corresponding program unit from the memory. One or more kernels can be set, and the online document can be processed by adjusting the kernel parameters.

[0092] The memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory, such as read-only memory (ROM) or flash RAM, and the memory includes at least one memory chip.

[0093] An embodiment of the present invention provides a computer-readable storage medium, wherein the computer-readable storage medium includes a stored program, wherein when the program is executed, the device where the computer-readable storage medium is located is controlled to execute the online document processing method.

[0094] Specifically, the online document processing method includes:

[0095] Step S201, receiving an online document processing request sent by a user, wherein the online document processing request is used to request editing of a document to be processed, and the online document processing request includes a unique identity of the user and a document identity of the document to be processed;

[0096] Specifically, there is no limitation on the format of the document to be processed, for example, TXT, PDF, Word, PPT, Excel and other formats.

[0097] Step S202, preprocessing the to-be-processed document to obtain a preliminary document, wherein the preliminary document includes a plurality of document elements, the data format of the preliminary document is a predetermined format, and the document element is the smallest unit constituting the preliminary document;

[0098] Specifically, since the format of the document to be processed is not conducive to the retrieval and secondary extraction of the document structure and content, the pre-processing can make the prepared document obtained after the processing meet the subsequent requirements.

[0099] Step S203, obtaining a component set and determining at least one of the editing components in the component set as a target editing component according to the document identifier and the unique identity identifier, wherein the editing component is used to edit the document element;

[0100] Specifically, in the front-end online document editor, when users edit online documents, if they need to reuse document components, they can trigger the document component module and query the document component list; quickly search for the required document components in the component warehouse, i.e., the target editing component, by component name and component category, and select the corresponding required document components.

[0101] Step S204: Process the prepared document using the target editing component to obtain a target document.

[0102] Specifically, after determining the target editing component, the user can select the document insertion position in the document editing area of ​​the prepared document by using the mouse.

[0103] An embodiment of the present invention provides a processor, and the processor is used to run a program, wherein the program executes the online document processing method when running.

[0104] Specifically, the online document processing method includes:

[0105] Step S201, receiving an online document processing request sent by a user, wherein the online document processing request is used to request editing of a document to be processed, and the online document processing request includes a unique identity of the user and a document identity of the document to be processed;

[0106] Specifically, there is no limitation on the format of the document to be processed, for example, TXT, PDF, Word, PPT, Excel and other formats.

[0107] Step S202, preprocessing the to-be-processed document to obtain a preliminary document, wherein the preliminary document includes a plurality of document elements, the data format of the preliminary document is a predetermined format, and the document element is the smallest unit constituting the preliminary document;

[0108] Specifically, since the format of the document to be processed is not conducive to the retrieval and secondary extraction of the document structure and content, the pre-processing can make the prepared document obtained after the processing meet the subsequent requirements.

[0109] Step S203, obtaining a component set and determining at least one of the editing components in the component set as a target editing component according to the document identifier and the unique identity identifier, wherein the editing component is used to edit the document element;

[0110] Specifically, in the front-end online document editor, when users edit online documents, if they need to reuse document components, they can trigger the document component module and query the document component list; quickly search for the required document components in the component warehouse, i.e., the target editing component, by component name and component category, and select the corresponding required document components.

[0111] Step S204: Process the prepared document using the target editing component to obtain a target document.

[0112] Specifically, after determining the target editing component, the user can select the document insertion position in the document editing area of ​​the prepared document by using the mouse.

[0113] An embodiment of the present invention provides a device, the device including a processor, a memory, and a program stored in the memory and executable on the processor, and when the processor executes the program, at least the following steps are implemented:

[0114] Step S201, receiving an online document processing request sent by a user, wherein the online document processing request is used to request editing of a document to be processed, and the online document processing request includes a unique identity of the user and a document identity of the document to be processed;

[0115] Step S202, preprocessing the to-be-processed document to obtain a preliminary document, wherein the preliminary document includes a plurality of document elements, the data format of the preliminary document is a predetermined format, and the document element is the smallest unit constituting the preliminary document;

[0116] Step S203, obtaining a component set and determining at least one of the editing components in the component set as a target editing component according to the document identifier and the unique identity identifier, wherein the editing component is used to edit the document element;

[0117] Step S204: Process the prepared document using the target editing component to obtain a target document.

[0118] The devices in this article can be servers, PCs, PADs, mobile phones, etc.

[0119] The present application also provides a computer program product, which, when executed on a data processing device, is suitable for executing a program for initializing at least the following method steps:

[0120] Step S201, receiving an online document processing request sent by a user, wherein the online document processing request is used to request editing of a document to be processed, and the online document processing request includes a unique identity of the user and a document identity of the document to be processed;

[0121] Step S202, preprocessing the to-be-processed document to obtain a preliminary document, wherein the preliminary document includes a plurality of document elements, the data format of the preliminary document is a predetermined format, and the document element is the smallest unit constituting the preliminary document;

[0122] Step S203, obtaining a component set and determining at least one of the editing components in the component set as a target editing component according to the document identifier and the unique identity identifier, wherein the editing component is used to edit the document element;

[0123] Step S204: Process the prepared document using the target editing component to obtain a target document.

[0124] Obviously, those skilled in the art should understand that the above modules or steps of the present invention can be implemented by a general computing device, they can be concentrated on a single computing device, or distributed on a network composed of multiple computing devices, they can be implemented by a program code executable by a computing device, so that they can be stored in a storage device and executed by the computing device, and in some cases, the steps shown or described can be executed in a different order than here, or they can be made into individual integrated circuit modules, or multiple modules or steps therein can be made into a single integrated circuit module for implementation. Thus, the present invention is not limited to any specific combination of hardware and software.

[0125] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented in one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that include computer-usable program code.

[0126] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0127] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0128] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0129] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.

[0130] The memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.

[0131] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.

[0132] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.

[0133] From the above description, it can be seen that the above embodiments of the present application achieve the following technical effects:

[0134] 1) The online document processing method of the present application first receives an online document processing request sent by a user, the online document processing request is used to request editing of the document to be processed, and the online document processing request includes the user's unique identity and the document identity of the document to be processed; then the document to be processed is pre-processed to obtain a preliminary document, the preliminary document includes multiple document elements, the data format of the preliminary document is a predetermined format, and the document element is the smallest unit constituting the preliminary document; then, a component set is obtained and at least one editing component in the component set is determined as a target editing component according to the document identity and the unique identity, and the editing component is used to edit the document element; the preliminary document is processed using the target editing component to obtain the target document. By directly obtaining a component set including multiple components, and determining the corresponding target editing component according to different identities corresponding to different documents, and directly editing the online document through the target editing component, instead of manually downloading a large number of components, the efficiency of online document processing can be improved, and the problem of low efficiency of online document processing in the prior art is solved.

[0135] 2) The online document processing device of the present application comprises a receiving unit receiving an online document processing request sent by a user, wherein the online document processing request is used to request editing of the document to be processed, and the online document processing request includes the user's unique identification and the document identification of the document to be processed; the first processing unit pre-processes the document to be processed to obtain a prepared document, wherein the prepared document includes a plurality of document elements, the data format of the prepared document is a predetermined format, and the document element is the smallest unit constituting the prepared document; the determining unit obtains a component set and determines at least one editing component in the component set as a target editing component according to the document identification and the unique identification, wherein the editing component is used to edit the document element; the second processing unit processes the prepared document using the target editing component to obtain the target document. By directly obtaining a component set including a plurality of components, and determining the corresponding target editing component according to different identifications corresponding to different documents, and directly editing the online document through the target editing component, instead of manually downloading a large number of components, the efficiency of online document processing can be improved, and the problem of low efficiency of online document processing in the prior art is solved.

[0136] The above description is only the preferred embodiment of the present application and is not intended to limit the present application. For those skilled in the art, the present application may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application shall be included in the protection scope of the present application.

Claims

1. A method for processing an online document, characterized in that: include: Receiving an online document processing request sent by a user, the online document processing request is used to request editing of a document to be processed, and the online document processing request includes a unique identity of the user and a document identifier of the document to be processed; Preprocessing the document to be processed to obtain a preliminary document, wherein the preliminary document includes a plurality of document elements, the data format of the preliminary document is a predetermined format, and the document element is the smallest unit constituting the preliminary document; Acquire a component set and determine, according to the document identifier and the unique identity identifier, at least one editing component in the component set as a target editing component, wherein the component set includes a plurality of the editing components, and the editing component is used to edit the document element; The target editing component is used to process the preliminary document to obtain a target document.

2. The method according to claim 1, characterized in that Preprocessing the document to be processed to obtain a preliminary document includes: Performing format conversion processing on the document to be processed to obtain a pre-processed document, wherein the data format of the pre-processed document is JSON format; The pre-processed document is rendered online to obtain the preliminary document.

3. The method according to claim 2, characterized in that Performing online rendering processing on the pre-processed document to obtain the prepared document includes: Acquire the styles of the document elements of the preprocessed document to obtain a plurality of to-be-processed styles, wherein the to-be-processed styles at least include a paragraph style, a text block style, and a document default style; determining whether style attributes of any two of the plurality of styles to be processed are the same; and if the style attributes are different, performing a union process on the styles to be processed to obtain a first preliminary style; In the case where the style attributes are the same, determining the text block style to be a second preliminary style; performing a union process on the first preliminary pattern and the second preliminary pattern to obtain a target pattern; The document content of the preprocessed document is acquired, and the document content and the target style form the target document.

4. The method according to claim 1, characterized in that: The component set includes at least a recommended component, and obtaining the component set includes: Acquire historical usage data, wherein the historical usage data is a usage record of a history editing component used by a plurality of the users before a current moment, the history editing component being used to edit the document element; The historical usage data is processed using a neighbor-based collaborative filtering algorithm to obtain the recommended component, wherein the neighbor-based collaborative filtering algorithm is used to predict the user's preference for the historical editing component, and the preference level of the recommended component is in the top n positions among the preference levels of multiple historical editing components.

5. The method according to claim 4, characterized in that After the historical usage data is processed using a neighbor-based collaborative filtering algorithm to obtain the recommended component, the method further includes one of the following: Determine that the multiple users having the same user attributes are recommended users, and recommend the same component set to the multiple recommended users; The similarity between any two of the recommended components is calculated to obtain multiple similarities, and the recommended component corresponding to the maximum value among the multiple similarities is determined to be a similar component, and the recommended component and the similar component are recommended to the user.

6. The method according to claim 1, characterized in that The component collection includes at least a custom component, and obtaining the component collection includes: Acquire an online document, and determine an area in the online document containing a predetermined document element as a target area; The annotation information of the target area and the document default style of the predetermined document element are removed to obtain the custom component.

7. The method according to claim 1, characterized in that Determining at least one of the editing components in the component set as a target editing component according to the document identifier and the unique identity identifier includes: Determine a keyword according to the document identifier and the unique identity identifier, wherein the keyword is used to represent the name of the editing component or the type of the editing component; The editing component corresponding to the keyword in the component set is determined as the target editing component.

8. The method according to claim 1, characterized in that: The target editing component is used to process the preliminary document to obtain a target document, including: Copying the document data of the target editing component to the editing area of ​​the prepared document to obtain a processing result; Determine whether the processing result meets the editing requirement of the user, and if the processing result meets the editing requirement of the user, render the prepared document to obtain the target document.

9. An online document processing device, characterized in that: include: A receiving unit, configured to receive an online document processing request sent by a user, wherein the online document processing request is used to request editing of a document to be processed, and the online document processing request includes a unique identity of the user and a document identity of the document to be processed; A first processing unit is used to pre-process the document to be processed to obtain a preliminary document, wherein the preliminary document includes a plurality of document elements, the data format of the preliminary document is a predetermined format, and the document element is the smallest unit constituting the preliminary document; A determination unit, configured to obtain a component set and determine, according to the document identifier and the unique identity identifier, at least one editing component in the component set as a target editing component, wherein the component set includes a plurality of the editing components, and the editing component is used to perform editing processing on the document element; The second processing unit is used to process the preliminary document using the target editing component to obtain a target document.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium includes a stored program, wherein when the program is executed, the device where the computer-readable storage medium is located is controlled to execute the method according to any one of claims 1 to 8.

Citation Information

Cited By

  • Structured document processing method and device

    CN119692323A