Document processing method and device, electronic equipment and storage medium
By splitting local documents into pages and replacing multimedia resources with resource numbers, the problem of low efficiency in converting local documents to online documents in existing technologies is solved, achieving more efficient document conversion and preview.
Patent Information
- Application Number
- CN202411688772.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-22
- Publication Date
- 2026-05-22
AI Technical Summary
In existing technologies, the conversion efficiency of local documents to online documents is relatively low, especially when dealing with multimedia data, as the conversion can only be performed after the entire document content and multimedia data have been uploaded.
By splitting local documents into document pages and generating online document page data based on the resource IDs of multimedia resources and the content of the document pages, the document conversion process is performed asynchronously by replacing multimedia resources with resource IDs for format conversion, thereby improving conversion efficiency.
Without losing document content, it significantly improves the efficiency of converting local documents to online documents, reduces waiting time, and improves the efficiency of document preview and conversion.
Smart Images

Figure CN122072813A_ABST
Abstract
Description
Technical Field
[0001] This disclosure relates to the field of cloud technology, and in particular to a document processing method, apparatus, electronic device, and storage medium. Background Technology
[0002] Online documents are electronic documents stored in the cloud that can be accessed and edited via the internet. They are an important part of modern remote work and collaboration, providing features such as real-time sharing, collaborative team editing, and version control. Therefore, online documents are increasingly being used in various scenarios.
[0003] Document processing applications can convert local documents into online documents for easier online access and editing. However, the conversion efficiency of local documents to online documents is relatively low in related technologies. Summary of the Invention
[0004] This disclosure provides a document processing method, apparatus, electronic device, and storage medium that can improve the efficiency of online document conversion.
[0005] According to one aspect of this disclosure, a document processing method is provided, comprising:
[0006] Receive a document conversion request sent by a first document client, the document conversion request including local document data of the local document to be processed;
[0007] The local document data is split into document pages, and online document page data is generated based on the resource IDs of multimedia resources in the split local document pages and the document page content;
[0008] The system receives an access request for a target online document sent by the first document client based on an online document link. Based on the access request, it determines the target document page data from the online document page data. The online document link is generated based on the attribute data of the local document and sent to the first document client. The target online document is the online document corresponding to the local document.
[0009] The target document page data is sent to the first document client for online document rendering;
[0010] Receive a multimedia resource access request sent by the first document client based on the target resource number in the target pagination data, and obtain the target multimedia resource data based on the multimedia resource access request;
[0011] The target multimedia resource data is sent to the first document client for page rendering and updating.
[0012] According to one aspect of this disclosure, a document processing apparatus is provided, comprising:
[0013] The first receiving unit is configured to receive a document conversion request sent by the first document client, wherein the document conversion request includes local document data of the local document to be processed;
[0014] The splitting unit is used to split the local document data into document pages and generate online document page data based on the resource number of the multimedia resources in the split local document pages and the document page content.
[0015] The second receiving unit is configured to receive an access request for a target online document sent by the first document client based on an online document link, determine the target document page data from the online document page data based on the access request, and generate and send the online document link based on the attribute data of the local document to the first document client, wherein the target online document is the online document corresponding to the local document.
[0016] The first sending unit is used to send the target document page data to the first document client for online document rendering;
[0017] The third receiving unit is used to receive a multimedia resource access request sent by the first document client based on the target resource number in the target pagination data, and to obtain the target multimedia resource data based on the multimedia resource access request.
[0018] The second sending unit is used to send the target multimedia resource data to the first document client for page rendering update.
[0019] Optionally, the splitting unit is specifically used for:
[0020] Extract multimedia resources from the split local document pages and generate resource numbers corresponding to the multimedia resources;
[0021] The local document page is formatted based on the online document format specifications, and the data corresponding to the multimedia resources in the format-converted document data is replaced with the resource number to obtain the online document page data.
[0022] Optionally, in one embodiment, the document processing apparatus further includes:
[0023] The third sending unit is used to send the data corresponding to the multimedia resource to the multimedia data storage server;
[0024] The third receiving unit is specifically used for:
[0025] Send the multimedia resource access request to the multimedia data storage server;
[0026] Receive the target multimedia resource data sent by the multimedia data storage server based on the multimedia resource access request.
[0027] Optionally, in one embodiment, the process of the first document client performing online document rendering on the target document page data includes the following steps:
[0028] Based on the target document page data, determine the multimedia rendering position and text rendering position in the target online document page to be rendered;
[0029] Obtain the multimedia rendering template corresponding to the target multimedia resources contained in the target online document page;
[0030] The multimedia rendering template is rendered at the multimedia rendering location, and the target document page content contained in the target document page data is rendered at the text rendering location.
[0031] Optionally, in one implementation, obtaining the multimedia rendering template corresponding to the target multimedia resource contained in the target online document page includes:
[0032] The multimedia data type corresponding to each target multimedia resource is determined based on the target resource number contained in the target document page data.
[0033] Obtain the multimedia rendering template corresponding to each of the multimedia data types described.
[0034] Optionally, in one implementation, the process of the first document client updating the page rendering of the target multimedia resource data includes the following steps:
[0035] Remove the target multimedia rendering template corresponding to the target resource number from the online document page;
[0036] The target multimedia resource data is rendered at the multimedia rendering position corresponding to the target multimedia rendering template.
[0037] Optionally, in one embodiment, the document processing apparatus further includes:
[0038] The first acquisition unit is used to acquire the attribute data of the local document according to the document conversion request;
[0039] The generation unit is used to generate an online document link based on the attribute data and send the online document link to the first document client.
[0040] Optionally, in one implementation, after receiving the online document link, the first document client may also perform the following operations:
[0041] Receive document collaboration requests sent by the second document client;
[0042] Based on the document collaboration request, the online document link is sent to the second document client so that the second document client can access the target online document based on the online document link.
[0043] Optionally, in one embodiment, the second receiving unit is specifically used for:
[0044] When the online document page data includes the target document page data, the target document page data is determined based on the access request;
[0045] When the online document page data does not include the target document page data, the target document page data is generated based on the resource number of the multimedia resource in the local document page corresponding to the target document page data and the document page content.
[0046] Optionally, in one embodiment, the document processing apparatus further includes:
[0047] The second acquisition unit is used to store the online document page data and acquire the storage status of the target online document;
[0048] A creation unit is configured to create an editing interface for the target online document when the storage status indicates that the data of each online document page contained in the target online document has been stored. The editing interface is used for online editing operations of the target online document.
[0049] Optionally, in one implementation, the process by which the first document client generates an access request for the target online document includes the following steps:
[0050] Display the link to the online document;
[0051] In response to the triggering of the online document link, a document page selection interface is displayed;
[0052] An access request is generated based on the page selection information received in the document page selection interface.
[0053] In the document processing method of this embodiment, a document conversion request is received from a first document client, the document conversion request including local document data of a local document to be processed; the local document data is split into document pages, and online document page data is generated based on the resource number of multimedia resources in the split local document pages and the document page content; an access request for a target online document is received from the first document client based on an online document link, the target document page data is determined from the online document page data based on the access request, the online document link is generated based on the attribute data of the local document and sent to the first document client, and the target online document is the online document corresponding to the local document; the target document page data is sent to the first document client for online document rendering; a multimedia resource access request is received from the first document client based on the target resource number in the target pagination data, and the target multimedia resource data is obtained based on the multimedia resource access request; the target multimedia resource data is sent to the first document client for page rendering update.
[0054] Therefore, this embodiment of the present disclosure can split the local document data into document pages after receiving the local document data, and perform document conversion on each local document page. Compared with the method of converting the entire local document, converting the local document pages after splitting them allows the first document client to obtain the converted online document page data based on the access request of the target online document after the conversion of one local document page is completed, without waiting for the entire local document to be converted. Therefore, converting the local document pages after splitting them improves the document conversion efficiency. In addition, for each local document page, there is no need to wait for the multimedia resources to be stored before converting the document page; online document conversion can be performed directly based on the resource number of the multimedia resources in the local document page and the document page content. By using the resource number to replace the multimedia resources in the local document page conversion, the conversion process of the multimedia resources is executed asynchronously with the conversion process of the local document page, which greatly improves the document conversion efficiency without losing the document content in the local document page. In summary, the document processing method of this embodiment of the present disclosure is beneficial to improving the conversion efficiency of converting local documents into online documents.
[0055] Other features and advantages of this disclosure will be set forth in the following description and will be apparent in part from the description or may be learned by practicing the disclosure. The objectives and other advantages of this disclosure may be realized and obtained by means of the structures particularly pointed out in the description, claims and drawings. Attached Figure Description
[0056] The accompanying drawings are provided to further understand the technical solutions of this disclosure and constitute a part of the specification. They are used together with the embodiments of this disclosure to explain the technical solutions of this disclosure and do not constitute a limitation on the technical solutions of this disclosure.
[0057] Figure 1 This is an architecture diagram of the system to which the document processing method according to embodiments of the present disclosure is applied;
[0058] Figure 2A This is a schematic diagram illustrating an embodiment of the present disclosure applied to an online document preview scenario;
[0059] Figure 2B This is another schematic diagram illustrating the application of an embodiment of this disclosure in an online document preview scenario;
[0060] Figure 2C This is another schematic diagram illustrating the application of an embodiment of this disclosure in an online document preview scenario;
[0061] Figure 2D This is another schematic diagram illustrating the application of an embodiment of this disclosure in an online document preview scenario;
[0062] Figure 2E This is another schematic diagram illustrating the application of an embodiment of this disclosure in an online document preview scenario;
[0063] Figure 3 This is a flowchart of a document processing method according to an embodiment of the present disclosure;
[0064] Figure 4 This is a schematic diagram illustrating document page splitting of local document data according to an embodiment of the present disclosure;
[0065] Figure 5 This is a schematic diagram illustrating document page splitting of local document data according to another embodiment of the present disclosure;
[0066] Figure 6 This is a schematic diagram of document page content according to an embodiment of the present disclosure;
[0067] Figure 7 This is a schematic diagram of multiple local document pages split according to an embodiment of the present disclosure;
[0068] Figure 8 This is a schematic diagram illustrating the generation of resource numbers for multimedia resources according to an embodiment of the present disclosure;
[0069] Figure 9A This is a schematic diagram illustrating the display of an online document link in a first document client according to an embodiment of the present disclosure;
[0070] Figure 9B This is a schematic diagram of selecting a document page in a first document client according to an embodiment of the present disclosure;
[0071] Figure 10This is a schematic diagram illustrating page rendering using a default multimedia rendering template according to an embodiment of the present disclosure;
[0072] Figure 11 This is a schematic diagram illustrating page rendering using a multimedia rendering template corresponding to a multimedia data type, according to an embodiment of the present disclosure.
[0073] Figure 12 This is another schematic flowchart of a document processing method according to an embodiment of the present disclosure;
[0074] Figure 13 This is a multi-terminal interaction diagram of a document processing method according to an embodiment of the present disclosure.
[0075] Figure 14 This is a schematic diagram of the structure of a document processing apparatus according to an embodiment of the present disclosure;
[0076] Figure 15 This is a terminal structure diagram for implementing various methods according to an embodiment of the present disclosure;
[0077] Figure 16 This is a server structure diagram illustrating the implementation of various methods according to an embodiment of the present disclosure. Detailed Implementation
[0078] To make the objectives, technical solutions, and advantages of this disclosure clearer, the following detailed description is provided in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and are not intended to limit the scope of this disclosure.
[0079] Before providing a further detailed description of the embodiments of this disclosure, the terms and concepts used in these embodiments are explained, and they are subject to the following interpretations:
[0080] Cloud Object Storage (COS) provides distributed object storage services for storing massive amounts of unstructured data, such as images, audio, video, and log files. It boasts advantages such as high reliability, high availability, high performance, high security, and cost-effectiveness, and is widely used for data storage needs of various enterprises and individuals.
[0081] Polling requests: Polling requests are a technique in which a client periodically sends requests to a server to obtain the latest data at regular intervals. It is typically used to implement real-time data updates.
[0082] In related technologies, converting a local document to an online document requires waiting for all content in the local document to be converted before the conversion is considered complete, and only then can the object access the converted online document via an online document link. Furthermore, when the document includes multimedia data, the multimedia data needs to be uploaded to a multimedia data storage server. After the multimedia data storage server returns the corresponding multimedia data link, the multimedia data link is concatenated with other content in the document to complete the conversion. Therefore, in these technologies, the multimedia data conversion process consumes a significant amount of time, resulting in low efficiency in converting local documents to online documents.
[0083] System architecture and scenario description of the embodiments disclosed herein
[0084] Figure 1 This is a system architecture diagram applied to the document processing method according to embodiments of the present disclosure. It includes a terminal 140, an Internet 130, a gateway 120, a server 110, etc.
[0085] Terminal 140 can take various forms, including desktop computers, laptops, PDAs (personal digital assistants), mobile phones, in-vehicle terminals, home theater terminals, and dedicated terminals. Furthermore, it can be a single device or a collection of multiple devices. For example, multiple devices can be connected via a local area network, sharing a single display device to work collaboratively, forming a single terminal 140. Terminal 140 can also communicate with the Internet 130 via wired or wireless means to exchange data.
[0086] Server 110 refers to a computer system that can provide certain services to terminal 140. Compared to ordinary terminal 140, server 110 has higher requirements in terms of stability, security, and performance. Server 110 can be a single high-performance computer in a network platform, a cluster of multiple high-performance computers, a portion of a single high-performance computer (e.g., a machine), or a combination of portions of multiple high-performance computers (e.g., machines).
[0087] Gateway 120, also known as an internetwork connector or protocol converter, is a computer system or device that acts as a translator between two systems using different communication protocols, data formats, languages, or even completely different architectures. It enables network interconnection at the transport layer. Gateways can also provide filtering and security functions. Messages sent from terminal 140 to server 110 are forwarded to the corresponding server 110 through gateway 120. Messages sent from server 110 to terminal 140 are also forwarded to the corresponding terminal 140 through gateway 120.
[0088] The document processing method of this disclosure embodiment can be executed by an electronic device, which can be a terminal 140 or a server 110. That is, the document processing method can be executed by the terminal 140 or the server 110, or it can be executed by both the terminal 140 and the server 110.
[0089] The embodiments disclosed herein can be applied in various scenarios, such as Figures 2A-2E The example shown is an online document preview scenario.
[0090] When an object wants to preview a local document online, it can perform online document conversion through the online document conversion interface 210. In the online document conversion interface 210, a local document can be uploaded using the local document import control 211. After triggering the local document import control 211, a local document upload pop-up window 212 will appear in the online document conversion interface 210. In the local document upload pop-up window 212, the local document D1 that needs to be previewed online can be uploaded by selecting the local document.
[0091] After uploading the local document D1, the online document conversion interface 210 displays the operations that can be performed on the local document. For example... Figure 2B As shown, the object can convert a local document to an online document using the online document conversion control 221, or upload the local document to the cloud for online storage using the cloud storage control 222. In this application scenario, the object chooses to convert the local document to an online document.
[0092] During the online document conversion of local document D1, the online document conversion interface 210 can display the online document conversion progress via a conversion progress pop-up window 231. The conversion progress can indicate the generation progress of the online document link; when the online document link is generated based on the attribute data of local document D1, the conversion progress reaches 100%. For example... Figure 2C As shown in the conversion progress pop-up window 231, "Online document conversion in progress," while also updating the conversion progress of the local document D1 in real time. The current conversion progress is 90%.
[0093] Once the online document link is generated, the online document conversion interface 210 can display the online document conversion result via a pop-up window 241 indicating that the conversion is complete. For example... Figure 2D As shown, the conversion completion pop-up window 241 displays "Conversion Complete," indicating that the online document link has been generated. Furthermore, the conversion completion pop-up window 241 also includes an online preview control 242, which indicates the online preview link for the local document D1. By triggering the online preview control 242, the object can preview the online document corresponding to the local document D1. Figure 2EAs shown, the online document conversion interface 210 displays an online preview pop-up window 251, where the displayed document is the online document converted from the local document D1. Since the document processing method of this embodiment can quickly generate online document links based on the attribute data of the local document, and furthermore, during online document conversion, pagination conversion and the generation of online document page data based on the resource number of multimedia resources and the document page content can improve the conversion efficiency of converting local documents to online documents, the online document displayed in the online preview pop-up window 251 can be continuously updated when the object previews the online document via the online document link. Therefore, in the online document preview scenario, the time the object waits for the online document link can be reduced, and the online document update display efficiency is high after the online document link is triggered, thus improving the document preview efficiency.
[0094] General Description of Embodiments in this Disclosure
[0095] According to one embodiment of this disclosure, a document processing method is provided. The document processing method provided by this disclosure can be applied to, for example... Figures 2A-2E In scenarios such as online document preview, as shown. Figure 3 The diagram shown is a flowchart illustrating a document processing method provided in this disclosure. This document processing method may include:
[0096] Step 310: Receive the document conversion request sent by the first document client.
[0097] A FirstDoc client can be a client used to retrieve online documents corresponding to local documents. FirstDoc clients can take various forms, including computers, mobile phones, or in-vehicle terminals. Local documents are documents stored locally on a device (such as a computer's hard drive, external hard drive, or mobile phone's memory), requiring no network connection, and can be directly opened and edited by local editing software. Therefore, local documents can be documents stored locally on the FirstDoc client, or documents stored on a hard drive or other storage device connected to the FirstDoc client via a wired or communication connection. Local documents can be of various types, such as presentation documents, spreadsheet documents, and text content documents. Online documents refer to documents stored on cloud servers that can be accessed and edited via the internet.
[0098] A document conversion request instructs a computer device to convert a local document into an online document, including the local document data of the document to be processed. When an object needs to convert a local document into an online document, it can upload the local document, and the first document client can generate a document conversion request based on the local document data. Local document data can include the document content and document attribute data. The document content indicates the main text of the local document; the document attribute data indicates basic information about the local document, such as the document title, document creator information, document creation date, and document keywords.
[0099] When the first document client generates a document conversion request, the computer device executing the document processing method of this embodiment can accept the document conversion request from the first document client through a wired connection or a communication connection, and perform local document conversion based on the document conversion request.
[0100] In one implementation, after receiving a document conversion request sent by a first document client, the document processing method further includes:
[0101] Retrieve attribute data of the local document based on the document conversion request;
[0102] Generate online document links based on attribute data and send the online document links to the first document client.
[0103] The document conversion request includes local document data of the local document to be processed. Therefore, obtaining the attribute data of the local document based on the document conversion request can be achieved by extracting the attribute data from the local document data. Attribute data can indicate basic information in the local document other than the document content, such as the document title, document creation time, and document owner information.
[0104] After obtaining the attribute data, online document links can be generated based on that data. An online document link can be a link used by an object to access the online document corresponding to its local document. After generating the online document link, it can be sent to the first document client so that the object can access the online document through the link.
[0105] Generating online document links based on the attribute data of local documents and sending these links to the first document client allows objects to quickly obtain the links to open the corresponding online documents. Simultaneously, subsequent step 320 can be executed to generate the online document page; therefore, objects can also view the content of the generated online document page through the online document link. This allows objects to quickly access online documents via the online document link, avoiding the problem of objects waiting for long periods to obtain the online document link, and improving the efficiency of objects in processing online documents corresponding to local documents.
[0106] In another implementation, after receiving the online document link, the first document client can also perform the following operations:
[0107] Receive document collaboration requests sent by the second document client;
[0108] Based on the document collaboration request, an online document link is sent to a second document client so that the second document client can access the target online document based on the online document link.
[0109] Online documents support shared viewing and editing by multiple objects. The FirstDoc client initiates the local document conversion; therefore, it can set permissions for online documents. In other words, when an online document needs to be processed by a team, the FirstDoc client can configure which other objects and clients can view or edit the online document.
[0110] A document collaboration request sent by a second document client to a first document client can be used to request online document collaboration from the first document client. The document collaboration request can include document information corresponding to the online document for which the second document client wants to collaborate. For example, if the first document client is simultaneously processing multiple online documents, including online document D1, online document D2, and online document D3, and the second document client wants to request to view online document D2, then the document collaboration request can include the document information corresponding to online document D2.
[0111] After receiving a document collaboration request, the first document client can send an online document link to the second document client based on the request. When sending the online document link to the second document client, the first document client can also set collaboration permissions for that online document, such as "view only," "editable," or "editable and shareable." When the collaboration permission is "view only," the recipient can view the online document through the second document client but cannot perform other operations; when the collaboration permission is "editable," the recipient can view and edit the online document through the second document client; when the collaboration permission is "editable and shareable," the recipient can view and edit the online document through the second document client, and can also forward and share the online document link with other document clients.
[0112] When the second document client receives an online document link, it can access the target online document through the link, or perform corresponding operations on the target online document based on the collaboration permissions set by the first document client for the second document client. The target online document is the online document corresponding to the local document.
[0113] After receiving an online document link, the first document client can forward the link to the second document client, allowing the second document client to access the online document instantly, which helps improve the efficiency of collaborative document processing in a group.
[0114] Step 320: Split the local document data into document pages, and generate online document page data based on the resource IDs of multimedia resources in the split local document pages and the document page content.
[0115] After receiving a document conversion request from the first document client, online document conversion can be performed based on local document data. Specifically, the local document data can first be split into document pages to obtain local document pages.
[0116] In one implementation, document page splitting of local document data can be performed according to the default pagination of the local document data. The default pagination indicates the number of pages in the local document itself. For example, if the local document to be processed contains 4 pages, then the local document data can be divided into 4 pages according to the default pagination. Figure 4 As shown, the four pages of local document data are split according to the default pagination, resulting in local document page Q1, local document page Q2, local document page Q3, and local document page Q4. Splitting document pages according to the default pagination of local document data can improve the efficiency of document page splitting.
[0117] In another implementation, local document data can be split into pages according to a predetermined splitting rule. The predetermined splitting rule can be a pre-set splitting method, and different predetermined splitting rules can be set for different types of local documents. For example, for presentation-type documents, the document pages can be split according to presentation-type pagination; for table-type documents and text-content documents, the document pages can be split according to a predetermined number of split lines. Splitting document pages according to document pagination has been described in detail in the preceding implementations and will not be repeated here. The predetermined number of split lines can be pre-set and is used to indicate the interval between splitting lines for document pages. For example, if the predetermined number of split lines is 30, then regardless of the number of pages in the local document data, the local document data is split every 30 lines. For example, as shown in Figure 5, the local document to be processed includes 4 pages of content, and the predetermined number of split lines is 30. Splitting the 4 pages according to the predetermined number of split lines yields local document pages Q5, Q6, Q7, Q8, and Q9. Local document pages Q5, Q6, Q7, and Q8 each contain 30 lines of content, while local document page Q9 contains 28 lines of content.
[0118] The predetermined splitting rules specify the amount of data in each split local document page. Therefore, in one implementation, the predetermined splitting rules can be set based on the document page conversion capability. The document page conversion capability indicates the optimal amount of data for converting a local document into an online document to achieve the best conversion efficiency. When the amount of data in the split local document page exceeds the document page conversion capability, the efficiency of generating online document page data will decrease; when the amount of data in the split local document page is less than the document page conversion capability, some computing resources used for document conversion will be wasted. Therefore, predetermined splitting rules can be set based on document conversion capability to ensure high efficiency in converting each split local document page into online document page data, while ensuring that computing resources are not wasted.
[0119] Therefore, splitting local document data into document pages according to predetermined splitting rules is beneficial to improving the conversion efficiency of converting local document pages into online document page data.
[0120] After splitting local document data into document pages, online document data can be generated based on the resource IDs of multimedia resources in the split local document pages and the content of the document pages.
[0121] Multimedia resources refer to data resources of other data types besides text content in a document, such as images, sounds, and animated videos. Multimedia resources enhance the richness of document content and make its presentation more intuitive; therefore, an increasing number of documents are now using multimedia resources to present their content.
[0122] The resource number of a multimedia resource can represent the identifier corresponding to the multimedia resource in a local document page, used to distinguish different multimedia resources. For example, local document data is split into three local document pages, where local document page Q1 contains three multimedia resources, local document page Q2 contains one multimedia resource, and local document page Q3 contains two multimedia resources. When assigning a resource number to each multimedia resource, the resource numbers corresponding to the multimedia resources in local document page Q1, in display order, can be: 1-01, 1-02, and 1-03; the resource number corresponding to the multimedia resources in local document page Q2 can be: 2-01; and the resource numbers corresponding to the multimedia resources in local document page Q3, in display order, can be: 3-01 and 3-02.
[0123] Document page content can indicate other text content in the document besides multimedia resources. For example... Figure 6 As shown, in this local document page, image M1 and animation D1 belong to the multimedia resources of this local document page, while the other text content belongs to the document page content of this local document page.
[0124] Online document page data can represent the online data corresponding to a local document page after online conversion. Generating online document page data based on the resource ID and document page content of multimedia resources involves parsing the resource ID and document page content of the multimedia resources and converting the local document format into an online document format.
[0125] In one implementation, online document page data is generated based on the resource IDs of multimedia resources in the split local document page and the document page content, including:
[0126] Extract multimedia resources from the split local document pages and generate resource numbers corresponding to the multimedia resources;
[0127] Based on the document format specifications of online documents, the local document pages are formatted and converted. The data corresponding to multimedia resources in the format-converted document data is then replaced with resource numbers to obtain the online document page data.
[0128] When multimedia resources are detected in the split local document page, the multimedia resources can be extracted from the local document page, and then the resource number corresponding to the multimedia resources can be generated.
[0129] In one implementation, resource numbers corresponding to multimedia resources can be assigned to different multimedia resources using a numbering algorithm. The numbering algorithm can be an automated identifier allocation algorithm, such as an auto-incrementing algorithm or a hash identifier.
[0130] Once multimedia resources are identified, a resource number can be automatically generated using a numbering algorithm. Taking the auto-incrementing method as an example, the resource number generated for the first identified multimedia resource is "0001", the resource number for the second is "0002", the resource number for the third is "0003", and so on, incrementing by 1 for each new multimedia resource identified. Alternatively, using hash identifiers, the resource number can be generated by converting the data content of each multimedia resource into a fixed-length hash value.
[0131] Automating resource number generation based on number generation algorithms can improve the efficiency of resource number generation.
[0132] In one implementation, the resource number corresponding to the multimedia resource can be generated according to a predetermined numbering rule. The predetermined numbering rule can specify the numbering rules between different local document pages, or it can specify different numbering methods for different types of multimedia resources.
[0133] For example, the predetermined numbering rules stipulate that different local document pages are numbered first-level according to the document order before splitting, starting with 01; second-level numbering is based on multimedia resource type, with image type corresponding to number 01, video type to number 02, audio type to number 03, and animation type to number 04; and third-level numbering is based on the order in which multimedia resources appear in the local document page, starting with 01. Figure 7 The three split local document pages are shown in the image. The order of these three local document pages is consistent with the order of the document content before the split. The multimedia resources in the first local document page include image M1 and animation D1; the multimedia resources in the second local document page include image M2, audio V1, and image M3; and the multimedia resources in the third local document page include animation D2, image M4, and audio V2. Image M1 is the first multimedia resource in the first local document page. Therefore, according to the predetermined numbering rule mentioned above, the resource number corresponding to image M1 is "01-01-01", where the first "01" indicates that the multimedia resource belongs to the first local document page, the second "01" indicates that the multimedia resource is an image type, and the third "01" indicates that the multimedia resource is the first multimedia resource in its respective local document page. Animation D1 is the second multimedia resource in the first local document page. Therefore, the resource number corresponding to animation D2 is "01-04-02", where "01" indicates that the multimedia resource belongs to the first local document page, "04" indicates that the multimedia resource is an animation type, and "02" indicates that the multimedia resource is the second multimedia resource in its respective local document page. Similarly, in the second local document page, the resource number corresponding to image M2 is "02-01-01", the resource number corresponding to audio V1 is "02-03-02", and the resource number corresponding to image M3 is "02-01-03". In the third local document page, the resource number corresponding to animation D2 is "03-04-01", the resource number corresponding to image M4 is "03-01-02", and the resource number corresponding to audio V2 is "03-03-03".
[0134] Generating resource numbers corresponding to multimedia resources according to predetermined numbering rules allows for the numbering of multimedia resources based on actual application needs, improving the flexibility of resource number generation and making resource numbers more consistent with actual application scenarios, thereby improving the processing efficiency of multimedia resources.
[0135] In one implementation, after extracting multimedia resources from the split local document page and generating resource numbers corresponding to the multimedia resources, the method further includes sending the data corresponding to the multimedia resources to a multimedia data storage server.
[0136] A multimedia data storage server is a server that can be used to store multimedia data. The multimedia data storage server can be a server independent of the computer device that processes the document processing method of the embodiments of this disclosure, and can be a single high-performance computer, a cluster of multiple high-performance computers, or a portion of a single high-performance computer. The multimedia data storage server can be a physical server or a cloud server.
[0137] In one implementation, the multimedia data storage server may be a cloud object storage server (COS server).
[0138] Cloud object storage services can be used to store multimedia resources and back them up for disaster recovery. Furthermore, cloud object storage servers can facilitate efficient uploading and downloading of multimedia resources, improving storage and retrieval efficiency.
[0139] Once the data corresponding to the multimedia resource is sent to the multimedia data storage server and the multimedia data storage server has successfully stored the data of the multimedia resource, the multimedia data storage server can generate a storage link corresponding to the multimedia resource so that the multimedia resource can be quickly accessed through the storage link.
[0140] Using a multimedia data storage server to store multimedia resources can alleviate the storage pressure on the computer equipment used to process the document processing method of this disclosure, thereby improving document processing efficiency. Furthermore, it enhances the security and reliability of multimedia data storage.
[0141] After generating the resource number corresponding to the multimedia resource, the local document page can be formatted based on the online document's document format specifications.
[0142] Converting local documents to online documents follows certain formatting standards to ensure compatibility and readability across different platforms and devices. Document formatting standards define the conversion format for online documents. Therefore, local document pages can be parsed, and the parsed document data can be converted based on these formatting standards.
[0143] When converting the format of a local document page, the resource number can be used to replace the data corresponding to the multimedia resources in the converted document data to obtain the online document page data. In other words, resource numbers are used to place space for multimedia resources, saving time in converting multimedia resources.
[0144] Will Figure 7Multimedia resources in the local document page are replaced using their resource numbers. For example, if the resource number corresponding to image M1 is "01-01-01", animation D1 is "01-04-02", image M2 is "02-01-01", audio V1 is "02-03-02", image M3 is "02-01-03", animation D2 is "03-04-01", image M4 is "03-01-02", and audio V2 is "03-03-03", then the corresponding multimedia resource is replaced using its resource number. The result of the replacement can be shown as follows: Figure 8 As shown, this allows us to obtain the online document page data corresponding to each local document page.
[0145] Since converting multimedia resources into their formats takes a considerable amount of time, using resource numbers to placeholders for multimedia resources in the document data allows online document page data to be obtained without waiting for the multimedia resource conversion to complete, greatly improving the efficiency of converting local document page data into online document page data.
[0146] When local document data is split into multiple online document pages, online document data can be generated based on the resource IDs of multimedia resources in the split local document pages and the content of the document pages, and each local document page can be converted into online document data in sequence.
[0147] In one implementation, after splitting local document data into document pages and generating online document page data based on the resource IDs of multimedia resources in the split local document pages and the document page content, the method further includes:
[0148] Store the data of the online document page and obtain the storage status of the target online document;
[0149] When the storage status indicates that the data for every page of the online document contained in the target online document has been stored, create the editing interface for the target online document.
[0150] After generating the online document page data corresponding to the local document page, the online document page data can be stored, and the storage status of the target online document can be obtained. The target online document is the online document corresponding to the local document, which can include the online document page data corresponding to each local document page. The storage status can indicate whether the data of each document page in the local document has been converted to an online document, and whether the data of each online document page obtained after conversion has been written to disk.
[0151] When the storage status indicates that there is online document page data in the target online document that has not yet been written to disk, online document data can continue to be generated based on the resource number of the multimedia resources in the unconverted local document page and the document page content, and the online document data can be stored.
[0152] When the storage status indicates that all data for each page of the target online document has been stored, an editing interface for the target online document can be created. This editing interface is used for online editing operations on the target online document. When a document stored in the cloud needs to be edited, it must be connected to the editing engine's interface. Therefore, after the target online document is successfully stored, an editing interface for the target online document can be created and connected to the editing engine's interface to enable editing operations on the target online document. The editing engine supports editing documents stored in the cloud and supports collaborative editing by multiple objects. In other words, once the target online document's editing interface is connected to the editing engine's interface, the target online document can support simultaneous online editing by multiple users, and the edited content can be updated and displayed in real time on the terminal screens of other users.
[0153] Once all the data for each online document page in the target online document has been written to disk, an editing interface for the target online document can be created to enable online editing operations. Since the online document page data is generated based on the resource IDs of the multimedia resources in the corresponding local document page and the document page content, the first document client can edit the target online document without waiting for the multimedia resources in the local document to be fully stored, thus improving the editing efficiency of the target online document.
[0154] In one of the aforementioned embodiments, based on the document collaboration request sent by the second document client, the first document client can send an online document link to the second document client, enabling the second document client to access the target online document. After the editing interface of the target online document is created, when the second document client also has editing permissions, it can also edit the target online document online by accessing the online document link. Thus, after each page of data in the target online document is stored on disk, team collaboration on the target online document can be performed, thereby improving team processing efficiency.
[0155] Step 330: Receive the access request for the target online document sent by the first document client based on the online document link, and determine the target document page data from the online document page data based on the access request.
[0156] The online document link is generated based on the attribute data of the local document and sent to the first document client. The process of generating the online document link has been described in detail in the preceding embodiments and will not be repeated here. The target online document is the online document corresponding to the local document.
[0157] An access request is a request from the first document client to view a target online document. In one implementation, after an online document link is sent to the first document client, the object can generate an access request for the target online document by clicking the online document link.
[0158] In another implementation, after the online document link is sent to the first document client, an access request to the target online document can be automatically generated. This allows the target online document to be automatically opened on the first document client that initiated the conversion request after the local document has been converted, improving the efficiency of accessing the target online document. Subsequently, when an object wishes to access the target online document through the first document client, an access request to the target online document can be generated again by triggering the online document link.
[0159] In one implementation, the first document client can send access requests in a polling manner. Since the online document link is generated based on the attribute data of the local document, while sending the online document link to the first document client, online document page data is continuously generated based on the resource IDs of the multimedia resources in the split local document page and the document page content. That is, after receiving the online document link, the first document client can send access requests in a polling manner at predetermined time intervals to obtain continuously updated online document page data. For example, after the first document client triggers the online document link, it sends an access request every 10 seconds to obtain the updated online document page data within those 10 seconds.
[0160] The polling time interval can be set based on the generation efficiency of online document page data. The generation efficiency of online document page data is closely related to the computing power of the computer device executing the document processing method of this embodiment. When the generation efficiency of online document page data is high, the update speed of online document page data is faster, and the acquisition efficiency of online document page data can be accelerated by setting a shorter polling time interval. When the generation efficiency of online document page data is low, a longer polling time interval can be set to avoid invalid access requests due to untimely updates of online document data.
[0161] Sending access requests in a polling manner can continuously obtain updated online document page data, improving the efficiency of obtaining online document data in the First Document client.
[0162] Upon receiving an access request for the target online document, the target document page data can be determined from the online document page data based on the access request.
[0163] In one implementation, when the access request is a polling request sent at predetermined time intervals, the access request may request the latest generated online document page data. Therefore, determining the target document page data in the online document page data may involve online document page data generated between the previous polling access request and the current polling access request.
[0164] For example, after the first document client triggers the online document link, it can generate an initial access request, followed by access requests sent every 10 seconds. The local document data is split into four local document pages. Upon receiving the first access request, the online document page data corresponding to the first local document page has already been generated; therefore, the online document page data corresponding to the first local document page can be used as the target document page data. After a 10-second interval, a second access request is received. At this time, the online document page data corresponding to the first to third local document pages has already been generated; therefore, the online document page data corresponding to the second and third local document pages can be used as the target document page data. After another 10-second interval, the online document page data corresponding to all local document pages has been generated; therefore, the online document page data corresponding to the fourth local document page can be used as the target document page data. Once the first document client has received the online document page data corresponding to all local document pages, the polling requests stop.
[0165] In another implementation, when the access request is a single request, the access request includes the default page of the target online document. Determining the target document page data from the online document page data based on the access request allows the online document page data corresponding to the default page to be identified as the target document page data.
[0166] The default page refers to the page that opens by default when accessing a target online document. For example, the default page might be the first page of the target online document. Therefore, the online document page data corresponding to the first local document page can be determined as the target document page data. Determining the target document page data based on the default page can improve the efficiency of this process.
[0167] In another implementation, when the access request is a single request, the access request includes the specified page of the target online document. Determining the target document page data from the online document page data based on the access request allows the online document page data corresponding to the specified page to be identified as the target document page data.
[0168] Specifying a page allows an object to target a specific page during the process of generating an access request via an online document link. For example, if an object wants to directly view the third page of a target online document, it can specify that the third page is the page to be displayed directly after opening the target online document before generating the access request.
[0169] In one implementation, the process of the first document client generating an access request for the target online document includes the following steps:
[0170] Display links to online documents;
[0171] In response to a link to an online document, a document page selection interface is displayed;
[0172] An access request is generated based on the page selection information received in the document page selection interface.
[0173] The first document client can display online document links. After triggering an online document link, a document page selection interface will appear. In the document page selection interface, an object can select the target document page it wants to open directly. Objects can select the target document page by entering the page number or by selecting from multiple candidate pages.
[0174] The page selection information indicates the target document page selected by the object in the document page selection interface. For example, if the object selects the third page as the target document page in the document page selection interface, then an access request can be generated based on this page selection information.
[0175] For example Figure 9A As shown, the online document link 911 corresponding to the local document can be displayed in the first document client 910. When the object triggers the online document link 911, as shown... Figure 9B As shown, a document page selection interface 921 is displayed in the first document client 910, which instructs the object to "enter the document page you want to open" and provides a document page input box 922. In the document page input box 922, the object can directly enter the page number of the target document page that it wants to open directly. After entering the page number in the document page input box 933, the object can confirm the input result by triggering the document page confirmation control 923. After the object confirms the input result, an access request for the target online document can be generated based on the page selection information (3) entered by the object.
[0176] Allowing users to choose the desired page in the document selection interface enables more efficient return of target online document data, improving user experience and document opening efficiency.
[0177] In one implementation, determining the target document page data from online document page data based on the access request includes:
[0178] When the online document page data includes the target document page data, the target document page data is determined based on the access request;
[0179] When the online document page data does not include the target document page data, the target document page data is generated based on the resource ID of the multimedia resource in the local document page corresponding to the target document page data and the document page content.
[0180] Online document links are quickly generated based on the attribute data of local documents. Simultaneously, online document page data is generated based on the resource IDs of multimedia resources within the split local document pages and the document page content. Therefore, when receiving an access request from the first document client, there may still be local document pages that have not yet been converted.
[0181] In this way, when the local document page corresponding to the target document page data has already generated corresponding online document page data, the target document page data can be directly determined from the generated online document page data. Conversely, when the local document page corresponding to the target document page data has not yet generated corresponding online document page data, the target document page data can be generated preferentially based on the resource number of the multimedia resources in the local document page corresponding to the target document page data and the document page content.
[0182] For example, when generating online document page data corresponding to a local document page, the local document pages can be generated sequentially according to their order within the text document. When an access request for the target online document is received, the online document page data corresponding to the first local document page has already been generated. However, the access request indicates that the target document page data is the online document page data corresponding to the third local document page. In this case, the online document page data does not include the target document page data. Therefore, the second local document page can be skipped, and the target document page data corresponding to the third local document page can be generated preferentially based on the resource ID of the multimedia resources in the third local document page and the document page content.
[0183] By determining whether the online document page data includes the target document page data, the target document page data can be obtained first, ensuring that the target document page data can be generated preferentially when the online document page data does not include the target document page data, thus improving the sending efficiency of the target document page data.
[0184] Determining the target document page data based on a specified page allows you to directly return the content that the object wants to view first, which helps improve the object's user experience and document processing efficiency.
[0185] Step 340: Send the target document page data to the first document client for online document rendering.
[0186] After determining the target document page data, it can be sent to the first document client. Upon receiving the target document page data, the first document client can perform online document rendering and display the rendered document page.
[0187] In one implementation, the process of the first document client performing online document rendering on the target document page data includes the following steps:
[0188] Determine the multimedia rendering location and text rendering location in the target online document page to be rendered based on the target document page data;
[0189] Obtain the multimedia rendering template corresponding to the target multimedia resources contained in the target online document page;
[0190] Render the multimedia rendering template at the multimedia rendering location, and render the target document page content contained in the target document page data at the text rendering location.
[0191] The target online document page indicates the page in the first document client where the target online document is displayed. The multimedia rendering location indicates the location where multimedia resources within the target document page data are displayed on the target online document page, and the document rendering location indicates the location where text content within the target document page data is displayed on the target online document page.
[0192] Since the target document page data is online document data generated based on the resource ID of the multimedia resource in the corresponding local document page and the document page content, the multimedia rendering position of the corresponding multimedia resource in the target document page data can be determined based on the position of the multimedia resource's resource ID in the target online document, and the text rendering position can be determined based on the position of the document page content in the target document page data.
[0193] For example, the target document page data contains, in order, text content, resource numbers corresponding to image-type multimedia resources, text content, and resource numbers corresponding to animation-type multimedia resources. In this way, the text rendering positions corresponding to the first and second paragraphs of text content, as well as the multimedia rendering positions corresponding to image-type and animation-type multimedia resources, can be assigned to the target online document page.
[0194] After determining the multimedia rendering location and the text rendering location, the multimedia rendering template corresponding to the target multimedia resource contained in the target online document page can be obtained. The multimedia rendering template is a display format used to replace the rendering of the multimedia resource. Multimedia rendering templates can take various forms, such as image format, displaying the text "Loading multimedia resource"; or icon format, using an icon representing "Loading" to indicate that the location contains a multimedia resource being loaded.
[0195] Since multimedia resources in the target document page data are represented by corresponding resource numbers, a multimedia rendering model can be used to render the multimedia resources instead of the actual multimedia resources, so that the actual multimedia resources can occupy display space.
[0196] In one implementation, obtaining the multimedia rendering template corresponding to the target multimedia resource contained in the target online document page includes: obtaining a default multimedia rendering template as the multimedia rendering template corresponding to the target multimedia resource contained in the target online document page.
[0197] The default multimedia rendering template can be a preset template that can be used to represent all multimedia resources. In other words, it uses the same multimedia rendering model to represent the display of all multimedia resources, for example... Figure 10 As shown.
[0198] In another implementation, obtaining the multimedia rendering template corresponding to the target multimedia resource contained in the target online document page includes:
[0199] The multimedia data type corresponding to each target multimedia resource is determined based on the target resource number contained in the target document page data.
[0200] Retrieve the multimedia rendering template corresponding to each multimedia data type.
[0201] In one of the aforementioned embodiments, the resource number can convey the type of the multimedia resource. For example, the resource number generation rule specifies that multimedia resources are numbered in two levels according to their type: image type is numbered 01, video type is numbered 02, audio type is numbered 03, and animation type is numbered 04. Therefore, when determining the multimedia data type of a target multimedia resource, the multimedia data type can be directly determined from the target resource number corresponding to the target multimedia resource. For example, if the target resource number is "01-03-01", according to the above generation rule, the multimedia data type of the target multimedia resource can be determined as "03", which is the audio type, through the second-level number in the target resource number. Therefore, as long as the resource type corresponding to the multimedia resource is considered when generating the resource number for the multimedia resource, the multimedia data type corresponding to each target multimedia resource can be determined based on the target resource number.
[0202] After determining the multimedia data type corresponding to the target multimedia resource, a corresponding multimedia rendering template can be obtained. Different multimedia data types can correspond to different multimedia rendering templates. For example, the multimedia rendering template for image-type multimedia resources can display "Loading image resources"; the multimedia rendering template for video-type multimedia resources can display "Loading video resources". Thus, different types of multimedia resources can be distinguished by the rendered multimedia rendering template. For example... Figure 11 As shown, image-type multimedia rendering templates are used to render image-type multimedia resources, and animation-type multimedia rendering templates are used to render animation-type multimedia resources. Therefore, through the rendered target online document page, it can be clearly seen that the first multimedia resource is the image-type multimedia resource to be loaded, and the second multimedia resource is the animation-type multimedia resource to be loaded.
[0203] Obtaining the corresponding multimedia rendering template based on the multimedia data type of the target multimedia resource can intuitively display the type of the multimedia resource even before it is loaded, thus improving the intuitiveness of rendering the target online document page.
[0204] After obtaining the multimedia rendering template corresponding to the target multimedia resource, the multimedia rendering template can be rendered at the multimedia rendering location, and the target document page content contained in the target document page data can be rendered at the document rendering location. In this way, the rendered target online document page can display the text content from the target document page data and the multimedia rendering template corresponding to the multimedia resource.
[0205] Using a multimedia rendering model to render the target multimedia resource in place of the target multimedia resource ensures that the display position of the target multimedia resource is preserved in the online document rendering result. This allows the target multimedia resource to be accurately updated to the multimedia rendering position after it is acquired, thus improving the accuracy of page rendering.
[0206] Step 350: Receive the multimedia resource access request sent by the first document client based on the target resource number in the target pagination data, and obtain the target multimedia resource data based on the multimedia resource access request.
[0207] A multimedia resource access request is a request used by the First Document client to obtain multimedia resources. Since the online documents displayed in the First Document client are rendered based on the resource ID and text content of the multimedia resources, a multimedia resource access request can be generated to display the complete online document.
[0208] The target pagination data contains the resource IDs of the multimedia resources included in the corresponding pagination. The resource IDs of multiple multimedia resources can be stored in a list. For example, if the pagination contains three multimedia resources, the resource IDs in the target pagination data would be [Resource ID D1, Resource ID D2, Resource ID D3]. The First Document client can use the resource IDs contained in the target pagination data sequentially as the target resource IDs and generate the corresponding multimedia resource access requests.
[0209] In one implementation, the first document client can send multimedia resource access requests in a polling manner. The resource number in the target pagination data is used as the target resource number, and a corresponding multimedia resource access request is generated and sent in a polling manner.
[0210] If the target multimedia resource data corresponding to the target resource number is not obtained, the target resource number can be carried over to the next polling round. In other words, after one polling round ends, a new polling round begins, and the new polling round will regenerate and send multimedia resource access requests for resource numbers for which the corresponding target multimedia resource data was not obtained in the previous polling round.
[0211] In one implementation, after receiving the target document page data, the first document client can obtain the target resource number from the target pagination data, and generate and send a multimedia resource access request based on the target resource number. Thus, the process of the first document client sending the multimedia resource access request and the process of online document rendering of the target document page data can be executed synchronously.
[0212] In another implementation, after rendering the target document page data online, the first document client can generate a multimedia resource access request based on the target resource number in the target pagination data and send the multimedia resource access request.
[0213] After receiving a multimedia resource access request from the first document client, the target multimedia resource data can be obtained based on the multimedia resource access request. The target multimedia resource data can be the multimedia resource data corresponding to the target resource number.
[0214] Multimedia resource data can be a cloud storage link for multimedia resources. After a multimedia resource is uploaded to a cloud server, the cloud server stores the multimedia resource and generates a corresponding storage link so that the multimedia resource can be accessed quickly. Therefore, upon receiving a multimedia resource access request from a First Document client, the cloud storage link of the corresponding multimedia resource can be obtained based on the target resource number as the multimedia resource data, allowing the First Document client to directly access the multimedia resource through the storage link.
[0215] In one embodiment of step 320, after generating the resource number corresponding to the multimedia resource, the data corresponding to the multimedia resource can be sent to the multimedia data storage server. Based on this, in one embodiment, obtaining the target multimedia resource data based on a multimedia resource access request includes:
[0216] Send a multimedia resource access request to the multimedia data storage server;
[0217] Receive target multimedia resource data sent by the multimedia data storage server based on a multimedia resource access request.
[0218] After receiving a multimedia resource access request, the computing device executing the document processing method of the present disclosure can forward the multimedia resource access request to a multimedia data storage server.
[0219] Upon receiving a multimedia resource access request, the multimedia data storage server can retrieve and send the target multimedia resource data based on the request. The multimedia data storage server can store the resource ID corresponding to the multimedia resource. Therefore, retrieving the target multimedia resource data based on the multimedia resource access request can be done using the target resource ID corresponding to the target multimedia resource data.
[0220] Retrieving multimedia resources via a multimedia data storage server can reduce the storage pressure on the computer device used to process the document processing method of this disclosure embodiment and improve the document processing efficiency of the computer device.
[0221] Step 360: Send the target multimedia resource data to the first document client for page rendering update.
[0222] After obtaining the target multimedia resource data based on the multimedia resource access request, the target multimedia resource data can be sent to the first document client. Upon receiving the target multimedia resource data, the first document client can update the page rendering based on the target multimedia resource data.
[0223] In one implementation, the process of updating page rendering based on target multimedia resource data by the first document client includes: rendering the target multimedia resource data in the target page based on the target resource number.
[0224] The target page can be the page containing the target multimedia resource data. Since the multimedia resource access request is generated based on the target resource number in the target page data, the first document client, upon receiving the target multimedia resource data, can directly determine the target page and the target resource number, and then render the target multimedia resource data at the position corresponding to the target resource number within the target page.
[0225] In one of the aforementioned embodiments, when the first document client performs online document rendering on the target document page data, it renders a multimedia rendering template at the multimedia rendering location and renders the target document page content contained in the target document page data at the text rendering location. Based on this, in one embodiment, the process of the first document client updating the page rendering of the target multimedia resource data includes the following steps:
[0226] Remove the target multimedia rendering template corresponding to the target resource number from the online documentation page;
[0227] Render the target multimedia resource data at the multimedia rendering location corresponding to the target multimedia rendering template.
[0228] The target multimedia rendering template is the multimedia rendering template corresponding to the target resource number on the online document page. The target multimedia rendering template is rendered based on the multimedia rendering position occupied by the target resource number, and it represents the target multimedia resource corresponding to that target resource number. Therefore, after the first document client receives the target multimedia resource data, it can delete the target multimedia rendering template from the online document page and render the target multimedia resource data at the multimedia rendering position corresponding to the target multimedia rendering template.
[0229] In one of the aforementioned embodiments, the target multimedia resource data is the storage link corresponding to the target multimedia resource. Therefore, when rendering a page based on the target multimedia resource data, the target multimedia resource can be obtained based on the target multimedia resource data, and the corresponding multimedia resource can be rendered at the multimedia rendering position corresponding to the target multimedia resource.
[0230] By replacing the target multimedia rendering template with the target multimedia resource based on the multimedia rendering location, the accuracy of page rendering updates based on the target multimedia resource data is improved.
[0231] In summary, the embodiments of this disclosure can split the local document data into document pages after receiving the local document data, and perform document conversion on each local document page. Compared with the method of converting the entire local document, converting the local document pages after splitting them allows the first document client to obtain the converted online document page data based on the access request of the target online document after the conversion of one local document page is completed, without waiting for the entire local document to be converted. Therefore, converting the local document pages after splitting them improves the document conversion efficiency. In addition, for each local document page, there is no need to wait for multimedia resources to be stored before converting the document page; online document conversion can be performed directly based on the resource number of the multimedia resources in the local document page and the document page content. By using the resource number to replace the multimedia resources in the local document page conversion, the conversion process of multimedia resources and the conversion process of local document pages are executed asynchronously, which greatly improves the document conversion efficiency without losing the document content in the local document page. In summary, the document processing method of the embodiments of this disclosure is beneficial to improving the conversion efficiency of converting local documents into online documents.
[0232] This disclosure provides a detailed description of embodiments in conjunction with specific application scenarios.
[0233] like Figure 12 The diagram shown illustrates the specific workflow of the document processing method provided in this disclosure when applied to an online document editing scenario. Figure 13 The diagram shown illustrates the multi-terminal interaction of the document processing method provided in this disclosure when applied to an online document editing scenario. Figure 12 and Figure 13 Document processing methods include:
[0234] Step 1201: Client 1310 sends a document conversion request to the server.
[0235] Client 1310 can be a client used to obtain an online document corresponding to a local document. Client 1310 can include various forms such as a computer, mobile phone, or vehicle-mounted terminal device. Server 1320 can be a computer device used to execute the document processing method of this embodiment. Server 1320 can be a terminal 140 or a server 110. The client 1310 and the server can be connected via a wired link or a wireless communication connection.
[0236] A document conversion request instructs the server to convert a local document into an online document, which includes the local document data of the document to be processed. When an object needs to convert a local document into an online document, it can upload the local document, and the client 1310 can generate a document conversion request based on the local document data corresponding to the local document.
[0237] Step 1202, Page Splitting on Server 1320: Server 1321 creates document metadata based on the attribute data of local document data, generates online document links based on the document metadata, and sends the online document links to client 1310.
[0238] The page splitting server 1321 in server 1320 can be used to perform preliminary processing on the local document data to be processed.
[0239] First, document metadata can be created based on attribute data from local document data. Local document data can include the document content and attribute data. Document content indicates the main text of the local document; document attribute data indicates basic information about the local document, such as the document title, document creator information, document creation date, and document keywords. Document metadata refers to other basic document data besides the main text content.
[0240] After creating the document metadata, an online document link can be generated based on the document metadata and sent to the client 1310. The object can directly access the online document through the online document link.
[0241] After receiving the online document link, client 1310 can also forward the online document link to other clients 1310, so that other clients 1310 can also access the online document through the online document link.
[0242] Step 1203: Page Splitting. Server 1321 splits local document data into document pages.
[0243] When splitting local document data into pages, the page splitting server 1321 can determine different splitting methods based on the data type of the local document.
[0244] When a local document is a paginated document, the document data can be split into pages based on the document's default pagination. A paginated document is one that is already paginated, such as a presentation document (PowerPoint). For example, if a local document is already divided into three pages, then the local document data can be split into three local document pages according to the default pagination.
[0245] When the local document is a scrolling document, it can be split into pages according to a predefined splitting rule. A scrolling document is one that does not paginate its content; even if the document contains different pages, the content on each page changes as the document content is reduced. Examples include spreadsheet documents (Excel) and text-based documents (Word). The predefined splitting rule can be a pre-set splitting method, such as splitting the document into pages according to a predetermined number of rows. The predetermined number of rows indicates the interval between page splits. For example, if the predetermined number of rows is 10, then regardless of the number of pages in the local document, it will be split every 10 rows.
[0246] Step 1204: The document conversion server 1322 performs document parsing on the split local document pages, extracts multimedia resources from each local document page, and generates resource numbers corresponding to the multimedia resources.
[0247] The document conversion server 1322 in server 1320 is used to convert local document pages into online document page data. The document conversion server parses each split local document page and extracts multimedia resources from it. Multimedia resources can refer to data resources of other data types besides text content in the document, such as images, sound, and animated videos.
[0248] A resource ID for a multimedia resource serves as an identifier within a local document page, distinguishing different multimedia resources. The resource ID for a multimedia resource can be generated according to a predetermined numbering rule. This rule can specify numbering rules between different local document pages, or different numbering methods for different types of multimedia resources. By using this predetermined numbering rule, each multimedia resource can obtain a unique resource ID, and based on this resource ID, information about the local document page and the multimedia resource type can be retrieved.
[0249] Step 1205: The document conversion server 1322 generates corresponding online document data based on the resource number corresponding to the multimedia resources in each local document page and the content of the document page.
[0250] After generating the resource ID corresponding to the multimedia resource, for each local document page, the corresponding online document data can be generated based on the resource ID corresponding to the multimedia resource and the content of the document page.
[0251] Document page content can indicate other text content in the document besides multimedia resources. Online document data can be generated based on resource IDs and document page content by converting local document pages according to the online document's formatting specifications, and then replacing the data corresponding to multimedia resources in the converted document data with the resource IDs to obtain online document page data.
[0252] Document format specifications define the conversion format for online documents. After converting the format of the local document page, the resource number is used to replace the multimedia resource, thus serving as a placeholder for the multimedia resource in the online document page data.
[0253] Step 1206: The document conversion server 1322 determines the online document storage status of multiple local document pages. When all the online document page data corresponding to all local document pages are stored, an editing connection is established with the editing engine 1324.
[0254] After generating the online document page data corresponding to the local document page, the online document page data can be stored, and the online document storage status of each local document page can be obtained. The online document storage status can indicate whether the local document page has been converted into online document page data, and whether the online document page data has been persisted to disk.
[0255] When the online document storage status indicates that there is local document page data that has not yet been converted, or the converted online document page data has not yet been stored on disk, online document data can continue to be generated based on the resource number of the multimedia resources in the unconverted local document page and the document page content, and the online document data can be stored.
[0256] When the online document storage status indicates that each local document page has been converted into online document page data, and the online document page data has been stored on disk, an editing interface for the target online document can be created. This editing interface is used for online editing operations on the target online document. When a document stored in the cloud needs to be edited, it needs to be connected to the interface of the editing engine 1324. Therefore, after the target online document is successfully stored, an editing interface for the target online document can be created and connected to the interface of the editing engine 1324, thereby enabling editing operations on the target online document.
[0257] Step 1207: The document conversion server 1322 uploads multimedia resources to the multimedia storage service server 1323. After storing the multimedia resources, the multimedia storage service server 1323 generates the resource link corresponding to the multimedia resources.
[0258] The multimedia storage service client 1323 can be used to store multimedia resources and also to back them up for disaster recovery. After the multimedia storage service client 1323 successfully stores the data corresponding to the multimedia resource, it can generate a resource link for the multimedia resource, allowing for quick access to the multimedia resource through the resource link.
[0259] The multimedia storage service client 1323 can be a cloud object storage server (COS server).
[0260] Step 1208: Client 1310 sends an access request to server 1320 in a polling manner based on the online document link.
[0261] Once client 1310 receives an online document link, it can send access requests in a polling manner at predetermined time intervals to obtain continuously updated online document page data. The polling time interval can be set based on the efficiency of online document page data generation.
[0262] Since online document links are generated based on the attribute data of local documents, while client 1310 receives the online document link, server 1320 is continuously generating online document page data. Therefore, a polling method can be used to obtain continuously updated online document page data from server 1320.
[0263] Step 1209: The document conversion server 1322 sends the target online document page data to the client 1310 based on the polling access request.
[0264] After the document conversion server 1322 receives the polling access request, it can determine the online document page data generated between the previous polling access request and the current polling access request as the target online document page data, and send the target online document page data to the client 1310.
[0265] For example, when client 1310 sends an access request to server 1320 for the first time, document conversion server 1322 has already generated the online document page data for the first page. Therefore, the online document page data for the first page can be sent to client 1310 as the target online document page data. When client 1310 sends an access request to server 1320 for the second time, document conversion server 1322 has generated the online document page data for the second and third pages. Therefore, in response to this access request, the online document page data corresponding to the second and third pages can be sent to client 1310 as the target online document page data.
[0266] Step 1210: Client 1310 performs online page rendering based on the resource number and document page content in the target online document page data.
[0267] After receiving the target online document page data, client 1310 can perform online page rendering based on the resource number and document page content in the target online document page data. During online document rendering, client 1310 can obtain the multimedia rendering template corresponding to the target multimedia resource in the target online document page data, render the multimedia rendering template at the multimedia rendering location, and render the target document page content contained in the target online document page data at the text rendering location.
[0268] Multimedia rendering location indicates the location where multimedia resources in the target online document page data are displayed on the target online document page, while document rendering location indicates the location where text content in the target online document page data is displayed on the target online document page.
[0269] Multimedia rendering templates are display formats used to replace the rendering of multimedia resources. Multimedia rendering templates can take various forms, such as image formats displaying the text "Loading multimedia resource"; or icon formats, which use an icon to indicate that a multimedia resource is being loaded at that location.
[0270] Since multimedia resources in the target online document page data are represented by corresponding resource numbers, a multimedia rendering model can be used to render the multimedia resources instead of the actual multimedia resources, so that the actual multimedia resources can occupy the display space.
[0271] Step 1211: Client 1310 sends a multimedia resource access request to server 1320 in a polling manner.
[0272] A multimedia resource access request is a request used by client 1310 to obtain multimedia resources.
[0273] When receiving data from a target online document page, client 1310 can obtain a list of resource IDs for the multimedia resources to be loaded within the target online document page data. Therefore, client 1310 can also obtain multimedia resources in a polling manner. Specifically, it can generate multimedia resource access requests sequentially according to the order of the resource IDs in the resource ID list and send these requests to server 1320.
[0274] Step 1212: The multimedia storage service client 1323 obtains the target resource link of the target multimedia resource based on the multimedia resource access request, and sends the target resource link to the client 1310.
[0275] After receiving a multimedia resource access request from the client 1310, the multimedia storage service client 1323 can obtain the resource link of the corresponding multimedia resource in the cloud based on the target resource number in the multimedia resource access request, and send the resource link to the client 1310.
[0276] If the target multimedia resource data corresponding to the target resource number is not obtained, an empty result can be sent to client 1310 to inform client 1310 that the target multimedia resource data has not been stored. Client 1310 can then carry over the target resource number to the next polling iteration. In other words, after one polling iteration ends, a new polling iteration begins, and the new polling iteration will regenerate and send a multimedia resource access request for the resource number for which the corresponding target multimedia resource data was not obtained in the previous polling iteration.
[0277] Steps 1213: Client 1310 obtains the target multimedia resource based on the target resource link and updates and renders the page based on the target multimedia resource.
[0278] After obtaining the target resource link, client 1310 can access the target multimedia resource through the target resource link. When updating and rendering the page based on the target multimedia resource, the target multimedia rendering template corresponding to the target resource number in the online document page where the target multimedia resource is located can be deleted, and the target multimedia resource data can be rendered at the multimedia rendering position corresponding to the target multimedia rendering template.
[0279] Description of apparatus and devices according to embodiments of this disclosure
[0280] It is understood that although the steps in the above flowcharts are shown sequentially according to the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless explicitly stated in this embodiment, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least some steps in the above flowcharts may include multiple steps or multiple stages. These steps or stages are not necessarily completed at the same time, but can be executed at different times. The execution order of these steps or stages is not necessarily sequential, but can be performed alternately or in turn with other steps or at least some of the steps or stages in other steps.
[0281] It should be noted that in various specific embodiments of this application, when processing is required based on data related to the characteristics of the target content, such as target content attribute information or attribute information sets, permission or consent from the target content provider will be obtained first. Furthermore, the collection, use, and processing of this data will comply with relevant laws, regulations, and standards. In addition, when embodiments of this application require obtaining target content attribute information, separate permission or consent from the target content provider will be obtained through pop-ups or redirection to a confirmation page. Only after obtaining the separate permission or consent from the target content provider will the necessary target content-related data for the normal operation of the embodiments of this application be obtained.
[0282] Figure 14 A schematic diagram of the structure of a document processing apparatus 1400 provided in an embodiment of this disclosure. The document processing apparatus 1400 includes:
[0283] The first receiving unit 1410 is used to receive a document conversion request sent by the first document client. The document conversion request includes local document data of the local document to be processed.
[0284] The splitting unit 1420 is used to split local document data into document pages and generate online document page data based on the resource number of multimedia resources in the split local document pages and the content of the document pages.
[0285] The second receiving unit 1430 is used to receive an access request for a target online document sent by the first document client based on an online document link, determine the target document page data in the online document page data based on the access request, generate the online document link based on the attribute data of the local document and send it to the first document client, and the target online document is the online document corresponding to the local document.
[0286] The first sending unit 1440 is used to send the target document page data to the first document client for online document rendering;
[0287] The third receiving unit 1450 is used to receive a multimedia resource access request sent by the first document client based on the target resource number in the target pagination data, and to obtain the target multimedia resource data based on the multimedia resource access request.
[0288] The second sending unit 1460 is used to send the target multimedia resource data to the first document client for page rendering update.
[0289] Optionally, the splitting unit 1420 is specifically used for:
[0290] Extract multimedia resources from the split local document pages and generate resource numbers corresponding to the multimedia resources;
[0291] Based on the document format specifications of online documents, the local document pages are formatted and converted. The data corresponding to multimedia resources in the format-converted document data is then replaced with resource numbers to obtain the online document page data.
[0292] Optionally, in one embodiment, the document processing apparatus 1400 further includes:
[0293] The third sending unit (not shown) is used to send the data corresponding to the multimedia resources to the multimedia data storage server;
[0294] The third receiving unit 1450 is specifically used for:
[0295] Send a multimedia resource access request to the multimedia data storage server;
[0296] Receive target multimedia resource data sent by the multimedia data storage server based on a multimedia resource access request.
[0297] Optionally, in one implementation, the process of the first document client performing online document rendering on the target document page data includes the following steps:
[0298] Determine the multimedia rendering location and text rendering location in the target online document page to be rendered based on the target document page data;
[0299] Obtain the multimedia rendering template corresponding to the target multimedia resources contained in the target online document page;
[0300] Render the multimedia rendering template at the multimedia rendering location, and render the target document page content contained in the target document page data at the text rendering location.
[0301] Optionally, in one implementation, obtaining the multimedia rendering template corresponding to the target multimedia resource contained in the target online document page includes:
[0302] The multimedia data type corresponding to each target multimedia resource is determined based on the target resource number contained in the target document page data.
[0303] Retrieve the multimedia rendering template corresponding to each multimedia data type.
[0304] Optionally, in one implementation, the process of updating the page rendering of the target multimedia resource data by the first document client includes the following steps:
[0305] Remove the target multimedia rendering template corresponding to the target resource number from the online documentation page;
[0306] Render the target multimedia resource data at the multimedia rendering location corresponding to the target multimedia rendering template.
[0307] Optionally, in one embodiment, the document processing apparatus 1400 further includes:
[0308] The first acquisition unit (not shown) is used to acquire the attribute data of the local document according to the document conversion request;
[0309] A generation unit (not shown) is used to generate online document links based on attribute data and send the online document links to a first document client.
[0310] Alternatively, in one implementation, after receiving the online document link, the first document client may also perform the following operations:
[0311] Receive document collaboration requests sent by the second document client;
[0312] Based on the document collaboration request, an online document link is sent to a second document client so that the second document client can access the target online document based on the online document link.
[0313] Optionally, in one embodiment, the second receiving unit 1430 is specifically used for:
[0314] When the online document page data includes the target document page data, the target document page data is determined based on the access request;
[0315] When the online document page data does not include the target document page data, the target document page data is generated based on the resource ID of the multimedia resource in the local document page corresponding to the target document page data and the document page content.
[0316] Optionally, in one embodiment, the document processing apparatus 1400 further includes:
[0317] The second acquisition unit (not shown) is used to store online document page data and acquire the storage status of the target online document;
[0318] A creation unit (not shown) is used to create an editing interface for the target online document when the storage status indicates that the data of each online document page contained in the target online document has been stored. The editing interface is used for online editing operations of the target online document.
[0319] Optionally, in one implementation, the process of the first document client generating an access request for the target online document includes the following steps:
[0320] Display links to online documents;
[0321] In response to a link to an online document, a document page selection interface is displayed;
[0322] An access request is generated based on the page selection information received in the document page selection interface.
[0323] Reference Figure 15 , Figure 15 To implement the structural block diagram of a portion of the terminal 140 according to an embodiment of this disclosure, the terminal includes: a radio frequency (RF) circuit 1510, a memory 1515, an input unit 1530, a display unit 1540, a sensor 1550, an audio circuit 1560, a wireless fidelity (WiFi) module 1570, a processor 1580, and a power supply 1590, among other components. Those skilled in the art will understand that... Figure 15 The terminal 140 structure shown does not constitute a limitation on a mobile phone or computer, and may include more or fewer components than shown, or combine certain components, or have different component arrangements.
[0324] The RF circuit 1510 can be used to receive and transmit signals during information transmission or calls. In particular, it receives downlink information from the base station and processes it with the processor 1580; in addition, it transmits uplink data to the base station.
[0325] The memory 1515 can be used to store software programs and modules, and the processor 1580 executes various functional applications and document processing of the content terminal by running the software programs and modules stored in the memory 1515.
[0326] The input unit 1530 can be used to receive input numeric or character information, and to generate key signal inputs related to the settings and function control of the content terminal. Specifically, the input unit 1530 may include a touch panel 1531 and other input devices 1532.
[0327] The display unit 1540 can be used to display input or provided information, as well as various menus of the content terminal. The display unit 1540 may include a display panel 1541.
[0328] Audio circuitry 1560, speaker 1561, and microphone 1562 provide an audio interface.
[0329] In this embodiment, the processor 1580 included in the object terminal 140 can execute the document processing method of the previous embodiment.
[0330] The target terminal 140 in this disclosure includes, but is not limited to, mobile phones, computers, intelligent voice exchange devices, smart home appliances, vehicle terminals, and aircraft. This invention can be applied to various scenarios, including but not limited to group office work and online document collaboration.
[0331] Figure 16This is a partial structural block diagram of a server 110 implementing an embodiment of the present disclosure. The server 110 can vary significantly due to different configurations or performance characteristics, and may include one or more central processing units (CPUs) 1622 (e.g., one or more processors) and memory 1632, and one or more storage media 1630 (e.g., one or more mass storage devices) for storing application programs 1642 or data 1644. The memory 1632 and storage media 1630 may be temporary or persistent storage. The program stored in the storage media 1630 may include one or more modules (not shown in the diagram), each module including a series of instruction operations on the server. Furthermore, the CPU 1622 may be configured to communicate with the storage media 1630 and execute the series of instruction operations stored in the storage media 1630 on the server.
[0332] Server 110 may also include one or more power supplies 1626, one or more wired or wireless network interfaces 1650, one or more input / output interfaces 1658, and / or one or more operating systems 1641, such as Windows Server™, Mac OS X™, Unix™, Linux™, FreeBSD™, etc.
[0333] The central processing unit 1622 in server 110 can be used to execute the document processing method of the present disclosure embodiments.
[0334] This disclosure also provides a computer-readable storage medium for storing program code for executing the document processing methods of the foregoing embodiments.
[0335] This disclosure also provides a computer program product comprising a computer program. The processor of an electronic device reads and executes the computer program, causing the electronic device to perform the document processing method described above.
[0336] The terms “first,” “second,” “third,” “fourth,” etc. (if present) in this disclosure and the foregoing drawings are used to distinguish similar terms and are not necessarily used to describe a particular order or sequence. It should be understood that such use of data can be interchanged where appropriate so that embodiments of this disclosure described herein can be implemented, for example, in orders other than those illustrated or described herein. Furthermore, the terms “comprising” and “including,” and any variations thereof, are intended to cover non-exclusive inclusion; for example, a process, method, system, product, or apparatus that includes a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatuses.
[0337] It should be understood that in this disclosure, "at least one item" refers to one or more items, and "more than one item" refers to two or more items. "And / or" is used to describe the relationship between related content, indicating that three relationships can exist. For example, "A and / or B" can represent three cases: only A exists, only B exists, and both A and B exist simultaneously, where A and B can be singular or plural. The character " / " generally indicates that the preceding and following related content are in an "or" relationship. "At least one of the following" or similar expressions refer to any combination of these items, including any combination of single or plural items. For example, at least one of a, b, or c can represent: a, b, c, "a and b", "a and c", "b and c", or "a and b and c", where a, b, and c can be single or multiple.
[0338] It should be understood that in the description of the embodiments disclosed herein, "multiple" means two or more, "greater than", "less than", "exceeding" etc. are understood to exclude the number itself, and "above", "below", "within" etc. are understood to include the number itself.
[0339] In this disclosure, the terms "module" or "unit" refer to a computer program or part of a computer program that has a predetermined function and works with other related parts to achieve a predetermined goal, and can be implemented wholly or partially using software, hardware (such as processing circuitry or memory), or a combination thereof. Similarly, a processor (or multiple processors or memory) can be used to implement one or more modules or units. Furthermore, each module or unit can be part of an overall module or unit that includes the functionality of that module or unit.
[0340] In the several embodiments provided in this disclosure, it should be understood that the disclosed systems, apparatuses, and methods can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative; for instance, the division of units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be through some interfaces, indirect coupling or communication connection between apparatuses or units, and may be electrical, mechanical, or other forms.
[0341] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.
[0342] Furthermore, the functional units in the various embodiments of this disclosure can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit.
[0343] If the integrated unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this disclosure, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods of the various embodiments of this disclosure. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.
[0344] It should also be understood that the various implementation methods provided in this disclosure can be combined arbitrarily to achieve different technical effects.
[0345] The above is a detailed description of the embodiments of this disclosure. However, this disclosure is not limited to the above embodiments. Those skilled in the art can make various equivalent modifications or substitutions without departing from the spirit of this disclosure. All such equivalent modifications or substitutions are included within the scope defined by the claims of this disclosure.
Claims
1. A document processing method, characterized in that, include: Receive a document conversion request sent by a first document client, the document conversion request including local document data of the local document to be processed; The local document data is split into document pages, and online document page data is generated based on the resource IDs of multimedia resources in the split local document pages and the document page content; The system receives an access request for a target online document sent by the first document client based on an online document link. Based on the access request, it determines the target document page data from the online document page data. The online document link is generated based on the attribute data of the local document and sent to the first document client. The target online document is the online document corresponding to the local document. The target document page data is sent to the first document client for online document rendering; Receive a multimedia resource access request sent by the first document client based on the target resource number in the target pagination data, and obtain the target multimedia resource data based on the multimedia resource access request; The target multimedia resource data is sent to the first document client for page rendering and updating.
2. The method according to claim 1, characterized in that, The process of generating online document page data based on the resource IDs of multimedia resources in the local document page obtained through splitting and the document page content includes: Extract multimedia resources from the split local document pages and generate resource numbers corresponding to the multimedia resources; The local document page is formatted based on the online document format specifications, and the data corresponding to the multimedia resources in the format-converted document data is replaced with the resource number to obtain the online document page data.
3. The method according to claim 2, characterized in that, After extracting the multimedia resources from the split local document page and generating the resource number corresponding to the multimedia resources, the method further includes: Send the data corresponding to the multimedia resources to the multimedia data storage server; The step of obtaining the target multimedia resource data based on the multimedia resource access request includes: Send the multimedia resource access request to the multimedia data storage server; Receive the target multimedia resource data sent by the multimedia data storage server based on the multimedia resource access request.
4. The method according to claim 1, characterized in that, The process of the first document client rendering the target document page data online includes the following steps: Based on the target document page data, determine the multimedia rendering position and text rendering position in the target online document page to be rendered; Obtain the multimedia rendering template corresponding to the target multimedia resources contained in the target online document page; The multimedia rendering template is rendered at the multimedia rendering location, and the target document page content contained in the target document page data is rendered at the text rendering location.
5. The method according to claim 4, characterized in that, The step of obtaining the multimedia rendering template corresponding to the target multimedia resources contained in the target online document page includes: The multimedia data type corresponding to each target multimedia resource is determined based on the target resource number contained in the target document page data. Obtain the multimedia rendering template corresponding to each of the multimedia data types described.
6. The method according to claim 4, characterized in that, The process of updating the page rendering of the target multimedia resource data by the first document client includes the following steps: Remove the target multimedia rendering template corresponding to the target resource number from the online document page; The target multimedia resource data is rendered at the multimedia rendering position corresponding to the target multimedia rendering template.
7. The method according to claim 1, characterized in that, After receiving the document conversion request sent by the first document client, the method includes: Obtain the attribute data of the local document according to the document conversion request; An online document link is generated based on the attribute data, and the online document link is sent to the first document client.
8. The method according to claim 7, characterized in that, After receiving the online document link, the first document client can also perform the following operations: Receive document collaboration requests sent by the second document client; Based on the document collaboration request, the online document link is sent to the second document client so that the second document client can access the target online document based on the online document link.
9. The method according to any one of claims 1-8, characterized in that, Determining the target document page data from the online document page data based on the access request includes: When the online document page data includes the target document page data, the target document page data is determined based on the access request; When the online document page data does not include the target document page data, the target document page data is generated based on the resource number of the multimedia resource in the local document page corresponding to the target document page data and the document page content.
10. The method according to any one of claims 1-8, characterized in that, After splitting the local document data into document pages and generating online document page data based on the resource IDs of multimedia resources in the split local document pages and the document page content, the method further includes: The online document page data is stored, and the storage status of the target online document is obtained; When the storage status indicates that the data of each of the online document pages contained in the target online document has been stored, an editing interface for the target online document is created, and the editing interface is used for online editing operations of the target online document.
11. The method according to any one of claims 1-8, characterized in that, The process by which the first document client generates an access request for the target online document includes the following steps: Display the link to the online document; In response to the triggering of the online document link, a document page selection interface is displayed; An access request is generated based on the page selection information received in the document page selection interface.
12. A document processing apparatus, characterized in that, include: The first receiving unit is configured to receive a document conversion request sent by the first document client, wherein the document conversion request includes local document data of the local document to be processed. The splitting unit is used to split the local document data into document pages and generate online document page data based on the resource number of the multimedia resources in the split local document pages and the document page content. The second receiving unit is configured to receive an access request for a target online document sent by the first document client based on an online document link, determine the target document page data from the online document page data based on the access request, and generate and send the online document link based on the attribute data of the local document to the first document client, wherein the target online document is the online document corresponding to the local document. The first sending unit is used to send the target document page data to the first document client for online document rendering; The third receiving unit is used to receive a multimedia resource access request sent by the first document client based on the target resource number in the target pagination data, and to obtain the target multimedia resource data based on the multimedia resource access request. The second sending unit is used to send the target multimedia resource data to the first document client for page rendering update.
13. An electronic device comprising a memory and a processor, wherein the memory stores a computer program, characterized in that, When the processor executes the computer program, it implements the document processing method according to any one of claims 1 to 11.
14. A storage medium storing a computer program, characterized in that, When the computer program is executed by a processor, it implements the document processing method according to any one of claims 1 to 11.
15. A computer program product comprising a computer program that is read and executed by a processor of an electronic device, causing the electronic device to perform the document processing method according to any one of claims 1 to 11.