Document format conversion method, device and medium
By identifying and generating document information tables, the problem of inefficiency caused by not installing conversion software at the terminal is solved, and the rapid and efficient management of document format conversion is achieved.
Patent Information
- Application Number
- CN202010602705.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-06-29
- Publication Date
- 2024-11-22
- Estimated Expiration
- 2040-06-29
AI Technical Summary
In daily work, people often suffer from inefficiency in converting document formats because the terminal does not install the corresponding format conversion software.
A document format conversion method is proposed, including determining the information of the document to be converted, generating a document information table, and converting the format based on the table, ensuring that the format conversion can be quickly performed even if the user does not install the corresponding program locally, and performing it through the document information table. Effectively manage and store.
It realizes that even if the user does not have corresponding programs and controls locally, it can quickly convert document formats, and improves document management, storage and display efficiency.
Smart Images

Figure CN111967226B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of format conversion, and in particular to a document format conversion method, device and medium. Background Art
[0002] In daily work, people often need to convert documents into corresponding formats in order to meet customer requirements, corresponding program regulations, etc. However, in the actual work process, people often encounter many problems when converting formats, for example, the corresponding format conversion software is not installed locally on the terminal, which makes the work efficiency low. Summary of the invention
[0003] In order to solve the above problems, the present application proposes a document format conversion method, including: determining a document to be converted uploaded by a terminal, and identifying document information corresponding to the document to be converted; generating a document information table corresponding to the document to be converted, and sending the document information table to the terminal so that the terminal can display it; receiving a conversion request sent by the terminal, and based on the conversion request, converting the document to be converted into a corresponding format to obtain a converted document; updating the document information table according to the converted document, and sending the converted document to the terminal.
[0004] In one example, after identifying the document information corresponding to the document to be converted, the method includes: determining that the format of the document to be converted is one of the preset formats; if the format of the document to be converted is not in the preset format, the method also includes: providing feedback to the terminal, the feedback indicating that the format of the document to be converted is not in the preset format.
[0005] In one example, the method further includes: updating a pre-created form information table according to the document information table, the attributes of the form information table including: at least one of a document internal code, a document number, a document association, and a format.
[0006] In one example, the attributes of the document information table include: at least one of: a document table internal code, a document identifier to be converted, a document name to be converted, a document size to be converted, a document format to be converted, a document location to be converted, a converted document identifier, a converted document name, a converted document size, a converted document format, and a converted document location.
[0007] On the other hand, the present application also proposes a document format conversion method, including: uploading a document to be converted to a server; receiving a document information table corresponding to the document to be converted returned by the server; sending a conversion request to the server, the conversion request including the converted format; receiving a converted document after the format conversion of the document to be converted returned by the server, and storing the converted document.
[0008] In one example, before sending a conversion request to the server, wherein the conversion request includes the converted format, the method further includes: performing online editing on the document to be converted through corresponding controls and programs.
[0009] In one example, storing the converted document includes: editing the converted document online through corresponding controls and programs; and storing the converted document after online editing.
[0010] In one example, the attributes of the document information table include: at least one of: a document table internal code, a document identifier to be converted, a document name to be converted, a document size to be converted, a document format to be converted, a document location to be converted, a converted document identifier, a converted document name, a converted document size, a converted document format, and a converted document location.
[0011] On the other hand, the present application also proposes a document format conversion device, comprising: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can: determine the document to be converted uploaded by the terminal, and identify the document information corresponding to the document to be converted; generate a document information table corresponding to the document to be converted, and send the document information table to the terminal so that the terminal displays it; receive a conversion request sent by the terminal, and based on the conversion request, convert the document to be converted into a corresponding format to obtain a converted document; update the document information table according to the converted document, and send the converted document to the terminal.
[0012] On the other hand, the present application also proposes a non-volatile computer storage medium for document format conversion, which stores computer executable instructions, and the computer executable instructions are configured to: determine the document to be converted uploaded by the terminal, and identify the document information corresponding to the document to be converted; generate a document information table corresponding to the document to be converted, and send the document information table to the terminal so that the terminal can display it; receive a conversion request sent by the terminal, and based on the conversion request, convert the document to be converted into a corresponding format to obtain a converted document; update the document information table according to the converted document, and send the converted document to the terminal.
[0013] The document format conversion method proposed in this application can bring the following beneficial effects:
[0014] Even if the user does not have the corresponding program and control for format conversion locally, the document format can be converted quickly. In addition, by setting the document information table, each document to be converted can be managed, stored and displayed more effectively. BRIEF DESCRIPTION OF THE DRAWINGS
[0015] The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:
[0016] Figure 1 This is a flowchart of a document format conversion method in an embodiment of the present application;
[0017] Figure 2 This is a schematic diagram of a document format conversion device in an embodiment of the present application;
[0018] Figure 3 A flowchart of another document format conversion method according to an embodiment of the present application;
[0019] Figure 4 This is a schematic diagram of the specific process of the document format conversion method in the embodiment of the present application. DETAILED DESCRIPTION
[0020] In order to make the purpose, technical solution and advantages of the present application clearer, the technical solution of the present application will be clearly and completely described below in combination with the specific embodiments of the present application and the corresponding drawings. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present application.
[0021] The technical solutions provided by various embodiments of the present application are described in detail below in conjunction with the accompanying drawings.
[0022] like Figure 1 and Figure 4 As shown, the embodiment of the present application provides a document format conversion method, including:
[0023] S101: Determine a document to be converted uploaded by a terminal, and identify document information corresponding to the document to be converted.
[0024] When a user wants to convert the format of a document, the document can be called a document to be converted. The user can first upload the document to be converted through the terminal, for example, the document can be pre-registered in the corresponding client, and then uploaded to the server through the client. When the server receives the document with conversion, it can first identify the document information of the document to be converted, for example, the format, size, content, storage location of the document on the server, etc. Of course, the format type of the document to be converted can be a text type, an image type, or a mixed type of text and image.
[0025] In addition, in the prior art, not all formats of documents can be converted accordingly. Therefore, after identifying the document information of the document to be converted, the format of the document to be converted can be determined. At this time, it can be determined whether the format of the document to be converted is one of the preset formats. If so, the next steps can be continued. If the format of the document to be converted is not one of the preset formats, feedback can be given to the terminal so that the terminal uploads the document in the preset format. Among them, the preset format can include PDF, TXT, WORD, etc., which will not be repeated here.
[0026] S102: Generate a document information table corresponding to the document to be converted, and send the document information table to the terminal so that the terminal displays it.
[0027] After determining the document information of the document to be converted, the server can generate a document information table with the converted document according to the document information, and send the document information table to the terminal. After receiving the document information table, the terminal can display it to the user so that the user can check it and perform corresponding proofreading.
[0028] Specifically, the attributes in the document information table may include at least one of: document table internal code, to-be-converted document identifier, to-be-converted document name, to-be-converted document size, to-be-converted document format, to-be-converted document location, converted document identifier, converted document name, converted document size, converted document format, and converted document location. The converted document refers to a document after the format of the to-be-converted document is converted. The data contained in the document information table may be as shown in the following table.
[0029]
[0030] Among them, the attribute description represents the various attributes that can be included in the document information table, the attribute name example represents the name example that can be used when the data corresponding to each attribute is stored in the document information table, the type represents the corresponding data type, the empty value indicates whether the data is unknown, not applicable, etc., and the description is the corresponding description for the attribute. In the actual document information table, the description can be set or not, and there is no limitation here.
[0031] S103: receiving a conversion request sent by the terminal, and based on the conversion request, converting the document to be converted into a corresponding format to obtain a converted document.
[0032] After the terminal user has checked and confirmed that there is no problem, a conversion request can be sent to the server. The conversion request carries the format that the user wants to convert the document to be converted. After receiving the conversion request, the server can convert the document to be converted based on the conversion request to obtain a converted document.
[0033] Specifically, you can use the Spire.office series of components to perform format conversion. For example, using Spire.Doc, you can convert documents in Word format to PDF, images, EPUB, TXT and other formats, and of course you can also perform two-way conversion. You can also use Spire.PDF to convert documents in PDF format to SVG, Word, images, XPS and other formats. You can also use Spire.XLS to convert documents in Excel format to PDF, images, SVG and other formats.
[0034] S104: Update the document information table according to the converted document, and send the converted document to the terminal.
[0035] After the conversion is finished, the generated document information table can be updated, and the converted document can be sent to the terminal, so that the user can obtain the converted document. Of course, the updated document information table can be sent to the terminal, or it can not be sent, which is not limited here. The attributes included in the updated document information table have been described in the above embodiment, and will not be repeated here. Of course, after the conversion, it can be determined whether the conversion is successful. If the conversion format is successful, it can be sent to the terminal. If the conversion fails, the format conversion can be performed again.
[0036] Of course, you can also create a corresponding form information table in advance, and determine whether to save the form information table based on the user's relevant requirements or the server's operating status. Each form in the form information table can be stored in the database table as a row of data, and the form information table is mainly used to record the document information table. The information stored in each field in the document information table and form information table of the database has practical significance, and the field type needs to be correctly configured. Some form information is only used for display and is not actually stored.
[0037] Specifically, the attributes in the form information table may include at least one of a document internal code, a document number, a document association, and a format. The data contained in the form information table may be as shown in the following table.
[0038]
[0039]
[0040] like Figure 3 and Figure 4 As shown, the embodiment of the present application also proposes a document format conversion method, including:
[0041] S301, uploading the document to be converted to the server.
[0042] S302: Receive the document information table corresponding to the document to be converted, which is returned by the server.
[0043] When a user wants to convert a document, he can upload the document to be converted to the server through the terminal. After receiving the document to be converted, the server can generate a document information table according to the document information of the document to be converted and return it to the terminal. Of course, when returning the document information table, the document to be converted can be carried, which is not limited here.
[0044] If the terminal believes that there is no problem with the document to be converted, the next step can be continued. If the terminal believes that there is a problem with the document to be converted, for example, there are writing errors inside, the document to be converted can be edited online through the corresponding controls and programs. Online editing can use ActiveX controls, which will call different programs to open according to the format of the document to be converted, such as Word, Excel, etc., and you can also manually specify which program to activate to open the document to be converted. After online editing, the document to be converted after online editing can be sent to the server.
[0045] S303: Send a conversion request to the server, where the conversion request includes a converted format.
[0046] S304: Receive a converted document returned by the server after the format of the document to be converted is converted, and store the converted document.
[0047] After the document information table is determined or online editing is performed, a conversion request can be sent to the server, and the conversion request includes the format to be converted. After the server receives the conversion request, the format conversion can be performed. After the server completes the conversion, the converted document with the converted format can be sent to the terminal, and the terminal can store it. Among them, if the user has corresponding needs, the converted document can be edited online through the corresponding program and control, and then the converted document after online editing can be stored.
[0048] like Figure 2 As shown, the embodiment of the present application also provides a document format conversion device, including:
[0049] at least one processor; and,
[0050] a memory communicatively connected to the at least one processor; wherein,
[0051] The memory stores instructions executable by the at least one processor, the instructions being executed by the at least one processor to enable the at least one processor to:
[0052] Determine the document to be converted uploaded by the terminal, and identify the document information corresponding to the document to be converted;
[0053] Generating a document information table corresponding to the document to be converted, and sending the document information table to the terminal so that the terminal can display it;
[0054] receiving a conversion request sent by the terminal, and based on the conversion request, converting the document to be converted into a corresponding format to obtain a converted document;
[0055] The document information table is updated according to the converted document, and the converted document is sent to the terminal.
[0056] The embodiment of the present application also provides a non-volatile computer storage medium for document format conversion, which stores computer executable instructions, and the computer executable instructions are configured as follows:
[0057] Determine the document to be converted uploaded by the terminal, and identify the document information corresponding to the document to be converted;
[0058] Generating a document information table corresponding to the document to be converted, and sending the document information table to the terminal so that the terminal can display it;
[0059] receiving a conversion request sent by the terminal, and based on the conversion request, converting the document to be converted into a corresponding format to obtain a converted document;
[0060] The document information table is updated according to the converted document, and the converted document is sent to the terminal.
[0061] Each embodiment in this application is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the device and medium embodiments, since they are basically similar to the method embodiments, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiments.
[0062] The devices and media provided in the embodiments of the present application correspond one-to-one to the methods. Therefore, the devices and media also have similar beneficial technical effects as the corresponding methods. Since the beneficial technical effects of the methods have been described in detail above, the beneficial technical effects of the devices and media will not be repeated here.
[0063] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented in one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that include computer-usable program code.
[0064] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0065] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0066] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0067] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.
[0068] The memory may include non-permanent storage in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.
[0069] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules 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 disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.
[0070] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.
[0071] The above is only an embodiment of the present application and is not intended to limit the present application. For those skilled in the art, the present application may have various changes and variations. 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
1. A document format conversion method, characterized in that: include: Determine the document to be converted uploaded by the terminal, and identify the document information corresponding to the document to be converted; Generating a document information table corresponding to the document to be converted, and sending the document information table to the terminal so that the terminal can display it; receiving a conversion request sent by the terminal, and based on the conversion request, converting the document to be converted into a corresponding format to obtain a converted document; Update the document information table according to the converted document, and send the converted document to the terminal; The method further comprises: Update the pre-created form information table according to the document information table, wherein the attributes of the form information table include: at least one of a document internal code, a document number, a document association, and a format; The attributes of the document information table include: at least one of a document table internal code, a document identifier to be converted, a document name to be converted, a document size to be converted, a document format to be converted, a document position to be converted, a converted document identifier, a converted document name, a converted document size, a converted document format, and a converted document position; Before the terminal sends a conversion request to the server, wherein the conversion request includes the converted format, the method further includes: Edit the documents to be converted online through corresponding controls and programs; The terminal stores the converted document, including: Edit the converted documents online through corresponding controls and programs; Storing the converted document after online editing; After identifying the document information corresponding to the document to be converted, the method includes: Determining that the format of the document to be converted is one of the preset formats; If the format of the document to be converted is not in the preset format, the method further includes: Feedback is provided to the terminal, wherein the feedback indicates that the format of the document to be converted is not within the preset format.
2. A document format conversion method, characterized in that: include: Upload the document to be converted to the server; Receive the document information table corresponding to the document to be converted returned by the server; Sending a conversion request to the server, wherein the conversion request includes a converted format; Receiving a converted document returned by the server after the format of the document to be converted has been converted, and storing the converted document; The server updates a pre-created form information table according to the document information table, wherein the attributes of the form information table include at least one of a document internal code, a document number, a document association, and a format; The attributes of the document information table include: at least one of a document table internal code, a document identifier to be converted, a document name to be converted, a document size to be converted, a document format to be converted, a document position to be converted, a converted document identifier, a converted document name, a converted document size, a converted document format, and a converted document position; The method further comprises: Update the pre-created form information table according to the document information table, wherein the attributes of the form information table include at least one of a document internal code, a document number, a document association, and a format; The attributes of the document information table include: at least one of a document table internal code, a document identifier to be converted, a document name to be converted, a document size to be converted, a document format to be converted, a document position to be converted, a converted document identifier, a converted document name, a converted document size, a converted document format, and a converted document position; Before sending a conversion request to the server, wherein the conversion request includes the converted format, the method further includes: Edit the documents to be converted online through corresponding controls and programs; Storing the converted document includes: Edit the converted documents online through corresponding controls and programs; Storing the converted document after online editing; After identifying the document information corresponding to the document to be converted, the following steps are included: The server determines that the format of the document to be converted is one of the preset formats; If the format of the document to be converted is not in the preset format, the method further includes: The server provides feedback to the terminal, where the feedback indicates that the format of the document to be converted is not in the preset format.
3. A document format conversion device, characterized in that: include: at least one processor; as well as, a memory communicatively connected to the at least one processor; wherein, The memory stores instructions executable by the at least one processor, the instructions being executed by the at least one processor to enable the at least one processor to: Determine the document to be converted uploaded by the terminal, and identify the document information corresponding to the document to be converted; Generating a document information table corresponding to the document to be converted, and sending the document information table to the terminal so that the terminal can display it; receiving a conversion request sent by the terminal, and based on the conversion request, converting the document to be converted into a corresponding format to obtain a converted document; Update the document information table according to the converted document, and send the converted document to the terminal; Also includes: Update the pre-created form information table according to the document information table, wherein the attributes of the form information table include at least one of a document internal code, a document number, a document association, and a format; The attributes of the document information table include: at least one of a document table internal code, a document identifier to be converted, a document name to be converted, a document size to be converted, a document format to be converted, a document position to be converted, a converted document identifier, a converted document name, a converted document size, a converted document format, and a converted document position; The terminal sends a conversion request to the server, and the conversion request includes, before the converted format, the following: Edit the documents to be converted online through corresponding controls and programs; The terminal stores the converted document, including: Edit the converted documents online through corresponding controls and programs; Storing the converted document after online editing; After identifying the document information corresponding to the document to be converted, the following steps are included: The server determines that the format of the document to be converted is one of the preset formats; If the format of the document to be converted is not in the preset format, the method further includes: The server provides feedback to the terminal, where the feedback indicates that the format of the document to be converted is not in the preset format.
4. A non-volatile computer storage medium for document format conversion, storing computer executable instructions, characterized in that: The computer executable instructions are configured to: Determine the document to be converted uploaded by the terminal, and identify the document information corresponding to the document to be converted; Generating a document information table corresponding to the document to be converted, and sending the document information table to the terminal so that the terminal can display it; receiving a conversion request sent by the terminal, and based on the conversion request, converting the document to be converted into a corresponding format to obtain a converted document; Update the document information table according to the converted document, and send the converted document to the terminal; Also includes: Update the pre-created form information table according to the document information table, wherein the attributes of the form information table include at least one of a document internal code, a document number, a document association, and a format; The attributes of the document information table include: at least one of a document table internal code, a document identifier to be converted, a document name to be converted, a document size to be converted, a document format to be converted, a document position to be converted, a converted document identifier, a converted document name, a converted document size, a converted document format, and a converted document position; The terminal sends a conversion request to the server, and the conversion request includes, before the converted format, the following: Edit the documents to be converted online through corresponding controls and programs; The terminal stores the converted document, including: Edit the converted documents online through corresponding controls and programs; Storing the converted document after online editing; After identifying the document information corresponding to the document to be converted, the following steps are included: The server determines that the format of the document to be converted is one of the preset formats; If the format of the document to be converted is not in the preset format, the method further includes: The server provides feedback to the terminal, where the feedback indicates that the format of the document to be converted is not in the preset format.
