CN114528813A - File conversion management method, device, equipment and medium for online preview - Google Patents

File conversion management method, device, equipment and medium for online preview Download PDF

Info

Publication number
CN114528813A
CN114528813A CN202210095143.XA CN202210095143A CN114528813A CN 114528813 A CN114528813 A CN 114528813A CN 202210095143 A CN202210095143 A CN 202210095143A CN 114528813 A CN114528813 A CN 114528813A
Authority
CN
China
Prior art keywords
document
preview
unique
identifier
target
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202210095143.XA
Other languages
Chinese (zh)
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.)
Shandong Inspur Genersoft Information Technology Co Ltd
Original Assignee
Shandong Inspur Genersoft Information Technology 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 Shandong Inspur Genersoft Information Technology Co Ltd filed Critical Shandong Inspur Genersoft Information Technology Co Ltd
Priority to CN202210095143.XA priority Critical patent/CN114528813A/en
Publication of CN114528813A publication Critical patent/CN114528813A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/12Use of codes for handling textual entities
    • G06F40/151Transformation

Abstract

The application discloses a file conversion management method, a device, equipment and a medium for online preview, wherein the method comprises the following steps: receiving preview request information of a target document, and establishing a document conversion thread according to the preview request information, wherein the preview request information at least comprises a download path, a document name and a document unique identifier of the target document; determining a preset document identification set, wherein a document unique identification corresponding to a document in the conversion process is stored in the document identification set; inquiring whether a document unique identifier corresponding to a target document is stored in the document identifier set or not by traversing the document identifier set; if the document unique identification does not exist in the document identification set, storing the document unique identification into the document identification set, and performing format conversion on the target document; if the target document is successfully converted into a preview document, storing the preview document and the unique document identifier into a database; and sending the preview document to the client, and releasing the document conversion thread.

Description

File conversion management method, device, equipment and medium for online preview
Technical Field
The present application relates to the field of document transformation, and in particular, to a file transformation management method, apparatus, device, and medium for online preview.
Background
With the popularization of mobile terminals, various documents are displayed on the mobile terminals as a common phenomenon. The current display methods are roughly three types: the first method is to download a document to a mobile terminal and then read the document through reading software on the mobile terminal, but this method not only needs to download the document, but also needs to require various reading software to be loaded on the mobile terminal. The second method is to convert the document into a picture format and read the document by the picture reading function of the mobile terminal, but this method is inconvenient for the reader to edit the document and other processes. The last is to convert the document online into HTML format to achieve pure web effect. The method has the advantages that the Word document is converted into the pure webpage in real time, the generated page is simple, particularly, the adaptation effect on the mobile terminal is good, and the reading experience of the mobile terminal is considered more on the premise of restoring the document content. The method can well process pictures and tables in the Word document and perfectly restore the content of the document. However, in daily life, a large number of users often view the same document in a short time, and if the document is converted every time, a large amount of server resources are wasted.
Therefore, a document conversion management method for online preview is urgently needed.
Disclosure of Invention
In order to solve the above problems, the present application proposes a file conversion management method, apparatus, device and medium for online preview, wherein the method includes:
receiving preview request information of a target document, and establishing a document conversion thread according to the preview request information, wherein the preview request information at least comprises a download path, a document name and a document unique identifier of the target document; determining a preset document identification set, wherein the document identification set stores a unique document identification corresponding to a document in the conversion process; querying whether the document unique identifier corresponding to the target document is stored in the document identifier set or not by traversing the document identifier set; if the document unique identification does not exist in the document identification set, storing the document unique identification into the document identification set, and performing format conversion on the target document; if the target document is successfully converted into a preview document, storing the preview document and the unique document identifier into a database; and sending the preview document to a client, and releasing the document conversion thread.
In one example, after storing the document unique identifier in the document identifier set and performing format conversion on the target document, the method further includes: and deleting the unique document identifier in the document identifier set.
In one example, after querying whether the document unique identifier corresponding to the target document is stored in the document identifier set by traversing the document identifier set, the method further includes: if the document unique identifier exists in the document identifier set, pausing the conversion request of the target document through the document conversion thread; and determining a preset first time interval, and after the first time interval, inquiring whether the document unique identifier corresponding to the target document is stored in the document identifier set again.
In one example, before the determining the preset document identification set, the method further comprises: traversing the database, and matching the document unique identification of the target document; if the document unique identifier exists in the database, taking out the history preview document corresponding to the document unique identifier in the database as the preview document of the target document.
In one example, prior to traversing the database, the method further comprises: traversing the cache in a preset historical time length, and matching the unique document identifier of the target document; if the unique document identifier exists in the cache, taking out the historical preview document corresponding to the unique document identifier in the cache as the preview document of the target document.
In one example, the method further comprises: determining a preset statistical time range, and counting the preview times of the target document within the statistical time range; and adjusting the sequence of the unique document identifier in the database according to the preview times so as to traverse according to the sequence of the preview times from large to small in the traversing process.
In one example, the preview document is an HTML formatted document.
The present application further provides a file conversion management apparatus for online previewing of a file, including: the system comprises a receiving request module, a document conversion module and a document conversion module, wherein the receiving request module is used for receiving preview request information of a target document and establishing a document conversion thread according to the preview request information, and the preview request information at least comprises a download path, a document name and a document unique identifier of the target document; the identification set module is used for determining a preset document identification set, and the document identification set stores the unique identification of the document corresponding to the document in the conversion process; the identification query module is used for querying whether the document unique identification corresponding to the target document is stored in the document identification set or not by traversing the document identification set; the document conversion module is used for storing the unique document identifier into the document identifier set and performing format conversion on the target document if the unique document identifier does not exist in the document identifier set; the conversion storage module is used for storing the preview document and the unique document identifier into a database if the target document is successfully converted into the preview document; and sending the preview document to a client, and releasing the document conversion thread.
The present application also provides a file conversion management device for online previewing of a file, including: at least one processor; and a memory communicatively coupled to the at least one processor; wherein the memory stores instructions executable by the at least one processor to enable the at least one processor to: receiving preview request information of a target document, and establishing a document conversion thread according to the preview request information, wherein the preview request information at least comprises a download path, a document name and a document unique identifier of the target document; determining a preset document identification set, wherein the document identification set stores a unique document identification corresponding to a document in the conversion process; querying whether the document unique identifier corresponding to the target document is stored in the document identifier set or not by traversing the document identifier set; if the document unique identification does not exist in the document identification set, storing the document unique identification into the document identification set, and performing format conversion on the target document; if the target document is successfully converted into a preview document, storing the preview document and the unique document identifier into a database; and sending the preview document to a client, and releasing the document conversion thread.
The present application further provides a non-volatile computer storage medium storing computer-executable instructions configured to: receiving preview request information of a target document, and establishing a document conversion thread according to the preview request information, wherein the preview request information at least comprises a download path, a document name and a document unique identifier of the target document; determining a preset document identification set, wherein the document identification set stores a unique document identification corresponding to a document in the conversion process; querying whether the document unique identifier corresponding to the target document is stored in the document identifier set or not by traversing the document identifier set; if the document unique identification does not exist in the document identification set, storing the document unique identification into the document identification set, and performing format conversion on the target document; if the target document is successfully converted into a preview document, storing the preview document and the unique document identifier into a database; and sending the preview document to a client, and releasing the document conversion thread.
According to the method, the target document can be transmitted to the file conversion system through the download link of the document, the document is converted into the webpage format and returned to the mobile terminal, and the webpage format is combined with the mobile terminal related technology such as WebView to realize the on-line preview function of clicking and browsing. Meanwhile, the target document is converted into the pure webpage in real time, the generated page is simple, particularly, the adaptation effect on the mobile terminal is good, the safety of the document can be well guaranteed, the readability is improved, and the working efficiency is improved.
Drawings
The accompanying drawings, which are included to provide a further understanding of the application and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the application and together with the description serve to explain the application and not to limit the application. In the drawings:
FIG. 1 is a diagram illustrating a document conversion management method for online preview according to an embodiment of the present application;
FIG. 2 is a diagram illustrating a document conversion management apparatus for online previewing according to an embodiment of the present application;
FIG. 3 is a diagram of a document conversion management apparatus for online preview according to an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the technical solutions of the present application will be described in detail and completely with reference to the following specific embodiments of the present application and the accompanying drawings. It should be apparent that the described embodiments are only some of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The technical solutions provided by the embodiments of the present application are described in detail below with reference to the accompanying drawings. The analysis method according to the embodiment of the present application may be implemented by a terminal device or a server, and the present application is not limited to this. For convenience of understanding and description, the following embodiments are described in detail by taking a server as an example.
It should be noted that the server may be a single device, or may be a system composed of multiple devices, that is, a distributed server, which is not specifically limited in this application.
As shown in fig. 1, an embodiment of the present application provides a file conversion management method for online preview, including:
s101: receiving preview request information of a target document, and establishing a document conversion thread according to the preview request information, wherein the preview request information at least comprises a download path, a document name and a document unique identifier of the target document.
When a user receives a certain document, the user can select to download and then select a mobile phone end application program for previewing, but the method is time-consuming and labor-consuming and cannot ensure the safety of the document, at the moment, the user can select to select online previewing by long-time pressing of the document, the document conversion server can obtain the content of the document according to the download link and convert the content of the document into a previewing file which can be directly opened and then return the previewing file to the mobile phone end, therefore, the document conversion server firstly needs to receive preview request information which is sent by the user and is used for a target document, and in order to conveniently obtain the content of the target document, the preview request information at least comprises a download path, a document name and a unique document identifier of the target document. The document unique identifier is an identifier generated by the mobile terminal according to the document name and the download path of the target document, has uniqueness, and can be understood as a hash value of the target document for convenient understanding.
S102: and determining a preset document identification set, wherein the document identification set stores the unique document identification corresponding to the document in the conversion process.
After the document unique identifier of the target document is acquired, various information of the target document in the server, such as information of whether the target document is converted in the server or is converted, can be determined through the document unique identifier.
Before determining various information of a target document in a server through a document unique identifier, a preset document identifier set needs to be determined, and because the scheme provided by the application is used for solving the problem that a large number of users send preview requests to the same document at the same time in a short time, the document unique identifier corresponding to the document in the conversion process is stored in the document identifier set. That is, only a plurality of document unique identifiers are stored in the document identifier set, and the documents corresponding to the document unique identifiers are in the conversion process. Of course, the document identification set may also store the document unique identification corresponding to the converted document.
S103: and querying whether the document unique identifier corresponding to the target document is stored in the document identifier set or not by traversing the document identifier set.
After the preset document identification set is determined, in order to check whether the target document is in the process of being converted in the server, the document identification set needs to be traversed to inquire whether the document unique identification corresponding to the target document is stored in the document identification set. If so, it is indicated that the target document has been submitted with a preview request by the user in advance and the target document is in the process of being converted.
S104: if the document unique identification does not exist in the document identification set, the document unique identification is stored in the document identification set, and format conversion is carried out on the target document.
If the document unique identifier does not exist in the document identifier set, the target document does not submit the preview request in a short time, namely the document in format conversion in the server does not include the target document. Therefore, format conversion of the target document is required to convert the target document into a document format that can be directly browsed by the mobile terminal. Meanwhile, in order to avoid repeated file transfer by the server due to the fact that other users upload the preview request of the target document later, the document unique identifier of the target document needs to be uploaded to the document identifier set, so that after the subsequent users upload the preview request of the target document, the document conversion thread can inquire the document unique identifier of the target document in the document identifier set, and therefore simultaneous conversion of the target document is abandoned.
S105: and if the target document is successfully converted into a preview document, storing the preview document and the unique document identifier into a database.
And if the target document is successfully converted into a preview document which can be directly browsed on line on the mobile terminal, storing the preview document and the document unique identification of the preview document, namely the target document, into a database of the server.
S106: and sending the preview document to a client, and releasing the document conversion thread.
After the preview document is stored, the preview document needs to be sent to the mobile terminal, so that the user can browse the content of the target file on line through the mobile terminal in time. The document conversion thread also needs to be released at the same time so that other tasks can invoke the thread.
In an embodiment, because in the technical solution provided by the present application, only the document unique identifier corresponding to the document being converted is stored in the document identifier set, after the target document is converted, the document unique identifier corresponding to the target document in the document identifier set should be deleted, so as to prevent that the document conversion process cannot be performed later after a preview request is uploaded by a subsequent user.
In an embodiment, since a large amount of resources of the server would be wasted by performing multiple document conversions on the same target document in a short time, after querying whether a document unique identifier corresponding to the target document exists in the document identifier set, if the document unique identifier exists, it indicates that a user has sent a document conversion request to the target document before, and a document conversion operation is being performed at this time, so that the document conversion thread suspends the conversion request of the target document. And the converted preview document can be automatically sent to the suspended document conversion thread after the conversion is completed, so as to prevent the user from further operating. Meanwhile, a preset first time interval may also be determined, and after the first time interval, whether the document unique identifier corresponding to the target document is stored in the document identifier set is queried again. Because the document unique identifier is deleted from the document identifier set after the target document conversion is successful or failed, the query needs to be performed again after a while.
In an embodiment, if a target document has been converted in a server and a user makes a preview request for the same target document, at this time, if the target document is converted again, server resources are wasted greatly, and therefore, since the converted preview document and the corresponding document unique identifier are stored in the database, before querying the document unique identifier in the document identifier set, it is queried whether the document unique identifier exists in the database, if so, it is indicated that the document has been converted, that is, a preview document corresponding to the target document exists in the database, and at this time, the preview document corresponding to the target document can be directly taken out from the database, so that the document conversion process is omitted, and the efficiency of file preview is improved.
Further, after the server runs for a long time, a large number of preview documents and a large number of document unique identifiers are stored in the database, and at this time, matching the document unique identifier of the target document from the database will consume a large amount of time, so that matching can be performed from the cache within the preset historical duration of the server at first, for example, whether the target document has been converted or not is inquired from the cache within one day of the server, and if the document unique identifier of the target document exists in the cache, the preview document is taken out from the cache; if not, matching is performed from the database again to reduce time consumption.
In one embodiment, because there are many preview files stored in the database, it will take a long time to query the corresponding preview document or the unique document identifier in the database, so that the preview times of each document in the database within a preset time range can be counted, and the unique document identifiers in the database are sorted according to the preview times, so that in the process of traversing the database, the document identifiers are identified according to the size sequence of the preview times of each document, thereby reducing the traversal time and improving the preview efficiency of the document.
In one embodiment, the preview document is a document in an HTML format, that is, the target document is converted into a pure webpage format, so that the mobile terminal can conveniently browse the document, the page generated by the document in the HTML format is concise, the adaptation effect to the mobile terminal is good, the security of the document can be well guaranteed, the readability is improved, and the working efficiency is improved.
As shown in fig. 2, an embodiment of the present application further provides a document conversion management apparatus for online preview, including:
the receiving request module 201 is configured to receive preview request information of a target document, and establish a document conversion thread according to the preview request information, where the preview request information at least includes a download path, a document name, and a unique document identifier of the target document.
An identifier set module 202, configured to determine a preset document identifier set, where the document identifier set stores a unique identifier of a document corresponding to a document in the conversion process.
The identifier query module 203 is configured to query whether the document unique identifier corresponding to the target document is stored in the document identifier set by traversing the document identifier set.
And the document conversion module 204 is configured to store the unique document identifier into the document identifier set and perform format conversion on the target document if the unique document identifier does not exist in the document identifier set.
A conversion storage module 205, configured to store the preview document and the unique document identifier in a database if the target document is successfully converted into the preview document; and sending the preview document to a client, and releasing the document conversion thread.
As shown in fig. 3, an embodiment of the present application further provides a document conversion management apparatus for online preview, including:
at least one processor; and the number of the first and second groups,
a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,
the memory stores instructions executable by the at least one processor to enable the at least one processor to:
receiving preview request information of a target document, and establishing a document conversion thread according to the preview request information, wherein the preview request information at least comprises a download path, a document name and a unique document identifier of the target document; determining a preset document identification set, wherein the document identification set stores a unique document identification corresponding to a document in the conversion process; querying whether the document unique identifier corresponding to the target document is stored in the document identifier set or not by traversing the document identifier set; if the document unique identification does not exist in the document identification set, storing the document unique identification into the document identification set, and performing format conversion on the target document; if the target document is successfully converted into a preview document, storing the preview document and the unique document identifier into a database; and sending the preview document to a client, and releasing the document conversion thread.
An embodiment of the present application further provides a non-volatile computer storage medium storing computer-executable instructions, where the computer-executable instructions are configured to:
receiving preview request information of a target document, and establishing a document conversion thread according to the preview request information, wherein the preview request information at least comprises a download path, a document name and a document unique identifier of the target document; determining a preset document identification set, wherein the document identification set stores a unique document identification corresponding to a document in the conversion process; querying whether the document unique identifier corresponding to the target document is stored in the document identifier set or not by traversing the document identifier set; if the document unique identification does not exist in the document identification set, storing the document unique identification into the document identification set, and performing format conversion on the target document; if the target document is successfully converted into a preview document, storing the preview document and the unique document identifier into a database; and sending the preview document to a client, and releasing the document conversion thread.
The embodiments in the present application are described in a progressive manner, and the same and similar parts among the embodiments can be referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, for the device and media embodiments, the description is relatively simple as it is substantially similar to the method embodiments, and reference may be made to some descriptions of the method embodiments for relevant points.
The device and the medium provided by the embodiment of the application correspond to the method one to one, so the device and the medium also have the similar beneficial technical effects as the corresponding method, and the beneficial technical effects of the method are explained in detail above, so the beneficial technical effects of the device and the medium are not repeated herein.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
In a typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include forms of volatile memory in a computer readable medium, Random Access Memory (RAM) and/or non-volatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). Memory is an example of a computer-readable medium.
Computer-readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), Read Only Memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), Digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information that can be accessed by a computing device. As defined herein, a computer readable medium does not include a transitory computer readable medium such as a modulated data signal and a carrier wave.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
The above description is only an example of the present application and is not intended to limit the present application. Various modifications and changes may occur to those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of the claims of the present application.

Claims (10)

1. A document conversion management method for online preview, comprising:
receiving preview request information of a target document, and establishing a document conversion thread according to the preview request information, wherein the preview request information at least comprises a download path, a document name and a document unique identifier of the target document;
determining a preset document identification set, wherein the document identification set stores a unique document identification corresponding to a document in the conversion process;
querying whether the document unique identifier corresponding to the target document is stored in the document identifier set or not by traversing the document identifier set;
if the document unique identification does not exist in the document identification set, storing the document unique identification into the document identification set, and performing format conversion on the target document;
if the target document is successfully converted into a preview document, storing the preview document and the unique document identifier into a database;
and sending the preview document to a client, and releasing the document conversion thread.
2. The method of claim 1, wherein after storing the document unique identifier in the document identifier set and converting the format of the target document, the method further comprises:
and deleting the unique document identifier in the document identifier set.
3. The method according to claim 1, wherein after querying whether the document unique identifier corresponding to the target document is stored in the document identifier set by traversing the document identifier set, the method further comprises:
if the document unique identifier exists in the document identifier set, pausing the conversion request of the target document through the document conversion thread;
and determining a preset first time interval, and after the first time interval, inquiring whether the document unique identifier corresponding to the target document is stored in the document identifier set again.
4. The method of claim 1, wherein prior to determining the preset set of document identifications, the method further comprises:
traversing the database, and matching the document unique identification of the target document;
if the document unique identifier exists in the database, taking out the history preview document corresponding to the document unique identifier in the database as the preview document of the target document.
5. The method of claim 4, wherein prior to traversing the database, the method further comprises:
traversing the cache in a preset historical time length, and matching the unique document identifier of the target document;
if the unique document identifier exists in the cache, taking out the historical preview document corresponding to the unique document identifier in the cache as the preview document of the target document.
6. The method of claim 4, further comprising:
determining a preset statistical time range, and counting the preview times of the target document within the statistical time range;
and adjusting the sequence of the unique document identifier in the database according to the preview times so as to traverse according to the sequence of the preview times from large to small in the traversing process.
7. The method of claim 1, wherein the preview document is an HTML formatted document.
8. A file conversion management apparatus for online previewing of a file, comprising:
the system comprises a receiving request module, a document conversion module and a document conversion module, wherein the receiving request module is used for receiving preview request information of a target document and establishing a document conversion thread according to the preview request information, and the preview request information at least comprises a download path, a document name and a document unique identifier of the target document;
the identification set module is used for determining a preset document identification set, and the document identification set stores the unique identification of the document corresponding to the document in the conversion process;
the identification query module is used for querying whether the document unique identification corresponding to the target document is stored in the document identification set or not by traversing the document identification set;
the document conversion module is used for storing the unique document identifier into the document identifier set and performing format conversion on the target document if the unique document identifier does not exist in the document identifier set;
the conversion storage module is used for storing the preview document and the unique document identifier into a database if the target document is successfully converted into the preview document; and sending the preview document to a client, and releasing the document conversion thread.
9. A file conversion management apparatus for online previewing of a file, comprising:
at least one processor; and a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,
the memory stores instructions executable by the at least one processor to cause the at least one processor to perform:
receiving preview request information of a target document, and establishing a document conversion thread according to the preview request information, wherein the preview request information at least comprises a download path, a document name and a document unique identifier of the target document;
determining a preset document identification set, wherein the document identification set stores the unique document identification corresponding to the document in the conversion process;
querying whether the document unique identifier corresponding to the target document is stored in the document identifier set or not by traversing the document identifier set;
if the document unique identification does not exist in the document identification set, storing the document unique identification into the document identification set, and performing format conversion on the target document;
if the target document is successfully converted into a preview document, storing the preview document and the unique document identifier into a database;
and sending the preview document to a client, and releasing the document conversion thread.
10. A non-transitory computer storage medium storing computer-executable instructions, wherein the computer-executable instructions are configured to:
receiving preview request information of a target document, and establishing a document conversion thread according to the preview request information, wherein the preview request information at least comprises a download path, a document name and a document unique identifier of the target document;
determining a preset document identification set, wherein the document identification set stores the unique document identification corresponding to the document in the conversion process;
querying whether the document unique identifier corresponding to the target document is stored in the document identifier set or not by traversing the document identifier set;
if the document unique identification does not exist in the document identification set, storing the document unique identification into the document identification set, and performing format conversion on the target document;
if the target document is successfully converted into a preview document, storing the preview document and the unique document identifier into a database;
and sending the preview document to a client, and releasing the document conversion thread.
CN202210095143.XA 2022-01-26 2022-01-26 File conversion management method, device, equipment and medium for online preview Pending CN114528813A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210095143.XA CN114528813A (en) 2022-01-26 2022-01-26 File conversion management method, device, equipment and medium for online preview

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210095143.XA CN114528813A (en) 2022-01-26 2022-01-26 File conversion management method, device, equipment and medium for online preview

Publications (1)

Publication Number Publication Date
CN114528813A true CN114528813A (en) 2022-05-24

Family

ID=81622946

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210095143.XA Pending CN114528813A (en) 2022-01-26 2022-01-26 File conversion management method, device, equipment and medium for online preview

Country Status (1)

Country Link
CN (1) CN114528813A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115878676A (en) * 2023-02-08 2023-03-31 成都数联云算科技有限公司 Method, device, equipment and medium for previewing file
CN116089362A (en) * 2023-03-06 2023-05-09 北京微吼时代科技有限公司 Document conversion method and system, live broadcast system, storage medium and electronic device

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115878676A (en) * 2023-02-08 2023-03-31 成都数联云算科技有限公司 Method, device, equipment and medium for previewing file
CN115878676B (en) * 2023-02-08 2023-05-05 成都数联云算科技有限公司 Method, device, equipment and medium for previewing file
CN116089362A (en) * 2023-03-06 2023-05-09 北京微吼时代科技有限公司 Document conversion method and system, live broadcast system, storage medium and electronic device

Similar Documents

Publication Publication Date Title
CN114528813A (en) File conversion management method, device, equipment and medium for online preview
CN109561117B (en) Data acquisition method and device
CN111245748A (en) File transmission method, device, system, electronic equipment and storage medium
US11238402B2 (en) Information operation
CN113468199B (en) Index updating method and system
CN109241384A (en) A kind of method for visualizing and device of scientific research information
CN104462096A (en) Public opinion monitoring and analysis method and device
CN107220260B (en) Page display method and device
CN114490641A (en) Industrial Internet data sharing method, equipment and medium
CN104750815B (en) The storage method and device of a kind of Lob data based on HBase
CN113778947A (en) Data import method, device and equipment of kafka stream processing platform
CN109213955B (en) Data processing method and related equipment
CN109068286B (en) Information analysis method, medium and equipment
CN111460348A (en) File processing method and device
CN107357808B (en) Data management method, device and equipment
CN112860720B (en) Storage capacity updating method and device
Junior et al. Cost optimization on public cloud provider for big geospatial data
CN114895852A (en) Data processing method, system, device, storage medium and electronic equipment
CN113836169A (en) Clickhouse-based data processing method, device and medium
CN102694802A (en) Method and device for recording network access information
CN114205641A (en) Video data processing method and device
CN113987287A (en) Document association method, system, device and storage medium
CN111913789A (en) Program tracking method, device and medium supporting micro-service architecture
CN111124365A (en) RPA demand collection method and device
CN110874349A (en) File sorting method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination