CN110928845B - Online document export method and device, computer equipment and readable storage medium - Google Patents

Online document export method and device, computer equipment and readable storage medium Download PDF

Info

Publication number
CN110928845B
CN110928845B CN201811095358.1A CN201811095358A CN110928845B CN 110928845 B CN110928845 B CN 110928845B CN 201811095358 A CN201811095358 A CN 201811095358A CN 110928845 B CN110928845 B CN 110928845B
Authority
CN
China
Prior art keywords
document
data
module
sent
export
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201811095358.1A
Other languages
Chinese (zh)
Other versions
CN110928845A (en
Inventor
李亮
田园
廖泽衔
许扬
程瑞
敖文亮
马冲
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201811095358.1A priority Critical patent/CN110928845B/en
Publication of CN110928845A publication Critical patent/CN110928845A/en
Application granted granted Critical
Publication of CN110928845B publication Critical patent/CN110928845B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The application relates to an online document exporting method, an online document exporting device, a computer device and a readable storage medium, wherein the method comprises the following steps: receiving a document export request, wherein the document export request carries a document identifier and a terminal identifier; acquiring background storage document data corresponding to the document identification; simulating to open a to-be-sent front-end document corresponding to the background stored document data according to the background stored document data to obtain a simulation result; and when the simulation result is that the document can be normally opened, sending the front-end document to be sent corresponding to the document identifier to the request terminal corresponding to the terminal identifier. The method comprises the steps of utilizing a background to store document data, simulating the opening operation of the exported to-be-sent front-end document in advance, and sending the to-be-sent front-end document to a request terminal under the condition that the to-be-sent front-end document is determined to be normally opened, so that the request terminal can open the to-be-sent front-end document to be checked or edited, and the effectiveness of the exported document is ensured.

Description

Online document export method and device, computer equipment and readable storage medium
Technical Field
The present application relates to the field of online document processing technologies, and in particular, to an online document export method, an online document export device, a computer device, and a readable storage medium.
Background
The online document application is an application which can support multiple people to edit a document online at the same time and store the document in real time at the cloud. Through online document application, the work of multi-person collaborative draft writing, scheme discussion, conference recording, data sharing and the like can be realized without repeatedly receiving and sending files, and the document processing efficiency is greatly improved. In order to facilitate offline viewing or editing of the content of the online document, the online document is usually exported to a local storage and opened by local office software to perform related operations.
However, a document exported by the existing online document export method has a problem that it cannot be opened or is opened incorrectly when opened using local office software, and it is difficult to ensure the validity of the exported document.
Disclosure of Invention
Based on this, it is necessary to provide an online document export method, apparatus, computer device and readable storage medium for solving the technical problem that the validity of the exported document is difficult to guarantee by the existing online document export method.
An online document export method, the method comprising:
receiving a document export request, wherein the document export request carries a document identifier and a terminal identifier;
acquiring background storage document data corresponding to the document identifier;
simulating and opening a to-be-sent front-end document corresponding to the background storage document data according to the background storage document data to obtain a simulation result;
and when the simulation result is that the document can be normally opened, sending the to-be-sent front-end document corresponding to the document identifier to a request terminal corresponding to the terminal identifier.
An online document export apparatus, the apparatus comprising:
the request receiving module is used for receiving a document export request, and the document export request carries a document identifier and a terminal identifier;
the document data acquisition module is used for acquiring background storage document data corresponding to the document identification;
the simulation module is used for simulating and opening a to-be-sent front-end document corresponding to the background storage document data according to the background storage document data to obtain a simulation result;
and the document export module is used for sending the to-be-sent front-end document corresponding to the document identifier to the request terminal corresponding to the terminal identifier when the simulation result is that the document can be normally opened.
A computer device comprising a memory and a processor, the memory storing a computer program that, when executed by the processor, causes the processor to perform the steps of:
receiving a document export request, wherein the document export request carries a document identifier and a terminal identifier;
acquiring background storage document data corresponding to the document identifier;
simulating and opening a to-be-sent front-end document corresponding to the background storage document data according to the background storage document data to obtain a simulation result;
and when the simulation result is that the document can be normally opened, sending the to-be-sent front-end document corresponding to the document identifier to a request terminal corresponding to the terminal identifier.
A computer-readable storage medium storing a computer program which, when executed by a processor, causes the processor to perform the steps of:
receiving a document export request, wherein the document export request carries a document identifier and a terminal identifier;
acquiring background storage document data corresponding to the document identifier;
simulating and opening a to-be-sent front-end document corresponding to the background storage document data according to the background storage document data to obtain a simulation result;
and when the simulation result is that the document can be normally opened, sending the to-be-sent front-end document corresponding to the document identifier to a request terminal corresponding to the terminal identifier.
According to the online document exporting method, the online document exporting device, the computer equipment and the readable storage medium, when a document exporting request carrying document identification is received, background storage document data corresponding to the document identification is obtained, a to-be-sent front-end document corresponding to the background storage document data is simulated to be opened, a simulation result is obtained, and when the simulation result is normally opened, the to-be-sent front-end document corresponding to the document identification is sent to the request terminal. The document data is stored in the background, the opening operation of the exported to-be-sent front-end document is simulated in advance, and the to-be-sent front-end document is sent to the request terminal under the condition that the to-be-sent front-end document is determined to be normally opened, so that the request terminal can open the to-be-sent front-end document to be checked or edited, and the effectiveness of the exported document can be ensured to a certain extent.
Drawings
FIG. 1 is a diagram of an application environment of an online document export method in one embodiment;
FIG. 2 is a flowchart illustrating an online document export method in one embodiment;
FIG. 3 is a diagram of an interface to trigger an online document export event, under an embodiment;
FIG. 4 is a flowchart illustrating processing steps performed when simulation results include hidden danger information according to an embodiment;
FIG. 5 is a schematic diagram of an interface for a prompt dialog based on simulation results, under an embodiment;
FIG. 6 is a flowchart showing a simulated document opening step in one embodiment;
FIG. 7 is a flowchart illustrating the step of converting the format of background stored document data in one embodiment;
FIG. 8 is a flowchart illustrating the table format conversion processing steps in one embodiment;
FIG. 9 is a flowchart illustrating the table format conversion processing steps in one embodiment;
FIG. 10 is a flowchart illustrating a pending front end document sending step in one embodiment;
FIG. 11 is a flow diagram illustrating the process steps for deriving a time delay in one embodiment;
FIG. 12 is a flowchart of the export progress processing steps in one embodiment;
FIG. 13 is an interface diagram illustrating exporting progress in one embodiment;
FIG. 14 is a flowchart illustrating a background stored document data retrieval step in one embodiment;
FIG. 15 is a timing diagram of an online document export method in one embodiment;
FIG. 16 is a block diagram showing the construction of an online document deriving apparatus according to an embodiment;
FIG. 17 is a block diagram of a computer device in one embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
FIG. 1 is a diagram of an application environment of a method for online document export in one embodiment. Referring to fig. 1, the online document export method is applied to an online document export system. The online document export system includes a requesting terminal 102 and a server 104. The requesting terminal 102 and the server 104 are connected via a network. The request terminal 102 may be a desktop terminal or a mobile terminal, and the mobile terminal may be at least one of a mobile phone, a tablet computer, a notebook computer, and the like. The server 104 may be implemented as a stand-alone server or as a server cluster comprised of multiple servers. The server 104 includes a gateway interface for communicating with the requesting terminal 102 and a document export service.
As shown in FIG. 2, in one embodiment, an online document export method is provided. The embodiment is mainly illustrated by applying the method to the server 104 in fig. 1. Referring to fig. 2, the online document export method specifically includes the following steps:
s202, receiving a document export request, wherein the document export request carries a document identifier and a terminal identifier.
Wherein the document export request is a request issued when a document export event is triggered by a user through a requesting terminal. As shown in fig. 3, when a user clicks an export option of "save as local file" in an online document tool, a document export event is triggered, a request terminal generates a document export request according to the trigger event and sends the document export request to a server, and the server receives the document export request sent by the request terminal.
The document identifier is symbolic information used for representing an online document which needs to be derived currently, and corresponds to the online document one to one. For example, the name, ID (Identity), and the like of the current online document may be used. The document identification can confirm the related document data of the online document needing to be exported currently. The terminal identifier is symbol information indicating a requesting terminal, and may be, for example, a name, an ID, and the like of the requesting terminal, and corresponds to the terminal one to one.
And S204, acquiring background storage document data corresponding to the document identification.
The background storage document data refers to document data of an online document expressed according to a background (server) specific document data storage format. In the server, the data of the online document is usually stored in a specific format different from that of the front end, and the format is usually characterized by easy writing and parsing, high data transmission efficiency and the like. For example, the json (javascript Object notation) format is a lightweight data exchange format, and a text format completely independent of a programming language is adopted to store and represent data, so that the compact and clear hierarchical structure makes json an ideal data exchange language and serves as a storage format of an online document in a server.
It is understood that there is a one-to-one correspondence between the background stored document data of each document and the document identification. In this embodiment, the document data stored in the background is located by the document identifier, and the document data stored in the background corresponding to the document identifier is acquired.
And S206, simulating and opening the front-end document to be sent corresponding to the background stored document data according to the background stored document data to obtain a simulation result.
Specifically, when a received document export request is received each time, a simulation tool is called, according to the background stored document data, a to-be-sent front-end document corresponding to the background stored document data is opened by adopting an offline office application in a simulation mode, and a simulation result is obtained. The offline office application refers to office software which can be used offline, such as office software like word and Excel, and office software like wps and Adobe Acrobat. The simulation result refers to information about whether the document can be opened normally, and includes, for example: and normal opening and hidden danger information can be realized. Normally openable means that all simulated offline office applications can normally open the document. The hidden danger information refers to the related information that one or more offline office applications cannot open the document and can be normally opened after the offline office applications are required to be repaired.
By using the background stored document data to simulate the opening operation of the corresponding to-be-sent front-end document, namely the opening operation of the document at the front end (such as a request terminal), whether the to-be-sent front-end document can be normally opened at the request terminal can be known in advance according to the simulation result so as to be exported as required. The simulation opening refers to the process of simulating the opening operation of the corresponding to-be-sent front-end document by utilizing the background storage document data, and the input data during the simulation of the opening operation of the document is the background storage document data instead of the to-be-sent front-end document.
In one embodiment, the simulation tool is an expose component library. The Aspose component library is a set of office document management scheme and supports relevant operations including opening operations on office documents such as Word, Excel, PowerPoint, Project and the like and PDF documents. In this embodiment, each time a document export request is received, the expose component library is called, the offline office application is simulated to open the to-be-sent front-end document corresponding to the background storage document data, and a simulation result is obtained, so that whether the corresponding to-be-sent front-end document is continuously exported or hidden danger information of a user is prompted according to the simulation result, and whether the to-be-sent front-end document is continuously exported or not is determined according to feedback information corresponding to the hidden danger information. It is understood that in other embodiments, various other simulation tools may be used to simulate the opening of documents by different offline office applications, and are not limited herein.
And S208, when the simulation result is that the document can be normally opened, sending the front-end document to be sent corresponding to the document identifier to the request terminal corresponding to the terminal identifier.
The document to be sent to the front end refers to a document which is expressed according to a document format which can be identified by the front end. For example, the document format recognizable by the front end includes XML (eXtensible Markup Language), and the commonly used Word, Excel, and PowerPoint documents are all in XML format.
Specifically, when all the simulated offline applications can normally open the to-be-sent front-end document corresponding to the background storage document data, it can be determined that the to-be-sent front-end document does not have the problem of format error, and the to-be-sent front-end document can be normally opened at the request terminal, and then the to-be-sent front-end document is sent to the request terminal corresponding to the terminal identifier, so that the document is exported.
According to the online document exporting method, when a document exporting request carrying document identification is received, background storage document data corresponding to the document identification is obtained, a to-be-sent front-end document corresponding to the background storage document data is simulated to be opened, a simulation result is obtained, and when the simulation result is that the to-be-sent front-end document corresponding to the document identification can be normally opened, the to-be-sent front-end document corresponding to the document identification is sent to a request terminal. The document data is stored in the background, the opening operation of the exported to-be-sent front-end document is simulated in advance, and the to-be-sent front-end document is sent to the request terminal under the condition that the to-be-sent front-end document is determined to be normally opened, so that the request terminal can open the to-be-sent front-end document to be checked or edited, and the effectiveness of the exported document can be ensured to a certain extent.
In one embodiment, as shown in FIG. 4, the online document export method further comprises the steps of:
and S402, when the simulation result comprises the hidden danger information, the simulation result is sent to the request terminal.
When the simulation result comprises the hidden danger information, the situation that some off-line office applications cannot be opened in the document to be sent can be determined, or the document to be sent can be normally opened only after the off-line office applications are required to repair the document to be sent, at the moment, the simulation result is sent to the request terminal to prompt the user of the simulation result of the document to be sent, and therefore the user can determine whether to continuously export the document based on the simulation result.
S404, receiving feedback information returned by the request terminal based on the simulation result.
The feedback information refers to information on whether to continue exporting the document, and specifically includes export confirmation information and export termination information. The method comprises the steps that after a request terminal receives a simulation result, the simulation result and related feedback options are displayed, a user selects whether to continuously derive feedback options of a document or not based on the simulation result, the request terminal generates feedback information based on the selected feedback options and sends the feedback information to a server, and the server receives the feedback information to determine whether to derive a corresponding to-be-sent front-end document or not according to the feedback information.
As shown in fig. 5, in an embodiment, when the simulation result indicates that none of the offline office applications can open the to-be-sent front-end document, the request terminal displays a prompt box based on the simulation result, the prompt box further includes a relevant feedback option, when the feedback option "ok" is clicked (the feedback option for terminating the export), export termination information is generated and sent to the server, and the server terminates the subsequent export operation. The detailed information is an acquisition option of details causing the document to be incapable of being opened normally, and the details causing the document to be incapable of being opened normally can be acquired by clicking the detailed information. Further, the feedback option may further include a feedback option of continuing the export, and when the option is selected, the request terminal generates export confirmation information to transmit to the server to continue the export of the corresponding document.
S406, when the feedback information is the derivation confirmation information, sending the to-be-sent front-end document corresponding to the document identification to the request terminal.
For example, when the hidden danger information in the simulation result is that the document to be sent at the front end needs to be repaired by the offline office application and then can be normally opened, if the user determines that the document still needs to be exported, the export confirmation information sent by the request terminal is received; or, when the simulation result includes that the to-be-sent front-end document can be partially used by offline office applications, but at the same time includes hidden danger information that cannot be normally opened by some offline office applications, for example, the to-be-sent front-end document can be opened by wps and cannot be opened by word, if the user determines that the export is still needed, the export confirmation information sent by the request terminal is received, and the like. Therefore, when the feedback information is identified as the derivation confirmation information, the to-be-sent front-end document corresponding to the to-be-derived document identification is sent to the request terminal.
And S408, when the feedback information is export termination information, terminating the current operation of exporting the to-be-sent front-end document.
For example, when the hidden danger information in the simulation result is that the to-be-sent front-end document needs to be repaired by the offline office application and then can be normally opened, since data may be lost in the repairing process, and some users cannot receive the situation, the users may select the feedback option for terminating the exporting so as to terminate the continuously exporting of the corresponding to-be-sent front-end document; or, when the simulation result includes that the to-be-sent front-end document can be partially opened by offline office applications, but at the same time includes hidden danger information that cannot be normally opened by some offline office applications, for example, the to-be-sent front-end document can be opened by wps and cannot be opened by word, if the user does not accept the situation, the user also selects a feedback option for terminating export, and the server receives export termination information sent by the request terminal, and so on. Therefore, when it is recognized that the feedback information is the export termination information, the current operation of exporting the pre-sending end document is terminated. The current operation refers to that the server is currently performing a relevant operation for exporting the second-formula document, and may be, for example, a format conversion operation, a document link generation operation, and the like at the time of export.
And when the simulation result comprises the hidden danger information, the simulation result is sent to the request terminal, so that the user can determine whether to continuously export the document according to the simulation result. That is, it is ensured that the derived to-be-sent front-end document can be normally opened by a part of offline office applications, or can be normally opened after being repaired by the offline office applications, and these conditions can be received by the user, thereby ensuring the validity of the derived to-be-sent front-end document.
In an embodiment, step S402 is followed by: and when the feedback information returned by the request terminal based on the simulation result is not received within a preset time period, terminating the current operation of deriving the to-be-sent front-end document.
In this embodiment, when the simulation result is sent to the request terminal, timing is started, and when the timing duration exceeds a predetermined time period and feedback information returned by the request terminal based on the simulation result is not received, the current operation of deriving the to-be-sent front-end document is terminated.
In other embodiments, even if feedback information returned by the request terminal based on the simulation result is not received, the relevant operation of deriving the to-be-sent front-end document can be continuously executed. The user can still obtain the document of the front end to be sent or the document link of the document of the front end to be sent on the premise that the user does not know the simulation result in time, and when the front end receives the document link and displays the download prompt box, the user determines whether to download the corresponding document of the front end to be sent or not by combining the simulation result.
In an embodiment, as shown in fig. 6, the step of simulating to open the to-be-sent front-end document corresponding to the background stored document data according to the background stored document data to obtain a simulation result includes:
s602, acquiring the document global attribute corresponding to the background storage document data.
The document global attribute refers to an overall attribute of the document to be exported, such as the number of pictures and page setting data contained in the document. In a particular embodiment, the document global attribute may be a global attribute of OOXML (office Open XML).
Specifically, the corresponding document global attribute is obtained by analyzing and processing the background storage document data.
And S604, calling the document template according to the global attribute of the document.
The document template refers to a basic template of the document. And determining a document template according to the global attribute of the document and calling. For example, according to the global attribute of the document, it can be determined that the document corresponding to the background storage document data is word or Excel, and then a word basic template or an Excel basic template is called.
S606, loading background storage document data based on the global attribute of the document by using a simulation tool, and adjusting the document style of the document template to obtain a simulation result.
Specifically, through a simulation tool (such as an expose component library), the background storage document data is loaded based on the global attribute of the document, and the document style of the document template is adjusted, such as the page margin, line width and column height styles of the document, so as to simulate and realize the opening operation of the corresponding to-be-sent front-end document, thereby generating a corresponding simulation result.
In an embodiment, when the simulation result is that the document can be normally opened, before the step of sending the to-be-sent front-end document corresponding to the document identifier to the request terminal corresponding to the terminal identifier, the method further includes: and converting the format of the background stored document data to generate a document to be sent to the front end.
Specifically, the background stored document data is analyzed to obtain analyzed data, and format conversion is performed on the analyzed data to generate a corresponding to-be-sent front-end document. By converting the background stored document data into the document of the front end to be sent, the front end can identify the document of the front end to be sent. Wherein the step of format conversion is performed in synchronization with step S206.
In an embodiment, as shown in fig. 7, the step of performing format conversion on the background stored document data to generate a to-be-sent front-end document further includes:
s702, determines unnecessary data in the background storage document data.
S704, filtering the background stored document data according to unnecessary data.
The unnecessary data refers to data which may cause that the document cannot be normally opened or the whole efficiency of exporting the document is affected on the premise of not affecting the content in the document. Such as garbage cells, frozen cells, etc., in the table, which do not affect the table contents, but can seriously affect the processing performance of the server on the background stored document data.
Specifically, when the background storage document data is analyzed, the first format document data is searched based on the preset unnecessary data type, unnecessary data in the background storage document data is determined, and the unnecessary data in the background storage document data is filtered according to the determined unnecessary data.
And S706, converting the format of the filtered background storage document data to generate a document to be sent to a front end.
By filtering unnecessary data in the background storage document data and performing format conversion on the unnecessary data, the to-be-sent front-end document generated through format conversion does not include the unnecessary data, the processing efficiency of the server during format conversion is improved, and the risk that the to-be-sent front-end document cannot be normally opened is further reduced.
In an embodiment, referring to fig. 8, when the to-be-sent-front-end document is a table, the step of performing format conversion on the background stored document data to generate the to-be-sent-front-end document includes:
s802, acquiring a blank table.
Specifically, when a blank table is stored in the server, the stored blank table is acquired; when the blank table is not stored in the server, the blank table is created according to the creation rule of the table. The format of the blank table is a document format which can be identified by the front end.
S804, determining the worksheet list and the current worksheet identifier in the worksheet list according to the background stored document data.
The worksheet list is a list of all worksheets included in one sheet. For example, one form includes n worksheets, that is, sheet 1, sheet 2, …, and sheet n, and the worksheet list refers to a list composed of n worksheets. The current worksheet ID is the worksheet ID which needs format conversion currently.
Specifically, the first document data is analyzed, and a worksheet list and a current worksheet identifier in the worksheet list are determined. For example, if the worksheets are sequentially formatted, the first identified current worksheet is identified as sheet 1.
S806, generating a worksheet according to the data corresponding to the current worksheet identifier in the background storage document data and the blank sheet.
The data corresponding to the current worksheet identifier includes, but is not limited to, a data set, a style set, a row height set, a column width set, a hidden row, a hidden column, a cell union set, and the like, referring to fig. 9. Specifically, according to the current worksheet identifier, data corresponding to the identifier in background storage document data is determined, and each cell of the blank table is set by using the data to generate a worksheet.
And S808, judging whether all the worksheet identifications in the worksheet list generate corresponding worksheets. If not, executing step S810; if yes, go to step S812.
And S810, selecting the worksheet identifier without the worksheet in the worksheet list as the current worksheet identifier. The execution returns to step S806.
And selecting the next worksheet identifier for format conversion from the worksheet identifiers of the worksheets which are not generated in the worksheet list as the current worksheet identifier. For example, format conversion is performed on the worksheets in sequence, and when the last determined current worksheet is identified as sheet 1, the next determined current worksheet is identified as sheet 2, and so on. And when the current worksheet identifier is selected, determining data corresponding to the identifier in the background storage document data according to the current worksheet identifier, and setting each cell of the blank table by using the data to generate a worksheet.
S812, obtaining a table according to each worksheet. When all the worksheet identifications in the worksheet list generate corresponding worksheets, a form can be constructed based on all the generated worksheets.
In one embodiment, as shown in FIG. 10, the online document export method further comprises the steps of:
s1002, generating a document link according to the storage path of the front-end document to be sent.
The document link refers to a download link for downloading the to-be-sent front-end document, and carries a storage path of the to-be-sent front-end document.
S1004, the document link is sent to the request terminal corresponding to the terminal identification.
The document link is sent to the request terminal, and the request terminal generates a download prompt box comprising a download determination option according to the download link so as to prompt a user to determine to download the to-be-sent front-end document. When the user selects the download determination option, the request terminal generates a download request and sends the download request to the server.
In this embodiment, the step of sending the to-be-sent front-end document corresponding to the document identifier to the requesting terminal corresponding to the terminal identifier further includes step S1006:
s1006, when a download request fed back by the request terminal according to the document link is received, sending the document to be sent to the request terminal corresponding to the document link.
And when receiving a downloading request fed back by the request terminal according to the document link, the server acquires the to-be-sent front-end document from the storage path in the corresponding document link, and sends the to-be-sent front-end document to the request terminal to finish the export of the on-line document.
In one embodiment, as shown in fig. 11, the online export method further includes the following steps:
s1102, determining key elements in the background storage document data.
The key elements refer to specific numerical values of key element types which mainly influence the processing efficiency of the server in the online document export process. For example, key element types include: the number of words of the document, the number of pictures, the number of cells of the table, and the like, and the key element refers to a specific numerical value of each type. Wherein the key element types are preconfigured.
Specifically, based on the configured key element type, the background storage document data is analyzed and processed, and the key elements in the background storage document data are determined.
And S1104, obtaining the export time delay of the front-end document to be sent according to the key elements and the time delay determination rule.
The delay determination rule refers to a relationship between the key element and the delay. It can be understood that different types of key elements have different corresponding delay determination rules.
And according to the determined key elements and the corresponding time delay determination rules thereof, obtaining the time delay of each key element, and summing the time delays of all the key elements to obtain the export time delay of the front-end document to be sent. The derivation delay refers to the estimated delay of the server processing in the whole process of deriving the online document.
And S1106, sending the derived time delay to the request terminal for displaying.
The export time delay is sent to the request terminal for displaying, so that a user can know the export time delay of the online document needing to be exported in time, and whether the export is continued or not is determined according to the export time delay. For example, the user may prematurely end the export of the online document when the export latency exceeds the expected latency.
In one embodiment, as shown in fig. 12, the online export method further includes the following steps:
and S1202, acquiring the current processing time length for exporting the document to be sent to the front end.
The current processing time length is the total time length from the receiving of the document export request to the current time. Specifically, the current processing time for exporting the front-end document to be sent is determined based on the timestamp of the received document export request and the current time.
And S1204, generating a derivation progress according to the current processing time length and the derivation time delay. The deriving progress refers to the proportion of the current processing time length in the deriving time delay.
Specifically, the ratio of the current processing time length in the derived time delay is obtained according to the current processing time length and the derived time delay, and the derived progress is generated according to the display form of the set derived progress and the obtained ratio. Wherein, the display form can be a form of percentage progress, as shown in fig. 13; the current processing duration and the specific duration of the derived delay may also be displayed.
The step of sending the derived time delay to the request terminal for displaying specifically comprises:
and S1206, sending the export progress to the request terminal for displaying.
The export progress is sent to the request terminal to be displayed, so that the user can know the current export progress at any time, and the export experience of the online document is effectively improved.
In one embodiment, as shown in fig. 14, the step of acquiring background stored document data corresponding to the document identification further comprises the steps of:
and S1402, determining initial snapshot data corresponding to the document identifier, and sending the initial snapshot data to the request terminal.
When a document export request is received, initial snapshot data corresponding to a document identifier in a server is determined, and the initial snapshot data is sent to a request terminal. The initial snapshot data refers to mirror image data of an online document to be exported, and the format of the mirror image data is a format of data stored in a server, such as a json format.
And S1404, receiving the assembly snapshot data returned by the request terminal, wherein the assembly snapshot data is obtained after assembly and compatible processing is carried out according to the initial snapshot data.
The method comprises the steps that when a request terminal receives initial snapshot data sent by a server, the initial snapshot data are subjected to front-end compatible processing, the initial snapshot data are converted into snapshot data corresponding to a snapshot data format which can be identified by the front end, data needed when an online document is exported are determined from the initial snapshot data after the initial snapshot data are subjected to the compatible processing, the determined initial snapshot data are assembled to obtain assembled snapshot data, the assembled snapshot data are sent to the server, and the server receives the assembled snapshot data returned by the request terminal. The format of the snapshot data that can be recognized by the front end may be an Atest format, or another recognizable format. In fig. 9, the key frame refers to the assembly snapshot data. Specifically, the request terminal may send the assembled snapshot data to the server in a post request manner, so as to notify the server to process the assembled snapshot data to export the to-be-sent front-end document.
And S1406, performing format conversion on the assembled snapshot data to generate background storage document data.
The format of the assembled snapshot data received by the server is a snapshot data format which can be identified by the front end, and is different from the storage of the data in the server. Therefore, the format conversion is performed on the assembled snapshot data to generate background storage document data (such as json format) corresponding to the specific document data storage format of the server, so that the server can conveniently perform subsequent processing on the background storage document data.
The following describes an online document export method using a document that is applied to an online document export system and exported as an example. In the present embodiment, the gateway interface in the server and the document export service are separated, and the steps performed by the gateway interface and the document export service are described separately. Fig. 15 shows an online document export method executed by the online document export system when the simulation result includes hidden danger information and the feedback information is export confirmation information.
When a user selects an option related to exporting the online document through a request terminal, the request terminal acquires a document export trigger signal, generates a document export request carrying a document identifier and a terminal identifier according to the document export trigger signal, and sends the document export request to a gateway interface of a server. And when receiving the document export request, the gateway interface determines initial snapshot data corresponding to the document identifier and sends the initial snapshot data to the request terminal. And the request terminal performs assembling and compatible processing on the received initial snapshot data, obtains the assembled snapshot data, and sends the assembled snapshot data to the gateway interface. And the gateway interface performs format conversion on the assembled snapshot data to generate background storage document data, and sends a processing notice to the document export service so as to inform the document export service to process the background storage document data.
When receiving the processing notice, the document export service performs format conversion on the background storage document data to generate a document to be sent to a front end, simulates the document opening operation and exports progress processing, and the three processing steps are synchronously executed. The format conversion of the background storage document data to generate the to-be-sent front-end document specifically comprises the following steps: the document export service determines unnecessary data in the background storage document data and filters the background storage document data according to the unnecessary data; acquiring a blank form, and determining a worksheet list and a current worksheet identifier in the worksheet list according to the filtered background storage document data; generating a worksheet according to the data corresponding to the current worksheet identifier in the filtered background storage document data and the blank form; and selecting the worksheet identifier which does not generate the worksheet in the worksheet list as the current worksheet identifier, returning data and blank forms corresponding to the current worksheet identifier in the filtered background storage document data, and generating the worksheets until all the worksheet identifiers in the worksheet list generate corresponding worksheets, and obtaining the worksheets according to the worksheets. The simulated document opening operation specifically comprises the following steps: the document export service acquires document global attributes corresponding to the background storage document data, calls a document template according to the document global attributes, loads the background storage document data based on the document global attributes by using a simulation tool, and adjusts the document style of the document template to obtain a simulation result. The process of exporting the progress is specifically as follows: determining key elements in the background storage document data, obtaining the export time delay of the to-be-sent front-end document according to the key elements and the time delay determination rule, obtaining the current processing time length of the to-be-sent front-end document, generating an export progress according to the current processing time length and the export time delay, and sending the export progress to the request terminal for displaying.
When the simulation result comprises the hidden danger information, the document export service sends the simulation result to the request terminal through the gateway interface, and the request terminal generates export confirmation information or export termination information according to user selection and sends the export confirmation information or export termination information to the document export service. When the document export service receives export termination information, terminating the current operation of exporting the front-end document to be sent; when the document export service receives the export confirmation information, the current operation of exporting the to-be-sent front-end document is continuously executed.
Further, after the to-be-sent front-end document is generated, the document export service sends the storage path of the to-be-sent front-end document to the gateway interface, and the gateway interface generates a document link according to the storage path and sends the document link to the request terminal. The method comprises the steps that a request terminal generates a download prompt box comprising download determining options according to document links, when a user selects the download determining options through the request terminal, a download request is generated and sent to a document export service through a gateway interface, and the document export service sends front-end documents to be sent corresponding to the document links to the request terminal through the gateway interface.
According to the online document exporting method, the server stores the document data in the background, the opening operation of the exported to-be-sent front-end document is simulated in advance, and under the condition that the to-be-sent front-end document is determined to be normally opened or a determined exporting request is received, the document link of the to-be-sent front-end document is sent to the request terminal to download the document, so that the request terminal can open the to-be-sent front-end document to check or edit, and the validity of the exported document can be ensured to a certain extent. Meanwhile, the server generates the export progress of the to-be-sent front-end document and sends the export progress to the request terminal for displaying, so that a user can know the export progress of the document at any time, and the export experience of the online document is effectively improved.
FIG. 15 is a flowchart illustrating an online document export method, according to one embodiment. It should be understood that, although the steps in the flowchart of fig. 15 are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least a portion of the steps in fig. 15 may include multiple sub-steps or multiple stages that are not necessarily performed at the same time, but may be performed at different times, and the order of performance of the sub-steps or stages is not necessarily sequential, but may be performed in turn or alternately with other steps or at least a portion of the sub-steps or stages of other steps.
In one embodiment, as shown in FIG. 16, there is provided an online document export apparatus 1600, comprising: a request receiving module 1602, a document data acquisition module 1604, a simulation module 1606, and a document export module 1608. Wherein:
a request receiving module 1602, configured to receive a document export request, where the document export request carries a document identifier and a terminal identifier. When a user triggers a document export event through a request terminal, a document export request is generated according to the trigger event and sent to a server, and a request receiving module 1602 of the server receives the document export request sent by the request terminal.
A document data obtaining module 1604, configured to obtain background stored document data corresponding to the document identifier.
The background storage document data of each document and the document identification have one-to-one correspondence. In this embodiment, the document data obtaining module 1604 locates the background storage document data according to the document identifier, and obtains the background storage document data corresponding to the document identifier.
The simulation module 1606 is configured to simulate to open a to-be-sent front-end document corresponding to the background stored document data according to the background stored document data, and obtain a simulation result.
Specifically, the simulation module 1606 simulates opening a to-be-sent front-end document corresponding to the background stored document data by using an offline office application according to the background stored document data, and obtains a simulation result.
The document export module 1608 is configured to, when the simulation result indicates that the document can be opened normally, send the to-be-sent front-end document corresponding to the document identifier to the request terminal corresponding to the terminal identifier.
Specifically, when all the simulated offline applications can normally open the to-be-sent front-end document corresponding to the background storage document data, it can be determined that the to-be-sent front-end document does not have the problem of a format error and can be normally opened at the request terminal, and then the document export module 1608 sends the to-be-sent front-end document to the request terminal corresponding to the terminal identifier, so as to implement export of the document.
The online document exporting device acquires the background storage document data corresponding to the document identification when receiving the document exporting request carrying the document identification, simulates to open the to-be-sent front-end document corresponding to the background storage document data to acquire a simulation result, and sends the to-be-sent front-end document corresponding to the document identification to the request terminal when the simulation result is normally openable. The document data is stored in the background, the opening operation of the exported to-be-sent front-end document is simulated in advance, and the to-be-sent front-end document is sent to the request terminal under the condition that the to-be-sent front-end document is determined to be normally opened, so that the request terminal can open the to-be-sent front-end document to be checked or edited, and the effectiveness of the exported document can be ensured to a certain extent.
In one embodiment, the online document exporting apparatus further comprises: the device comprises a simulation result sending module, a feedback receiving module and a derivation termination module. Wherein:
and the simulation result sending module is used for sending the simulation result to the request terminal when the simulation result comprises the hidden danger information.
When the simulation result comprises the hidden danger information, the situation that some off-line office applications cannot be opened in the document to be sent can be determined, or the document to be sent can be normally opened only after the off-line office applications are required to repair the document to be sent, at the moment, the simulation result is sent to the request terminal through the simulation result sending module to prompt the user of the simulation result of the document to be sent, so that the user can determine whether to continuously export the document based on the simulation result.
And the feedback receiving module is used for receiving feedback information returned by the request terminal based on the simulation result. The method comprises the steps that after a request terminal receives a simulation result, the simulation result and relevant feedback options are displayed, a user selects feedback options whether to continuously derive documents or not based on the simulation result, the request terminal generates feedback information based on the selected feedback options and sends the feedback information to a server, and a feedback receiving module of the server receives the feedback information so that the server can determine whether to derive corresponding front-end documents to be transmitted or not according to the feedback information.
And the export termination module is used for terminating the current operation of exporting the front-end document to be sent when the feedback information is export termination information.
For example, when the hidden danger information in the simulation result is that the to-be-sent front-end document needs to be repaired by the offline office application and then can be normally opened, since data may be lost in the repairing process, and some users cannot receive the situation, the users may select the feedback option for terminating the exporting so as to terminate the continuously exporting of the corresponding to-be-sent front-end document; or, when the simulation result includes that the to-be-sent front-end document can be partially opened by offline office applications, but at the same time includes hidden danger information that cannot be normally opened by some offline office applications, for example, the to-be-sent front-end document can be opened by wps and cannot be opened by word, if the user does not accept the situation, the user also selects a feedback option for terminating export, and the server receives export termination information sent by the request terminal, and so on. Therefore, when the export termination module identifies that the feedback information is export termination information, the current operation of exporting the pre-sending front-end document is terminated.
In this embodiment, the document export module is further configured to send the to-be-sent front-end document corresponding to the document identifier to the request terminal when the feedback information is export confirmation information.
For example, when the hidden danger information in the simulation result is that the document to be sent at the front end needs to be repaired by the offline office application and then can be normally opened, if the user determines that the document still needs to be exported, the export confirmation information sent by the request terminal is received; or, when the simulation result includes that the to-be-sent front-end document can be partially opened by the offline office application, but at the same time, the to-be-sent front-end document also includes hidden danger information that cannot be normally opened by some offline office applications, for example, the to-be-sent front-end document can be opened by wps and cannot be opened by word, if the user determines that the exporting still needs to be continued, the exporting confirmation information sent by the request terminal is received, and the like. Therefore, when the document export module identifies that the feedback information is export confirmation information, the to-be-sent front-end document corresponding to the to-be-exported document identification is sent to the request terminal.
And when the simulation result comprises the hidden danger information, the simulation result is sent to the request terminal, so that the user can determine whether to continuously export the document according to the simulation result. That is, it is ensured that the derived to-be-sent front-end document can be normally opened by a part of offline office applications, or can be normally opened after being repaired by the offline office applications, and these conditions can be received by the user, thereby ensuring the validity of the derived to-be-sent front-end document.
In an embodiment, the export termination module is further configured to terminate the current operation of exporting the to-be-sent front-end document when no feedback information returned by the requesting terminal based on the simulation result is received within a predetermined time period.
In one embodiment, the simulation module 1606 includes: the device comprises an attribute acquisition module, a template calling module and a data loading processing module. The attribute acquisition module is used for acquiring document global attributes corresponding to the background storage document data; the template calling module is used for calling the document template according to the global attribute of the document; the data loading processing module is used for loading background storage document data based on the document global attribute by using a simulation tool, and adjusting the document style of the document template to obtain a simulation result.
Specifically, the data loading processing module loads background storage document data based on the document global attribute through a simulation tool (such as an expose component library), adjusts document styles of the document template, such as page margins, line widths, column heights and the like of the document, and simulates and realizes opening operation on a corresponding to-be-sent front-end document, so that a corresponding simulation result is generated.
In an embodiment, the online document exporting apparatus further includes a first format conversion module, configured to perform format conversion on the background stored document data, and generate a to-be-sent front-end document.
Specifically, the first format conversion module analyzes the background storage document data to obtain analysis data, and performs format conversion on the analysis data to generate a corresponding to-be-sent front-end document. By converting the background stored document data into the document of the front end to be sent, the front end can identify the document of the front end to be sent.
Further, the first format conversion module includes: a non-essential data determination module, a filtering module and a format conversion sub-module. Wherein:
and the unnecessary data determining module is used for determining unnecessary data in the background storage document data. Specifically, when the background storage document data is analyzed, the first format document data is searched based on the pre-configured unnecessary data type, and unnecessary data in the background storage document data is determined.
And the filtering module is used for filtering the background storage document data according to unnecessary data. Specifically, according to the determined unnecessary data, unnecessary data in the background storage document data is filtered out, and filtered background storage document data is obtained.
And the format conversion sub-module is used for carrying out format conversion on the filtered background storage document data to generate a to-be-sent front-end document. By filtering unnecessary data in the background storage document data and performing format conversion on the unnecessary data, the to-be-sent front-end document generated through format conversion does not include the unnecessary data, the processing efficiency of the server during format conversion is improved, and the risk that the to-be-sent front-end document cannot be normally opened is further reduced.
In one embodiment, the first format conversion module includes: the system comprises an empty table acquisition module, a worksheet determination module, a worksheet generation module, a judgment module and a form generation module.
And the blank table acquisition module is used for acquiring a blank table. Specifically, when a blank table is stored in the server, the stored blank table is directly acquired; when the blank table is not stored in the server, the blank table is created according to the creation rule of the table. The format of the blank table is a document format which can be identified by the front end.
And the worksheet determining module is used for determining the worksheet list and the current worksheet identifier in the worksheet list according to the background storage document data, and selecting the worksheet identifier without the worksheet in the worksheet list as the current worksheet identifier when the judgment result of the judging module is negative.
Specifically, the first document data is analyzed, and a worksheet list and a current worksheet identifier in the worksheet list are determined. For example, format conversion is performed on the worksheets in sequence, the first determined current worksheet is identified as sheet 1, the next determined current worksheet is identified as sheet 2, and so on.
And the worksheet generation module is used for generating a worksheet according to the data corresponding to the current worksheet identifier in the background storage document data and the blank forms. The data corresponding to the current worksheet identifier includes, but is not limited to, a data set, a style set, a row height set, a column width set, a hidden row, a hidden column, a cell union set, and the like, referring to fig. 9. Specifically, according to the current worksheet identifier, data corresponding to the identifier in background storage document data is determined, and each cell of the blank table is set by using the data to generate a worksheet.
And the judging module is used for judging whether all the worksheet identifications in the worksheet list generate corresponding worksheets.
And the table generating module is used for obtaining the table according to each worksheet when the judgment result of the judging module is yes. When all the worksheet identifications in the worksheet list generate corresponding worksheets, a form can be constructed based on all the generated worksheets.
In one embodiment, the online document exporting apparatus further comprises: the device comprises a link generating module and a link sending module. The link generation module is used for generating document links according to the storage path of the front-end document to be sent; and the link sending module is used for sending the document link to the request terminal corresponding to the terminal identifier.
The document link is sent to the request terminal, and the request terminal generates a download prompt box comprising a download determination option according to the download link so as to prompt a user to determine to download the to-be-sent front-end document. When the user selects the download determination option, the request terminal generates a download request and sends the download request to the server.
In this embodiment, the document export module 1608 is further configured to, when receiving a download request fed back by the requesting terminal according to the document link, send the to-be-sent front-end document corresponding to the document link to the requesting terminal.
When the server receives a download request fed back by the request terminal according to the document link, the document export module 1608 obtains the to-be-sent front-end document from the storage path in the corresponding document link, and sends the to-be-sent front-end document to the request terminal, thereby completing the export of the online document.
In one embodiment, the online document exporting apparatus further comprises: the device comprises a key element determining module, a derived time delay generating module and a time delay sending module.
The key element determining module is used for determining key elements in the background storage document data. Specifically, based on the configured key element type, the background storage document data is analyzed and processed, and the key elements in the background storage document data are determined.
And the export time delay generation module is used for determining a rule according to the key elements and the time delay to obtain the export time delay of the document to be sent at the front end.
Specifically, the derived time delay generation module determines a rule according to each determined key element and the time delay corresponding to the key element, so as to obtain the time delay of each key element, and sums the time delays of all key elements to obtain the derived time delay of the to-be-sent front-end document. The derivation delay refers to the estimated delay of the server in the whole process of deriving the online document.
And the time delay sending module is used for sending the derived time delay to the request terminal for displaying. The export time delay is sent to the request terminal for displaying, so that a user can know the export time delay of the online document needing to be exported in time, and whether the export is continued or not is determined according to the export time delay. For example, the user may prematurely end the export of the online document when the export latency exceeds the expected latency.
In one embodiment, the online document exporting apparatus further comprises: the device comprises a processing time length obtaining module and a lead-out progress generating module.
The processing duration obtaining module is used for obtaining and exporting the current processing duration of the front-end document to be sent. Specifically, the current processing time for exporting the front-end document to be sent is determined based on the timestamp of the received document export request and the current time.
And the export progress generating module is used for generating the export progress according to the current processing time length and the export time delay. Specifically, the ratio of the current processing time length in the derived time delay is obtained according to the current processing time length and the derived time delay, and the derived progress is generated according to the display form of the set derived progress and the obtained ratio. Wherein, the display form can be a form of percentage progress, as shown in fig. 13; the current processing duration and the specific duration of the derived delay may also be displayed.
In this embodiment, the delay sending module is further configured to send the derived progress to the request terminal for display. The export progress is sent to the request terminal to be displayed, so that the user can know the current export progress at any time, and the export experience of the online document is effectively improved.
In one embodiment, the document data acquisition module 1604 includes: the device comprises a snapshot data sending module, a snapshot data receiving module and a second format conversion module. Wherein:
and the snapshot data sending module is used for determining initial snapshot data corresponding to the document identifier and sending the initial snapshot data to the request terminal.
When a document export request is received, the snapshot data sending module determines initial snapshot data corresponding to the document identification in the server and sends the initial snapshot data to the request terminal. The initial snapshot data refers to mirror image data of an online document to be exported, and the format of the mirror image data is a format of data stored in a server, such as a json format.
And the snapshot data receiving module is used for receiving the assembly snapshot data returned by the request terminal, wherein the assembly snapshot data is obtained after assembly and compatible processing are carried out according to the initial snapshot data.
The method comprises the steps that when a request terminal receives initial snapshot data sent by a server, front-end compatible processing is carried out on the initial snapshot data, the initial snapshot data are converted into snapshot data corresponding to a snapshot data format which can be identified by the front end, data needed when an online document is exported are determined from the initial snapshot data after the compatible processing, the determined initial snapshot data are assembled to obtain assembled snapshot data, the assembled snapshot data are sent to the server, and a snapshot data receiving module of the server receives the assembled snapshot data returned by the request terminal.
And the second format conversion module is used for carrying out format conversion on the assembled snapshot data and generating background storage document data.
The format of the assembled snapshot data received by the snapshot data receiving module is a snapshot data format which can be identified by the front end and is different from the storage of the data in the server. Therefore, the format conversion module performs format conversion on the assembled snapshot data to generate background storage document data (such as json format) corresponding to the specific document data storage format of the server, so that the server can perform subsequent processing on the background storage document data conveniently.
According to the online document exporting device, document data is stored in the background, the opening operation of the exported to-be-sent front-end document is simulated in advance, the document link of the to-be-sent front-end document is sent to the request terminal to download the document under the condition that the to-be-sent front-end document is determined to be normally opened or a determined export request is received, so that the request terminal can open the to-be-sent front-end document to check or edit, and the effectiveness of the exported document can be ensured to a certain extent. Meanwhile, the export progress of the to-be-sent front-end document is generated and sent to the request terminal to be displayed, so that a user can know the export progress of the document at any time, and the export experience of the online document is effectively improved.
FIG. 17 is a diagram illustrating an internal structure of a computer device in one embodiment. The computer device may specifically be the server 104 in fig. 1. As shown in fig. 17, the computer device includes a processor, a memory, and a network interface connected by a system bus. Wherein the memory includes a non-volatile storage medium and an internal memory. The non-volatile storage medium of the computer device stores an operating system and may also store a computer program that, when executed by the processor, causes the processor to implement an online document export method. The internal memory may also have stored therein a computer program that, when executed by the processor, causes the processor to perform an online document derivation method.
Those skilled in the art will appreciate that the architecture shown in fig. 17 is merely a block diagram of some of the structures associated with the disclosed aspects and is not intended to limit the computing devices to which the disclosed aspects apply, as particular computing devices may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
In one embodiment, the online document exporting apparatus provided by the present application may be implemented in the form of a computer program, and the computer program may be run on a computer device as shown in fig. 17. The memory of the computer device may store therein various program modules constituting the online document exporting apparatus, such as the request receiving module 1602, the document data acquiring module 1604, the simulation module 1606, and the document exporting module 1608 shown in fig. 16. The computer program constituted by the respective program modules causes the processor to execute the steps in the online document export method of the embodiments of the present application described in the present specification.
For example, the computer device shown in fig. 17 may perform the step of receiving a document export request, which carries a document identifier and a terminal identifier, by the request receiving module 1602 in the online document export apparatus shown in fig. 16. The computer device can perform the step of acquiring background stored document data corresponding to the document identification through the document data acquisition module 1604. The computer device can execute the steps of simulating to open the to-be-sent front-end document corresponding to the background stored document data according to the background stored document data through the simulation module 1606 to obtain the simulation result. The computer device may perform, through the document export module 1608, a step of sending the to-be-sent front-end document corresponding to the document identifier to the requesting terminal corresponding to the terminal identifier when the simulation result is normally openable.
In one embodiment, a computer device is provided, comprising a memory and a processor, the memory storing a computer program which, when executed by the processor, causes the processor to perform the steps of the above-described online document export method. Here, the steps of the online document export method may be the steps in the online document export method of each of the above embodiments.
In one embodiment, a computer readable storage medium is provided, storing a computer program which, when executed by a processor, causes the processor to perform the steps of the above-described online document export method. Here, the steps of the online document export method may be the steps in the online document export method of each of the above embodiments.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware related to instructions of a computer program, and the program can be stored in a non-volatile computer readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in the embodiments provided herein may include non-volatile and/or volatile memory, among others. Non-volatile memory can include read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDRSDRAM), Enhanced SDRAM (ESDRAM), Synchronous Link DRAM (SLDRAM), Rambus Direct RAM (RDRAM), direct bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above examples only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the present application. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (24)

1. An online document export method, the method comprising:
receiving a document export request, wherein the document export request carries a document identifier and a terminal identifier;
acquiring background storage document data corresponding to the document identifier;
according to the background storage document data, the simulation request terminal opens a to-be-sent front-end document corresponding to the background storage document data to obtain a simulation result;
when the simulation result is that the document can be normally opened, sending the front-end document to be sent corresponding to the document identification to a request terminal corresponding to the terminal identification;
when the simulation result comprises hidden danger information, the simulation result is sent to the request terminal, and the hidden danger information is related information of the front-end document to be sent which cannot be normally opened;
and determining whether to continuously derive the to-be-sent front-end document corresponding to the document identification according to the feedback information corresponding to the hidden danger information.
2. The method according to claim 1, wherein when the feedback information is derivation confirmation information, a to-be-sent front-end document corresponding to the document identification is sent to the request terminal;
and when the feedback information is export termination information, terminating the current operation of exporting the to-be-sent front-end document.
3. The method of claim 1, wherein when the simulation result includes hidden danger information, after sending the simulation result to a requesting terminal, the method further comprises:
and when the feedback information returned by the request terminal based on the simulation result is not received within a preset time period, terminating the current operation of exporting the to-be-sent front-end document.
4. The method according to claim 1, wherein the simulating requesting terminal opens the to-be-sent front-end document corresponding to the background stored document data according to the background stored document data to obtain a simulation result, and the simulating requesting terminal includes:
acquiring the global attribute of the document corresponding to the background storage document data;
calling a document template according to the global attribute of the document;
and loading the background storage document data based on the global attribute of the document by using a simulation tool, and adjusting the document style of the document template to obtain a simulation result.
5. The method according to claim 1, wherein when the simulation result is that the document can be normally opened, before sending the to-be-sent front-end document corresponding to the document identifier to the request terminal corresponding to the terminal identifier, the method further comprises:
and converting the format of the background stored document data to generate a document to be sent to a front end.
6. The method of claim 5, wherein converting the format of the background stored document data to generate a pre-sent front-end document comprises:
determining unnecessary data in the background storage document data;
filtering the background storage document data according to the unnecessary data;
and performing format conversion on the filtered background storage document data to generate a to-be-sent front-end document.
7. The method according to claim 5, wherein when the to-be-sent-front-end document is a table, the converting the format of the background stored document data to generate the to-be-sent-front-end document comprises:
acquiring a blank table;
determining a worksheet list and a current worksheet identifier in the worksheet list according to the background stored document data;
generating a worksheet according to the data corresponding to the current worksheet identifier in the background storage document data and the blank form;
and selecting the worksheet identifier which does not generate the worksheet in the worksheet list as the current worksheet identifier, returning to the step of generating the worksheet according to the data corresponding to the current worksheet identifier in the background storage document data and the blank forms until all the worksheet identifiers in the worksheet list generate the corresponding worksheets, and obtaining the forms according to the worksheets.
8. The method according to claim 1 or 2, characterized in that the method further comprises:
generating a document link according to the storage path of the to-be-sent front-end document;
sending the document link to the request terminal;
the sending the to-be-sent front-end document corresponding to the document identifier to the request terminal includes:
and when a downloading request fed back by the request terminal according to the document link is received, sending the to-be-sent front-end document corresponding to the document link to the request terminal.
9. The method of claim 1, further comprising:
determining key elements in the background storage document data;
obtaining the export time delay of the front-end document to be sent according to the key elements and the time delay determination rule;
and sending the derived time delay to the request terminal for displaying.
10. The method of claim 9, further comprising:
acquiring and exporting the current processing time length of the to-be-sent front-end document;
generating a derivation progress according to the current processing duration and the derivation time delay;
the sending the derived time delay to the request terminal for display includes: and sending the export progress to the request terminal for displaying.
11. The method according to claim 1, wherein the obtaining background stored document data corresponding to the document identification comprises:
determining initial snapshot data corresponding to the document identification, and sending the initial snapshot data to a request terminal;
receiving assembly snapshot data returned by a request terminal, wherein the assembly snapshot data is obtained after assembly and compatible processing are carried out according to the initial snapshot data;
and carrying out format conversion on the assembled snapshot data to generate background storage document data.
12. An online document exporting apparatus, the apparatus comprising:
the request receiving module is used for receiving a document export request, and the document export request carries a document identifier and a terminal identifier;
the document data acquisition module is used for acquiring background storage document data corresponding to the document identification;
the simulation request terminal opens a to-be-sent front-end document corresponding to the background storage document data according to the background storage document data to obtain a simulation result;
the document export module is used for sending the front-end document to be sent corresponding to the document identifier to the request terminal corresponding to the terminal identifier when the simulation result is that the front-end document can be normally opened;
the simulation result sending module is used for sending the simulation result to the request terminal when the simulation result comprises hidden danger information, wherein the hidden danger information is related information of the front-end document to be sent which cannot be normally opened;
and the feedback receiving module is used for determining whether to continuously derive the to-be-sent front-end document corresponding to the document identifier according to the feedback information corresponding to the hidden danger information.
13. The apparatus of claim 12, further comprising: an export termination module;
the document export module is further configured to send the to-be-sent front-end document corresponding to the document identifier to the request terminal when the feedback information is export confirmation information;
and the export termination module is used for terminating the current operation of exporting the to-be-sent front-end document when the feedback information is export termination information.
14. The apparatus of claim 12, further comprising: an export termination module;
and the export termination module is further used for terminating the current operation of exporting the to-be-sent front-end document when the feedback information returned by the request terminal based on the simulation result is not received within a preset time period.
15. The apparatus of claim 12, wherein the simulation module comprises: the system comprises an attribute acquisition module, a template calling module and a data loading processing module;
the attribute acquisition module is used for acquiring the document global attribute corresponding to the background storage document data;
the template calling module is used for calling a document template according to the global attribute of the document;
and the data loading processing module is used for loading the background storage document data based on the document global attribute by using a simulation tool, and adjusting the document style of the document template to obtain a simulation result.
16. The apparatus of claim 12, wherein the online document exporting apparatus further comprises a first format conversion module;
and the first format conversion module is used for carrying out format conversion on the background stored document data to generate a document to be sent to a front end.
17. The apparatus of claim 16, wherein the first format conversion module comprises: the unnecessary data determining module, the filtering module and the format conversion sub-module;
the unnecessary data determining module is used for determining unnecessary data in the background storage document data;
the filtering module is used for filtering the background stored document data according to the unnecessary data;
and the format conversion sub-module is used for carrying out format conversion on the filtered background stored document data to generate a document to be sent to the front end.
18. The apparatus of claim 16, wherein the first format conversion module comprises: the system comprises an empty table acquisition module, a worksheet determination module, a worksheet generation module, a judgment module and a form generation module;
the empty table acquisition module is used for acquiring a blank table;
the worksheet determining module is used for determining a worksheet list and a current worksheet identifier in the worksheet list according to the background stored document data;
the worksheet generation module is used for generating a worksheet according to the data corresponding to the current worksheet identifier in the background storage document data and the blank form;
the judging module is used for judging whether all the worksheet identifications in the worksheet list generate corresponding worksheets;
and the table generating module is used for obtaining a table according to each worksheet when all the worksheet identifications in the worksheet list generate corresponding worksheets.
19. The apparatus according to claim 12 or 13, wherein the online document exporting apparatus further comprises: the system comprises a link generating module and a link sending module;
the link generation module is used for generating document links according to the storage path of the to-be-sent front-end document;
the link sending module is used for sending the document link to the request terminal;
and the document export module is further used for sending the to-be-sent front-end document corresponding to the document link to the request terminal when receiving a download request fed back by the request terminal according to the document link.
20. The apparatus of claim 12, wherein the online document exporting apparatus further comprises: the device comprises a key element determining module, a derived time delay generating module and a time delay sending module;
the key element determining module is used for determining key elements in the background storage document data;
the export time delay generating module is used for obtaining the export time delay of the document to be sent at the front end according to the key elements and the time delay determination rule;
and the time delay sending module is used for sending the derived time delay to the request terminal for displaying.
21. The apparatus of claim 20, wherein the online document exporting apparatus further comprises: the device comprises a processing time length acquisition module and a lead-out progress generation module;
the processing duration obtaining module is used for obtaining and exporting the current processing duration of the to-be-sent front-end document;
the derived progress generating module is used for generating derived progress according to the current processing time length and the derived time delay;
the time delay sending module is further configured to send the derived progress to the request terminal for display.
22. The apparatus according to claim 12, wherein the document data acquisition module includes: the snapshot data sending module, the snapshot data receiving module and the second format conversion module;
the snapshot data sending module is used for determining initial snapshot data corresponding to the document identifier and sending the initial snapshot data to a request terminal;
the snapshot data receiving module is used for receiving the assembly snapshot data returned by the request terminal, wherein the assembly snapshot data is obtained after assembly and compatible processing are carried out according to the initial snapshot data;
and the second format conversion module is used for carrying out format conversion on the assembled snapshot data and generating background storage document data.
23. A computer device comprising a memory and a processor, the memory storing a computer program that, when executed by the processor, causes the processor to perform the steps of the method according to any one of claims 1 to 11.
24. A computer-readable storage medium, storing a computer program which, when executed by a processor, causes the processor to carry out the steps of the method according to any one of claims 1 to 11.
CN201811095358.1A 2018-09-19 2018-09-19 Online document export method and device, computer equipment and readable storage medium Active CN110928845B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811095358.1A CN110928845B (en) 2018-09-19 2018-09-19 Online document export method and device, computer equipment and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811095358.1A CN110928845B (en) 2018-09-19 2018-09-19 Online document export method and device, computer equipment and readable storage medium

Publications (2)

Publication Number Publication Date
CN110928845A CN110928845A (en) 2020-03-27
CN110928845B true CN110928845B (en) 2022-07-08

Family

ID=69856002

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811095358.1A Active CN110928845B (en) 2018-09-19 2018-09-19 Online document export method and device, computer equipment and readable storage medium

Country Status (1)

Country Link
CN (1) CN110928845B (en)

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103116586A (en) * 2011-11-17 2013-05-22 中国电信股份有限公司 Document reading achieving method, terminal, document conversion server and processing system

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140201625A1 (en) * 2012-04-24 2014-07-17 Concepts in Data Management, SRL System and method for generating a browser compatible document

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103116586A (en) * 2011-11-17 2013-05-22 中国电信股份有限公司 Document reading achieving method, terminal, document conversion server and processing system

Non-Patent Citations (4)

* Cited by examiner, † Cited by third party
Title
基于Fuzz的MS Office漏洞检测;岳彩松等;《信息安全与通信保密》;20070910(第09期);全文 *
基于uClinux的嵌入式文件网络传输软件设计;王博;《装备制造技术》;20081215(第12期);第131页 *
电子文件管理的终极解决之道――网络电子文件管理系统;赵屹等;《档案学通讯》;20020225(第02期);全文 *
自动下载批量网页的一种模拟人工实现方法;张宗科;《电脑编程技巧与维护》;20130618(第12期);全文 *

