CN116956830A - Document storage method, document display method, document storage device, document display device, document storage apparatus, and storage medium - Google Patents
Document storage method, document display method, document storage device, document display device, document storage apparatus, and storage medium Download PDFInfo
- Publication number
- CN116956830A CN116956830A CN202310798912.7A CN202310798912A CN116956830A CN 116956830 A CN116956830 A CN 116956830A CN 202310798912 A CN202310798912 A CN 202310798912A CN 116956830 A CN116956830 A CN 116956830A
- Authority
- CN
- China
- Prior art keywords
- editing
- target document
- version
- event
- information
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 100
- 230000004044 response Effects 0.000 claims abstract description 25
- 238000012545 processing Methods 0.000 claims abstract description 23
- 230000009471 action Effects 0.000 claims description 43
- 238000004590 computer program Methods 0.000 claims description 14
- 238000004321 preservation Methods 0.000 claims description 8
- 238000013500 data storage Methods 0.000 abstract description 2
- 230000006870 function Effects 0.000 description 13
- 238000004891 communication Methods 0.000 description 8
- 238000012217 deletion Methods 0.000 description 7
- 230000037430 deletion Effects 0.000 description 7
- 238000010586 diagram Methods 0.000 description 7
- 238000012986 modification Methods 0.000 description 4
- 230000004048 modification Effects 0.000 description 4
- 230000003287 optical effect Effects 0.000 description 3
- 238000013461 design Methods 0.000 description 2
- 230000003993 interaction Effects 0.000 description 2
- 238000003491 array Methods 0.000 description 1
- 238000013473 artificial intelligence Methods 0.000 description 1
- 230000001413 cellular effect Effects 0.000 description 1
- 230000008859 change Effects 0.000 description 1
- 238000010276 construction Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 238000010801 machine learning Methods 0.000 description 1
- 239000013307 optical fiber Substances 0.000 description 1
- 230000008569 process Effects 0.000 description 1
- 239000004065 semiconductor Substances 0.000 description 1
- 230000001953 sensory effect Effects 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
- 230000000007 visual effect Effects 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F40/00—Handling natural language data
- G06F40/10—Text processing
- G06F40/166—Editing, e.g. inserting or deleting
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F40/00—Handling natural language data
- G06F40/10—Text processing
- G06F40/197—Version control
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Health & Medical Sciences (AREA)
- Artificial Intelligence (AREA)
- Audiology, Speech & Language Pathology (AREA)
- Computational Linguistics (AREA)
- General Health & Medical Sciences (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Document Processing Apparatus (AREA)
Abstract
The disclosure provides a method, a device, equipment and a storage medium for storing and displaying a document, relates to the field of data processing, in particular to the technical fields of data storage, data reading and the like, and can be applied to the scenes of document storage, document viewing and the like. The specific implementation scheme comprises the following steps: generating a corresponding first editing event according to a first editing operation of a user on the target document of the initial version, wherein the first editing event is used for indicating first editing information corresponding to the first editing operation, and the first editing information comprises first updating information of the target document of the initial version; in response to the first save instruction, a first editing event is saved, the first editing event being for composing a second version of the target document with the original version of the target document. The method and the device can reduce the occupation of storage resources by a plurality of version files of the same document.
Description
Technical Field
The disclosure relates to the field of data processing, in particular to the technical fields of data storage, data reading and the like, and can be applied to scenes such as document storage, document viewing and the like, and particularly relates to a method, a device, equipment and a storage medium for document storage and document display.
Background
The portable document format (PDF, portable Document Format) is used as a document storage format, has higher compatibility, is easy to spread and read, and has wide application.
Currently, in order to meet the requirement of users to view each historical version (i.e., previously edited version) of a PDF document, an electronic device stores each historical version of the PDF document.
However, the current storage method occupies a large amount of storage resources of the electronic device.
Disclosure of Invention
The disclosure provides a document storage method, a document storage device, a document display device, a document storage medium and a document storage method, a document storage device, a document display device and a document storage medium, wherein storage resources can be occupied by a plurality of version files of the same document.
According to a first aspect of the present disclosure, there is provided a document storing method including:
generating a corresponding first editing event according to a first editing operation of a user on the target document of the initial version, wherein the first editing event is used for indicating first editing information corresponding to the first editing operation, and the first editing information comprises first updating information of the target document of the initial version; in response to the first save instruction, a first editing event is saved, the first editing event being for composing a second version of the target document with the original version of the target document.
According to a second aspect of the present disclosure, there is provided a document display method including:
responding to the operation of opening the target document of the second version, acquiring the target document of the initial version and a first editing event, wherein the first editing event is generated according to the first editing operation of the target document of the initial version by a user and is used for indicating first editing information corresponding to the first editing operation, and the first editing information comprises first updating information of the target document of the initial version; determining first editing information according to the first editing event; determining first update information according to the first editing information; the first update information is displayed in the original version of the target document to open the second version of the target document.
According to a third aspect of the present disclosure, there is provided a document storage apparatus comprising: a generation module and a storage module.
The generation module is used for generating a corresponding first editing event according to a first editing operation of a user on the target document of the initial version, wherein the first editing event is used for indicating first editing information corresponding to the first editing operation, and the first editing information comprises first updating information of the target document of the initial version.
And the storage module is used for responding to the first storage instruction and storing a first editing event, wherein the first editing event is used for forming a target document of a second version together with the target document of the initial version.
According to a fourth aspect of the present disclosure, there is provided a document display apparatus including: the device comprises an acquisition module, a processing module and a display module.
The acquisition module is used for responding to the operation of opening the target document of the second version, acquiring the target document of the initial version and a first editing event, wherein the first editing event is generated according to the first editing operation of the user on the target document of the initial version, and is used for indicating first editing information corresponding to the first editing operation, and the first editing information comprises first updating information of the target document of the initial version.
The processing module is used for determining first editing information according to the first editing event; according to the first editing information, first updating information is determined.
And the display module is used for displaying the first updating information in the target document of the initial version so as to open the target document of the second version.
According to a fifth aspect of the present disclosure, there is provided an electronic device comprising: at least one processor; and a memory communicatively coupled to the at least one processor; wherein the memory stores instructions executable by the at least one processor to enable the at least one processor to perform a method as in the first aspect or a method as in the second aspect.
According to a sixth aspect of the present disclosure there is provided a non-transitory computer readable storage medium storing computer instructions for causing a computer to perform the method according to the first aspect or the method according to the second aspect.
According to a seventh aspect of the present disclosure, there is provided a computer program product comprising a computer program which, when executed by a processor, implements the method according to the first aspect or the method of the second aspect.
It should be understood that the description in this section is not intended to identify key or critical features of the embodiments of the disclosure, nor is it intended to be used to limit the scope of the disclosure. Other features of the present disclosure will become apparent from the following specification.
Drawings
The drawings are for a better understanding of the present solution and are not to be construed as limiting the present disclosure. Wherein:
FIG. 1 is a schematic flow chart of a document storage method according to an embodiment of the disclosure;
FIG. 2 is a schematic flow chart of another document storage method according to an embodiment of the disclosure;
FIG. 3 is a schematic flow chart of a document storage method according to an embodiment of the disclosure;
FIG. 4 is a schematic flow chart of a document display method according to an embodiment of the disclosure;
FIG. 5 is a schematic flow chart of another method for displaying a document according to an embodiment of the present disclosure;
FIG. 6 is a schematic flow chart of a document display method according to an embodiment of the present disclosure;
FIG. 7 is a schematic diagram of the composition of a document storage device provided by an embodiment of the present disclosure;
FIG. 8 is a schematic diagram showing the composition of a document display apparatus according to an embodiment of the present disclosure;
fig. 9 is a schematic diagram of the composition of an electronic device according to an embodiment of the disclosure.
Detailed Description
Exemplary embodiments of the present disclosure are described below in conjunction with the accompanying drawings, which include various details of the embodiments of the present disclosure to facilitate understanding, and should be considered as merely exemplary. Accordingly, one of ordinary skill in the art will recognize that various changes and modifications of the embodiments described herein can be made without departing from the scope and spirit of the present disclosure. Also, descriptions of well-known functions and constructions are omitted in the following description for clarity and conciseness.
It should be appreciated that in embodiments of the present disclosure, the character "/" generally indicates that the context associated object is an "or" relationship. The terms "first," "second," and the like are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated.
The portable document format (PDF, portable Document Format) is used as a document storage format, has higher compatibility, is easy to spread and read, and has wide application.
Currently, in order to meet the requirement of users to view each historical version (i.e., previously edited version) of a PDF document, an electronic device stores each historical version of the PDF document.
For example, if a source document of a PDF document is a document a, and the history version includes a document a-1, a document a-2, and a document a-3, the electronic device stores the document a, the document a-1, the document a-2, and the document a-3, and when a user needs to view the document a-1, the document a-1 is opened to meet the requirement of the user for viewing the document of any version.
However, the current storage method occupies a large amount of storage resources of the electronic device.
Illustratively, taking a source document of one PDF document as document A, a history version of document A-1, document A-2 and document A-3 as examples, even though document A-1, document A-2 and document A-3 have fewer modifications than the source document (i.e., document A), the electronic device still stores document A-1, document A-2 and document A-3 in its entirety, occupying a large amount of storage resources.
Under the background technology, the document storage and document display method can reduce the occupation of storage resources by a plurality of version files of the same document.
The execution main body of the document storage and document display method provided by the embodiment of the disclosure can be a computer or a server, or can also be other electronic equipment with data processing capability; alternatively, the execution subject of the method may be a processor (e.g., a central processing unit (central processing unit, CPU)) in the above-described electronic device; still alternatively, the execution subject of the method may be an Application (APP) installed in the electronic device and capable of implementing the function of the method; alternatively, the execution subject of the method may be a functional module, a unit, or the like having the function of the method in the electronic device. The subject of execution of the method is not limited herein.
In some embodiments, the server may be a single server, or may be a server cluster formed by a plurality of servers. In some implementations, the server cluster may also be a distributed cluster. The present disclosure is not limited to a specific implementation of the server.
In some implementations, the document storage and document display methods provided by the embodiments of the present disclosure may be applied to a client, which may be a mobile phone, a computer, or other devices. In the embodiment of the disclosure, the client may provide a user interface for a user, and the user may operate on the user interface to interact with the client. The client can respond to the operation of the user to realize the document storage method provided by the embodiment of the disclosure. For example, the user interface may be implemented based on a document editor.
The document storing method is exemplarily described below with reference to the accompanying drawings.
Fig. 1 is a schematic flow chart of a document storage method according to an embodiment of the disclosure. As shown in fig. 1, the method may include:
s101, generating a corresponding first editing event according to a first editing operation of a user on the target document of the initial version.
The first editing event is used for indicating first editing information corresponding to the first editing operation, and the first editing information comprises first updating information of the target document of the initial version.
The target document of the initial version is the target document which is not edited by the user.
Illustratively, a user may edit a document using an editor corresponding to the format of the document. For example, a user may edit a PDF document using a PDF document editor. Of course, the document may be edited by other programs having an editing function for the document, which is not limited herein.
For example, the first editing operation of the user on the target document of the initial version may be an operation that the user performs editing on the target document through clicking, touching, inputting, etc. operations on a user interface provided by the client. For example, the editing operation of the target document may be an operation in which the user adds content such as endorsement, highlight, deletion line, etc. to the document, an operation in which the user deletes content such as text, picture, page, etc. in the document, or an operation in which the user changes the position of content such as text, picture, etc. in the document in the page, etc.
For example, the first editing operation may include one or more editing operations on the document, and accordingly, the first editing event may also include one or more editing events, where the first editing operation corresponds to the first editing event one-to-one.
Illustratively, the first editing information may be related information that edits the edited document. For example, the update information obtained by editing the corresponding position of the target document may be used.
For example, the first editing event may be an expression for indicating the first editing information generated according to an editing operation of the user based on a preset expression format.
S102, responding to the first preservation instruction, and preserving the first editing event.
Wherein the first editing event is used to compose a second version of the target document with the original version of the target document.
The target document of the second version is the target document after the first editing operation is carried out on the target document of the initial version by the user.
The first storage indication may be generated by the client at intervals of a preset duration, or may be generated by a user through clicking, touching, or other operations on a user interface provided by the client, or may be generated by the client according to a preset rule. For example, the preset duration interval may be 1 minute or 2 minutes, and the preset rule may be that the first save instruction is generated once every time the editing operation is completed, and the first save instruction is generated once every time the editing operation is completed twice, which is not limited to the preset period and the preset rule.
For example, first update information corresponding to the first editing event may be obtained according to the first editing event, and the first update information may be displayed on the target document of the initial version, so as to obtain the target document of the second version.
According to the method and the device for displaying the target document, the first editing event corresponding to the first editing operation is generated according to the first editing operation of the user on the target document of the initial version, the first editing event indicating the first updating information of the target document of the initial version corresponding to the first editing operation can be obtained, and the first editing event can be saved in response to the first saving instruction, so that the target document of the second version can be displayed for the user without saving the target document of the second version by combining the first editing event and the target document of the initial version into the target document of the second version, and occupation of storage resources by multiple version files of the same document is reduced.
In one possible embodiment, saving the first editing event in response to the first save instruction may include:
and responding to the first storage instruction, generating a first editing event list according to the first editing event, and storing.
For example, the first editing events may be ordered according to the sequence of the generation time, so as to obtain a first editing event list.
According to the method, the first editing event list is generated and stored according to the first editing event in response to the first storage indication, the first editing event can be stored in the form of the first editing event list, the first editing event and the target document of the initial version can be formed into the target document of the second version, and the target document of the second version can be obtained without storing the target document of the second version, so that occupation of storage resources by multiple version files of the same document is reduced.
In a possible embodiment, the first editing event list may be used to compose the latest version of the target document with the original version of the target document.
For example, all editing events included in the first editing event list may be sequentially combined with the target document of the initial version, to obtain the target document of the initial version including all editing events, that is, the target document of the latest version.
For example, taking the original version of the target document as the document A1 and the latest version of the target document as the second version of the target document A2 as an example, the first editing event list includes first editing events which can form the document A2 with the document A1, and all editing events (i.e., the first editing events) in the first editing event list are sequentially combined with the document A1 to obtain the second version of the target document (i.e., the latest version of the target document).
According to the embodiment, the target document of the latest version can be obtained by combining the first editing event list with the target document of the initial version, the target document of the latest version can be obtained more conveniently, and the speed of obtaining the target document of the latest version is improved.
Fig. 2 is another flow chart of a document storage method according to an embodiment of the disclosure. As shown in fig. 2, the method may include:
s201, generating a corresponding second editing event according to a second editing operation of the user on the target document of the second version.
The second editing event is used for indicating second editing information corresponding to a second editing operation, and the second editing information comprises second updating information of a second version of the target document.
Illustratively, the second editing operation, the second editing event, the second editing information in S201 are similar to the first editing operation, the first editing event, the first editing information in S101, and the description thereof is not repeated here.
S202, responding to a second preservation instruction, and adding a second editing event to the first editing event list.
Illustratively, the second save instruction in S202 is similar to the description of the first save instruction in S102, and will not be described again.
In some possible implementation manners, an identifier may be added to the editing event in the first editing event list, where the added identifier is used to indicate a version of the target document corresponding to the editing event, so that when a user opens a target document of any version, the client may combine the editing event corresponding to the version and the editing event corresponding to the previous version of the version in the first editing event list with the target document of the initial version according to the sequence of generating the editing event, to obtain the target document of the version.
For example, an identification associated with the second version of the target document may be added for a first editing event in the first editing event list, and an identification associated with the third version of the target document for the second editing event in the first editing event list. When the user opens the target document of the third version, the client may combine the editing event with the identifier associated with the target document of the third version and the editing event with the identifier associated with the target document of the second version with the target document of the initial version according to the sequence of the editing event generation, obtain the target document of the third version and display the target document for the user.
For example, according to the first editing event and the second editing event in the first editing event list, first update information corresponding to the first editing event and second update information corresponding to the second editing event may be obtained respectively, and the first update information and the second update information may be sequentially displayed on the target document of the initial version, so as to obtain the target document of the third version.
The above description is given taking the editing of the second version of the target document by the user as an example. Of course, in practical application, the user can edit any subsequent version of the target document. Therefore, when the user edits the target document of any subsequent version, referring to S201 and S202 in the above example, a corresponding editing event may be generated according to the user' S editing operation on the target document of any subsequent version, and the editing event may be added to the first editing event list in response to the corresponding hold instruction.
For example, when the user edits the third version of the target document, a third editing event may be generated according to a third editing operation of the user on the third version of the target document, and the third editing event may be added to the first editing event list in response to the third save instruction.
According to the method, the second editing event corresponding to the second editing operation is generated according to the second editing operation of the user on the second version of target document, the second editing event indicating the second updating information of the second version of target document corresponding to the second editing operation can be obtained, the second editing event can be saved to the first editing event list in response to the second saving instruction, and therefore the third version of target document can be displayed for the user without saving the third version of target document through the fact that the editing event in the first editing event list and the initial version of target document form the third version of target document, and occupation of storage resources by multiple version files of the same document is reduced.
Fig. 3 is a schematic flow chart of a document storage method according to an embodiment of the disclosure. As shown in fig. 3, the method may include:
s301, generating a corresponding second editing event according to a second editing operation of the user on the target document of the second version.
The second editing event is used for indicating second editing information corresponding to a second editing operation, and the second editing information comprises second updating information of a second version of the target document.
Illustratively, the second editing operation, the second editing event, the second editing information in S301 are similar to the first editing operation, the first editing event, and the first editing information in S101, and are not described herein.
S302, responding to a second preservation instruction, generating a second editing event list according to the second editing event and the first editing event in the first editing event list, and preserving the second editing event list.
Wherein the second editing event list is used for forming a third version of target document with the target document of the initial version.
Illustratively, the second save instruction in S302 is similar to the description of the first save instruction in S102, and will not be described herein.
When the user opens the target document of the third version, the first update information corresponding to the first editing event and the second update information corresponding to the second editing event can be obtained according to the first editing event and the second editing event in the second editing event list, and the first update information and the second update information are sequentially displayed on the target document of the initial version to obtain the target document of the third version.
The above description is given taking the editing of the second version of the target document by the user as an example. Of course, in practical application, the user can edit any subsequent version of the target document. Therefore, when the user can edit any version of the subsequent target document, S301 and S302 in the above example may be referred to, an editing event corresponding to the version is generated according to the editing operation of the user on any version of the subsequent target document, and in response to the corresponding hold instruction, an editing event list corresponding to the next version of the version is generated and stored according to the editing event corresponding to the version and the editing event in the editing event list corresponding to the version.
For example, when the user edits the third version of the target document, a third editing event may be generated according to a third editing operation performed by the user on the third version of the target document, and in response to the third save instruction, a third editing event list corresponding to the fourth version may be generated and saved according to the third editing event and an editing event in the second editing event list corresponding to the third version.
According to the embodiment, the second editing event corresponding to the second editing operation is generated according to the second editing operation of the user on the second version of the target document, the second editing event indicating the second updating information of the second version of the target document corresponding to the second editing operation can be obtained, and the second editing event list can be generated according to the second editing event and the first editing event in the first editing event list in response to the second saving instruction, so that the target document of the third version can be displayed for the user without saving the target document of the third version by combining the editing event in the second editing event list and the target document of the initial version into the target document of the third version, and occupation of storage resources by multiple version files of the same document is reduced.
In one possible embodiment, the first editing event includes an editing action corresponding to the first editing operation and a page position of the editing action in the original version of the target document.
Illustratively, the editing action may be an addition, deletion, change, etc. to the original version of the target document. For example, the editing action may be adding a strikethrough, deleting text, and so forth. Illustratively, the page position of the editing action on the target document of the initial version may be a coordinate position obtained according to a preset origin position.
For example, taking a first editing operation as an operation of adding a deletion line to the text of the first line of the first page of the target document in the initial version by a user as an example, the first editing event may include adding the deletion line, a page number, and text coordinates of the first line of the first page obtained according to a preset origin position.
It should be noted that, other editing events may include an editing action corresponding to an editing operation corresponding to the other editing event and a page position of the editing action in the target document of the initial version. For example, the second editing event includes an editing action corresponding to the second editing operation and a page position of the editing action in the target document of the initial version.
According to the method and the device for displaying the second version of the target file, the first editing event is limited to comprise the editing action corresponding to the first editing operation and the page position of the editing action in the target file of the initial version, so that the generated first editing event can accurately indicate the first editing operation, and the second version of the target file can be accurately displayed for a user according to the first editing event and the target file of the initial version.
The document display method is exemplarily described below with reference to the accompanying drawings.
Fig. 4 is a flowchart illustrating a document display method according to an embodiment of the present disclosure. As shown in fig. 4, the method may include:
s401, responding to the operation of opening the target document of the second version, and acquiring the target document of the initial version and the first editing event.
The first editing event is generated according to a first editing operation of a user on the target document of the initial version, and is used for indicating first editing information corresponding to the first editing operation, wherein the first editing information comprises first updating information of the target document of the initial version.
The target document of the initial version is the target document which is not edited by the user.
Illustratively, a user may open a document using an editor corresponding to the format of the document. For example, a user may open a PDF document using a PDF document editor. Of course, the document may be opened by other programs having a function of opening the document, which is not limited herein.
For example, the operation of opening the second version of the target document may be an operation in which the user performs opening of the target document by clicking, touching, or the like on a user interface provided by the client.
For example, the first editing operation of the user on the target document of the initial version may be an operation that the user performs editing on the target document through clicking, touching, inputting, etc. operations on a user interface provided by the client. For example, the editing operation of the target document may be an operation in which the user adds content such as endorsement, highlight, deletion line, etc. to the document, an operation in which the user deletes content such as text, picture, page, etc. in the document, or an operation in which the user changes the position of content such as text, picture, etc. in the document in the page, etc.
For example, the first editing operation may include one or more editing operations on the document, and accordingly, the first editing event may also include one or more editing events, where the first editing operation corresponds to the first editing event one-to-one.
Illustratively, the first editing information may be related information that edits the edited document. For example, the update information obtained by editing the corresponding position of the target document may be used.
For example, the first editing event may be an expression for indicating the first editing information generated according to an editing operation of the user based on a preset expression format.
S402, determining first editing information according to the first editing event.
S403, determining first update information according to the first editing information.
S404, displaying the first updating information in the target document of the initial version so as to open the target document of the second version.
For example, the first update information corresponding to the first editing event may be sequentially displayed in the target document of the initial version according to the order of the generation time of the first editing event.
Illustratively, the initial version of the target document may be displayed for the user along with the first updated information, i.e., the second version of the target document, by a display device (e.g., a display, projection, AR or VR device, etc.) of the client.
According to the method and the device for displaying the target document, the target document of the initial version and the first editing event indicating the first editing operation on the target document of the initial version are obtained in response to the operation of opening the target document of the second version, the first editing information is determined according to the first editing event, the first updating information is determined according to the first editing information, the first updating information is displayed in the target document of the initial version, and the target document of the initial version containing the first updating information corresponding to the first editing operation can be displayed for a user, so that the target document of the second version can be displayed for the user without storing the target document of the second version in advance, and occupation of storage resources by a plurality of version files of the same document is reduced.
In a possible embodiment, acquiring the first editing event may include:
and acquiring a first editing event from a first editing event list, wherein the first editing event list is used for storing the editing event.
According to the method, the first editing event is acquired from the first editing event list, the acquired first editing event and the target document of the initial version can be formed into the target document of the second version, and the target document of the second version can be obtained without saving the target document of the second version, so that occupation of storage resources by a plurality of version files of the same document is reduced.
In a possible embodiment, the first editing event list further includes a second editing event, where the second editing event is generated according to a second editing operation of the user on the second version of the target document, and is used to indicate second editing information corresponding to the second editing operation, where the second editing information includes second update information of the original version of the target document; fig. 5 is another flow chart of a document display method according to an embodiment of the disclosure. As shown in fig. 5, the method may further include:
s501, in response to the operation of opening the target document of the third version, acquiring the target document of the initial version, and acquiring a first editing event and a second editing event from the first editing event list.
Illustratively, the second editing operation, the second editing event, and the second editing information are similar to the first editing operation, the first editing event, and the first editing information in the foregoing embodiments, and are not described herein.
S502, according to the first editing event and the second editing event, the first editing information and the second editing information are respectively determined.
S503, according to the first editing information and the second editing information, the first updating information and the second updating information are respectively determined.
S504, displaying the first updating information and the second updating information in the target document of the initial version so as to open the target document of the third version.
For example, the first update information corresponding to the first editing event and the second update information corresponding to the second editing event may be sequentially displayed in the target document of the initial version according to the sequence of the generation times of the first editing event and the second editing event.
Illustratively, the initial version of the target document, the first update information, and the second update information, i.e., the third version of the target document, may be displayed to the user via a display device (e.g., a display, projection, AR or VR device, etc.) of the client.
The above description is made taking as an example the case where the user opens the third version of the target document. Of course, in practical application, the user can also open any subsequent version of the target document. Therefore, when the user opens the target document of any subsequent version, S501 to S504 in the above example may be referred to, in response to an operation of opening the target document of any subsequent version, the target document of the initial version is acquired, and the editing event corresponding to the version, the editing event corresponding to the previous version, is acquired from the first editing event list, the corresponding editing information is determined according to the editing events, the corresponding update information is determined according to the editing information, and the update information is displayed on the target document of the initial version to open the target document of the version.
For example, when a user opens a fourth version of a target document, in response to an operation of opening the fourth version of the target document, an initial version of the target document may be acquired, and a third editing event corresponding to the fourth version of the target document, a second editing event corresponding to the third version of the target document, and a first editing event corresponding to the second version of the target document may be acquired from the first editing event list, the first editing information, the second editing information, and the third editing information may be determined according to the first editing event, the second editing event, and the third editing event, respectively, the first updating information, the second updating information, and the third updating information may be determined according to the first editing information, the second editing information, and the third editing information, respectively, and the first updating information, the second updating information, and the third updating information may be displayed in the initial version of the target document to open the fourth version of the target document.
According to the method, the device and the system, the target document of the initial version can be obtained by responding to the operation of opening the target document of the third version, the first editing event generated according to the first editing operation of the target document of the initial version by a user and the second editing event generated according to the second editing operation of the target document of the second version by the user are obtained from the first editing event list, the first editing information and the second editing information are determined according to the first editing event and the second editing event, the first updating information and the second updating information are determined according to the first editing information and the second editing information, the determined first updating information and the second updating information are displayed in the target document of the initial version, the first editing event corresponding to the first editing operation and the second editing event corresponding to the second editing operation are combined with the target document of the initial version, the target document of the third version is obtained, the target document of the third version can be displayed for the user without storing the target document of the third version, and occupation of storage resources by multiple version files of the same document is reduced.
Fig. 6 is a schematic flow chart of a document display method according to an embodiment of the disclosure. As shown in fig. 6, the method may further include:
s601, responding to the operation of opening the target document of the third version, acquiring the target document of the initial version, and acquiring a first editing event and a second editing event from a second editing event list.
The second editing event list is obtained according to a second editing event and a first editing event in the first editing event list, the second editing event is generated according to a second editing operation of a user on a second version of target document, and is used for indicating second editing information corresponding to the second editing operation, and the second editing information comprises second updating information of the initial version of target document.
Illustratively, the second editing operation, the second editing event, the second editing information, and the descriptions of the first editing operation, the first editing event, and the first editing information in the foregoing embodiments are similar, and are not repeated here.
S602, according to the first editing event and the second editing event, the first editing information and the second editing information are respectively determined.
S603, according to the first editing information and the second editing information, the first updating information and the second updating information are respectively determined.
S604, displaying the first updating information and the second updating information in the target document of the initial version so as to open the target document of the third version.
For example, the first update information corresponding to the first editing event and the second update information corresponding to the second editing event may be sequentially displayed in the target document of the initial version according to the sequence of the generation times of the first editing event and the second editing event.
Illustratively, the initial version of the target document, the first update information, and the second update information, i.e., the third version of the target document, may be displayed to the user via a display device (e.g., a display, projection, AR or VR device, etc.) of the client.
The above description is made taking as an example the case where the user opens the third version of the target document. Of course, in practical application, the user can also open any subsequent version of the target document. Therefore, when the user opens the target document of any subsequent version, S601 to S604 in the above example may be referred to, in response to an operation of opening the target document of any subsequent version, the target document of the initial version is acquired, and all editing events in the editing event list corresponding to the version are acquired, corresponding editing information is determined according to the editing events, corresponding update information is determined according to the editing information, and the update information is displayed on the target document of the initial version to open the target document of the version.
For example, when a user opens a fourth version of a target document, in response to an operation of opening the fourth version of the target document, the original version of the target document may be acquired, each editing event (including a third editing event, a second editing event, and a first editing event) in a third editing event list corresponding to the fourth version may be acquired, each corresponding editing information (including first editing information, second editing information, and third editing information) may be determined according to each editing event, each corresponding update information (including first update information, second update information, and third update information) may be determined according to each editing information, and each update information may be displayed in the original version of the target document to open the fourth version of the target document.
According to the method, the device and the system, the target document of the initial version can be obtained by responding to the operation of opening the target document of the third version, the first editing event generated according to the first editing operation of the target document of the initial version by a user and the second editing event generated according to the second editing operation of the target document of the second version by the user are obtained from the second editing event list, the first editing information and the second editing information are determined according to the first editing event and the second editing event, the first updating information and the second updating information are determined according to the first editing information and the second editing information, the determined first updating information and the second updating information are displayed in the target document of the initial version, the first editing event corresponding to the first editing operation and the second editing event corresponding to the second editing operation are combined with the target document of the initial version, the target document of the third version is obtained, the target document of the third version can be displayed for the user without storing the target document of the third version, and occupation of storage resources by multiple version files of the same document is reduced.
In a possible embodiment, the first editing event includes an editing action corresponding to the first editing operation and a page position of the editing action in the target document of the initial version; determining the first editing information according to the first editing event may include:
and determining first editing information according to the editing action and the page position of the editing action in the target document of the initial version.
For example, taking a first editing operation as an operation of adding a deletion line to the text of the first line of the first page of the target document in the initial version by a user as an example, the first editing event may include adding the deletion line, a page number, and text coordinates of the first line of the first page obtained according to a preset origin position.
It should be noted that, other editing events may include an editing action corresponding to an editing operation corresponding to the other editing event and a page position of the editing action in the target document of the initial version. For example, the second editing event includes an editing action corresponding to the second editing operation and a page position of the editing action in the target document of the initial version.
According to the method and the device, the first editing information is determined according to the editing action and the page position of the editing action on the target document of the initial version, and the first editing information can be accurately determined according to the first editing event comprising the editing action corresponding to the first editing action and the page position of the editing action on the target document of the initial version, so that the first updating information can be accurately determined, and the target document of the second version is accurately displayed.
The foregoing description of the embodiments of the present disclosure has been presented primarily in terms of methods. To achieve the above functions, it includes corresponding hardware structures and/or software modules that perform the respective functions. Those of skill in the art will readily appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as hardware or combinations of hardware and computer software. Whether a function is implemented as hardware or computer software driven hardware depends upon the particular application and design constraints imposed on the solution. The technical aim may be to use different methods to implement the described functions for each particular application, but such implementation should not be considered beyond the scope of the present disclosure.
In an exemplary embodiment, the disclosed embodiments also provide a document storage apparatus that may be used to implement the document storage method as in the previous embodiments.
Fig. 7 is a schematic diagram of the composition of a document storage apparatus according to an embodiment of the present disclosure. As shown in fig. 7, the apparatus may include: a generation module 701 and a storage module 702.
The generating module 701 is configured to generate a corresponding first editing event according to a first editing operation of a user on the target document of the initial version, where the first editing event is used to indicate first editing information corresponding to the first editing operation, and the first editing information includes first update information of the target document of the initial version.
The storage module 702 is configured to store, in response to the first storage instruction, a first editing event, where the first editing event is used to form a second version of the target document with the target document of the initial version.
In a possible implementation manner, the storage module is specifically configured to:
and responding to the first storage instruction, generating a first editing event list according to the first editing event, and storing.
In a possible embodiment, the first editing event list is used to compose the latest version of the target document with the original version of the target document.
In a possible implementation manner, the generating module is further configured to:
and generating a corresponding second editing event according to a second editing operation of the user on the second version of the target document, wherein the second editing event is used for indicating second editing information corresponding to the second editing operation, and the second editing information comprises second updating information of the second version of the target document.
The storage module is further used for:
in response to the second save instruction, a second editing event is added to the first editing event list.
In a possible implementation manner, the generating module is further configured to:
and generating a corresponding second editing event according to a second editing operation of the user on the second version of the target document, wherein the second editing event is used for indicating second editing information corresponding to the second editing operation, and the second editing information comprises second updating information of the second version of the target document.
The storage module is further used for:
and responding to the second preservation instruction, generating a second editing event list according to the second editing event and the first editing event in the first editing event list, and preserving the second editing event list, wherein the second editing event list is used for forming a third version of target document with the target document of the initial version.
In one possible implementation, the first editing event includes an editing action corresponding to the first editing operation and a page position of the editing action in the original version of the target document.
In an exemplary embodiment, the disclosed embodiments also provide a document display apparatus that can be used to implement the document display method as in the previous embodiments.
Fig. 8 is a schematic diagram of the composition of a document display apparatus provided in an embodiment of the present disclosure. As shown in fig. 8, the apparatus may include: an acquisition module 801, a processing module 802 and a display module 803.
The obtaining module 801 is configured to obtain, in response to an operation of opening the second version of the target document, the target document of the initial version and a first editing event, where the first editing event is generated according to a first editing operation performed on the target document of the initial version by a user, and is configured to indicate first editing information corresponding to the first editing operation, where the first editing information includes first update information of the target document of the initial version.
A processing module 802, configured to determine first editing information according to a first editing event; according to the first editing information, first updating information is determined.
And a display module 803 for displaying the first update information in the target document of the initial version to open the target document of the second version.
In a possible implementation manner, the acquiring module is specifically configured to:
and acquiring a first editing event from a first editing event list, wherein the first editing event list is used for storing the editing event.
In a possible implementation manner, the first editing event list further includes a second editing event, where the second editing event is generated according to a second editing operation of the user on the second version of the target document, and is used to indicate second editing information corresponding to the second editing operation, where the second editing information includes second update information of the original version of the target document, and the obtaining module is further configured to:
in response to an operation to open the third version of the target document, the original version of the target document is acquired, and the first editing event and the second editing event are acquired from the first editing event list.
The processing module is further used for:
according to the first editing event and the second editing event, respectively determining first editing information and second editing information; according to the first editing information and the second editing information, the first updating information and the second updating information are respectively determined.
The display module is also used for:
the first update information and the second update information are displayed in the target document of the initial version to open the target document of the third version.
In a possible implementation manner, the obtaining module is further configured to:
and acquiring the target document of the initial version in response to the operation of opening the target document of the third version, and acquiring a first editing event and a second editing event from a second editing event list, wherein the second editing event list is obtained according to the second editing event and the first editing event in the first editing event list, the second editing event is generated according to the second editing operation of the user on the target document of the second version and is used for indicating second editing information corresponding to the second editing operation, and the second editing information comprises second updating information of the target document of the initial version.
The processing module is further used for:
according to the first editing event and the second editing event, respectively determining first editing information and second editing information; according to the first editing information and the second editing information, the first updating information and the second updating information are respectively determined.
The display module is also used for:
the first update information and the second update information are displayed in the target document of the initial version to open the target document of the third version.
In a possible implementation manner, the first editing event includes an editing action corresponding to the first editing operation and a page position of the editing action in the target document of the initial version, and the processing module is specifically configured to:
and determining first editing information according to the editing action and the page position of the editing action in the target document of the initial version.
It should be noted that the division of the modules in fig. 7 and 8 is illustrative, and is merely a logic function division, and other division manners may be implemented in practice. For example, two or more functions may also be integrated in one processing module. The embodiments of the present disclosure are not limited in this regard. The integrated modules may be implemented in hardware or in software functional modules.
In the technical scheme of the disclosure, the acquisition, storage, application and the like of the related user personal information all conform to the regulations of related laws and regulations, and the public sequence is not violated.
According to embodiments of the present disclosure, the present disclosure also provides an electronic device, a readable storage medium and a computer program product.
In an exemplary embodiment, an electronic device includes: at least one processor; and a memory communicatively coupled to the at least one processor; wherein the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method as described in the above embodiments. The electronic device may be the computer or server described above.
In an exemplary embodiment, the readable storage medium may be a non-transitory computer readable storage medium storing computer instructions for causing a computer to perform the method according to the above embodiment.
In an exemplary embodiment, the computer program product comprises a computer program which, when executed by a processor, implements the method according to the above embodiments.
Fig. 9 shows a schematic block diagram of an example electronic device 900 that may be used to implement embodiments of the present disclosure. Electronic devices are intended to represent various forms of digital computers, such as laptops, desktops, workstations, personal digital assistants, servers, blade servers, mainframes, and other appropriate computers. The electronic device may also represent various forms of mobile devices, such as personal digital processing, cellular telephones, smartphones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions, are meant to be exemplary only, and are not meant to limit implementations of the disclosure described and/or claimed herein.
As shown in fig. 9, the electronic device 900 includes a computing unit 901 that can perform various appropriate actions and processes according to a computer program stored in a Read Only Memory (ROM) 902 or a computer program loaded from a storage unit 908 into a Random Access Memory (RAM) 903. In the RAM 903, various programs and data required for the operation of the electronic device 900 can also be stored. The computing unit 901, the ROM 902, and the RAM 903 are connected to each other by a bus 904. An input/output (I/O) interface 905 is also connected to the bus 904.
A number of components in the electronic device 900 are connected to the I/O interface 905, including: an input unit 906 such as a keyboard, a mouse, or the like; an output unit 907 such as various types of displays, speakers, and the like; a storage unit 908 such as a magnetic disk, an optical disk, or the like; and a communication unit 909 such as a network card, modem, wireless communication transceiver, or the like. The communication unit 909 allows the electronic device 900 to exchange information/data with other devices through a computer network such as the internet and/or various telecommunications networks.
The computing unit 901 may be a variety of general and/or special purpose processing components having processing and computing capabilities. Some examples of computing unit 901 include, but are not limited to, a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), various specialized Artificial Intelligence (AI) computing chips, various computing units running machine learning model algorithms, a Digital Signal Processor (DSP), and any suitable processor, controller, microcontroller, etc. The computing unit 901 performs the respective methods and processes described above, such as a document storage method or a document display method. For example, in some embodiments, the document storage method or the document display method may be implemented as a computer software program tangibly embodied on a machine-readable medium, such as the storage unit 908. In some embodiments, part or all of the computer program may be loaded and/or installed onto the electronic device 900 via the ROM 902 and/or the communication unit 909. When the computer program is loaded into the RAM 903 and executed by the computing unit 901, one or more steps of the document storage method or the document display method described above may be performed. Alternatively, in other embodiments, the computing unit 901 may be configured to perform the document storage method or the document display method in any other suitable manner (e.g., by means of firmware).
Various implementations of the systems and techniques described here above can be implemented in digital electronic circuitry, integrated circuit systems, field Programmable Gate Arrays (FPGAs), application Specific Integrated Circuits (ASICs), application Specific Standard Products (ASSPs), systems On Chip (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include: implemented in one or more computer programs, the one or more computer programs may be executed and/or interpreted on a programmable system including at least one programmable processor, which may be a special purpose or general-purpose programmable processor, that may receive data and instructions from, and transmit data and instructions to, a storage system, at least one input device, and at least one output device.
Program code for carrying out methods of the present disclosure may be written in any combination of one or more programming languages. These program code may be provided to a processor or controller of a general purpose computer, special purpose computer, or other programmable data processing apparatus such that the program code, when executed by the processor or controller, causes the functions/operations specified in the flowchart and/or block diagram to be implemented. The program code may execute entirely on the machine, partly on the machine, as a stand-alone software package, partly on the machine and partly on a remote machine or entirely on the remote machine or server.
In the context of this disclosure, a machine-readable medium may be a tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. The machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. The machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
To provide for interaction with a user, the systems and techniques described here can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to a user; and a keyboard and pointing device (e.g., a mouse or trackball) by which a user can provide input to the computer. Other kinds of devices may also be used to provide for interaction with a user; for example, feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form, including acoustic input, speech input, or tactile input.
The systems and techniques described here can be implemented in a computing system that includes a background component (e.g., as a data server) or that includes a middleware component (e.g., an application server) or that includes a front-end component through which a user can interact with an implementation of the systems and techniques described here, or any combination of such background, middleware, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: local Area Networks (LANs), wide Area Networks (WANs), and the internet.
The computer system may include a client and a server. The client and server are typically remote from each other and typically interact through a communication network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other. The server may be a cloud server, a server of a distributed system, or a server incorporating a blockchain.
It should be appreciated that various forms of the flows shown above may be used to reorder, add, or delete steps. For example, the steps recited in the present disclosure may be performed in parallel, sequentially, or in a different order, provided that the desired results of the disclosed aspects are achieved, and are not limited herein.
The above detailed description should not be taken as limiting the scope of the present disclosure. It will be apparent to those skilled in the art that various modifications, combinations, sub-combinations and alternatives are possible, depending on design requirements and other factors. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present disclosure are intended to be included within the scope of the present disclosure.
Claims (25)
1. A document storage method, the method comprising:
generating a corresponding first editing event according to a first editing operation of a user on an initial version of a target document, wherein the first editing event is used for indicating first editing information corresponding to the first editing operation, and the first editing information comprises first updating information of the initial version of the target document;
and responding to a first saving instruction, saving the first editing event, wherein the first editing event is used for forming a target document of a second version together with the target document of the initial version.
2. The method of claim 1, the saving the first editing event in response to a first save indication, comprising:
and responding to the first preservation instruction, generating a first editing event list according to the first editing event, and preserving.
3. The method of claim 2, wherein the first list of editing events is used to compose a latest version of the target document with the initial version of the target document.
4. A method according to claim 3, the method further comprising:
generating a corresponding second editing event according to a second editing operation of the user on the second version target document, wherein the second editing event is used for indicating second editing information corresponding to the second editing operation, and the second editing information comprises second updating information of the second version target document;
in response to a second save instruction, the second editing event is added to the first editing event list.
5. The method of claim 2, the method further comprising:
generating a corresponding second editing event according to a second editing operation of the user on the second version target document, wherein the second editing event is used for indicating second editing information corresponding to the second editing operation, and the second editing information comprises second updating information of the second version target document;
And responding to a second preservation instruction, generating a second editing event list according to the second editing event and the first editing event in the first editing event list, and preserving the second editing event list, wherein the second editing event list is used for forming a third version of target document with the initial version of target document.
6. The method of any of claims 1-5, the first editing event comprising an editing action corresponding to the first editing operation and a page position of the editing action in the initial version of the target document.
7. A document display method, the method comprising:
responding to an operation of opening a target document of a second version, acquiring the target document of an initial version and a first editing event, wherein the first editing event is generated according to a first editing operation of a user on the target document of the initial version and is used for indicating first editing information corresponding to the first editing operation, and the first editing information comprises first updating information of the target document of the initial version;
determining the first editing information according to the first editing event;
determining the first update information according to the first editing information;
And displaying the first updating information in the target document of the initial version so as to open the target document of the second version.
8. The method of claim 7, the acquiring a first editing event comprising:
the first editing event is obtained from a first editing event list, and the first editing event list is used for storing editing events.
9. The method of claim 8, further comprising a second editing event in the first editing event list, the second editing event being generated according to a second editing operation performed by a user on the second version of the target document, and being used to indicate second editing information corresponding to the second editing operation, the second editing information including second updated information of the initial version of the target document, the method further comprising:
responding to the operation of opening a third version of target document, acquiring an initial version of target document, and acquiring the first editing event and the second editing event from the first editing event list;
determining the first editing information and the second editing information according to the first editing event and the second editing event;
According to the first editing information and the second editing information, the first updating information and the second updating information are respectively determined;
and displaying the first updating information and the second updating information in the target document of the initial version so as to open the target document of the third version.
10. The method of claim 8, the method further comprising:
responding to an operation of opening a third version of target document, acquiring an initial version of target document, and acquiring the first editing event and the second editing event from the second editing event list, wherein the second editing event list is obtained according to the second editing event and the first editing event in the first editing event list, the second editing event is generated according to a second editing operation of a user on the second version of target document, and is used for indicating second editing information corresponding to the second editing operation, and the second editing information comprises second updating information of the initial version of target document;
determining the first editing information and the second editing information according to the first editing event and the second editing event;
According to the first editing information and the second editing information, the first updating information and the second updating information are respectively determined;
and displaying the first updating information and the second updating information in the target document of the initial version so as to open the target document of the third version.
11. The method according to any one of claims 7-10, wherein the first editing event includes an editing action corresponding to the first editing operation and a page position of the editing action in the target document of the initial version, and the determining the first editing information according to the first editing event includes:
and determining the first editing information according to the editing action and the page position of the editing action in the target document of the initial version.
12. A document storage apparatus, the apparatus comprising:
the generation module is used for generating a corresponding first editing event according to a first editing operation of a user on the target document of the initial version, wherein the first editing event is used for indicating first editing information corresponding to the first editing operation, and the first editing information comprises first updating information of the target document of the initial version;
And the storage module is used for responding to a first storage instruction and storing the first editing event, wherein the first editing event is used for forming a target document of a second version with the target document of the initial version.
13. The apparatus of claim 12, the storage module being specifically configured to:
and responding to the first preservation instruction, generating a first editing event list according to the first editing event, and preserving.
14. The apparatus of claim 13, the first list of editing events to be used to compose a latest version of a target document with the initial version of the target document.
15. The apparatus of claim 14, the generation module further to:
generating a corresponding second editing event according to a second editing operation of the user on the second version target document, wherein the second editing event is used for indicating second editing information corresponding to the second editing operation, and the second editing information comprises second updating information of the second version target document;
the storage module is further configured to:
in response to a second save instruction, the second editing event is added to the first editing event list.
16. The apparatus of claim 13, the generation module further to:
generating a corresponding second editing event according to a second editing operation of the user on the second version target document, wherein the second editing event is used for indicating second editing information corresponding to the second editing operation, and the second editing information comprises second updating information of the second version target document;
the storage module is further configured to:
and responding to a second preservation instruction, generating a second editing event list according to the second editing event and the first editing event in the first editing event list, and preserving the second editing event list, wherein the second editing event list is used for forming a third version of target document with the initial version of target document.
17. The apparatus of any of claims 12-16, the first editing event comprising an editing action corresponding to the first editing operation and a page position of the editing action in the initial version of the target document.
18. A document display apparatus, the apparatus comprising:
the system comprises an acquisition module, a first editing module and a second editing module, wherein the acquisition module is used for responding to the operation of opening a target document of a second version, acquiring the target document of an initial version and a first editing event, the first editing event is generated according to the first editing operation of a user on the target document of the initial version, and is used for indicating first editing information corresponding to the first editing operation, and the first editing information comprises first updating information of the target document of the initial version;
The processing module is used for determining the first editing information according to the first editing event; determining the first update information according to the first editing information;
and the display module is used for displaying the first updating information in the target document of the initial version so as to open the target document of the second version.
19. The apparatus of claim 18, the obtaining module being specifically configured to:
the first editing event is obtained from a first editing event list, and the first editing event list is used for storing editing events.
20. The apparatus of claim 19, the first list of editing events further including a second editing event, the second editing event being generated according to a second editing operation performed by a user on the second version of the target document, for indicating second editing information corresponding to the second editing operation, the second editing information including second updated information of the initial version of the target document, the obtaining module further configured to:
responding to the operation of opening a third version of target document, acquiring an initial version of target document, and acquiring the first editing event and the second editing event from the first editing event list;
The processing module is further configured to:
determining the first editing information and the second editing information according to the first editing event and the second editing event; according to the first editing information and the second editing information, the first updating information and the second updating information are respectively determined;
the display module is further configured to:
and displaying the first updating information and the second updating information in the target document of the initial version so as to open the target document of the third version.
21. The apparatus of claim 19, the acquisition module further to:
responding to an operation of opening a third version of target document, acquiring an initial version of target document, and acquiring the first editing event and the second editing event from the second editing event list, wherein the second editing event list is obtained according to the second editing event and the first editing event in the first editing event list, the second editing event is generated according to a second editing operation of a user on the second version of target document, and is used for indicating second editing information corresponding to the second editing operation, and the second editing information comprises second updating information of the initial version of target document;
The processing module is further configured to:
determining the first editing information and the second editing information according to the first editing event and the second editing event; according to the first editing information and the second editing information, the first updating information and the second updating information are respectively determined;
the display module is further configured to:
and displaying the first updating information and the second updating information in the target document of the initial version so as to open the target document of the third version.
22. The apparatus according to any one of claims 18-21, wherein the first editing event includes an editing action corresponding to the first editing operation and a page position of the editing action in the target document of the initial version, and the processing module is specifically configured to:
and determining the first editing information according to the editing action and the page position of the editing action in the target document of the initial version.
23. An electronic device, comprising: at least one processor; and a memory communicatively coupled to the at least one processor;
wherein the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method of any one of claims 1-6 or any one of claims 7-11.
24. A non-transitory computer readable storage medium storing computer instructions for causing a computer to perform the method of any one of claims 1-6 or any one of claims 7-11.
25. A computer program product comprising a computer program which, when executed by a processor, implements the method according to any one of claims 1-6 or any one of claims 7-11.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202310798912.7A CN116956830A (en) | 2023-06-30 | 2023-06-30 | Document storage method, document display method, document storage device, document display device, document storage apparatus, and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202310798912.7A CN116956830A (en) | 2023-06-30 | 2023-06-30 | Document storage method, document display method, document storage device, document display device, document storage apparatus, and storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN116956830A true CN116956830A (en) | 2023-10-27 |
Family
ID=88452079
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202310798912.7A Pending CN116956830A (en) | 2023-06-30 | 2023-06-30 | Document storage method, document display method, document storage device, document display device, document storage apparatus, and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN116956830A (en) |
-
2023
- 2023-06-30 CN CN202310798912.7A patent/CN116956830A/en active Pending
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN113138827B (en) | Method, device, electronic equipment and medium for displaying data | |
CN108011949B (en) | Method and apparatus for acquiring data | |
CN113722124B (en) | Content processing method, device, equipment and storage medium of cloud mobile phone | |
US10147071B2 (en) | Visual representation of an email chain | |
CN111752960B (en) | Data processing method and device | |
CN114330249A (en) | Information editing method, device, equipment and storage medium | |
CN112926068A (en) | Authority management method, management server, service server and readable storage medium | |
CN112947918A (en) | Data display method and device | |
CN113704058B (en) | Service model monitoring method and device and electronic equipment | |
CN112966201B (en) | Object processing method, device, electronic equipment and storage medium | |
CN112631682B (en) | Applet processing method, device, equipment and storage medium | |
CN113836462A (en) | Page description file generation method, device, equipment and storage medium | |
CN112947916A (en) | Method, device, equipment and storage medium for realizing online canvas | |
CN111143408A (en) | Event processing method and device based on business rules | |
CN110362297B (en) | Element ordering method and device | |
CN115905322A (en) | Service processing method and device, electronic equipment and storage medium | |
CN115982148A (en) | Database table processing method and device, electronic equipment and storage medium | |
CN116956830A (en) | Document storage method, document display method, document storage device, document display device, document storage apparatus, and storage medium | |
CN112887803B (en) | Session processing method, device, storage medium and electronic equipment | |
CN114327577A (en) | Code change determining method and device, electronic equipment and storage medium | |
CN113656041A (en) | Data processing method, device, equipment and storage medium | |
CN111159593A (en) | Method and device for generating flow chart, storage medium and electronic equipment | |
US20140215392A1 (en) | Connections identification | |
CN113961263B (en) | Applet distribution method, device, apparatus and storage medium | |
CN113722548B (en) | Method and device for processing quotation relation in service system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination |