Document processing method and device, electronic equipment and storage medium
By obtaining and applying the modification instructions during document format conversion, the problem of inability to trace back and loss of changes after document format conversion in the prior art is solved, and efficient format conversion and change records based on existing documents are realized, improving user experience .
Patent Information
- Application Number
- CN202410991982.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-23
- Publication Date
- 2024-12-03
AI Technical Summary
The prior art cannot convert formats based on existing documents, resulting in the user requiring re-collaboration after the document format is converted, and the collaboration operation cannot be traced back, affecting the user experience.
By obtaining the document format conversion task, performing the conversion task, obtaining and applying the modification instructions during the conversion, generating and saving the version of the converted document, ensuring that the format conversion process does not lose the modification operation and goes back to the previous version if necessary.
It realizes format conversion based on existing documents without the need for users to re-collaborate and set, ensuring that the converted documents meet user expectations, and fully record and track changes, improving user experience.
Smart Images

Figure CN119067074A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of computers, and in particular to a document processing method, device, electronic device and storage medium. Background Art
[0002] With the development of the Internet, the development of computer technology and the changes in user needs, the format of electronic documents (hereinafter referred to as documents) is also gradually being upgraded. Taking spreadsheet documents as an example, there are currently two document formats: traditional spreadsheets and smart spreadsheets. Based on traditional spreadsheets, smart spreadsheets combine the characteristics of databases and add functional modules such as small applications, automation, process, dashboards, extensions, and AI. It is hoped that users can use spreadsheets to collect and summarize data, clean and analyze data more easily and simply, making work management and collaboration more organized.
[0003] Currently, there are three ways to convert document formats: create a new document in another format, upload locally, and save as. Create a new document in another format means to create a new document in another format and then retype the content. Upload locally means to upload a local file to the cloud server and choose to convert it to a document in another format during the upload process. Save as means to create a document in another format as a copy.
[0004] However, no matter which document format conversion method is used, it essentially requires users to create new documents rather than converting the format of existing documents. This requires users to re-set up collaboration on the document after the document format conversion. Moreover, after the document format conversion, it is impossible to backtrack the collaborative operations on the document during the document format conversion, resulting in the version of the document after the document format conversion not meeting user expectations and satisfying user needs, affecting user experience. Summary of the invention
[0005] The present application provides a document processing method, device, electronic device and storage medium to solve the technical problem that the prior art cannot perform format conversion on the basis of an existing document, resulting in the need for users to re-set up collaboration on the document after the document format conversion, and that after the document format conversion, the collaborative operations on the document during the document format conversion cannot be traced back, resulting in the version of the document after the document format conversion not meeting user expectations, failing to meet user needs, and affecting user experience.
[0006] In a first aspect, the present application provides a document processing method, the method comprising:
[0007] Acquire a document format conversion task, where the document format conversion task indicates converting a document format of a target document from a first format to a second format;
[0008] Executing the document format conversion task to generate a converted document of the target document corresponding to the second format;
[0009] Acquiring a modification instruction for the target document during execution of the document format conversion task;
[0010] The modification instruction is executed on the converted document, and the modified document is saved as a format-converted version document of the target document.
[0011] In a possible implementation manner, before executing the document format conversion task, the method further includes:
[0012] The current target document is saved as a version document before the format conversion of the target document.
[0013] In a possible implementation manner, after executing the document format conversion task and generating a converted document of the target document corresponding to the second format, the method further includes:
[0014] Generating a format conversion collaboration record of executing the document format conversion task on the target document;
[0015] In the case where the modified document is saved as a format-converted version of the target document fails, the method further includes:
[0016] Obtaining a version document of the target document before format conversion;
[0017] Based on the format conversion collaboration record, a document format conversion process is performed on a version of the target document before format conversion to regenerate a converted document of the target document corresponding to the second format.
[0018] In a possible implementation, after executing the modification instruction on the converted document and saving the modified document as a format-converted version document of the target document, the method further includes:
[0019] The format-converted version of the target document is used as the latest version of the target document.
[0020] In a possible implementation manner, after converting the target document into a new version as the target document, the method further includes:
[0021] The document service process enabled by the target document is switched from the first document service process to the second document service process; the first document service process is used to provide modification services for documents in the first format, and the second document service process is used to provide modification services for documents in the second format; the collaborator of the target document connects the display interface of the target document to the document service process enabled by the target document;
[0022] In a possible implementation manner, after switching the document service process enabled by the target document from the first document service process to the second document service process, the method further includes:
[0023] The latest version of the target document is loaded, where the latest version is the format-converted version or other version of the document, wherein the other version of the document is a document modified by a collaborator of the target document and is newer than the format-converted version.
[0024] In a possible implementation, the loading of the latest version of the target document includes:
[0025] Obtain the latest version of the target document;
[0026] When it is determined that the document format of the latest version document matches the second document service process, the latest version document of the target document is loaded by using the second document service process enabled by the target document.
[0027] In a possible implementation, the loading of the latest version of the target document includes:
[0028] Obtain the latest version of the target document;
[0029] If it is determined that the document format of the latest version of the document does not match the second document service process, switching the document service process enabled by the target document from the second document service process to the first document service process;
[0030] The first document service process enabled by the target document is used to load the latest version of the target document.
[0031] In a possible implementation manner, after the latest version of the target document is loaded, the method further includes:
[0032] Receiving a document version restoration request, wherein the document version restoration request indicates restoring the latest version of the target online document to a specified historical version document;
[0033] Obtain the specified historical version document;
[0034] The specified historical version document is used as the latest version document of the target document.
[0035] In a possible implementation manner, switching the document service process enabled by the target document from the first document service process to the second document service process includes:
[0036] Exit the first document service process currently enabled by the target document;
[0037] A second document service process for the target document is started.
[0038] In a possible implementation, it further includes:
[0039] Before loading the format-converted version document, starting a second document service process for the target document;
[0040] The step of switching the document service process enabled by the target document from the first document service process to the second document service process includes:
[0041] The second document service process is determined as the document service process currently enabled for the target document.
[0042] In a possible implementation manner, before loading the format-converted version document, starting the second document service process of the target document includes:
[0043] In response to the document format conversion task, a second document service process for the target document is started.
[0044] In a possible implementation manner, before determining the second document service process as the document service process currently enabled for the target document, an enable flag is set for the first document service process, and a disable flag is set for the second document service process;
[0045] The step of determining the second document service process as the document service process currently enabled by the target document includes:
[0046] An enabling flag is set for the second document service process, and a disabling flag is set for the first document service process.
[0047] In a possible implementation manner, both the first document service process and the second document service process have access rights to the modification instruction.
[0048] In a possible implementation manner, before obtaining the instruction to modify the target document during the execution of the document format conversion task, the method further includes:
[0049] During the execution of the document format conversion task, obtaining a modification operation performed by a collaborator of the target document on the target document in the first format;
[0050] Based on the acquired modification operation, generating a modification instruction corresponding to the target document in the first format;
[0051] The obtaining of the modification instruction for the target document during the execution of the document format conversion task includes:
[0052] A modification instruction corresponding to the target document in a first format is obtained.
[0053] In a possible implementation, executing the modification instruction on the converted document includes:
[0054] updating the modification instruction corresponding to the target document in the first format to the modification instruction corresponding to the target document in the second format;
[0055] The modification instruction corresponding to the target document in the second format is executed on the converted document.
[0056] In a possible implementation, the method further includes:
[0057] During the execution of the document format conversion task, in response to a modification instruction for the target document, the modification instruction is executed on the target document, and a collaboration record formed by executing the modification instruction is saved in a designated storage medium;
[0058] The obtaining of the modification instruction for the target document during the execution of the document format conversion task includes:
[0059] Acquire a collaboration record generated by modifying the target document during the execution of the document format conversion task;
[0060] The modification instruction is parsed from the collaboration record.
[0061] In a second aspect, the present application provides a document processing method, the method comprising:
[0062] In response to a first trigger operation on a target document, triggering a document format conversion task, wherein the document format conversion task indicates converting the document format of the target document from a first format to a second format, so as to generate a format-converted version document of the target document corresponding to the second format;
[0063] The format-converted version document is displayed, wherein the format-converted version document includes modified content formed by modifying the target document during the execution of the document format conversion task.
[0064] In a possible implementation, displaying the format-converted version document includes:
[0065] In response to a document format conversion message from the server, the display interface of the target document is refreshed to connect the display interface to the document service process enabled by the target document, and the format-converted version of the document opened in the connected document service process is displayed in the refreshed display interface.
[0066] In a possible implementation, the method further includes:
[0067] During the execution of the document format conversion task, in response to a modification instruction for the target document, the modification instruction is saved in a designated storage medium.
[0068] In a possible implementation, the method further includes:
[0069] During the execution of the document format conversion task, in response to a document version recovery operation on the target document, the server is triggered to recover the latest version of the target document to a specified historical version document;
[0070] Displays the latest version of the target document.
[0071] In a possible implementation, the method further includes:
[0072] During the execution of the document format conversion task, in response to a document version upload operation on the target document, the server is triggered to update the latest version of the target document to the version uploaded by the document version upload operation;
[0073] Displays the latest version of the target document.
[0074] In a possible implementation, displaying the latest version of the target document includes:
[0075] In response to the notification message from the server, the display interface of the target document is refreshed to connect the display interface to the document service process enabled by the target document, and the latest version of the document opened in the connected document service process is displayed in the refreshed display interface.
[0076] In a third aspect, the present application provides a document processing device, the device comprising:
[0077] A task acquisition module, used to acquire a document format conversion task, wherein the document format conversion task indicates converting the document format of a target document from a first format to a second format;
[0078] A task execution module, used for executing the document format conversion task, and generating a converted document of the target document corresponding to the second format;
[0079] A modification instruction acquisition module, used to acquire modification instructions for the target document during the execution of the document format conversion task;
[0080] The instruction playback module is used to execute the modification instruction on the converted document and save the modified document as a format-converted version document of the target document.
[0081] In a possible implementation, the device further includes:
[0082] The historical version saving module is used to save the current target document as a version document before the format conversion of the target document before the document format conversion task is executed.
[0083] In a possible implementation, the device further includes:
[0084] A collaboration record generating module, configured to generate a format conversion collaboration record of executing the document format conversion task on the target document after executing the document format conversion task and generating a converted document corresponding to the second format of the target document;
[0085] The re-upgrade module is used to obtain the format conversion version of the target document before the format conversion when the modified document is saved as the format conversion version of the target document fails;
[0086] Based on the format conversion collaboration record, a document format conversion process is performed on a version of the target document before format conversion to regenerate a converted document of the target document corresponding to the second format.
[0087] In a possible implementation, the device further includes:
[0088] The latest version saving module is used to modify the converted document based on the collaboration record and save the modified document as the format-converted version document of the target document, and then use the format-converted version document of the target document as the latest version document of the target document.
[0089] In a possible implementation, the device further includes:
[0090] A process switching module is used to switch the document service process enabled by the target document from a first document service process to a second document service process after the format-converted version of the target document is used as the latest version of the target document; the first document service process is used to provide modification services for documents in the first format, and the second document service process is used to provide modification services for documents in the second format; the collaborator of the target document connects the display interface of the target document to the document service process enabled by the target document.
[0091] In a possible implementation, the device further includes:
[0092] A document loading module is used to load the latest version of the target document after the document service process enabled by the target document is switched from the first document service process to the second document service process, wherein the latest version of the document is the format-converted version document or other version document, wherein the other version document is a document modified by the collaborator of the target document and is newer than the format-converted version document.
[0093] In a possible implementation, the document loading module is specifically used to:
[0094] Obtain the latest version of the target document;
[0095] When it is determined that the document format of the latest version document matches the second document service process, the latest version document of the target document is loaded by using the second document service process enabled by the target document.
[0096] In a possible implementation, the document loading module is specifically used to:
[0097] Obtain the latest version of the target document;
[0098] If it is determined that the document format of the latest version of the document does not match the second document service process, switching the document service process enabled by the target document from the second document service process to the first document service process;
[0099] The first document service process enabled by the target document is used to load the latest version of the target document.
[0100] In a possible implementation, the device further includes:
[0101] A version recovery module is used to receive a document version recovery request after loading the latest version of the target document, wherein the document version recovery request indicates that the latest version of the target online document is restored to a specified historical version document; obtain the specified historical version document; and use the specified historical version document as the latest version of the target document.
[0102] In a possible implementation, the process switching module is specifically used to:
[0103] Exit the first document service process currently enabled by the target document;
[0104] A second document service process for the target document is started.
[0105] In a possible implementation, the device further includes:
[0106] A process starting module, used for starting the second document service process of the target document before loading the format-converted version document;
[0107] The process switching module is specifically used for:
[0108] The second document service process is determined as the document service process currently enabled for the target document.
[0109] In a possible implementation, the process startup module is specifically used to:
[0110] In response to the document format conversion task, a second document service process for the target document is started.
[0111] In a possible implementation manner, before determining the second document service process as the document service process currently enabled for the target document, an enable flag is set for the first document service process, and a disable flag is set for the second document service process;
[0112] The process switching module is specifically used for:
[0113] An enabling flag is set for the second document service process, and a disabling flag is set for the first document service process.
[0114] In a possible implementation manner, both the first document service process and the second document service process have access rights to the modification instruction.
[0115] In a possible implementation, the device further includes:
[0116] a modification instruction generating module, configured to obtain, before obtaining the modification instruction for the target document during the execution of the document format conversion task, modification operations performed by the collaborating party of the target document on the target document in the first format during the execution of the document format conversion task; and generate modification instructions corresponding to the target document in the first format based on the obtained modification operations;
[0117] The modification instruction acquisition module is specifically used for:
[0118] A modification instruction corresponding to the target document in a first format is obtained.
[0119] In a possible implementation, the instruction playback module includes:
[0120] a format updating unit, configured to update the modification instruction corresponding to the target document in the first format to the modification instruction corresponding to the target document in the second format;
[0121] A playback unit is used to execute the modification instruction corresponding to the target document in the second format on the converted document.
[0122] In a possible implementation, the device further includes:
[0123] An instruction execution module, used for executing the modification instruction on the target document in response to the modification instruction on the target document during the execution of the document format conversion task, and saving the collaboration record formed by executing the modification instruction to a designated storage medium;
[0124] The modification instruction acquisition module includes:
[0125] A collaboration record acquisition unit, used to acquire a collaboration record generated by modifying the target document during the execution of the document format conversion task;
[0126] The collaboration record parsing unit is used to parse the modification instruction from the collaboration record.
[0127] In a fourth aspect, the present application provides a document processing device, the device comprising:
[0128] A task triggering module, configured to trigger a document format conversion task in response to a first triggering operation on a target document, wherein the document format conversion task indicates converting a document format of the target document from a first format to a second format to generate a format-converted version document of the target document corresponding to the second format;
[0129] The document display module is used to display the format-converted version document, wherein the format-converted version document includes the modified content formed by modifying the target document during the execution of the document format conversion task.
[0130] In a possible implementation, the document display module is specifically used to:
[0131] In response to a document format conversion message from the server, the display interface of the target document is refreshed to connect the display interface to the document service process enabled by the target document, and the format-converted version of the document opened in the connected document service process is displayed in the refreshed display interface.
[0132] In a possible implementation, the device further includes:
[0133] The modification instruction saving module is used to save the modification instruction to a designated storage medium in response to the modification instruction to the target document during the execution of the document format conversion task.
[0134] In a possible implementation, the device further includes:
[0135] A document version recovery module, used to trigger the server to recover the latest version of the target document to a specified historical version document in response to a document version recovery operation on the target document during the execution of the document format conversion task;
[0136] The document display module is also used for:
[0137] Displays the latest version of the target document.
[0138] In a possible implementation, the device further includes:
[0139] A document version uploading module, used for, during the execution of the document format conversion task, in response to a document version uploading operation on the target document, triggering the server to update the latest version of the target document to the version document uploaded by the document version uploading operation;
[0140] The document display module is also used for:
[0141] Displays the latest version of the target document.
[0142] In a possible implementation manner, the document display module is specifically used to:
[0143] In response to the notification message from the server, the display interface of the target document is refreshed to connect the display interface to the document service process enabled by the target document, and the latest version of the document opened in the connected document service process is displayed in the refreshed display interface.
[0144] In a fifth aspect, the present application provides an electronic device, comprising: a processor and a memory, wherein the processor is used to execute a document processing program stored in the memory to implement the document processing method described in any one of the first aspect or the second aspect.
[0145] In a sixth aspect, the present application provides a storage medium storing one or more programs, which can be executed by one or more processors to implement the document processing method described in any one of the first aspect or the second aspect.
[0146] The above technical solution provided by the embodiment of the present application has the following advantages over the prior art: the method provided by the embodiment of the present application, by acquiring a document format conversion task for indicating that the document format of the target document is converted from a first format to a second format, executes the document format conversion task, and generates a converted document corresponding to the second format of the target document. The modification instruction of the target document during the execution of the document format conversion task is acquired, the modification instruction is executed on the converted document, and the modified document is saved as a format-converted version document of the target document, thereby realizing format conversion through version iteration based on the existing document, and there is no need for the user to re-set the collaboration of the document after the format conversion. Furthermore, during the execution of the document format conversion task for the target document, the collaborators of the target document can still trigger modification operations on the target document, so that the format conversion process of the target document will not affect the normal collaboration of the user on the target document. At the same time, since the final format-converted version of the document is formed by executing the modification instructions on the target document during the execution of the document format conversion task on the converted document, the modification operations during the execution of the document format conversion task are retained in the final format-converted version of the document, that is, the modification operations on the target document during the execution of the document format conversion will not be lost due to the document format conversion, thereby ensuring that the modification operations on the target document during the execution of the document format conversion task can be fully recorded and tracked, ensuring the accuracy and consistency of the target document, thereby meeting user needs and improving user experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0147] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.
[0148] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.
[0149] One or more embodiments are exemplarily described by pictures in the corresponding drawings, and these exemplified descriptions do not constitute limitations on the embodiments. Elements with the same reference numerals in the drawings represent similar elements, and unless otherwise stated, the figures in the drawings do not constitute proportional limitations.
[0150] Figure 1 A flowchart of an embodiment of a document processing method provided in an embodiment of the present application;
[0151] Figure 2 A flowchart of another document processing method provided in an embodiment of the present application;
[0152] Figure 3 A flowchart of another document processing method provided in an embodiment of the present application;
[0153] Figure 4 A flowchart of another document processing method provided in an embodiment of the present application;
[0154] Figure 5 A flowchart of an embodiment of loading the latest version of the document in step 307 provided in an embodiment of the present application;
[0155] Figure 6 A flowchart of an embodiment of triggering a document version recovery process for a document editing client;
[0156] Figure 7 A flowchart of another document processing method provided in an embodiment of the present application;
[0157] Figure 8 A flowchart of another document processing method provided in an embodiment of the present application;
[0158] Fig. 9 A block diagram of an embodiment of a document processing device provided in an embodiment of the present application;
[0159] Fig.10 A block diagram of another document processing device provided in an embodiment of the present application;
[0160] Fig.11 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0161] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, 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 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 making creative work are within the scope of protection of this application.
[0162] The disclosure below provides many different embodiments or examples to realize the different structures of the present application. In order to simplify the disclosure of the present application, the parts and settings of specific examples are described below. Of course, they are only examples, and the purpose is not to limit the present application. In addition, the present application can repeat reference numbers and / or letters in different examples. This repetition is for the purpose of simplification and clarity, and does not itself indicate the relationship between the various embodiments and / or settings discussed.
[0163] In order to solve the problem that the format conversion cannot be performed on the basis of an existing document in the prior art, resulting in the need for users to re-set the collaboration of the document after the document format conversion, and that after the document format conversion, the collaboration operation on the document during the document format conversion cannot be traced back, resulting in the version of the document after the document format conversion not meeting the user's expectations, failing to meet the user's needs, and affecting the user experience, the present application provides a document processing method, device, electronic device and storage medium, which can realize the format conversion through version iteration on the basis of an existing document, and the user does not need to re-set the collaboration of the document after the format conversion. In addition, during the execution of the document format conversion task for the target document, the collaborator of the target document can still perform modification operations on the target document, and the format conversion process of the target document will not affect the user's collaboration on the target document, thereby avoiding the execution of the document format conversion and affecting the normal collaboration of the user on the target document; and the modification operation triggered on the target document during the execution of the document format conversion will not be lost, thereby ensuring that the modification operation on the target document during the execution of the document format conversion task can be fully recorded and tracked, ensuring the accuracy and consistency of the target document, thereby meeting user needs and improving user experience.
[0164] Figure 1 This is a flowchart of an embodiment of a document processing method provided in an embodiment of the present application. In one embodiment, the execution subject of the embodiment process is a document editing server. Figure 1 As shown, the process includes the following steps:
[0165] Step 101: Obtain a document format conversion task, where the document format conversion task indicates converting the document format of a target document from a first format to a second format.
[0166] The target document may be any document. For example, the target document is a document currently being edited. For another example, the target document is a document selected by a user from a document directory.
[0167] From the perspective of document type, the target document can be a text document, a table document, a presentation document, a layout document, etc. The embodiment of the present application does not limit the specific type of the target document. It can also be seen here that the technical solution provided by the present application is highly versatile and can be used as a general framework to adapt to format conversion scenarios of different types of documents.
[0168] From the perspective of access method, the target document is a collaborative document, that is, a document that allows multiple users to edit at the same time. Furthermore, there are currently two different document collaboration methods, namely online collaborative documents and collaborative documents within a local area network. Among them, online collaborative documents are a way to share and edit documents through the Internet, storing documents on a cloud server, allowing multiple users to access, edit and comment on documents at the same time, and providing real-time collaboration and communication functions. Collaborative documents within a local area network refer to a method in which multiple users can edit and modify the same document within a local area network through shared folders or using professional collaborative editing software. The target document can be any of the above-mentioned collaborative documents, and the embodiments of the present application do not limit the document collaboration method of the target document.
[0169] In this embodiment, the first format and the second format are different formats. The first format and the second format can be converted to each other.
[0170] In one embodiment, the document format conversion task is used to instruct to convert the document format of the target document from a traditional document format to a new generation document format. Accordingly, the first format refers to the traditional document format, and the second format refers to the new generation document format.
[0171] In another embodiment, the document format conversion task may also be used to instruct to convert the document format of the target document from a new generation document format to a traditional document format. Accordingly, the first format refers to the new generation document format, and the second format refers to the traditional document format.
[0172] Taking a table as an example, there are two table formats: a traditional table and an intelligent table (i.e., a new generation table). In the scenario of converting a traditional table into an intelligent table, or in the scenario of converting an intelligent table into a traditional table, the technical solution provided by the embodiment of the present application can be applied.
[0173] In one embodiment, the smart form may standardize and expand the supported fields based on the traditional form, or may add the function of view based on the traditional form.
[0174] In one embodiment, when a user wants to convert the format of a target document, the user can trigger a corresponding button or icon on the document display interface. The document editing client detects the user's triggering operation on the button or icon and sends a corresponding message to the document editing server. After receiving the message, the document editing client creates a document format conversion task for the target document. At this point, the document editing server can obtain a document format conversion task for indicating that the document format of the target document is converted from a first format to a second format. Optionally, the corresponding message mentioned above carries at least information such as the document identifier of the target document (such as the document ID), the current document format of the target document (which is also the first format), and the second format to which the user expects the target document to be converted. In this way, the document editing server can create a document format conversion task for indicating that the document format of the target document is converted from a first format to a second format based on the message.
[0175] Step 102: Execute the document format conversion task to generate a converted document corresponding to the second format of the target document.
[0176] In one embodiment, the execution subject of the embodiment of the present application calls the kernel, that is, executes the above-mentioned document format conversion task in the kernel state to generate a converted document corresponding to the second format of the target document. For example, by executing the document format conversion task, a table document is converted from a traditional table format to an intelligent table format. For another example, by executing the document format conversion task, a table document is converted from an intelligent table format to a traditional table format.
[0177] Executing the above document format conversion task in kernel mode has the following advantages, including but not limited to:
[0178] 1. Multi-task concurrent processing: In kernel mode, the operating system can support the concurrent execution of multiple tasks (such as multiple document format conversion tasks), and realize the collaborative work between multiple tasks through process scheduling and thread management technologies. This concurrent processing capability improves the system's throughput and response speed, enabling the system to process multiple tasks or requests at the same time;
[0179] 2. Real-time guarantee: For systems that require real-time response (such as embedded systems, real-time operating systems, etc.), instruction execution in kernel state can ensure the timeliness and accuracy of tasks (such as document format conversion tasks).
[0180] Step 103: Obtain modification instructions for the target document during the execution of the document format conversion task.
[0181] Step 104: execute the modification instruction on the converted document, and save the modified document as a format-converted version document of the target document.
[0182] For ease of understanding, step 103 and step 104 are described in a unified manner as follows:
[0183] As can be seen from the description in step 101, the target document in the embodiment of the present application is a collaborative document, and for a collaborative document, its collaborators can modify the target document according to the permission settings. Here, the modification of the target document by the collaborators of the target document includes but is not limited to: editing the document content in the target document (such as adding content, deleting content, changing content, etc.), commenting on the target document, liking it, version management, and other modification operations. Moreover, for any collaborator, when the collaborator triggers a modification operation on the target document, a corresponding modification instruction will be generated.
[0184] Furthermore, in the technical solution of the embodiment of the present application, there is no conflict between the document editing server executing the document format conversion task for the target document and the collaborator of the target document triggering a modification operation on the target document. That is to say, during the period when the document editing server executes the document format conversion task for the target document, the collaborator of the target document can still trigger a modification operation on the target document, and the format conversion process of the target document will not affect the user's modification operation on the target document. Usually, the collaborator mentioned here refers to other collaborators other than the initiator of the document format conversion task. For example, the target document has two collaborators, A and B. Collaborator A initiates a document format conversion task for the target document. During the period when the document editing server executes the document format conversion task, the target document can be displayed normally on the document editing client corresponding to collaborator B, and collaborator B can still trigger a modification operation on the target document according to the permission settings. Of course, in actual applications, the initiator of the document format conversion task can also continue to modify the target document after initiating the document format conversion task. For example, after the initiator triggers the document format conversion operation on the client, the client will perform the document format conversion in the background, while the current version of the target document, that is, the target document in the old format, is still displayed normally on the front-end interface corresponding to the initiator, and the modification operation can still be triggered on the target document according to the permission setting. The embodiment of the present application does not limit this.
[0185] From the above description, it can be seen that executing the document format conversion task for the target document and triggering the modification operation on the target document by the collaborator are two independent process lines. If no special processing is done on this basis, the modification operation triggered on the target document during the execution of the document format conversion task will be lost. For example, the collaborator A of the target document triggers the format conversion of the target document (assuming the document content is "AAAA"). During the execution of the document format conversion task for the target document, the collaborator B of the target document modifies part of the content in the target document, and the modified target document content is "AAAB". Afterwards, the target document is converted to the second format, but because the format conversion is performed on the basis of the target document "AAAA", the document content included in the second format of the target document is still "AAAA", which loses the modification operation made by the collaborator B on the target document.
[0186] In this regard, in the technical solution of the embodiment of the present application, after generating a converted document corresponding to the second format of the target document, a modification instruction for the target document during the execution of the document format conversion task is obtained, the modification instruction is executed on the converted document, and the modified document is saved as a format-converted version document of the target document.
[0187] In one embodiment, the document editing client generates a corresponding modification instruction in response to the user's modification operation on the target document, and saves the modification instruction in a designated storage medium. The designated storage medium may be a storage space on the document editing server, or may be an independent storage device. In either case, the document editing server may obtain the modification instruction for the target document during the execution of the document format conversion task from the designated storage medium.
[0188] It can be seen that here, the converted document corresponding to the second format of the target document generated in step 102 is not directly saved as the format-converted version document of the target document, but the target document modification instruction triggered during the execution of the document format conversion task is applied to the converted document corresponding to the second format before forming the format-converted version document of the target document. In this way, the modification operation on the target document will not be lost due to the format conversion process of the target document.
[0189] It should be noted that the modification instructions triggered on the target document during the execution of the document format conversion task described above may include not only modification instructions generated by other collaborators (collaborators other than the initiator of the document format conversion task) triggering modification operations on the target document, but also modification instructions generated by the initiator of the document format conversion task triggering modification operations on the target document. This ensures that any modification operations triggered on the target document during the execution of the document format conversion task are not lost, thereby ensuring that all modification operations on the target document during the execution of the document format conversion task can be completely recorded and tracked, which helps to maintain the accuracy and consistency of the target document.
[0190] The method provided by the embodiment of the present application obtains a document format conversion task for instructing to convert the document format of the target document from the first format to the second format, executes the document format conversion task, and generates a converted document corresponding to the second format of the target document. The method obtains a modification instruction for the target document during the execution of the document format conversion task, executes the modification instruction on the converted document, and saves the modified document as a format-converted version document of the target document, thereby realizing document format conversion through version iteration based on the existing document, and does not require the user to re-set the collaboration of the document after the format conversion. Furthermore, during the execution of the document format conversion task for the target document, the collaborators of the target document can still trigger modification operations on the target document, so that the format conversion process of the target document will not affect the normal collaboration of the user on the target document. At the same time, since the final format-converted version of the document is formed by executing the modification instructions on the target document during the execution of the document format conversion task on the converted document, the modification operations during the execution of the document format conversion task are retained in the final format-converted version of the document, that is, the modification operations on the target document during the execution of the document format conversion will not be lost due to the document format conversion, thereby ensuring that the modification operations on the target document during the execution of the document format conversion task can be fully recorded and tracked, ensuring the accuracy and consistency of the target document, thereby meeting user needs and improving user experience.
[0191] Figure 2 A flowchart of another document processing method provided in an embodiment of the present application. Figure 2 The process shown in Figure 1 Based on the process shown, the following steps are included:
[0192] Step 201: Obtain a document format conversion task, where the document format conversion task indicates converting the document format of a target document from a first format to a second format.
[0193] For a detailed description of step 201, please refer to the above Figure 1The description of step 101 in the illustrated process will not be repeated here.
[0194] Step 202: execute the document format conversion task to generate a converted document of the target document corresponding to the second format; and, during the execution of the document format conversion task, in response to a modification instruction to the target document, execute the modification instruction on the target document, and save the collaboration record formed by executing the modification instruction to a designated storage medium.
[0195] The above-mentioned collaboration records include but are not limited to: change instructions, change time, collaborating parties and other information.
[0196] It should be noted that the corresponding collaboration record will be generated only after the modification instruction is successfully executed on the target document. Moreover, during the execution of the document format conversion task, a new version document will not be generated after the modification instruction is successfully executed on the target document.
[0197] It can be seen from the description of step 202 that in one embodiment, during the period when the document editing server performs the document format conversion task for the target document, the collaborating party of the target document can not only still trigger the modification operation on the target document, but the format conversion process of the target document will not affect the user's modification operation on the target document, and the format conversion process of the target document will not block the modification instruction corresponding to the actual execution of the modification operation on the target document. In other words, the format conversion process of the target document will not block the user's modification of the target document, which makes the user completely unaware of the format conversion process of the target document, thereby providing a better user experience. For example, two kernel processes are set on the document editing server, which are used to process the format conversion of the target document and execute modification instructions on the target document respectively.
[0198] Step 203: Acquire the collaboration record generated by modifying the target document during the execution of the document format conversion task, and parse the modification instruction from the collaboration record.
[0199] From the above description, it can be seen that the collaboration record is formed by successfully executing the modification instruction on the target document, and the collaboration record contains the modification instruction. Therefore, the collaboration record generated by modifying the target document during the execution of the document format conversion task is obtained from the specified storage medium, and the modification instruction is parsed from the collaboration record.
[0200] Of course, in some embodiments, the modification instructions executed on the target document during the execution of the document format conversion task may be stored in a designated storage medium, and the modification instructions may be obtained from the designated storage medium.
[0201] Step 204: execute the modification instruction on the converted document, and save the modified document as a format-converted version document of the target document.
[0202] From the above description, it can be seen that during the execution of the document format conversion task, a new version document is not generated after the modification instruction is successfully executed on the target document. Instead, a new version document is generated after the above modification instruction is executed on the converted document. This can reduce the number of unnecessary versions, thereby reducing the complexity of version management and avoiding version confusion during the document format conversion process.
[0203] Figure 2 The process shown in Figure 1 On the basis of the process shown, during the execution of the document format conversion task, in response to a modification instruction to the target document, the modification instruction is executed on the target document, and the collaboration record formed by executing the modification instruction is saved in a designated storage medium. Thereafter, the collaboration record generated by modifying the target document during the execution of the document format conversion task is obtained, and the modification instruction is parsed from the collaboration record.
[0204] From the above description, it can be seen that the collaboration record is formed by successfully executing the modification instruction on the target document, and the collaboration record contains the modification instruction. Therefore, here, the collaboration record generated by modifying the target document during the execution of the document format conversion task is obtained from the designated storage medium, and the modification instruction is parsed from the collaboration record, and the above modification instruction is executed on the converted document, and the modified document is saved as the format-converted version document of the target document, which can ensure that the format conversion process of the target document will not block the user's modification of the target document, so that the user is completely unaware of the format conversion process of the target document, thereby providing a better user experience.
[0205] Figure 3 A flowchart of another document processing method provided in an embodiment of the present application. Figure 3 The process shown in Figure 1 Based on the process shown, the following steps are included:
[0206] Step 301: Obtain a document format conversion task, where the document format conversion task indicates converting the document format of a target document from a first format to a second format.
[0207] For a detailed description of step 301, please refer to the above Figure 1 The description of step 101 in the illustrated process will not be repeated here.
[0208] Step 302: Save the current target document as a version document before format conversion of the target document.
[0209] It can be seen from the description of step 302 that the current target document is saved before executing the document format conversion task for the target document. This process can ensure the data integrity of the target document before the document format conversion, and ensure that even if the subsequent document format conversion fails, it can be rolled back to the document version before the document format conversion.
[0210] Among them, the document editing server saves the current target document as a version document before format conversion of the target document, which means: the document editing server saves the current target document as a version document before format conversion to the cloud platform (for online collaborative documents) or a shared folder (for LAN collaborative documents).
[0211] Step 303: Execute the document format conversion task to generate a converted document corresponding to the second format of the target document.
[0212] For a detailed description of step 303, please refer to the above Figure 1 The description of step 102 in the illustrated process will not be repeated here.
[0213] Step 304: Generate a format conversion collaboration record for executing the document format conversion task on the target document.
[0214] It can be seen from the description of step 304 that in the technical solution of the embodiment of the present application, performing document format conversion on the target document is also regarded as a form of modifying the target document, which provides data support for the subsequent automatic re-execution of the document format conversion task.
[0215] It should be noted that the format conversion collaboration record for executing the document format conversion task on the target document is generated only when the converted document corresponding to the second format of the target document is successfully generated. If step 302 is executed successfully but step 303 fails, there is no need to generate the format conversion collaboration record for executing the document format conversion task on the target document because the format conversion of the target document is not actually completed.
[0216] In addition, one additional explanation is given here: if the above-mentioned step 302 fails to execute, step 303 and all subsequent steps will no longer be executed, but the document format conversion is considered to have failed, and the document format conversion process is terminated. Optionally, in this case, a prompt message indicating the failure of the document format conversion can be output through the user interface. Similarly, in the case where step 302 is executed successfully but step 303 fails to execute, the document format conversion is also considered to have failed, the document format conversion process is terminated, and a prompt message indicating the failure of the document format conversion can also be output through the user interface. Furthermore, in the case where step 302 fails to execute, it will not affect the document process currently enabled by the document editing server for the target document, that is, the document editing server still keeps the target document in an open state, so that the various collaborators of the target document (including the initiator of the document format conversion task) can still collaborate on the target document normally.
[0217] Step 305: Obtain modification instructions for the target document during the execution of the document format conversion task.
[0218] In step 305, the period of executing the document format conversion task refers to the period from acquiring the document format conversion task to generating a converted document corresponding to the second format of the target document.
[0219] For other descriptions of step 305, please refer to the above Figure 1 The description of step 103 in the illustrated process will not be repeated here.
[0220] Step 306: execute the modification instruction on the converted document. If the modification instruction fails to be saved as the format-converted version of the target document, obtain the format-unconverted version of the target document.
[0221] Step 307 : Based on the format conversion collaboration record, perform document format conversion processing on the version of the target document before format conversion, and regenerate a converted document of the target document corresponding to the second format; return to step 305 .
[0222] For ease of understanding, step 306 and step 307 are described in a unified manner as follows:
[0223] It can be seen from the description of step 306 and step 307 that, in one embodiment, when a converted document corresponding to the second format of the target document has been successfully generated, but the modified document obtained by modifying the converted document based on the collaboration record fails to be saved, the document format conversion task can be automatically performed again for the target document. Such processing can effectively improve the reliability and success rate of format conversion of the target document, meet user needs, and improve user experience.
[0224] Specifically, since the version of the target document before format conversion has been saved and the format conversion collaboration record has been generated in the aforementioned steps, the version of the target document before format conversion can be processed for document format conversion based on the format conversion collaboration record to regenerate the converted document corresponding to the second format of the target document.
[0225] Further, after the converted document corresponding to the second format of the target document is regenerated, the process returns to step 305 and subsequent steps. It should be noted that the period of executing the document format conversion task described in step 305 refers to the period from the acquisition of the document format conversion task to the current moment, thereby ensuring that all changes to the target document during the execution of the document format conversion task can be completely recorded and tracked.
[0226] In addition, in one embodiment, for the above-described abnormal situation "the converted document corresponding to the second format of the target document has been successfully generated, but the modified document obtained by modifying the converted document based on the collaboration record fails to be saved", the document format conversion task is not re-executed indefinitely, but a corresponding rollback number can be set, such as 2 times, that is, when the document format conversion task is repeated twice (excluding the first execution of the document format conversion task after the document format conversion task is obtained) and the saving still fails, the document format conversion process is terminated. Optionally, in this case, a prompt message indicating the failure of the document format conversion can also be output through the user interface.
[0227] Figure 3 The process shown saves a version of the target document before format conversion is performed on the target document, and after generating a converted document of the target document corresponding to the second format, generates a format conversion collaboration record for performing the document format conversion task on the target document. This enables the document format conversion task to be automatically re-executed based on the format conversion collaboration record and the version of the document before format conversion in the event that the modified document obtained by subsequently modifying the converted document based on the collaboration record fails to be saved, thereby effectively improving the reliability and success rate of format conversion of the target document, meeting user needs, and improving user experience.
[0228] In addition, through Figure 3It can be seen from the process shown that in the technical solution of the embodiment of the present application, a complete document format conversion process includes three stages: saving before format conversion, format conversion, and saving after format conversion. Among them, saving before format conversion means saving the current target document as a pre-format conversion version document of the target document before executing the document format conversion task. Format conversion means executing the document format conversion task to generate a converted document corresponding to the second format of the target document. Saving after format conversion means: executing the modification instructions on the target document during the execution of the document format conversion task on the converted document, and saving the modified document as the post-format conversion version document of the target document.
[0229] Thus, the technical solution of the embodiment of the present application can realize the document format conversion of the target document and the collaborative execution of the target document in parallel, and the modification operation of the target document during the document format conversion will not be lost, so as to ensure that the modification operation of the target document during the document format conversion task can be fully recorded and tracked, and the accuracy and consistency of the target document can be guaranteed. It can also realize an automatic recovery mechanism in the case of document upgrade failure, effectively improve the reliability and success rate of format conversion of the target document, meet user needs, and improve user experience.
[0230] Documents of different formats usually have significant differences in document structure, storage method, document function, etc. For example, the maximum row and column initialization value ranges of traditional tables and smart tables are currently inconsistent. Therefore, different types of document service processes are usually used to open documents of different formats to avoid compatibility issues. When the document format is incompatible with the document service process, users may not be able to open, edit or save the document normally, resulting in problems in user functional experience.
[0231] In this regard, the technical solution of the embodiment of the present application proposes to adaptively switch the document service process according to the format of the actually loaded document, which can ensure the normal use of the document from the user's perspective, thereby ensuring the user's functional experience. From the perspective of development and operation, the consistency of the document format and the type of the document service process can improve the efficiency of troubleshooting. The following is an explanation of this through a specific embodiment:
[0232] Figure 4 A flowchart of another document processing method provided in an embodiment of the present application. Figure 4 The process shown in Figure 1 Based on the process shown, the following steps are included:
[0233] Step 401: Obtain a document format conversion task, where the document format conversion task indicates converting the document format of a target document from a first format to a second format.
[0234] Step 402: Execute the document format conversion task to generate a converted document corresponding to the second format of the target document.
[0235] Step 403: Obtain modification instructions for the target document during the execution of the document format conversion task.
[0236] Step 404: execute the modification instruction on the converted document, and save the modified document as a format-converted version document of the target document.
[0237] For detailed description of steps 401 to 404, please refer to the above Figure 1 The relevant descriptions in the process shown will not be repeated here.
[0238] Step 405: Convert the target document to a new version as the latest version of the target document.
[0239] In one embodiment, the format-converted version of the target document is used as the latest version of the target document, which means that after the format conversion of the target document is completed, the format-converted version of the target document is loaded, which further means that the format-converted version of the target document will be displayed on each document editing client. Here, each document editing client refers to the document editing client used by each collaborating party of the target document.
[0240] Step 406: Switch the document service process enabled by the target document from the first document service process to the second document service process.
[0241] The first document service process is used to provide modification services for documents in a first format, and the second document service process is used to provide modification services for documents in a second format. The collaborating party of the target document (here, the document editing client used by the collaborating user of the target document) connects the display interface of the target document to the document service process enabled by the target document. Here, the document service process enabled by the target document refers to the document process that has loaded the target document and provides document modification services for the target document.
[0242] It can be known from the description in step 405 that after the target document is converted from the first format to the second format, it is expected that the format-converted version of the target document, i.e., the target document in the second format, is displayed on each document editing client. Therefore, the document service process enabled by the target document is switched from the first document service process to the second document service process.
[0243] In one embodiment, the specific implementation of switching the document service process enabled by the target document from the first document service process to the second document service process includes: exiting the first document service process currently enabled by the target document, and starting the second document service process of the target document.
[0244] In this embodiment, only one document service process is started for the target document at the same time, so the document service process enabled for the target document is naturally the only started document service process.
[0245] It should be noted that there is no strict sequence between the two steps of exiting the first document service process currently enabled for the target document and starting the second document service process for the target document. Both steps may be executed simultaneously, and the embodiment of the present application does not impose any limitation on this.
[0246] Exemplarily, the second document service process can be started first, and after the display interface of the collaborating party is connected to the second document service process, the first document service process can be exited. Through this processing, it is achieved that before starting the second document service process, the current document service process is ensured to continue running, thereby ensuring that the collaborating party who has not had time to switch the document service process can still display the target document normally and edit the target document normally. Exemplarily, there are the following two situations: the notification of the document editing server switching the document service process has not been delivered to the document editing client, and the document editing client has made changes to the target document during this period, thereby triggering a new change operation during this period, and the change operation should be regarded as a change operation triggered during the execution of the document format conversion task. During the document service process switching process, any collaborating party triggers the restoration to the version of the document before the format conversion. At this time, by retaining the first document service process, the interaction between the document editing server and the document editing client can be smoother, reducing the impact on user use.
[0247] In one embodiment, before loading the format-converted version document, the second document service process of the target document is started. On this basis, the specific implementation of switching the document service process enabled by the target document from the first document service process to the second document service process includes: determining the second document service process as the document service process currently enabled by the target document.
[0248] Here, before loading the format-converted version of the document, the second document service process of the target document is started, so that the document editing server starts two document service processes for the target document, namely the first document service process and the second document service process, and the document service process enabled for the target document at this time is the first document service process. Exemplarily, the specific implementation of starting the second document service process of the target document before loading the format-converted version of the document includes: starting the second document service process of the target document in response to the document format conversion task. That is to say, when any collaborative party triggers the document format conversion task for the target document, the second document service process of the target document is started. It should be noted here that starting a document service process is not equal to enabling a document service process. Starting a document service process only creates a document service process. The display interface of the collaborative party is not connected to the document service process, but to the document service process enabled by the target document.
[0249] In addition, it should be noted that the above is only an exemplary explanation of the timing of starting the second document service process of the target document. In actual applications, there may be other timings. For example, it is also feasible to start the first document service process and the second document service process at the same time when the target document is opened for the first time, as long as the second document service process of the target document is started before the format-converted version of the document is loaded.
[0250] It can be seen from the above description that the document editing server can start the first document service process and the second document service process for the target document at the same time, but there is only one document service process enabled for the target document at the same time. In this regard, in one embodiment, before determining the second document service process as the document service process currently enabled for the target document, the first document service process is set with an enable flag, and the second document service process is set with a disable flag. Accordingly, determining the second document service process as the document service process currently enabled for the target document includes: setting an enable flag for the second document service process, and setting a disable flag for the first document service process.
[0251] By setting the enable flag to switch the document service process currently started by the target document, the interaction between the document editing server and the document editing client can be smoother, reducing the impact on user use.
[0252] Step 407: Load the latest version of the target document.
[0253] As described in step 405 above, the latest version of the document will be the version of the document after format conversion. However, in actual applications, the latest version of the document finally loaded may also be other versions of the document. Here, other versions of the document are documents that are modified by the collaborators of the target document and are newer than the version of the document after format conversion. The above-mentioned target document collaborators modify the target document, including but not limited to: restoring historical document versions and uploading new document versions. Normally, when any collaborator triggers the restoration of historical document versions, the historical version document specified by the collaborator will be used as the latest version of the target document. Similarly, when any collaborator triggers the upload of a new document version, the version document uploaded by the collaborator will be used as the latest version of the target document. Of course, there are other situations, such as when any collaborator triggers collaborative editing of the target document and triggers version preservation during the document format conversion, the latest version of the target document stored on the cloud platform will also be updated. This embodiment of the present application does not limit this.
[0254] On this basis, if any collaborating party triggers the restoration of the historical document version or the uploading of a new document version during the execution of steps 305 and 307 by the executing entity of the embodiment of the present application, then the latest version of the document finally loaded will not be the version of the document after the format conversion. Furthermore, it is also possible that the latest version of the document finally loaded is not the version of the document in the second format. For example, if any collaborating party triggers the restoration of the version of the document before the format conversion to the latest version of the document, then the latest version of the document will be the version of the document in the first format. For another example, if any collaborating party triggers the upload of a new version of the document in the first format, then the latest version of the document will also be the version of the document in the first format.
[0255] Based on the above description, see Figure 5 , is a flowchart of an embodiment of the present application for loading the latest version of the document in step 407. Figure 5 As shown, the following steps are included:
[0256] Step 4071, obtain the latest version of the target document; if it is determined that the document format of the latest version of the document matches the second document service process, execute step 4072; if it is determined that the document format of the latest version of the document does not match the second document service process, execute step 4073.
[0257] The above-mentioned obtaining the latest version of the target document refers to obtaining the latest version of the target document from the cloud platform.
[0258] Step 4072: Use the second document service process enabled by the target document to load the latest version of the target document; end the process.
[0259] Step 4073: switch the document service process enabled by the target document from the second document service process to the first document service process.
[0260] Step 4074: Use the first document service process enabled by the target document to load the latest version of the target document.
[0261] pass Figure 5 It can be seen from the flow that in the process of loading the latest version of the target document by the execution subject of the embodiment of the present application, after obtaining the latest version of the target document, it is first determined whether the document format of the latest version of the document matches the second document service process (because the second document service process is enabled for the target document at this time). In the case where it is determined that the document format of the latest version of the document matches the second document service process, it means that the latest version of the document is a version document in the second format. Therefore, the second document service process enabled by the target document can be directly used to load the latest version of the target document. In the case where it is determined that the document format of the latest version of the document does not match the second document service process, it means that the latest version of the document is a version document in the first format. At this time, in order to avoid the situation where the document service process is incompatible with the document format, the document service process enabled by the target document is switched from the second document service process to the first document service process, and then the latest version of the target document is loaded using the first document service process enabled by the target document.
[0262] Here is an additional point to explain that when it is determined that the document format of the latest version of the document matches the second document service process, it can only be determined that the latest version of the document is the second format version of the document, but it cannot be determined that the latest version of the document is the version after the format conversion. This is because in actual applications, there are cases where the historical version of the document designated for restoration by the collaborating party or the newly uploaded version of the document is the first format version of the document.
[0263] However, regardless of whether the latest version of the document is the version before the format conversion or the version of the document in the second format, Figure 4 The processes shown can all achieve loading the latest version of the document using a compatible document service process, thereby avoiding the problem of incompatibility between the document format and the document service process.
[0264] In one embodiment, after loading the latest version of the target document, it may also include: receiving a document version recovery request, the document version recovery request indicates that the latest version of the target online document is restored to a specified historical version document, and obtaining the specified historical version document; using the specified historical version document as the latest version of the target document.
[0265] In this embodiment, any collaborating party is allowed to trigger document version recovery after the document format conversion task of the target document is completed. Figure 6 , which is a flow chart of an implementation example of triggering a document version recovery process by a document editing client.
[0266] like Figure 6 As shown, the document editing client triggers document version recovery, and the document editing server downloads the specified historical version document from the cloud platform. The document editing server opens the downloaded historical version document by calling the kernel, and uploads the historical version document as the latest version document to the cloud platform. After the cloud platform saves the latest version document, it returns a notification message to the server. Furthermore, the server will check whether the latest version document matches the currently enabled document service process, and determine whether the document service process needs to be switched based on the check results. After switching the document service process, it returns a corresponding message to the document editing client, so that the document editing client connects the display interface to the latest document service process started on the document editing server.
[0267] Exemplarily, document version recovery includes the following situations, which are described using traditional tables and smart tables as examples:
[0268] The currently opened form is a smart form, and the collaborator has triggered the restoration to a traditional form. At this time, the actual format of the document obtained by the document editing server from the cloud platform is a traditional form, and the document format recorded by the cloud platform is also a traditional form. Then the document editing server will check that the currently enabled document service process does not match the actual format of the obtained document, and thus exit the currently enabled document service process. At this time, the collaborator refreshes the interface, triggering the document editing server to re-enter the document opening process. The document editing server opens the document service process corresponding to the traditional form based on the actual format of the document obtained from the cloud platform as a traditional form, and uses the document service process to load the document obtained from the cloud platform. At this point, the traditional form will be displayed on the display interface of the collaborator.
[0269] The document is not currently open, and the collaborator triggers the recovery to the traditional form. At this time, the document format recorded by the cloud platform is the smart form. At this time, the document editing server will start the document service process corresponding to the smart form according to the document format recorded by the cloud platform, and then use the document service process to obtain the specified historical version document from the cloud platform, assuming that the real format of the historical version document is a traditional form. At this time, the document editing server will check that the currently enabled document service process does not match the real format of the obtained document, and thus exit the currently enabled document service process. At this time, the collaborator refreshes the interface, triggering the document editing server to re-enter the document opening process. The document editing server opens the document service process corresponding to the traditional form based on the real format of the document obtained from the cloud platform as a traditional form, and uses the document service process to load the document obtained from the cloud platform. At this point, the traditional form will be displayed on the display interface of the collaborator.
[0270] The document is currently open, and the collaborator triggers the restoration to the traditional form. At this time, the document format recorded by the cloud platform is the smart form. At this time, the document editing server will start the document service process corresponding to the smart form according to the document format recorded by the cloud platform, and then use the document service process to obtain the specified historical version document from the cloud platform, assuming that the real format of the historical version document is a traditional form. At this time, the document editing server will check that the currently enabled document service process does not match the real format of the obtained document, and thus exit the currently enabled document service process. At this time, the collaborator refreshes the interface, triggering the document editing server to re-enter the document opening process. The document editing server opens the document service process corresponding to the traditional form based on the real format of the document obtained from the cloud platform as a traditional form, and uses the document service process to load the document obtained from the cloud platform. At this point, the traditional form will be displayed on the display interface of the collaborator.
[0271] The above is explained using the example of restoring to a traditional table. In actual applications, you can also restore to a smart table. The process is the opposite of the above example, so we will not go into details here.
[0272] It can be seen from the above embodiments that during the execution of the entire document format conversion task, it is possible to enable the first document service process for the target document, or it is possible to enable the second document service process. In order to ensure that the modification operations on the target document during the execution of the document format conversion are not lost, the first document service process and the second document service process both have access rights to the modification instructions.
[0273] Furthermore, since there is a difference between the first format and the second format, the modification instructions generated by triggering the modification operation on the target document in the first format and the modification operation on the target document in the second format will also be different in format. Therefore, the technical solution provided by the present application also involves converting the format of the modification instruction according to the document editing server currently enabled by the target document.
[0274] For details, see Figure 7 , which is a flow chart of another document processing method provided in an embodiment of the present application. Figure 7 The process shown is based on the above embodiment and includes the following steps:
[0275] Step 701: Obtain a document format conversion task, where the document format conversion task indicates converting the document format of a target document from a first format to a second format.
[0276] Step 702: Execute the document format conversion task to generate a converted document corresponding to the second format of the target document.
[0277] For the explanation of the above step 701 and step 702, please refer to the relevant description in the above embodiment, which will not be repeated here.
[0278] Step 703: During the execution of the document format conversion task, the modification operation performed by the collaborator of the target document on the target document in the first format is obtained, and based on the obtained modification operation, a modification instruction corresponding to the target document in the first format is generated.
[0279] Although the converted document corresponding to the second format of the target document has been generated at this time, the document format conversion task has not been completed, and the final format-converted version of the document has not yet been obtained. The target document in the first format is still displayed on each collaborating party, and the document service process enabled by the document editing server for the target document is also the first document service process. Therefore, during the execution of the document format conversion task, each collaborating party still modifies the target document in the first format, and accordingly, the modification instructions corresponding to the first format are generated.
[0280] Here, during the execution of the document format conversion task, the first document service process obtains the changes made by the collaborator of the target document to the target document in the first format, and generates a change instruction corresponding to the target document in the first format based on the obtained changes.
[0281] Step 704: Obtain a modification instruction corresponding to the target document in the first format.
[0282] Step 705: Update the modification instruction corresponding to the target document in the first format to the modification instruction corresponding to the target document in the second format.
[0283] Here, it should be noted that the execution of step 705 can also occur on the end storing the collaborative record, and the embodiment of the present application does not limit the modification instruction to be stored on the document editing server. Then, the end storing the modification instruction can trigger the modification instruction corresponding to the target document in the first format to be updated to the modification instruction corresponding to the target document in the second format through interaction with the document editing server, and then pass the modification instruction corresponding to the target document in the second format to the document editing server.
[0284] Step 706: Execute the modification instruction corresponding to the target document in the second format on the converted document.
[0285] In combination with the above related description, it can be known that after obtaining the modification instructions corresponding to the target document in the first format, the modification instructions corresponding to the target document in the first format are first updated to modification instructions corresponding to the target document in the second format, and then the modification instructions corresponding to the target document in the second format are applied to the converted document in the second format.
[0286] Figure 7 The process shown in Figure 1 On the basis of the shown process, a step is added to update the modification instructions corresponding to the target document in the first format to modification instructions corresponding to the target document in the second format, and then the converted document is modified based on the modification instructions corresponding to the target document in the second format. This can ensure the stability of the target document and avoid the failure of document format conversion due to incompatibility between the modification instructions and the document format.
[0287] Figure 8 This is a flowchart of another document processing method provided in the embodiment of the present application. In one embodiment, the execution subject of the process of this embodiment is a document editing client. Figure 8 As shown, the process includes the following steps:
[0288] Step 801: In response to a first trigger operation on a target document, a document format conversion task is triggered, and the document format conversion task indicates that the document format of the target document is converted from a first format to a second format to generate a format-converted version of the target document corresponding to the second format.
[0289] Exemplarily, the first trigger operation is a trigger operation on a specified icon / button on the document display interface.
[0290] As for other descriptions of the document format conversion task, please refer to the relevant descriptions in the above embodiments, which will not be repeated here.
[0291] Step 802: Display the format-converted version of the document, where the format-converted version of the document includes the modified content formed by modifying the target document during the execution of the document format conversion task.
[0292] In one embodiment, after completing the format conversion of the target document, that is, obtaining the format-converted version of the document, the document editing server may send a document format conversion message to the document editing client, where the document format conversion message is used to notify that the document format of the target document is converted from the first format to the second format. Here, the document editing server may send the document format conversion message to the document editing client in a broadcast or unicast form. Here, the document editing client refers to the document editing client used by the collaborating party of the target document, where the collaborating party includes the initiator of the document format conversion task.
[0293] Furthermore, the specific implementation of the document editing client displaying the format-converted version of the document includes: the document editing client responds to the document format conversion message from the server, refreshes the display interface of the target document to connect the display interface to the document service process enabled by the target document, and displays the format-converted version of the document opened in the connected document service process in the refreshed display interface.
[0294] Specifically, the document editing client receives the document format conversion message, refreshes the interface, and triggers the document editing server to re-enter the document opening process. In the document opening process, the document editing server downloads the format-converted version of the target document from the cloud platform, switches the document service process enabled by the target document from the first document service process to the second document service process, and at this time, the display interface of the document editing client is connected to the second document service process, and displays the format-converted version of the document opened in the second document service process in the refreshed display interface.
[0295] In addition, in one embodiment, during the execution of the document format conversion task, the document editing client generates a modification instruction corresponding to the modification operation in response to the modification operation on the target document, and saves the modification instruction to a designated storage medium. For detailed descriptions here, please refer to the relevant descriptions in the above embodiments, which will not be repeated here.
[0296] In one embodiment, during the execution of the document format conversion task, in response to the document version recovery operation on the target document, the server is triggered to restore the latest version of the target document to the specified historical version document, and the latest version of the target document is displayed. Alternatively, during the execution of the document format conversion task, in response to the document version upload operation on the target document, the server is triggered to update the latest version of the target document to the version uploaded by the document version upload operation, and the latest version of the target document is displayed.
[0297] Furthermore, the specific implementation of displaying the latest version of the target document includes: in response to the notification message from the server, refreshing the display interface of the target document to connect the display interface to the document service process enabled by the target document, and displaying the latest version of the document opened in the connected document service process in the refreshed display interface. Here, the notification message is used to notify the target document that the latest version of the document has been updated.
[0298] For detailed description of the above embodiments, please refer to the relevant description in the above embodiments, which will not be repeated here.
[0299] The method provided by the embodiment of the present application realizes format conversion through version iteration based on the existing document, and the user does not need to re-set the collaboration of the document after the format conversion. In addition, during the execution of the document format conversion task for the target document, the collaborating party of the target document can still trigger the modification operation on the target document, so that the format conversion process of the target document will not affect the user's collaboration on the target document, thereby avoiding the document format conversion from affecting the normal collaboration of the user on the target document; and the modification operation on the target document during the execution of the document format conversion will not be lost, thereby ensuring that the modification operation on the target document during the execution of the document format conversion task can be fully recorded and tracked, ensuring the accuracy and consistency of the target document, thereby meeting user needs and improving user experience.
[0300] Fig. 9 This is a block diagram of an embodiment of a document processing device provided in an embodiment of the present application. Fig. 9 As shown, the device comprises:
[0301] A task acquisition module 91 is used to acquire a document format conversion task, where the document format conversion task indicates converting the document format of a target document from a first format to a second format;
[0302] A task execution module 92, configured to execute the document format conversion task and generate a converted document of the target document corresponding to the second format;
[0303] A modification instruction acquisition module 93, used to acquire modification instructions for the target document during the execution of the document format conversion task;
[0304] The instruction playback module 94 is used to execute the modification instruction on the converted document and save the modified document as a format-converted version document of the target document.
[0305] In a possible implementation, the device further includes:
[0306] The historical version saving module is used to save the current target document as a version document before the format conversion of the target document before the document format conversion task is executed.
[0307] In a possible implementation, the device further includes:
[0308] A collaboration record generating module, configured to generate a format conversion collaboration record of executing the document format conversion task on the target document after executing the document format conversion task and generating a converted document corresponding to the second format of the target document;
[0309] The re-upgrade module is used to obtain the format conversion version of the target document before the format conversion when the modified document is saved as the format conversion version of the target document fails;
[0310] Based on the format conversion collaboration record, a document format conversion process is performed on a version of the target document before format conversion to regenerate a converted document of the target document corresponding to the second format.
[0311] In a possible implementation, the device further includes:
[0312] The latest version saving module is used to modify the converted document based on the collaboration record and save the modified document as the format-converted version document of the target document, and then use the format-converted version document of the target document as the latest version document of the target document.
[0313] In a possible implementation, the device further includes:
[0314] A process switching module is used to switch the document service process enabled by the target document from a first document service process to a second document service process after the format-converted version of the target document is used as the latest version of the target document; the first document service process is used to provide modification services for documents in the first format, and the second document service process is used to provide modification services for documents in the second format; the collaborator of the target document connects the display interface of the target document to the document service process enabled by the target document.
[0315] In a possible implementation, the device further includes:
[0316] A document loading module is used to load the latest version of the target document after the document service process enabled by the target document is switched from the first document service process to the second document service process, wherein the latest version of the document is the format-converted version document or other version document, wherein the other version document is a document modified by the collaborator of the target document and is newer than the format-converted version document.
[0317] In a possible implementation, the document loading module is specifically used to:
[0318] Obtain the latest version of the target document;
[0319] When it is determined that the document format of the latest version document matches the second document service process, the latest version document of the target document is loaded by using the second document service process enabled by the target document.
[0320] In a possible implementation, the document loading module is specifically used to:
[0321] Obtain the latest version of the target document;
[0322] If it is determined that the document format of the latest version of the document does not match the second document service process, switching the document service process enabled by the target document from the second document service process to the first document service process;
[0323] The first document service process enabled by the target document is used to load the latest version of the target document.
[0324] In a possible implementation, the device further includes:
[0325] A version recovery module is used to receive a document version recovery request after loading the latest version of the target document, wherein the document version recovery request indicates that the latest version of the target online document is restored to a specified historical version document; obtain the specified historical version document; and use the specified historical version document as the latest version of the target document.
[0326] In a possible implementation, the process switching module is specifically used to:
[0327] Exit the first document service process currently enabled by the target document;
[0328] A second document service process for the target document is started.
[0329] In a possible implementation, the device further includes:
[0330] A process starting module, used for starting the second document service process of the target document before loading the format-converted version document;
[0331] The process switching module is specifically used for:
[0332] The second document service process is determined as the document service process currently enabled for the target document.
[0333] In a possible implementation, the process startup module is specifically used to:
[0334] In response to the document format conversion task, a second document service process for the target document is started.
[0335] In a possible implementation manner, before determining the second document service process as the document service process currently enabled for the target document, an enable flag is set for the first document service process, and a disable flag is set for the second document service process;
[0336] The process switching module is specifically used for:
[0337] An enabling flag is set for the second document service process, and a disabling flag is set for the first document service process.
[0338] In a possible implementation manner, both the first document service process and the second document service process have access rights to the modification instruction.
[0339] In a possible implementation, the device further includes:
[0340] a modification instruction generating module, configured to obtain, before obtaining the modification instruction for the target document during the execution of the document format conversion task, modification operations performed by the collaborating party of the target document on the target document in the first format during the execution of the document format conversion task; and generate modification instructions corresponding to the target document in the first format based on the obtained modification operations;
[0341] The modification instruction acquisition module 93 is specifically used for:
[0342] A modification instruction corresponding to the target document in a first format is obtained.
[0343] In a possible implementation, the instruction playback module includes:
[0344] a format updating unit, configured to update the modification instruction corresponding to the target document in the first format to the modification instruction corresponding to the target document in the second format;
[0345] A playback unit is used to execute the modification instruction corresponding to the target document in the second format on the converted document.
[0346] In a possible implementation, the device further includes:
[0347] An instruction execution module, used for executing the modification instruction on the target document in response to the modification instruction on the target document during the execution of the document format conversion task, and saving the collaboration record formed by executing the modification instruction to a designated storage medium;
[0348] The modification instruction acquisition module includes:
[0349] A collaboration record acquisition unit, used to acquire a collaboration record generated by modifying the target document during the execution of the document format conversion task;
[0350] The collaboration record parsing unit is used to parse the modification instruction from the collaboration record.
[0351] Fig.10 This is a block diagram of another embodiment of a document processing device provided in an embodiment of the present application. Fig.10 As shown, the device comprises:
[0352] The task triggering module 1001 is used to trigger a document format conversion task in response to a first triggering operation on a target document, wherein the document format conversion task indicates converting a document format of the target document from a first format to a second format to generate a format-converted version document of the target document corresponding to the second format;
[0353] The document display module 1002 is used to display the format-converted version of the document, where the format-converted version of the document includes the modified content formed by modifying the target document during the execution of the document format conversion task.
[0354] In a possible implementation, the document display module 1002 is specifically configured to:
[0355] In response to a document format conversion message from the server, the display interface of the target document is refreshed to connect the display interface to the document service process enabled by the target document, and the format-converted version of the document opened in the connected document service process is displayed in the refreshed display interface.
[0356] In a possible implementation, the device further includes:
[0357] The modification instruction saving module is used to save the modification instruction to a designated storage medium in response to the modification instruction to the target document during the execution of the document format conversion task.
[0358] In a possible implementation, the device further includes:
[0359] A document version recovery module, used to trigger the server to recover the latest version of the target document to a specified historical version document in response to a document version recovery operation on the target document during the execution of the document format conversion task;
[0360] The document display module 1002 is further used for:
[0361] Displays the latest version of the target document.
[0362] In a possible implementation, the device further includes:
[0363] A document version uploading module, used for, during the execution of the document format conversion task, in response to a document version uploading operation on the target document, triggering the server to update the latest version of the target document to the version document uploaded by the document version uploading operation;
[0364] The document display module is also used for:
[0365] Displays the latest version of the target document.
[0366] In a possible implementation manner, the document display module is specifically used to:
[0367] In response to the notification message from the server, the display interface of the target document is refreshed to connect the display interface to the document service process enabled by the target document, and the latest version of the document opened in the connected document service process is displayed in the refreshed display interface.
[0368] like Fig.10 As shown, an embodiment of the present application provides an electronic device, including a processor 111, a communication interface 112, a memory 113 and a communication bus 114, wherein the processor 111, the communication interface 112, and the memory 113 communicate with each other through the communication bus 114.
[0369] Memory 113, used for storing computer programs;
[0370] In one embodiment of the present application, the processor 111 is used to execute the program stored in the memory 113 to implement the document processing method provided by any of the above method embodiments, including:
[0371] Acquire a document format conversion task, where the document format conversion task indicates converting a document format of a target document from a first format to a second format;
[0372] Executing the document format conversion task to generate a converted document of the target document corresponding to the second format;
[0373] Acquiring a modification instruction for the target document during execution of the document format conversion task;
[0374] The modification instruction is executed on the converted document, and the modified document is saved as a format-converted version document of the target document.
[0375] Or include:
[0376] In response to a first trigger operation on a target document, triggering a document format conversion task, wherein the document format conversion task indicates converting the document format of the target document from a first format to a second format, so as to generate a format-converted version document of the target document corresponding to the second format;
[0377] The format-converted version document is displayed, wherein the format-converted version document includes modified content formed by modifying the target document during the execution of the document format conversion task.
[0378] An embodiment of the present application further provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the steps of the document processing method provided in any of the aforementioned method embodiments are implemented.
[0379] The device embodiments described above are merely illustrative, wherein 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 modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0380] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a general hardware platform, and of course, by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the relevant technology can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.
[0381] It should be understood that the terms used herein are only for the purpose of describing specific example embodiments and are not intended to be limiting. Unless the context clearly indicates otherwise, the singular forms "one", "an" and "said" as used herein may also be meant to include plural forms. The terms "include", "comprise", "contain", and "have" are inclusive, and therefore specify the existence of stated features, steps, operations, elements and / or parts, but do not exclude the existence or addition of one or more other features, steps, operations, elements, parts, and / or combinations thereof. The method steps, processes, and operations described herein are not interpreted as necessarily requiring them to be performed in the specific order described or illustrated, unless the execution order is clearly indicated. It should also be understood that additional or alternative steps may be used.
[0382] The above description is only a specific implementation of the present application, so that those skilled in the art can understand or implement the present application. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein can be implemented in other embodiments without departing from the spirit or scope of the present application. Therefore, the present application will not be limited to the embodiments shown herein, but will conform to the widest range consistent with the principles and novel features applied for herein.
Claims
1. A document processing method, characterized in that: The method comprises: Acquire a document format conversion task, where the document format conversion task indicates converting a document format of a target document from a first format to a second format; Executing the document format conversion task to generate a converted document of the target document corresponding to the second format; Acquire a modification instruction for the target document during execution of the document format conversion task; The modification instruction is executed on the converted document, and the modified document is saved as a format-converted version document of the target document.
2. The method according to claim 1, characterized in that: Before executing the document format conversion task, the method further includes: The current target document is saved as a version document before the format conversion of the target document.
3. The method according to claim 2, characterized in that After executing the document format conversion task and generating a converted document of the target document corresponding to the second format, the method further includes: Generating a format conversion collaboration record of executing the document format conversion task on the target document; In the case where the modified document is saved as a format-converted version of the target document fails, the method further includes: Obtaining a version document of the target document before format conversion; Based on the format conversion collaboration record, a document format conversion process is performed on a version of the target document before format conversion to regenerate a converted document of the target document corresponding to the second format.
4. The method according to claim 1, characterized in that: After executing the modification instruction on the converted document and saving the modified document as a format-converted version document of the target document, the method further includes: The format-converted version of the target document is used as the latest version of the target document.
5. The method according to claim 4, characterized in that After converting the target document into the latest version document as the target document, the method further includes: The document service process enabled by the target document is switched from a first document service process to a second document service process; the first document service process is used to provide modification services for documents in the first format, and the second document service process is used to provide modification services for documents in the second format; the collaborator of the target document connects the display interface of the target document to the document service process enabled by the target document.
6. The method according to claim 5, characterized in that After the document service process enabled by the target document is switched from the first document service process to the second document service process, the method further includes: The latest version of the target document is loaded, where the latest version is the format-converted version or other version of the document, wherein the other version of the document is a document modified by a collaborator of the target document and is newer than the format-converted version.
7. The method according to claim 6, characterized in that The loading of the latest version of the target document includes: Obtain the latest version of the target document; When it is determined that the document format of the latest version document matches the second document service process, the latest version document of the target document is loaded by using the second document service process enabled by the target document.
8. The method according to claim 6, characterized in that The loading of the latest version of the target document includes: Obtain the latest version of the target document; If it is determined that the document format of the latest version document does not match the second document service process, switching the document service process enabled by the target document from the second document service process to the first document service process; The first document service process enabled by the target document is used to load the latest version of the target document.
9. The method according to claim 6, characterized in that After the latest version of the target document is loaded, the method further includes: Receiving a document version restoration request, wherein the document version restoration request indicates restoring the latest version of the target online document to a specified historical version document; Obtain the specified historical version document; The specified historical version document is used as the latest version document of the target document.
10. The method according to claim 5, characterized in that The step of switching the document service process enabled by the target document from the first document service process to the second document service process includes: Exit the first document service process currently enabled by the target document; A second document service process for the target document is started.
11. The method according to claim 6, characterized in that Also includes: Before loading the format-converted version document, starting a second document service process for the target document; The switching of the enabled document service process of the target document from the first document service process to the second document service process includes: The second document service process is determined as the document service process currently enabled for the target document.
12. The method according to claim 11, characterized in that Before loading the format-converted version document, starting the second document service process of the target document includes: In response to the document format conversion task, a second document service process for the target document is started.
13. The method according to claim 11, characterized in that Before determining the second document service process as the document service process currently enabled for the target document, an enable flag is set for the first document service process, and a disable flag is set for the second document service process; The step of determining the second document service process as the document service process currently enabled by the target document includes: An enabling flag is set for the second document service process, and a disabling flag is set for the first document service process.
14. The method according to claim 5, characterized in that The first document service process and the second document service process both have access rights to the modification instruction.
15. The method according to claim 1, characterized in that Before obtaining the instruction to modify the target document during the execution of the document format conversion task, the method further includes: During the execution of the document format conversion task, obtaining a modification operation performed by a collaborator of the target document on the target document in the first format; Based on the acquired modification operation, generating a modification instruction corresponding to the target document in the first format; The obtaining of the modification instruction for the target document during the execution of the document format conversion task includes: A modification instruction corresponding to the target document in a first format is obtained.
16. The method according to claim 15, characterized in that The executing the modification instruction on the converted document comprises: updating the modification instruction corresponding to the target document in the first format to the modification instruction corresponding to the target document in the second format; The modification instruction corresponding to the target document in the second format is executed on the converted document.
17. The method according to claim 1, characterized in that The method further comprises: During the execution of the document format conversion task, in response to a modification instruction for the target document, the modification instruction is executed on the target document, and a collaboration record formed by executing the modification instruction is saved in a designated storage medium; The obtaining of the modification instruction for the target document during the execution of the document format conversion task includes: Acquire a collaboration record generated by modifying the target document during the execution of the document format conversion task; The modification instruction is parsed from the collaboration record.
18. A document processing method, characterized in that: The method comprises: In response to a first trigger operation on a target document, triggering a document format conversion task, wherein the document format conversion task indicates converting the document format of the target document from a first format to a second format, so as to generate a format-converted version document of the target document corresponding to the second format; The format-converted version document is displayed, wherein the format-converted version document includes modified content formed by modifying the target document during the execution of the document format conversion task.
19. The method according to claim 18, characterized in that The displaying of the format-converted version document includes: In response to a document format conversion message from the server, the display interface of the target document is refreshed to connect the display interface to the document service process enabled by the target document, and the format-converted version of the document opened in the connected document service process is displayed in the refreshed display interface.
20. The method according to claim 18, characterized in that The method further comprises: During the execution of the document format conversion task, in response to a modification instruction for the target document, the modification instruction is saved in a designated storage medium.
21. The method according to claim 18, characterized in that The method further comprises: During the execution of the document format conversion task, in response to a document version recovery operation on the target document, the server is triggered to recover the latest version of the target document to a specified historical version document; Displays the latest version of the target document.
22. The method according to claim 18, characterized in that The method further comprises: During the execution of the document format conversion task, in response to a document version upload operation on the target document, the server is triggered to update the latest version of the target document to the version uploaded by the document version upload operation; Displays the latest version of the target document.
23. The method according to claim 16 or 17, characterized in that Display the latest version of the target document, including: In response to the notification message from the server, the display interface of the target document is refreshed to connect the display interface to the document service process enabled by the target document, and the latest version of the document opened in the connected document service process is displayed in the refreshed display interface.
24. A document processing device, characterized in that: The device comprises: A task acquisition module, used to acquire a document format conversion task, wherein the document format conversion task indicates converting the document format of a target document from a first format to a second format; A task execution module, used for executing the document format conversion task, and generating a converted document of the target document corresponding to the second format; A modification instruction acquisition module, used to acquire modification instructions for the target document during the execution of the document format conversion task; The instruction playback module is used to execute the modification instruction on the converted document and save the modified document as a format-converted version document of the target document.
25. A document processing device, characterized in that: The device comprises: A task triggering module, configured to trigger a document format conversion task in response to a first triggering operation on a target document, wherein the document format conversion task indicates converting a document format of the target document from a first format to a second format to generate a format-converted version document of the target document corresponding to the second format; The document display module is used to display the format-converted version document, wherein the format-converted version document includes the modified content formed by modifying the target document during the execution of the document format conversion task.
26. An electronic device, characterized in that: include: A processor and a memory, wherein the processor is used to execute a document processing program stored in the memory to implement the document processing method according to any one of claims 1 to 17 or claims 18 to 23.
27. A storage medium, characterized in that: The storage medium stores one or more programs, and the one or more programs can be executed by one or more processors to implement the document processing method according to any one of claims 1 to 17 or claims 18 to 23.