Also Published As

Publication number Publication date
CN110928845A (en) 2020-03-27

Similar Documents

Publication Publication Date Title
CN111061526B (en) Automatic test method, device, computer equipment and storage medium
CN110209652A (en) Tables of data moving method, device, computer equipment and storage medium
CN109543925B (en) Risk prediction method and device based on machine learning, computer equipment and storage medium
CN111027295B (en) Data processing method, device, computer equipment and storage medium
CN108491367B (en) Report document generation method and device, computer equipment and storage medium
CN108629567A (en) Declaration information processing method, device, computer equipment and storage medium
CN109062925A (en) Automatically generate the method, apparatus, computer equipment and storage medium of insert sentence
CN110609954A (en) Data acquisition method and device, computer equipment and storage medium
CN109361628A (en) Message assemble method, device, computer equipment and storage medium
CN110888709A (en) Intelligent operation method and device of monitoring screen, computer equipment and storage medium
CN110750443A (en) Webpage testing method and device, computer equipment and storage medium
CN110471838A (en) Method of calibration, device, computer equipment and the storage medium of test case
CN114168190A (en) Interface document generation method and device, computer equipment and storage medium
CN109447412A (en) Construct method, apparatus, computer equipment and the storage medium of business connection map
CN113312885B (en) Cooperative operation processing method, device, equipment and medium
CN114240524A (en) Platform-based unified billing method and system, computer equipment and storage medium
CN110232018A (en) Interface test method, device, computer equipment
CN110928845B (en) Online document export method and device, computer equipment and readable storage medium
KR102160379B1 (en) Testing method for decentralized application based on blockchain and testing apparatus
CN116166533A (en) Interface testing method, device, terminal equipment and storage medium
CN112100126B (en) Excel file-based picture storage and content display method and device
CN111177242B (en) Time-based data display method and device, computer equipment and storage medium
CN113645357A (en) Call quality inspection method and device, computer equipment and computer readable storage medium
CN112559930B (en) Webpage integration method, webpage integration device, computer equipment and storage medium
CN111552785A (en) Method and device for updating database of human-computer interaction system, computer equipment and medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
REG Reference to a national code

Ref country code: HK

Ref legal event code: DE

Ref document number: 40023029

Country of ref document: HK

SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant