Document preview method and device, electronic equipment and storage medium

CN119067071APending Publication Date: 2024-12-03CHINA MOBILE INTERNET CO LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411114206.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-14
Publication Date
2024-12-03

Smart Images

  • Figure CN119067071A_ABST
    Figure CN119067071A_ABST
Patent Text Reader

Abstract

The invention discloses a document previewing method, belongs to the field of computers, and is used for reducing time consumption of document online previewing. The method comprises the steps of obtaining document information of a target document, wherein the document information comprises attribute information of the target document; receiving a preview request sent by the target terminal, wherein the preview request is used for requesting to preview the target document; obtaining a plurality of basic preview capabilities for previewing the document, and determining a preview score of each basic preview capability based on the document information, the preview scores being used for representing a preview level of the basic preview capabilities to the target document; and performing preview processing on the target document according to the target preview capability, and sending a processing result to the target terminal, so that the target terminal performs document preview based on the processing result, and the target preview capability is a basic preview capability of which the preview score is greater than a preset threshold.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application belongs to the field of computers, and specifically relates to a document preview method, device, electronic device and storage medium. Background Art

[0002] With the continuous development and widespread use of 5G and the Internet, cloud storage applications not only provide users with cloud storage space to store data, but also provide users with cloud-based document preview services. Cloud storage applications provide users with online document preview services to meet users' needs to preview document content without downloading. As user needs continue to increase, the requirements for preview loading speed are getting higher and higher.

[0003] Therefore, a less time-consuming document preview method is needed. Summary of the invention

[0004] The embodiment of the present application provides a document preview method, which can reduce the time consumption of document preview.

[0005] In a first aspect, an embodiment of the present application provides a document preview method, the method comprising: obtaining document information of a target document, the target document being a document for preview, the document information comprising attribute information of the target document; receiving a preview request sent by a target terminal, the preview request being used to request a preview of the target document; obtaining a plurality of basic preview capabilities for document preview, and determining a preview score for each of the basic preview capabilities based on the document information, the preview score being used to characterize a preview level of the basic preview capability for the target document, the basic preview capability being used to generate preview information of the document; performing preview processing on the target document according to the target preview capability, and sending the processing result to the target terminal, so that the target terminal performs document preview based on the processing result, the target preview capability being the basic preview capability whose preview score is greater than a preset threshold.

[0006] In a second aspect, an embodiment of the present application provides a document preview device, which includes: a first acquisition module, used to acquire document information of a target document, the target document is a document for previewing, and the document information includes attribute information of the target document; a first receiving module, used to receive a preview request sent by a target terminal, the preview request is used to request a preview of the target document; a second acquisition module, used to acquire multiple basic preview capabilities for document preview, and determine a preview score of each basic preview capability based on the document information, the preview score is used to characterize the preview level of the basic preview capability for the target document, and the basic preview capability is used to generate preview information of the document; a first sending module, used to perform preview processing on the target document according to the target preview capability, and send the processing result to the target terminal, so that the target terminal performs document preview based on the processing result, the target preview capability is the basic preview capability whose preview score is greater than a preset threshold.

[0007] In a third aspect, an embodiment of the present application provides an electronic device, which includes a processor, a memory, and a program or instruction stored in the memory and executable on the processor, wherein the program or instruction, when executed by the processor, implements the steps of the method described in the first aspect.

[0008] In a fourth aspect, an embodiment of the present application provides a readable storage medium, on which a program or instruction is stored, and when the program or instruction is executed by a processor, the steps of the method described in the first aspect are implemented.

[0009] In a fifth aspect, an embodiment of the present application provides a computer program product, which, when executed by a processor, implements the steps of the method described in the first aspect.

[0010] In a sixth aspect, an embodiment of the present application provides a chip, comprising a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run a program or instruction to implement the method described in the first aspect.

[0011] In an embodiment of the present application, document information of a target document is obtained, the target document is a document for previewing, and the document information includes attribute information of the target document; a preview request sent by a target terminal is received, and the preview request is used to request a preview of the target document; a plurality of basic preview capabilities for document previewing are obtained, and a preview score of each of the basic preview capabilities is determined based on the document information, the preview score is used to characterize the preview level of the basic preview capability for the target document, and the basic preview capability is used to generate preview information of the document; the target document is previewed according to the target preview capability, and the processing result is sent to the target terminal, so that the target terminal previews the document based on the processing result, and the target preview capability is the basic preview capability whose preview score is greater than a preset threshold, which can reduce the time consumption of document preview. BRIEF DESCRIPTION OF THE DRAWINGS

[0012] Figure 1 It is a flowchart of a document preview method provided in an embodiment of the present application;

[0013] Figure 2 This is a schematic diagram of information interaction of a document preview system provided by an embodiment of the present application;

[0014] Figure 3 is a flowchart of a second document preview method provided in an embodiment of the present application;

[0015] Figure 4 This is a schematic diagram of information interaction of a second document preview system provided in an embodiment of the present application;

[0016] Figure 5 It is a flowchart of a third document preview method provided in an embodiment of the present application;

[0017] Figure 6 is a flowchart of a fourth document preview method provided in an embodiment of the present application;

[0018] Figure 7 It is a structural diagram of a network storage device provided in an embodiment of the present application;

[0019] Figure 8 It is a structural diagram of a network storage device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0020] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0021] The terms "first", "second", etc. in the specification and claims of the present application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable under appropriate circumstances, so that the embodiments of the present application can be implemented in an order other than those illustrated or described here, and the objects distinguished by "first", "second", etc. are generally of one type, and the number of objects is not limited. For example, the first object can be one or more. In addition, "and / or" in the specification and claims represents at least one of the connected objects, and the character " / " generally indicates that the objects associated with each other are in an "or" relationship.

[0022] The document preview method provided by the embodiment of the present application is described in detail below through specific embodiments and their application scenarios in conjunction with the accompanying drawings.

[0023] Figure 1 A document preview method provided by an embodiment of the present invention is shown. The method can be executed by an electronic device, and the electronic device may include: a server and / or a terminal device, wherein the terminal device may be, for example, a vehicle-mounted terminal or a mobile phone terminal. In other words, the method can be executed by software or hardware installed in the document preview device, and the method includes the following steps:

[0024] Step 102: Obtain document information of the target document;

[0025] The target document is a document for previewing, and the document information includes attribute information of the target document.

[0026] The document preview system obtains document information of a target document, wherein the document preview system is an online document preview system, the target document is a document for previewing, and the document information includes attribute information of the target document, such as type information of the target document and size information of the target document, etc. The target document is a document for previewing, that is, the target document is a document that can be previewed online.

[0027] Specifically, the document preview system can pre-acquire the document information of each document that can be previewed online (i.e., the target document), and then store the document information of each target document in a pre-set database, so as to obtain the required data from the database when the document information of the target document needs to be processed. The document preview system can also obtain the document information of the target document when the document information of the target document needs to be processed.

[0028] Furthermore, the document preview system may include a document information extraction module, which can obtain document information of a target document and store the document information after obtaining the document information of the target document.

[0029] Step 104: receiving a preview request sent by the target terminal;

[0030] The preview request is used to request a preview of the target document.

[0031] The document preview system receives a preview request sent by a target terminal, wherein the preview request is a request sent by the target terminal to a server to request previewing a target document.

[0032] When the target user needs to preview the target document online, the target terminal can send a preview request to the server to request the target document to be previewed online. After receiving the preview request sent by the target terminal, the server can verify the preview request and perform subsequent operations after verifying that the preview request is authentic and valid. Furthermore, the document preview system can also include a document preview scheduling module, which can be used to receive the preview request sent by the target terminal and verify the authenticity and validity of the preview request.

[0033] Step 106: acquiring a plurality of basic preview capabilities for document preview, and determining a preview score of each of the basic preview capabilities based on the document information;

[0034] The preview score is used to represent the preview level of the target document by the basic preview capability, and the basic preview capability is used to generate preview information of the document.

[0035] After receiving the preview request sent by the target terminal, the document preview system obtains multiple basic preview capabilities for document preview, and determines the preview score of each basic preview capability based on the document information, wherein the preview score is used to characterize the preview level of the basic preview capability for the target document, the basic preview capability is used to generate the preview information of the document, and different preview capabilities can generate different preview information for the same document, that is, different preview capabilities can perform different preview processing on the document. That is, after obtaining the preview request and the document information of the target document, the document preview system obtains multiple preset basic preview capabilities for document preview, and determines the preview level of each basic processing capability for the target document, that is, the preview score, wherein the higher the preview score, the higher the processing level of the basic preview capability corresponding to the preview score for the target document, and the lower the time required for previewing the target document, and the lower the preview score, the lower the processing level of the basic preview capability corresponding to the preview score for the target document, and the higher the time required for previewing the target document.

[0036] Specifically, when the document preview system determines the preview scores of each basic preview capability based on document information, the document preview system can not only input the document information of the target document into a preset preview score determination model to determine the preview scores corresponding to each basic preview capability, but can also determine the preview score corresponding to the target document from the preview level table corresponding to each basic preview capability based on the document information of the target document, wherein the preview score determination model is trained based on sample document information, and the preview level table corresponding to each basic preview capability includes the preview scores of the basic preview capability for documents with different document information, and thus the preview score of the target document can be directly queried from the table based on the document information of the target document.

[0037] Step 108: Preview the target document according to the target preview capability, and send the processing result to the target terminal, so that the target terminal previews the document based on the processing result.

[0038] The target preview capability is the basic preview capability whose preview score is greater than a preset threshold.

[0039] After determining the preview scores of the target document for each basic preview capability based on the document information, the document preview system performs preview processing on the target document according to the target preview capability, and sends the processing result to the target terminal, so that the target terminal can preview the document based on the processing result, wherein the target preview capability is a basic preview capability with a preview score greater than a preset threshold, and the threshold is a value set according to the actual situation. That is, after determining the preview score, the document preview system determines the basic preview capability corresponding to the preview score greater than the preset threshold among multiple preview scores, and determines the basic preview capability that meets the conditions as the target preview capability, and then performs preview processing on the target document according to the target preview capability, and determines the processing result, and finally sends the preview processing result to the target terminal, so that the target terminal can preview the document based on the preview processing result. After the target terminal receives the preview processing result sent by the document processing system, it can preview the target document according to the preview processing result.

[0040] Specifically, the number of basic preview capabilities with preview scores greater than a preset threshold may be one or more. When the number of basic preview capabilities with preview scores greater than the preset threshold is one, the basic preview capability is used as the target preview capability, and the target document is previewed based on the target preview capability; when the number of basic preview capabilities with preview scores greater than the preset threshold is multiple, the target document may be previewed based on multiple basic preview capabilities, and then the preview processing results to be sent to the target terminal are determined from the multiple preview processing results. Furthermore, the basic preview capability corresponding to the maximum value among the multiple basic preview capabilities with preview scores greater than the preset threshold may be used as the target preview capability, that is, the basic preview capability with the largest preview score among the multiple basic preview capabilities is determined as the target preview capability, and the target document is previewed based on the basic preview capability.

[0041] More specifically, the document preview system may also include multiple document preview processing modules, and each document preview processing module has a corresponding basic preview capability. When the document preview scheduling module receives a preview request sent by the target terminal, the document preview scheduling module schedules the target document preview processing module, and then previews the target document according to the target preview capability, wherein the target document preview processing module is a document preview scheduling module corresponding to the target preview capability.

[0042] Figure 2 is an information interaction diagram of a document preview method provided in an embodiment of the present application, such as Figure 2As shown, the target user sends a preview request to the document preview scheduling module of the document preview system through the target terminal. The document preview scheduling module obtains the document information of the target document stored in the server background system, and determines the target preview capability according to the document information of the target document. Then, the document preview processing module corresponding to the target preview capability is determined in multiple document preview processing modules to perform preview processing on the target document, and the processing result is sent to the target terminal so that the target terminal previews the target document according to the processing result.

[0043] The document preview method provided by the embodiment of the present invention obtains document information of a target document, wherein the target document is a document for previewing, and the document information includes attribute information of the target document; receives a preview request sent by a target terminal, wherein the preview request is used to request previewing of the target document; obtains a plurality of basic preview capabilities for document previewing, and determines a preview score of each of the basic preview capabilities based on the document information, wherein the preview score is used to characterize the preview level of the basic preview capability for the target document, and the basic preview capability is used to generate preview information of the document; performs preview processing on the target document according to the target preview capability, and sends the processing result to the target terminal, so that the target terminal performs document preview based on the processing result, wherein the target preview capability is the basic preview capability whose preview score is greater than a preset threshold, thereby reducing the time consumption of document previewing and improving the efficiency of document previewing.

[0044] In one implementation, before obtaining the document information of the target document (step 102), steps A1-A3 may be performed:

[0045] Step A1: obtaining a first upload request sent by a first terminal;

[0046] The first terminal is a file upload terminal, and the first upload request is used to represent a request to upload a first document to be uploaded.

[0047] The document preview system obtains a first upload request sent by a first terminal, wherein the first terminal is a file upload terminal, the first upload request is used to represent a request to upload a first document to be uploaded, and the first document is a document requested to be uploaded by the first terminal. In other words, the document preview system obtains a request sent by the first terminal to upload a first document.

[0048] Specifically, when the first terminal needs to upload the first document to the document preview system, the first terminal needs to send a first upload request to the document preview system to upload the first document. The document preview system receives the first upload request sent by the first document. Furthermore, the first upload request sent by the first terminal is an MQ message. After receiving the MQ message sent by the target terminal, the document system parses the MQ message and determines whether the first document is a previewable document.

[0049] Step A2: determining whether the first document is a previewable document based on the first upload request;

[0050] After the document preview system receives the first upload request sent by the first terminal, the document preview system determines whether the first document is a previewable document based on the first upload request.

[0051] Specifically, the first upload request includes description information of the first document, and the description information is used to characterize the relevant information of the first document. After receiving the first upload request, the document preview system can determine whether the first document is a document that can be previewed according to the description information in the first upload request.

[0052] Step A3: If yes, determine that the first document is the target document.

[0053] After the document preview system determines whether the first document is a previewable document, the document preview system determines the document that can be previewed as the target document, and does not process the document that cannot be previewed.

[0054] Specifically, the document preview system may further include a document information extraction module, which may obtain a first upload request sent by the first terminal, determine whether the first document is a previewable document based on the first upload request, and then determine the previewable first document as a target document.

[0055] In one implementation, the step of obtaining the document information of the target document (step 102) may include executing steps B1-B2:

[0056] Step B1: obtaining a second upload request for the target document;

[0057] The second upload request is used to represent a request to upload the target document.

[0058] The document preview system obtains a second upload request for the target document, wherein the second upload request is used to represent a request for uploading the target document. In other words, the document preview system obtains a second upload request when requesting to upload the target document.

[0059] Specifically, when the document preview system receives a request to upload a document, it can determine whether the document requested to be uploaded is a previewable document, and determine the previewable document requested to be uploaded as the target document, and determine the request to upload the previewable document as a second upload request.

[0060] Step B2: downloading the target document from the second terminal based on the second upload request, and acquiring the document information of the target document;

[0061] The second terminal is a terminal that requests to upload the target document.

[0062] After determining the second upload request, the document preview system downloads the target document from the second terminal based on the second upload request and obtains document information of the target document, wherein the second terminal is the terminal that requests to upload the target document. That is, when the document preview system determines that the document requested to be uploaded by the second terminal is a previewable document, i.e., the target document, the document preview system downloads the target document from the second terminal.

[0063] Figure 3 is a flow chart of a second document preview method provided in an embodiment of this specification, such as Figure 3 As shown, the schematic diagram includes:

[0064] Step 302: Obtain a first upload request sent by a first terminal;

[0065] The first terminal is a file upload terminal, and the first upload request is used to represent a request to upload a first document to be uploaded.

[0066] Step 304: Determine whether the first document is a previewable document based on the first upload request;

[0067] Step 306: If yes, determining that the first document is a target document;

[0068] The target document is a document for previewing.

[0069] Step 308: downloading the target document from the second terminal based on the second upload request, and acquiring the document information of the target document;

[0070] The second upload request is used to represent a request to upload the target document, the second terminal is a terminal that requests to upload the target document, and the document information includes attribute information of the target document.

[0071] Step 310: receiving a preview request sent by a target terminal;

[0072] The preview request is used to request a preview of the target document.

[0073] Step 312: obtaining a plurality of basic preview capabilities for document preview, and determining a preview score of each of the basic preview capabilities based on the document information;

[0074] The preview score is used to represent the preview level of the target document by the basic preview capability, and the basic preview capability is used to generate preview information of the document.

[0075] Step 314: Preview the target document according to the target preview capability, and send the processing result to the target terminal, so that the target terminal previews the document based on the processing result.

[0076] The target preview capability is the basic preview capability where the preview score is greater than a preset threshold.

[0077] This embodiment obtains and stores the document information of the target document when the user uploads the target document, and then when a request for previewing the target document is received, it can directly determine the target preview capability based on the document information, and then preview the target document according to the target preview capability, which can reduce the time spent in determining the target preview capability and preview the target document faster.

[0078] In one implementation, after obtaining the second upload request for the target document (step B1), steps C1-C3 may also be performed:

[0079] Step C1: obtaining a history upload request of the second terminal;

[0080] After obtaining the second upload request of the target document, the document preview system obtains the historical upload request of the second terminal, wherein the second terminal is the terminal requesting to upload the target document, and the historical upload request is the upload request sent by the second terminal before sending the second upload request. That is, after the document preview system receives the second upload request sent by the target terminal, the document preview system obtains the historical request sent by the target terminal before sending the second upload request.

[0081] Step C2: determining whether the second upload request is a repeated upload request based on the historical upload request;

[0082] After determining the historical upload request of the second terminal, the document preview system determines whether the second upload request is a repeated upload request based on the historical upload request. That is, the document preview system determines whether a request to upload the target document has been sent before the second terminal sends the second upload request. If so, the second upload request is a repeated upload request, and if not, it is determined to be a non-repeated upload request.

[0083] Step C3: If not, downloading the target document from the second terminal based on the second upload request.

[0084] After determining that the second upload request is a non-duplicate upload request, the document preview system downloads the target terminal from the second terminal based on the second upload request. After determining that the second upload request is a duplicate upload request, the document preview system does not perform a download operation. Specifically, when determining that the target document needs to be downloaded from the second terminal, the document preview system can download the target document from the second terminal based on the physical file ID in the second upload request, that is, the target document download address.

[0085] In one implementation, the downloading of the target document from the second terminal based on the second upload request (step B2) may include executing steps D1-D2:

[0086] Step D1: obtaining multi-thread download information in the second upload request;

[0087] The multi-thread download information is used to represent information required for multi-thread downloading of the target document.

[0088] The document preview system obtains the multi-thread download information in the second upload request, wherein the multi-thread download information is used to represent the information required for multi-thread downloading of the target document, such as download multi-thread information, information extraction multi-thread information, etc. Specifically, the second upload request sent by the target terminal is MQ information, so the MQ information that meets each stage can be queried from the second upload request according to the preset query conditions, and the download multi-thread information and the information extraction multi-thread information can be determined.

[0089] Step D2: Downloading the target document based on the multi-thread download information.

[0090] After obtaining the multi-thread download information, the document preview system downloads the target document based on the multi-thread download information. That is, after determining the information required for multi-thread downloading of the target document in the second upload request, i.e., the multi-thread download information, the document preview system performs multi-thread downloading of the target document from the second terminal based on the multi-thread download information.

[0091] In one implementation, the step of obtaining the document information of the target document (step B2) may further include executing steps E1-E3:

[0092] Step E1: Obtain content information of the target document;

[0093] The document preview system obtains the content information of the target document, wherein the content information of the target document is the actual content information included in the document, for example, when the target document is a word document, the content information can be the text content included in the word document. Specifically, after the target document is downloaded from the second terminal, the document preview system can obtain the content information included in the downloaded target document based on the target document.

[0094] Step E2: determining whether the target document is a previewable document based on the content information;

[0095] After obtaining the content information of the target document, the document preview system determines whether the target document is a previewable document based on the content information. That is, after determining the actual content of the target document, the document preview system can also make another judgment based on the actual content of the target document to determine whether the target document is a previewable document.

[0096] Step E3: If yes, obtain the document information of the target document.

[0097] After determining whether the target document is a previewable document based on the content information of the target document, the document preview system obtains document information of the target document if the target document is a previewable document, and does not process the target document if the target document is a non-previewable document.

[0098] Figure 4 is a schematic diagram of information interaction of a second document preview system provided in an embodiment of the present application, such as Figure 4 As shown, after the document information extraction module receives a request for uploading a target document from the second terminal through the server backend system, the target document is downloaded through the multi-threaded download information in the request, and then the document information extraction module obtains the document information of the target document. Then, after the document preview scheduling module receives the preview request sent by the target terminal, the target preview capability is determined according to the document information, and then the document preview processing module corresponding to the target preview capability is determined from multiple document preview processing modules to perform preview processing on the target document, and the processing result is sent to the target terminal, so that the target terminal previews the target document according to the processing result.

[0099] In one implementation, after receiving the preview request sent by the target terminal (step 104), steps F1-F2 may also be performed:

[0100] Step F1: determining whether the target terminal has preview permission based on the preview request;

[0101] After obtaining the preview request sent by the target terminal, the document preview system can directly preview the target document based on the target preview capability, or can first authenticate the target document and then preview the target document after the authentication operation passes.

[0102] Specifically, after receiving the preview request from the target terminal, the document preview system may determine whether the target terminal has the preview permission based on the ID information used to characterize the identity of the target terminal in the preview request.

[0103] Step F2: If yes, then obtain a plurality of the basic preview capabilities for document preview, and determine the preview score of each of the basic preview capabilities based on the document information.

[0104] After determining that the target terminal has the authority to preview the target document, the document preview system obtains multiple basic preview capabilities for document preview and determines the preview score of each basic preview capability based on the document information. After determining that the target terminal does not have the authority to preview the target document, the document preview system sends information indicating that the target terminal does not have the preview authority to the target terminal.

[0105] Figure 5 is a flowchart of a third document preview method provided in an embodiment of this specification, such as Figure 5 As shown, the schematic diagram includes:

[0106] Step 502: Obtain a second upload request for the target document;

[0107] The target document is a document for previewing, and the second upload request is used to represent a request to upload the target document.

[0108] Step 504: Obtain the historical upload request of the second terminal;

[0109] The second terminal is a terminal that requests to upload the target document.

[0110] Step 506: Determine whether the second upload request is a repeated upload request based on the historical upload request;

[0111] Step 508: If not, obtaining the multi-thread download information in the second upload request;

[0112] The multi-thread download information is used to represent information required for multi-thread downloading of the target document.

[0113] Step 510: Downloading the target document based on the multi-thread download information;

[0114] Step 512: Obtain content information of the target document;

[0115] Step 514: Determine whether the target document is a previewable document based on the content information;

[0116] Step 516: If yes, then obtain the document information of the target document;

[0117] The document information includes attribute information of the target document.

[0118] Step 518: receiving a preview request sent by the target terminal;

[0119] The preview request is used to request a preview of the target document.

[0120] Step 520: Acquire a plurality of basic preview capabilities for document preview, and determine a preview score of each of the basic preview capabilities based on the document information;

[0121] The preview score is used to represent the preview level of the target document by the basic preview capability, and the basic preview capability is used to generate preview information of the document.

[0122] Step 522: Preview the target document according to the target preview capability, and send the processing result to the target terminal, so that the target terminal previews the document based on the processing result.

[0123] The target preview capability is the basic preview capability whose preview score is greater than a preset threshold.

[0124] This embodiment can improve the download speed of the target document by obtaining the multi-thread download information in the second upload request and downloading the target document based on the multi-thread download information.

[0125] In one implementation, the determining of the preview score of each basic preview capability based on the document information (step 106) may include executing steps G1-G3:

[0126] Step G1: Obtain document sub-information included in the document information;

[0127] The document sub-information includes one or more of document type information, document size information and document complexity information.

[0128] The document preview system obtains document sub-information included in the document information, wherein the document information includes one or more of document type information, document size information, and document complexity information. That is, the document system determines one or more of the type information, size information, and complexity information of the target document based on the document information of the target document, wherein the complexity information of the target document can be determined by calculation based on the type information and size information of the target document, and can also be determined based on the content of the target document.

[0129] Step G2: determining a document preview sub-score of the target document according to the basic preview capability based on the document sub-information;

[0130] The document preview sub-score is used to represent the preview level of the target document based on the basic preview capability determined based on the document sub-information.

[0131] After determining the document sub-information of the target document, the document preview system determines the document preview sub-score of the target document based on the basic preview capability, wherein the document preview sub-score is used to characterize the preview level of the target document based on the basic preview capability determined based on the document sub-information. That is, when determining the preview score of the target document based on each basic preview capability, the sub-preview scores of the sub-information of the target document based on the preview capability can be determined first. For example, when the document sub-information is document type information, the document preview system can determine the preview level of the basic preview capability for the document of this type based on the document type information, and then determine the preview score of the target document. When the document sub-information is document size information and document complexity information, the document preview system can determine the preview level of the basic preview capability for the document of this size and complexity based on the document size information and document complexity information, and then determine the preview score of the target document.

[0132] Specifically, when determining the preview capability of the basic preview capability for the document sub-information of the target document, the document sub-information of the target document can be input into a preset preview sub-score determination module to determine the preview sub-score corresponding to the basic preview capability, and the document preview sub-score corresponding to the sub-information can also be determined from the sub-information preview level table based on the target document sub-information, wherein the preview sub-score determination module is trained and determined based on sample document sub-information, and each sub-information preview level table includes the preview sub-scores of the basic preview capability for different document sub-information, and thus the preview sub-score of the target document can be directly queried from the table based on the document sub-information of the target document.

[0133] More specifically, when determining the document preview sub-score corresponding to the document type information, that is, S type When scoring, you can preview and test documents of various formats through various capabilities to get the corresponding file format processing capability score S type; Determine the document preview sub-score corresponding to the document size information, that is, S size When scoring, you can preview and test documents of various sizes according to each capability to get the document size processing capability score S corresponding to each capability. size ; Determine the document preview sub-score corresponding to the document complexity information, that is, S cprt When scoring, the complexity score S can be calculated based on the document content information cprt .

[0134] Step G3: Determine the preview score based on the document preview sub-score.

[0135] After determining the document preview sub-scores, the document preview system determines a preview score for the target document based on the document preview sub-scores.

[0136] Specifically, the number of document preview sub-scores may be one or more. When the number of document preview sub-scores is one, the document preview sub-score may be determined as the preview score of the target document. When the number of document preview sub-scores is more than one, the multiple document preview sub-scores may be averaged, and the average value obtained may be used as the preview score of the target document. Weights may also be set for each document preview sub-score in advance, and then each document preview sub-score may be weighted, and the weighted value may be determined as the preview score of the target document.

[0137] In one implementation, steps H1-H3 may also be performed:

[0138] Step H1: Acquire network information of the basic preview capability;

[0139] Among them, the network information includes one or more of bandwidth information, load information and storage performance information. The bandwidth information is used to characterize the network bandwidth information between the basic preview capability and the storage location of the target document. The load information is used to characterize the current load status information of the basic preview capability. The storage performance information is used to characterize the performance information of the storage system to which the basic preview capability belongs.

[0140] The document preview system obtains network information of each basic preview capability, wherein the network information includes one or more of bandwidth information, load information and storage performance information of the basic preview capability, the bandwidth information is the network bandwidth information of the basic preview capability to the storage location of the target document in the server, the load information is the load status information of the current status of the basic preview capability, and the storage performance information is the storage performance used by the preview capability.

[0141] Step H2: determining a network preview sub-score of the target document for the basic preview capability based on the network information;

[0142] The network preview sub-score is used to represent the preview level of the target document based on the basic preview capability determined based on the network information.

[0143] After determining the network information of the basic preview capabilities, the document preview system determines network preview sub-scores for each basic preview capability for the target document based on the network information, wherein the network preview sub-scores are used to characterize the preview level of the target document for the basic preview capabilities determined based on the network information.

[0144] Specifically, when determining the network preview sub-score of the target document for the basic preview capability based on network information, not only can the network information of the basic preview capability be input into a preset network preview sub-score determination model to determine the network preview sub-score corresponding to each basic preview capability, but the preview sub-score corresponding to the target document can also be determined from a preset network information preview level table based on the network information, wherein the network preview sub-score determination model is trained based on sample network information, and each network information preview level table includes the preview score of the target document for the basic preview capability under different network information, and thus the network preview sub-score of the basic preview capability can be directly queried from the network information preview level table based on the network information.

[0145] More specifically, in determining the network preview sub-score corresponding to the bandwidth information, that is, S ntwk When scoring, it can be determined based on the preview capability computing resources and the network bandwidth score where the original document is stored; when determining the network preview sub-score corresponding to the load information, that is, S load When scoring, the current load score of the resource can be determined based on the preview capability calculation; when determining the network preview sub-score corresponding to the storage performance information, that is, S stor When scoring, the IO performance score of the storage used by the preview capability calculation resource may be determined.

[0146] Step H3: Determine the preview score based on the document preview sub-score and the network preview sub-score.

[0147] After determining the network preview sub-score, the document preview model can determine the preview score based on the document preview sub-score and the network preview sub-score. Specifically, when determining the preview score based on the document preview sub-score and the network preview sub-score, the document preview sub-score and the network preview sub-score can be averaged and the average value can be used as the preview score. The document preview sub-score and the network preview sub-score can also be weighted and the weighted result can be used as the preview score.

[0148] Specifically, when determining the preview score based on multiple document preview sub-scores and multiple network preview sub-scores, the multiple document preview sub-scores and multiple network preview sub-scores may be weighted respectively, and the weighted calculation results may be determined as the preview scores of the respective basic preview capabilities. For example, the calculation formula for the preview score of the target document by the respective basic preview capabilities is:

[0149] s res =∑(w i *s i )

[0150] Among them, w is the weight coefficient, and i is the weight dimension of each basic preview capability (such as the document type information type of the target document, the document size information size of the target document, the document complexity information cprt of the target document, the bandwidth information ntwk of the basic preview capability, the load information load of the basic preview capability, and the storage performance information stor of the basic preview capability). After determining the preview scores of each basic preview capability, the document preview system determines the basic preview capability with the highest score, and performs a preview operation on the target document based on the basic preview capability.

[0151] In one implementation, the receiving of the preview request sent by the target terminal (step 104) may include executing step I1:

[0152] Step I1: receiving a preview address acquisition request sent by the target terminal;

[0153] The preview address acquisition request is used to represent acquisition of the preview address of the target document.

[0154] The preview request sent by the target terminal can be a request for requesting the document preview system to send a preview file, or a request for requesting the document preview system to send a preview address. When the target terminal requests the document preview system to send a preview address, the document preview system receives the preview address acquisition request sent by the target terminal, wherein the preview address acquisition request is used to indicate that the target terminal requests to obtain the preview address of the target document.

[0155] The target document is previewed according to the target preview capability, and the processing result is sent to the target terminal, so that the target terminal previews the document based on the processing result (step 108), and steps I2-I3 may be executed:

[0156] Step I2: performing a preview operation on the target document according to the target preview capability, and determining a preview uniform resource locator URL corresponding to the target document;

[0157] After receiving the preview address acquisition request sent by the target terminal, the document preview system performs preview processing on the target document according to the target preview capability, and determines a preview URL corresponding to the target document requested for preview by the target terminal.

[0158] Step I3: Send the preview URL to the target terminal, so that the target terminal previews the document based on the preview URL.

[0159] After determining the preview URL, the document preview system sends the determined preview URL to the target terminal. The target terminal receives the preview URL sent by the document preview system and previews the target document according to the preview URL.

[0160] Figure 6 is a flowchart of a fourth document preview method provided in an embodiment of this specification, such as Figure 6 As shown, the schematic diagram includes:

[0161] Step 602: Obtain document information of the target document;

[0162] The target document is a document for previewing, and the document information includes attribute information of the target document.

[0163] Step 604: receiving a preview address acquisition request sent by a target terminal;

[0164] The preview address acquisition request is used to represent acquisition of the preview address of the target document.

[0165] Step 606: Acquire multiple basic preview capabilities for document preview;

[0166] The basic preview capability is used to generate preview information of the document.

[0167] Step 608: Obtain document sub-information included in the document information;

[0168] The document sub-information includes one or more of document type information, document size information and document complexity information.

[0169] Step 610: Determine a document preview sub-score of the target document based on the basic preview capability based on the document sub-information;

[0170] The document preview sub-score is used to represent the preview level of the target document based on the basic preview capability determined based on the document sub-information.

[0171] Step 612: Obtain network information of the basic preview capability;

[0172] Among them, the network information includes one or more of bandwidth information, load information and storage performance information. The bandwidth information is used to characterize the network bandwidth information between the basic preview capability and the storage location of the target document. The load information is used to characterize the current load status information of the basic preview capability. The storage performance information is used to characterize the performance information of the storage system to which the basic preview capability belongs.

[0173] Step 614: Determine a network preview sub-score of the target document for the basic preview capability based on the network information;

[0174] The network preview sub-score is used to represent the preview level of the target document based on the basic preview capability determined based on the network information.

[0175] Step 616: Determine a preview score based on the document preview sub-score and the network preview sub-score;

[0176] The preview score is used to represent the preview level of the target document by the basic preview capability.

[0177] Step 618: Preview the target document according to the target preview capability, and determine a preview uniform resource locator URL corresponding to the target document;

[0178] The target preview capability is the basic preview capability whose preview score is greater than a preset threshold.

[0179] Step 620: Send the preview URL to the target terminal, so that the target terminal previews the document based on the preview URL.

[0180] This embodiment determines the target preview capability by determining the network information based on the document information of the target document and the basic preview capability, and can determine the basic preview capability for document preview based on multi-angle information, thereby reducing the time consumption of document preview and improving the efficiency of document preview.

[0181] It should be noted that the document preview method provided in the embodiment of the present application can be executed by a document preview device or a control module in the document preview device for executing the document preview method. In the embodiment of the present application, the document preview device provided in the embodiment of the present application is described by taking the document preview method executed by the document preview device as an example.

[0182] Figure 7 is a schematic diagram of the structure of a document preview device according to an embodiment of the present invention. Figure 7 As shown, the document preview device includes: a first acquisition module 702 , a first receiving module 704 , a second acquisition module 706 , and a first sending module 708 .

[0183] A first acquisition module 702 is used to acquire document information of a target document, where the target document is a document for previewing, and the document information includes attribute information of the target document;

[0184] A first receiving module 704 is used to receive a preview request sent by a target terminal, where the preview request is used to request a preview of the target document;

[0185] A second acquisition module 706 is used to acquire a plurality of basic preview capabilities for document preview, and determine a preview score of each basic preview capability based on the document information, wherein the preview score is used to represent the preview level of the basic preview capability for the target document, and the basic preview capability is used to generate preview information of the document;

[0186] The first sending module 708 is used to perform preview processing on the target document according to a target preview capability, and send the processing result to the target terminal, so that the target terminal previews the document based on the processing result. The target preview capability is the basic preview capability with a preview score greater than a preset threshold.

[0187] The document preview device in the embodiment of the present application can be a device, or a component, integrated circuit, or chip in a terminal. The device can be a mobile electronic device or a non-mobile electronic device. Exemplarily, the mobile electronic device can be a mobile phone, a tablet computer, a laptop computer, a PDA, an in-vehicle electronic device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook, or a personal digital assistant (PDA), etc. The non-mobile electronic device can be a server, a network attached storage (NAS), a personal computer (PC), a television (TV), a teller machine or a self-service machine, etc., which is not specifically limited in the embodiment of the present application.

[0188] The document preview device in the embodiment of the present application may be a device having an operating system. The operating system may be an Android operating system, an iOS operating system, or other possible operating systems, which are not specifically limited in the embodiment of the present application.

[0189] The document preview device provided in the embodiment of the present application can achieve Figures 1 to 6 To avoid repetition, the various processes implemented in the method embodiment are not described here.

[0190] Based on the same technical concept, an embodiment of the present application further provides an electronic device, which is used to execute the above document preview method. Figure 8 A schematic diagram of the structure of an electronic device for implementing various embodiments of the present application. The electronic device may have relatively large differences due to different configurations or performances, and may include a processor (processor) 802, a communication interface (Communications Interface) 804, a memory (memory) 806 and a communication bus 808, wherein the processor 802, the communication interface 804, and the memory 806 communicate with each other through the communication bus 808. The processor 802 may call a computer program stored in the memory 806 and executable on the processor 802 to perform the following steps:

[0191] Acquire document information of a target document, where the target document is a document for previewing, and the document information includes attribute information of the target document;

[0192] Receiving a preview request sent by a target terminal, wherein the preview request is used to request a preview of the target document;

[0193] Acquire multiple basic preview capabilities for document preview, and determine a preview score of each basic preview capability based on the document information, wherein the preview score is used to represent the preview level of the basic preview capability for the target document, and the basic preview capability is used to generate preview information of the document;

[0194] The target document is previewed according to a target preview capability, and the processing result is sent to the target terminal, so that the target terminal previews the document based on the processing result. The target preview capability is the basic preview capability with a preview score greater than a preset threshold.

[0195] In one implementation, before acquiring the document information of the target document, the method further includes:

[0196] Obtaining a first upload request sent by a first terminal, where the first terminal is a file upload terminal, and the first upload request is used to represent a request to upload a first document to be uploaded;

[0197] determining whether the first document is a previewable document based on the first upload request;

[0198] If so, the first document is determined to be the target document.

[0199] In one implementation, obtaining document information of a target document includes:

[0200] Obtaining a second upload request for the target document, where the second upload request is used to represent a request to upload the target document;

[0201] The target document is downloaded from a second terminal based on the second upload request, and the document information of the target document is acquired, where the second terminal is a terminal requesting to upload the target document.

[0202] In one implementation, after obtaining the second upload request for the target document, the method further includes:

[0203] Obtaining a history upload request of the second terminal;

[0204] determining whether the second upload request is a repeated upload request based on the historical upload request;

[0205] If not, downloading the target document from the second terminal based on the second upload request.

[0206] In one implementation, downloading the target document from the second terminal based on the second upload request includes:

[0207] Acquire multi-thread download information in the second upload request, where the multi-thread download information is used to represent information required for multi-thread downloading of the target document;

[0208] The target document is downloaded based on the multi-thread download information.

[0209] In one implementation, the acquiring the document information of the target document includes:

[0210] Acquire content information of the target document;

[0211] Determining whether the target document is a previewable document based on the content information;

[0212] If so, the document information of the target document is obtained.

[0213] In one implementation, after receiving the preview request sent by the target terminal, the method further includes:

[0214] Determining whether the target terminal has preview permission based on the preview request;

[0215] If so, a plurality of the basic preview capabilities for document preview are acquired, and the preview score of each of the basic preview capabilities is determined based on the document information.

[0216] In one implementation, determining the preview score of each of the basic preview capabilities based on the document information includes:

[0217] Acquire document sub-information included in the document information, where the document sub-information includes one or more of document type information, document size information, and document complexity information;

[0218] Determine a document preview sub-score of the target document based on the basic preview capability, wherein the document preview sub-score is used to represent a preview level of the target document based on the basic preview capability determined based on the document sub-information;

[0219] The preview score is determined based on the document preview sub-score.

[0220] In one implementation, the method further includes:

[0221] Acquire network information of the basic preview capability, the network information including one or more of bandwidth information, load information and storage performance information, the bandwidth information is used to characterize network bandwidth information of the basic preview capability and a storage location where the target document is located, the load information is used to characterize current load status information of the basic preview capability, and the storage performance information is used to characterize performance information of a storage system to which the basic preview capability belongs;

[0222] Determine a network preview sub-score of the target document for the basic preview capability based on the network information, wherein the network preview sub-score is used to represent a preview level of the target document for the basic preview capability determined based on the network information;

[0223] The preview score is determined based on the document preview sub-score and the network preview sub-score.

[0224] In one implementation, the receiving a preview request sent by a target terminal includes:

[0225] Receiving a preview address acquisition request sent by the target terminal, wherein the preview address acquisition request is used to represent acquisition of a preview address of the target document;

[0226] The step of performing preview processing on the target document according to the target preview capability and sending the processing result to the target terminal so that the target terminal performs document preview based on the processing result includes:

[0227] Performing a preview operation on the target document according to the target preview capability, and determining a preview uniform resource locator URL corresponding to the target document;

[0228] The preview URL is sent to the target terminal, so that the target terminal previews the document based on the preview URL.

[0229] The specific execution steps can refer to the various steps of the above-mentioned document preview method embodiment, and can achieve the same technical effect. To avoid repetition, they will not be repeated here.

[0230] It should be noted that the electronic devices in the embodiments of the present application include: servers, terminals, or other devices except terminals.

[0231] The above electronic device structure does not constitute a limitation on the electronic device. The electronic device may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently. For example, the input unit may include a graphics processing unit (GPU) and a microphone, and the display unit may be configured with a display panel in the form of a liquid crystal display, an organic light-emitting diode, etc. The user input unit includes a touch panel and at least one of other input devices. The touch panel is also called a touch screen. Other input devices may include, but are not limited to, a physical keyboard, function keys (such as volume control buttons, switch buttons, etc.), a trackball, a mouse, and a joystick, which will not be repeated here.

[0232] The memory can be used to store software programs and various data. The memory may mainly include a first storage area for storing programs or instructions and a second storage area for storing data, wherein the first storage area may store an operating system, an application program or instructions required for at least one function (such as a sound playback function, an image playback function, etc.), etc. In addition, the memory may include a volatile memory or a non-volatile memory, or the memory may include both volatile and non-volatile memories. Among them, the non-volatile memory may be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. Volatile memory can be random access memory (RAM), static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDRSDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM) and direct memory bus random access memory (DRRAM).

[0233] The processor may include one or more processing units; optionally, the processor integrates an application processor and a modem processor, wherein the application processor mainly processes operations related to the operating system, user interface, and application programs, and the modem processor mainly processes wireless communication signals, such as a baseband processor. It is understandable that the modem processor may not be integrated into the processor.

[0234] An embodiment of the present application also provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, each process of the above-mentioned document preview method embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.

[0235] The processor is a processor in the electronic device described in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a computer read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.

[0236] An embodiment of the present application also provides a computer program product, which, when executed by a processor, implements the various processes of the above-mentioned transmission power determination method embodiment and can achieve the same technical effect. To avoid repetition, it will not be repeated here.

[0237] An embodiment of the present application further provides a chip, which includes a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run programs or instructions to implement the various processes of the above-mentioned document preview method embodiment, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.

[0238] It should be understood that the chip mentioned in the embodiments of the present application can also be called a system-level chip, a system chip, a chip system or a system-on-chip chip, etc.

[0239] It should be noted that, in this article, the terms "comprise", "include" or any other variant thereof are intended to cover non-exclusive inclusion, so that the process, method, article or device including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise one..." do not exclude the presence of other identical elements in the process, method, article or device including the element. In addition, it should be pointed out that the scope of the methods and devices in the embodiments of the present application is not limited to performing functions in the order shown or discussed, and may also include performing functions in a substantially simultaneous manner or in reverse order according to the functions involved, for example, the described method may be performed in an order different from that described, and various steps may also be added, omitted, or combined. In addition, the features described with reference to certain examples may be combined in other examples.

[0240] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, a magnetic disk, or an optical disk), and includes a number of instructions for a terminal (which can be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to execute the methods described in each embodiment of the present application.

[0241] The embodiments of the present application are described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of the present application, ordinary technicians in this field can also make many forms without departing from the purpose of the present application and the scope of protection of the claims, all of which are within the protection of the present application.

Claims

1. A document preview method, comprising: Acquire document information of a target document, where the target document is a document for previewing, and the document information includes attribute information of the target document; Receiving a preview request sent by a target terminal, wherein the preview request is used to request a preview of the target document; Acquire multiple basic preview capabilities for document preview, and determine a preview score of each basic preview capability based on the document information, wherein the preview score is used to represent the preview level of the basic preview capability for the target document, and the basic preview capability is used to generate preview information of the document; The target document is previewed according to a target preview capability, and the processing result is sent to the target terminal, so that the target terminal previews the document based on the processing result. The target preview capability is the basic preview capability with a preview score greater than a preset threshold.

2. According to the method of claim 1, before obtaining the document information of the target document, the method further comprises: Obtaining a first upload request sent by a first terminal, where the first terminal is a file upload terminal, and the first upload request is used to represent a request to upload a first document to be uploaded; determining whether the first document is a previewable document based on the first upload request; If so, the first document is determined to be the target document.

3. According to the method of claim 1, the step of obtaining document information of the target document comprises: Obtaining a second upload request for the target document, where the second upload request is used to represent a request to upload the target document; The target document is downloaded from a second terminal based on the second upload request, and the document information of the target document is acquired, where the second terminal is a terminal that requests to upload the target document.

4. The method according to claim 3, after obtaining the second upload request of the target document, the method further comprises: Obtaining a history upload request of the second terminal; determining whether the second upload request is a repeated upload request based on the historical upload request; If not, downloading the target document from the second terminal based on the second upload request.

5. The method according to claim 3, wherein downloading the target document from the second terminal based on the second upload request comprises: Acquire multi-thread download information in the second upload request, where the multi-thread download information is used to represent information required for multi-thread downloading of the target document; The target document is downloaded based on the multi-thread download information.

6. The method according to claim 3, wherein the step of obtaining the document information of the target document comprises: Acquire content information of the target document; Determining whether the target document is a previewable document based on the content information; If so, the document information of the target document is obtained.

7. The method according to claim 1, after receiving the preview request sent by the target terminal, the method further comprises: Determining whether the target terminal has preview permission based on the preview request; If so, a plurality of the basic preview capabilities for document preview are acquired, and the preview score of each of the basic preview capabilities is determined based on the document information.

8. The method according to claim 1, wherein determining the preview score of each basic preview capability based on the document information comprises: Acquire document sub-information included in the document information, where the document sub-information includes one or more of document type information, document size information, and document complexity information; Determine a document preview sub-score of the target document based on the basic preview capability, wherein the document preview sub-score is used to represent a preview level of the target document based on the basic preview capability determined based on the document sub-information; The preview score is determined based on the document preview sub-score.

9. The method according to claim 8, further comprising: Acquire network information of the basic preview capability, the network information including one or more of bandwidth information, load information and storage performance information, the bandwidth information is used to characterize network bandwidth information of the basic preview capability and a storage location where the target document is located, the load information is used to characterize current load status information of the basic preview capability, and the storage performance information is used to characterize performance information of a storage system to which the basic preview capability belongs; Determine a network preview sub-score of the target document for the basic preview capability based on the network information, wherein the network preview sub-score is used to represent a preview level of the target document for the basic preview capability determined based on the network information; The preview score is determined based on the document preview sub-score and the network preview sub-score.

10. The method according to claim 1, wherein receiving a preview request sent by a target terminal comprises: Receiving a preview address acquisition request sent by the target terminal, wherein the preview address acquisition request is used to represent acquisition of a preview address of the target document; The step of performing preview processing on the target document according to the target preview capability and sending the processing result to the target terminal so that the target terminal performs document preview based on the processing result includes: Performing a preview operation on the target document according to the target preview capability, and determining a preview uniform resource locator URL corresponding to the target document; The preview URL is sent to the target terminal, so that the target terminal previews the document based on the preview URL.