Text file transferring method and device and related equipment

文档序号:1465979 发布日期:2020-02-21 浏览:8次 中文

阅读说明:本技术 一种文本转档方法、装置以及相关设备 (Text file transferring method and device and related equipment ) 是由 闭君能 于 2019-10-10 设计创作,主要内容包括:本公开实施例公开了一种文本转档方法、装置以及相关设备,该方法包括:获取转档请求,转档请求用于对待转档文本进行格式转换,转档请求携带待转档文本的转档份数N和转档格式,待转档文本包括N个文本标识,每一个文本标识对应一转档份数;根据N个文本标识和转档格式在打印平台中查找N个第一文本,若未查找到第一文本,则判断未查找到的第一文本的数量M是否超过第一阈值,若是,则将待转档文本异步发送到打印平台中进行格式转换以获取N个第一文本,若否,则将待转档文本同步发送到打印平台中进行格式转换以获取N个第一文本,第一文本为待转档文本进行格式转换后的文本,M<=N。采用本公开实施例,能够提高大批量文本转档的效率。(The embodiment of the disclosure discloses a text file transferring method, a text file transferring device and related equipment, wherein the method comprises the following steps: acquiring a file transfer request, wherein the file transfer request is used for carrying out format conversion on a text to be transferred, the file transfer request carries the file transfer number N and the file transfer format of the text to be transferred, the text to be transferred comprises N text identifications, and each text identification corresponds to one file transfer number; searching N first texts in a printing platform according to the N text identifications and the file transfer format, if the first texts are not searched, judging whether the number M of the first texts which are not searched exceeds a first threshold value, if so, asynchronously sending the texts to be transferred to the printing platform for format conversion to obtain N first texts, and if not, synchronously sending the texts to be transferred to the printing platform for format conversion to obtain N first texts, wherein the first texts are the texts after the texts to be transferred are subjected to format conversion, and M is less than N. By adopting the embodiment of the disclosure, the efficiency of transferring large batches of texts can be improved.)

1. A text file transfer method is characterized by comprising the following steps:

acquiring a file transfer request, wherein the file transfer request is used for carrying out format conversion on a text to be transferred, the file transfer request carries the number N of file transfers and the file transfer format of the text to be transferred, the text to be transferred comprises N text identifications, and each text identification corresponds to one file transfer number;

searching N first texts in a printing platform according to the N text identifications and the file transfer format, if the first texts are not searched, judging whether the number M of the first texts which are not searched exceeds a first threshold value, if so, asynchronously sending the texts to be transferred to the printing platform for format conversion to obtain N first texts, and if not, synchronously sending the texts to be transferred to the printing platform for format conversion to obtain N first texts, wherein the first texts are texts after the texts to be transferred are subjected to format conversion, and M is less than N.

2. The method of claim 1, wherein obtaining the shift request is preceded by:

and setting a first threshold value based on the type of the text to be transferred.

3. The method of claim 1, wherein obtaining the shift request is followed by:

and setting the priority of the text to be transferred, and allocating printing platform resources based on the priority.

4. The method of claim 3, wherein said assigning printing platform resources based on said priority comprises:

when the number M of the first texts which are not found exceeds a second threshold value, increasing printing platform resources of the texts to be transferred; wherein the second threshold is greater than the first threshold;

determining the increased printing platform resource based on a difference between the first threshold and M.

5. The method of claim 2, wherein setting a first threshold based on the type of text to be transferred comprises:

adjusting the first threshold according to a parameter of the printing platform; wherein the parameters of the printing platform comprise the bearing capacity of the printing platform.

6. The method of claim 5, wherein said adjusting the first threshold according to a parameter of the printing platform comprises:

when the bearing capacity of the printing platform is larger than a first gear shifting threshold value, reducing the first threshold value to a third threshold value;

when the bearing capacity of the printing platform is smaller than a second gear shifting threshold value, increasing the first threshold value to a fourth threshold value; the first gear shifting threshold value is larger than the second gear shifting threshold value, and the fourth threshold value is smaller than the second threshold value.

7. The method of claim 1, wherein the textual identification comprises an identification number, a name, a phone number.

8. A text document conversion device, characterized by comprising means for performing the method according to any one of claims 1-7.

9. A text-shifting apparatus comprising a processor, an input device, an output device and a memory, the processor, the input device, the output device and the memory being interconnected, wherein the memory is configured to store application program code, and wherein the processor is configured to invoke the program code to perform the method of any of claims 1-7.

10. A computer-readable storage medium, characterized in that the computer-readable storage medium stores a computer program comprising program instructions that, when executed by a processor, cause the processor to carry out the method according to any one of claims 1-7.

Technical Field

The present disclosure relates to the field of computers, and in particular, to a method and an apparatus for text file transfer and a related device.

Background

With the rapid development of computer technology, the data filling of paper files has been converted into the data filling of web page versions. For example, a user filling out a personal resume on a web page may print the resume in text form. In addition, when the user buys insurance, the user fills in the information required by the insurance business on the webpage of the insurance company, and the data of the user (namely the information filled in by the user) can be converted into text (namely an insurance policy) through the printing platform. When a user fills in a web page and data needs to be converted into multiple copies of text, it is easy to time out and fail to convert successfully.

Disclosure of Invention

The disclosed embodiments provide a text file transfer technology.

In a first aspect, a text file transfer method is disclosed, which comprises:

acquiring a file transfer request, wherein the file transfer request is used for carrying out format conversion on a text to be transferred, the file transfer request carries the number N of file transfers and the file transfer format of the text to be transferred, the text to be transferred comprises N text identifications, and each text identification corresponds to one file transfer number;

searching N first texts in a printing platform according to the N text identifications and the file transfer format, if the first texts are not searched, judging whether the number M of the first texts which are not searched exceeds a first threshold value, if so, asynchronously sending the texts to be transferred to the printing platform for format conversion to obtain N first texts, and if not, synchronously sending the texts to be transferred to the printing platform for format conversion to obtain N first texts, wherein the first texts are texts after the texts to be transferred are subjected to format conversion, and M is less than N.

In one possible implementation manner, before the obtaining of the shift request, the method includes:

and setting a first threshold value based on the type of the text to be transferred.

In one possible implementation manner, after obtaining the shift request, the method includes:

and setting the priority of the text to be transferred, and allocating printing platform resources based on the priority.

In one possible implementation, the allocating printing platform resources based on the priority includes:

when the number M of the first texts which are not found exceeds a second threshold value, increasing printing platform resources of the texts to be transferred; wherein the second threshold is greater than the first threshold;

determining the increased printing platform resource based on a difference between the first threshold and M.

In a possible implementation manner, the setting a first threshold based on the type of the text to be transferred includes:

adjusting the first threshold according to a parameter of the printing platform; wherein the parameters of the printing platform comprise the bearing capacity of the printing platform. In one possible implementation, the adjusting the first threshold according to the parameter of the printing platform includes:

when the bearing capacity of the printing platform is larger than a first gear shifting threshold value, reducing the first threshold value to a third threshold value;

when the bearing capacity of the printing platform is smaller than a second gear shifting threshold value, increasing the first threshold value to a fourth threshold value; the first gear shifting threshold value is larger than the second gear shifting threshold value, and the fourth threshold value is smaller than the second threshold value.

In one possible implementation, the N text identifications are not identical.

In one possible implementation, the text identification includes an identification number, a name, and a phone number.

In one possible implementation manner, the converting, in the printing platform, the text to be transferred into the first text includes:

and detecting the transfer type of the text to be transferred, and converting the text to be transferred into the first text corresponding to the transfer type based on the transfer type.

In a possible implementation manner, the first text is obtained when the printing platform is detected to have the printing format text; the method comprises the following steps:

and detecting whether the first text exists in the printing platform or not based on the file identification of the text to be transferred.

In a possible implementation manner, the first contents in the n shifted first texts are different.

In a second aspect, a text-to-document device is disclosed, comprising:

the device comprises an obtaining unit, a format conversion unit and a format conversion unit, wherein the obtaining unit is used for obtaining a file transfer request, the file transfer request is used for carrying out format conversion on a text to be transferred, the file transfer request carries the file transfer number N and the file transfer format of the text to be transferred, the text to be transferred comprises N text identifications, and each text identification corresponds to one file transfer number;

the searching unit is used for searching N first texts in a printing platform according to the N text identifications and the shift format, and if the first texts are not searched, judging whether the number M of the first texts which are not searched exceeds a first threshold value;

the first sending unit is used for asynchronously sending the text to be converted to the printing platform for format conversion so as to acquire N first texts;

and the second sending unit is used for synchronously sending the text to be converted to the printing platform for format conversion so as to obtain N first texts, wherein the first texts are the texts of the text to be converted after the format conversion, and M < ═ N.

Optionally, the obtaining unit is further configured to:

and setting a first threshold value based on the type of the text to be transferred.

Optionally, the obtaining unit is further configured to:

and setting the priority of the text to be transferred, and allocating printing platform resources based on the priority.

Optionally, the obtaining unit is further configured to:

when the number M of the first texts which are not found exceeds a second threshold value, increasing printing platform resources of the texts to be transferred; wherein the second threshold is greater than the first threshold;

determining the increased printing platform resource based on a difference between the first threshold and M.

Optionally, the obtaining unit is further configured to:

adjusting the first threshold according to a parameter of the printing platform; wherein the parameters of the printing platform comprise the bearing capacity of the printing platform.

Optionally, the obtaining unit is further configured to:

when the bearing capacity of the printing platform is larger than a first gear shifting threshold value, reducing the first threshold value to a third threshold value;

when the bearing capacity of the printing platform is smaller than a second gear shifting threshold value, increasing the first threshold value to a fourth threshold value; the first gear shifting threshold value is larger than the second gear shifting threshold value, and the fourth threshold value is smaller than the second threshold value.

Optionally, the text identification includes an identification number, a name, a phone number.

In a third aspect, a text-document shifting apparatus is disclosed, comprising a processor and a memory, wherein the memory is configured to store computer program code, and the processor is configured to invoke the computer program code to perform a method according to the first aspect or any possible implementation manner of the first aspect.

In the embodiment of the present disclosure, a transfer request may be obtained, where the transfer request is used to perform format conversion on a text to be transferred, the transfer request carries a number N of transfer copies of the text to be transferred and a transfer format, the text to be transferred includes N text identifiers, and each text identifier corresponds to one transfer copy; searching N first texts in a printing platform according to the N text identifications and the file transfer format, if the first texts are not searched, judging whether the number M of the first texts which are not searched exceeds a first threshold value, if so, asynchronously sending the texts to be transferred to the printing platform for format conversion to obtain N first texts, and if not, synchronously sending the texts to be transferred to the printing platform for format conversion to obtain N first texts, wherein the first texts are texts after the texts to be transferred are subjected to format conversion, and M is less than N. Therefore, the text with less number of shifts can be directly and synchronously shifted, and the text with more number of shifts can be asynchronously shifted. When the number of the texts to be transferred is large, the notification that the text to be transferred is successfully transferred does not need to be waited, the efficiency of text transfer is improved, and the time for text transfer is saved.

Drawings

In order to more clearly illustrate the embodiments of the present disclosure or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below.

Wherein:

fig. 1 is a schematic flow chart of a text file transfer method provided in an embodiment of the present disclosure;

FIG. 2 is a schematic structural diagram of a document shifting apparatus provided in an embodiment of the present disclosure;

fig. 3 is a schematic structural diagram of a text document shifting apparatus provided in an embodiment of the present disclosure.

Detailed Description

Technical solutions in the embodiments of the present disclosure will be clearly described below with reference to the drawings in the embodiments of the present disclosure, and it is obvious that the described embodiments are only some embodiments of the present disclosure, but not all embodiments.

It is also to be understood that the terminology used in the description of the disclosure herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the disclosure.

It should be further understood that the term "and/or" as used in this disclosure and the appended claims refers to and includes any and all possible combinations of one or more of the associated listed items.

In a specific implementation, the technical solution described in the embodiments of the present disclosure may be implemented by a terminal device or a server or a system with a text file transferring function, such as a mobile phone, a desktop computer, a laptop computer, and a wearable device, which is not limited herein. For ease of understanding, the execution subject of the text filing method will be referred to as a text filing apparatus hereinafter.

The embodiment of the disclosure provides a text file transferring method, which comprises the following steps: acquiring a file transfer request, wherein the file transfer request is used for carrying out format conversion on a text to be transferred, the file transfer request carries the number N of file transfers and the file transfer format of the text to be transferred, the text to be transferred comprises N text identifications, and each text identification corresponds to one file transfer number; searching N first texts in a printing platform according to the N text identifications and the file transfer format, if the first texts are not searched, judging whether the number M of the first texts which are not searched exceeds a first threshold value, if so, asynchronously sending the texts to be transferred to the printing platform for format conversion to obtain N first texts, and if not, synchronously sending the texts to be transferred to the printing platform for format conversion to obtain N first texts, wherein the first texts are texts after the texts to be transferred are subjected to format conversion, and M is less than N.

The disclosed embodiments also provide a corresponding text file transfer device, a computer readable storage medium and a computer program product. Each of which is described in detail below.

First, in the embodiment of the present application, a text document transferring method provided by the embodiment of the present disclosure is described with reference to fig. 1.

S100, a gear shifting request is obtained, wherein the gear shifting request is used for carrying out format conversion on a text to be shifted, the gear shifting request carries the number N of gear shifting parts and the gear shifting format of the text to be shifted, the text to be shifted comprises N text identifications, and each text identification corresponds to one gear shifting part.

Specifically, the text to be transferred may be a material filled in on a web page or a certain system. The filled data needs to be converted into a file, and the file can be converted into a document in a format such as a PDF document or a Word document for saving or printing, which is not limited herein. For example, resume materials filled in on the recruitment webpage by the user need to be converted into a PDF format document for storage. The filled resume data is converted into a PDF format document to be printed or sent to other people. As another example, the user fills in the data for purchasing insurance (purchaser information and insured information, etc.) on the insurance system. The electronic insurance policy can be obtained after the filled insurance data is converted into files, so that the electronic insurance policy can be sent to the insured person or printed as paper text and the like, which is not limited herein. The number of the document to be transferred may be set to 1, may also be set to 10, 100, and so on, and is not limited herein.

The text to be transferred contains N text identifications, wherein the N text identifications can be identification numbers, names, mobile phone numbers and the like. For example, suppose the text to be transferred is a commercial insurance policy, and the N text identifiers can be the identification number, name, and cell phone number of the insured person. In the case where the text to be transferred is insurance, the insured person may be renamed or purchase too many types of insurance. Therefore, only the name is not used as the text identification, and only the identification number or only the mobile phone number is not used as the text identification. In this case, each insured life may be numbered with a name plus a number as a text label, or the insured life's identification number may be numbered as a text label, etc., without limitation. And if the text to be transferred has the text marks, the text to be transferred can be transferred into a plurality of first texts, and the first texts are the texts after the text to be transferred is transferred.

S101, searching N first texts in a printing platform according to the N text identifications and the file transfer format, if the first texts are not searched, judging whether the number M of the first texts which are not searched exceeds a first threshold value, wherein the first texts are texts to be subjected to format conversion. If not, executing S102; if yes, go to step S103.

Specifically, the server searches N first texts corresponding to the text to be transferred according to the N text identifiers. The contents of the N first texts are different. When the server does not find all the N first texts. The server needs to determine whether the number M of first texts not found exceeds a first threshold. The server executes the subsequent steps according to the judgment result.

In one possible implementation manner, the server sets a first threshold value based on the type of the text to be transferred. For example, if the document to be transferred is a medical insurance policy, the memory occupied by the transferred document is small. Therefore, the threshold number of shifts of the printing deck, i.e., the first threshold value, is set to 100. If the text to be shifted is an accident risk list, the document after being shifted occupies a large memory. Thus, the first threshold for the print platform is set to 40. And are not limited herein. Setting the first threshold value according to the type of the text to be transferred enables more efficient use of the printing platform.

In one possible implementation manner, before the obtaining of the shift request, the method includes: and the server sets the priority of the text to be transferred and allocates printing platform resources based on the priority. And when the priority of the text to be transferred is obtained and the priority is the highest, preferentially distributing the printing platform resources or distributing more printing platform resources. For example, if the priority of the text a to be transferred is higher than that of the text B to be transferred, the text a to be transferred is preferentially allocated with printing platform resources, or more printing platform resources are allocated to the text a to be transferred. Assuming that the server is connected to several printing platforms, the server can acquire the operating state, whether the operating state or the idle state, of each printing platform. The server may assign a portion of the transfer job of text a to be transferred to another free printing platform. It should be noted here that the printing platform may be a server, and text file transfer may be performed in the printing platform. And the printing platform resources are distributed according to the priority, so that the urgent document transfer time of the document to be transferred can be shortened.

Optionally, said assigning printing platform resources based on said priority comprises: when the number M of the first texts which are not found exceeds a second threshold value, increasing printing platform resources of the texts to be transferred; wherein the second threshold is greater than the first threshold; determining the increased printing platform resource based on a difference between the first threshold and M. The first threshold value is a threshold value at which the print deck can shift, and may be any positive integer. The second threshold is a positive integer greater than the first threshold. For example, when the first threshold is 50, the second threshold may be any number greater than 50, such as 60, 100, etc. For example, if the first threshold is 50 and the second threshold is 100, the number of the documents n to be transferred of the document a is 150. Then more printing platform resources are allocated to the text a to be transferred. At this time, the difference between the first threshold value and the number of shifted copies n is 100, two printing platforms should be added. Therefore, the gear shifting time of the text to be shifted with a large number of gear shifting copies can be shortened.

In a possible implementation manner, after the determining whether the number M of the first texts that are not found exceeds a first threshold, the method includes: adjusting the first threshold according to a parameter of the printing platform; wherein the parameters of the printing platform comprise the working state of the printing platform. The server may adjust the first threshold based on parameters of the printing platform. The parameters of the printing platform may include the working status of the printing platform, such as the carrying capacity of the printing platform, idle and busy time mechanism, and the like, which is not limited herein. This can improve the shift efficiency.

Optionally, said adjusting said first threshold according to a parameter of said printing platform comprises: when the bearing capacity of the printing platform is larger than a first gear shifting threshold value, reducing the first threshold value to a third threshold value; when the bearing capacity of the printing platform is smaller than a second gear shifting threshold value, increasing the first threshold value to a fourth threshold value; the first gear shifting threshold value is larger than the second gear shifting threshold value, and the fourth threshold value is smaller than the second threshold value. The bearing capacity of the printing platform is the number of the document transfer texts currently processed by the printing platform. The first gear shift threshold may be smaller than, equal to, or larger than the first threshold. And is not limited herein. Mainly depending on the maximum load capacity of the printing platform. For example, assuming that the first threshold is 50, the first shift threshold is 30, and the carrying capacity of the printing platform is 35, the first threshold may be reduced to 20, i.e. the third threshold is 20. If the second gear shift threshold is 5, the first threshold may be increased to 60, i.e. the fourth threshold is 60. This can reduce the shifting time of the text to be shifted.

S102, the text to be converted is synchronously sent to a printing platform for format conversion so as to obtain N first texts.

Specifically, when the number M of the first text which is not found does not exceed the first threshold, the server synchronously sends the text to be transferred to the printing platform, and the text to be transferred is converted into the first text in the printing platform. Because of the synchronous shift process, a result is returned for each successful shift of the printing platform. The server synchronously receives the results returned by the printing platform.

In one possible implementation manner, the converting, in the printing platform, the text to be transferred into the first text includes: and detecting the transfer type of the text to be transferred, and converting the text to be transferred into the first text corresponding to the transfer type based on the transfer type. For example, assuming that the text a to be transferred is a text in HTML format and the type of the transfer is PDF text, the first text corresponding to the text a to be transferred should be PDF text.

S103, asynchronously sending the text to be converted to the printing platform for format conversion so as to obtain N first texts.

Specifically, when the number M of the first texts that are not found exceeds the first threshold value. The server asynchronously sends the text to be transferred to the printing platform for transferring, namely, the result is returned after the text to be transferred is completely converted into the first text, and the server does not need to synchronously wait for the result.

In one possible implementation manner, the first content in the n shifted print format texts is different. The first content may be insured information in a policy.

In the embodiment of the present disclosure, a transfer request may be obtained, where the transfer request is used to perform format conversion on a text to be transferred, the transfer request carries a number N of transfer copies of the text to be transferred and a transfer format, the text to be transferred includes N text identifiers, and each text identifier corresponds to one transfer copy; searching N first texts in a printing platform according to the N text identifications and the file transfer format, if the first texts are not searched, judging whether the number M of the first texts which are not searched exceeds a first threshold value, if so, asynchronously sending the texts to be transferred to the printing platform for format conversion to obtain N first texts, and if not, synchronously sending the texts to be transferred to the printing platform for format conversion to obtain N first texts, wherein the first texts are texts after the texts to be transferred are subjected to format conversion, and M is less than N. This can improve the efficiency of text conversion. And saves the time of text file transfer. And priority is set for the text to be transferred, so that delay of urgent transfer of the text to be transferred is avoided. And printing resources are distributed according to the priority, so that the printing platform resources can be reasonably arranged, and the text transfer efficiency is improved.

In order to better implement the above solution of the embodiments of the present disclosure, the present disclosure further provides a document shifting apparatus, which is described in detail below with reference to the accompanying drawings:

as shown in fig. 2, which is a schematic structural diagram of a text document shifting apparatus provided in an embodiment of the present disclosure, the text document shifting apparatus may include: an acquisition unit 100, a look-up unit 101, a first sending unit 102 and a second sending unit 103, wherein,

the obtaining unit 100 is configured to obtain a shift request, where the shift request is used to perform format conversion on a to-be-shifted text, the shift request carries a number of shift copies N and a shift format of the to-be-shifted text, the to-be-shifted text includes N text identifiers, and each text identifier corresponds to one number of shift copies;

a searching unit 101, configured to search N first texts in a printing platform according to the N text identifiers and the shift format, and if the first text is not found, determine whether the number M of the first texts that are not found exceeds a first threshold;

a first sending unit 102, configured to asynchronously send the text to be converted to the printing platform for format conversion to obtain N first texts;

a second sending unit 103, configured to send the text to be transferred to the printing platform synchronously for format conversion to obtain N first texts, where the first text is a text obtained by format conversion of the text to be transferred, and M < ═ N.

Optionally, the obtaining unit 100 is further configured to:

and setting a first threshold value based on the type of the text to be transferred.

Optionally, the obtaining unit 100 is further configured to:

and setting the priority of the text to be transferred, and allocating printing platform resources based on the priority.

Optionally, the obtaining unit 100 is further configured to:

when the number M of the first texts which are not found exceeds a second threshold value, increasing printing platform resources of the texts to be transferred; wherein the second threshold is greater than the first threshold;

determining the increased printing platform resource based on a difference between the first threshold and M.

Optionally, the obtaining unit 100 is further configured to:

adjusting the first threshold according to a parameter of the printing platform; wherein the parameters of the printing platform comprise the working state of the printing platform.

Optionally, the obtaining unit 100 is further configured to:

when the bearing capacity of the printing platform is larger than a first gear shifting threshold value, reducing the first threshold value to a third threshold value;

when the bearing capacity of the printing platform is smaller than a second gear shifting threshold value, increasing the first threshold value to a fourth threshold value; the first gear shifting threshold value is larger than the second gear shifting threshold value, and the fourth threshold value is smaller than the second threshold value.

In the embodiment of the present disclosure, a transfer request may be obtained, where the transfer request is used to perform format conversion on a text to be transferred, the transfer request carries a number N of transfer copies of the text to be transferred and a transfer format, the text to be transferred includes N text identifiers, and each text identifier corresponds to one transfer copy; searching N first texts in a printing platform according to the N text identifications and the file transfer format, if the first texts are not searched, judging whether the number M of the first texts which are not searched exceeds a first threshold value, if so, asynchronously sending the texts to be transferred to the printing platform for format conversion to obtain N first texts, and if not, synchronously sending the texts to be transferred to the printing platform for format conversion to obtain N first texts, wherein the first texts are texts after the texts to be transferred are subjected to format conversion, and M is less than N. This can improve the efficiency of text conversion. And saves the time of text file transfer. And priority is set for the text to be transferred, so that delay of urgent transfer of the text to be transferred is avoided. And printing resources are distributed according to the priority, so that the printing platform resources can be reasonably arranged, and the text transfer efficiency is improved.

It should be noted that the text document shifting device 10 in the embodiment of the present disclosure is the text document shifting device in the embodiment of fig. 1, and functions of each unit in the text document shifting device 10 may refer to specific implementation manners of the embodiment of fig. 1 in the above method embodiments, which are not described herein again.

In order to better implement the above-mentioned scheme of the embodiments of the present disclosure, the present disclosure also provides a text document shifting apparatus, which is described in detail below with reference to the accompanying drawings:

as shown in fig. 3, which is a schematic structural diagram of the text filing apparatus provided by the embodiment of the present disclosure, the text filing apparatus 110 may include a processor 1101, an input unit 1102, an output unit 1103, a memory 1104, a communication unit 1105 and a bus 1106, and the processor 1101, the input unit 1102, the output unit 1103, the memory 1104 and the communication unit 1105 may be connected to each other through the bus 1106. The memory 1104 may be a high-speed RAM memory or a non-volatile memory (e.g., at least one disk memory). The memory 1104 may optionally be at least one memory system located remotely from the processor 1101. The memory 1104 is used for storing application program codes, which may include an operating system, a network communication module, a user interface module, and a text transfer program, and the communication unit 1105 is used for information interaction with external units; the processor 1101 is configured to call the program code, and perform the following steps:

the processor 1101 obtains a file transfer request, wherein the file transfer request is used for carrying out format conversion on a text to be transferred, the file transfer request carries the file transfer number N and the file transfer format of the text to be transferred, the text to be transferred comprises N text identifications, and each text identification corresponds to one file transfer number;

the processor 1101 searches N first texts in a printing platform according to the N text identifications and the shift format, if the first texts are not found, determines whether the number M of the first texts which are not found exceeds a first threshold, if so, asynchronously sends the texts to be shifted to the printing platform for format conversion to obtain N first texts, and if not, synchronously sends the texts to be shifted to the printing platform for format conversion to obtain N first texts, wherein the first texts are texts after the texts to be shifted are subjected to format conversion, and M is less than N;

processor 1101 sets a priority of the text to be shifted, and allocates printing platform resources based on the priority.

When the number M of the first texts which are not found exceeds a second threshold value, the processor 1101 increases the printing platform resources of the texts to be transferred; wherein the second threshold is greater than the first threshold; determining the increased printing platform resources based on a difference between a first threshold and the number M of the first text that is not found.

When the printing platform loading capacity is greater than a first shift threshold, the processor 1101 reduces the first threshold to a third threshold; when the bearing capacity of the printing platform is smaller than a second gear shifting threshold value, increasing the first threshold value to a fourth threshold value; the first gear shifting threshold value is larger than the second gear shifting threshold value, and the fourth threshold value is smaller than the second threshold value.

The processor 1101 detects a transfer type of the text to be transferred, and converts the text to be transferred into the printing format text corresponding to the transfer type based on the transfer type.

The processor 1101 detects whether the printing format text exists in the printing platform based on the file name of the to-be-text-shifted file.

In the embodiment of the present disclosure, a transfer request may be obtained, where the transfer request is used to perform format conversion on a text to be transferred, the transfer request carries a number N of transfer copies of the text to be transferred and a transfer format, the text to be transferred includes N text identifiers, and each text identifier corresponds to one transfer copy; searching N first texts in a printing platform according to the N text identifications and the file transfer format, if the first texts are not searched, judging whether the number M of the first texts which are not searched exceeds a first threshold value, if so, asynchronously sending the texts to be transferred to the printing platform for format conversion to obtain N first texts, and if not, synchronously sending the texts to be transferred to the printing platform for format conversion to obtain N first texts, wherein the first texts are texts after the texts to be transferred are subjected to format conversion, and M is less than N. This can improve the efficiency of text conversion. And saves the time of text file transfer. And priority is set for the text to be transferred, so that delay of urgent transfer of the text to be transferred is avoided. And printing resources are distributed according to the priority, so that the printing platform resources can be reasonably arranged, and the text transfer efficiency is improved.

It should be noted that the text document shifting device 110 in the embodiment of the present disclosure is the text document shifting device in the embodiment of fig. 1, and specific reference may be made to specific implementation manners of the embodiment of fig. 1 in the above method embodiments, which is not described herein again.

An embodiment of the present invention further provides a computer storage medium, where the computer storage medium may store a program, and the program includes, when executed, some or all of the steps described in any of the above method embodiments.

Embodiments of the present invention also provide a computer program, where the computer program includes instructions that, when executed by a computer, enable the computer to perform some or all of the steps of any of the text-to-document methods.

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 a computer program, which can be stored in a computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. The storage medium may be a usb disk, a magnetic disk, an optical disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), or the like.

The present disclosure may be systems, methods, and/or computer program products. The computer program product may include a computer-readable storage medium having computer-readable program instructions embodied thereon for causing a processor to implement various aspects of the present disclosure.

The computer readable storage medium may be a tangible device that can hold and store the instructions for use by the instruction execution device. The computer readable storage medium may be, for example, but not limited to, an electronic memory device, a magnetic memory device, an optical memory device, an electromagnetic memory device, a semiconductor memory device, or any suitable combination of the foregoing. More specific examples (a non-exhaustive list) of the computer readable storage medium would include the following: a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a Static Random Access Memory (SRAM), a portable compact disc read-only memory (CD-ROM), a Digital Versatile Disc (DVD), a memory stick, a floppy disk, a mechanical coding device, such as punch cards or in-groove projection structures having instructions stored thereon, and any suitable combination of the foregoing. Computer-readable storage media as used herein is not to be construed as transitory signals per se, such as radio waves or other freely propagating electromagnetic waves, electromagnetic waves propagating through a waveguide or other transmission medium (e.g., optical pulses through a fiber optic cable), or electrical signals transmitted through electrical wires.

The computer-readable program instructions described herein may be downloaded to the respective computing/processing apparatus from a computer-readable storage medium, or to an external computer or external storage device via a network, such as the internet, a local area network, a wide area network, and/or a wireless network. The network may include copper transmission cables, fiber optic transmission, wireless transmission, routers, firewalls, switches, gateway computers and/or edge servers. The network adapter card or network interface in each computing/processing device receives computer-readable program instructions from the network and forwards the computer-readable program instructions for storage in a computer-readable storage medium in the respective computing/processing device.

The computer program instructions for carrying out operations of the present disclosure may be assembler instructions, Instruction Set Architecture (ISA) instructions, machine-related instructions, microcode, firmware instructions, state setting data, or source or object code written in any combination of one or more programming languages, including an object oriented programming language such as Smalltalk, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The computer-readable program instructions may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider). In some embodiments, the electronic circuitry that can execute the computer-readable program instructions implements aspects of the present disclosure by utilizing the state information of the computer-readable program instructions to personalize the electronic circuitry, such as a programmable logic circuit, a Field Programmable Gate Array (FPGA), or a Programmable Logic Array (PLA).

Various aspects of the present disclosure are described herein with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the disclosure. It will be understood that each block of the flowchart illustrations and/or block diagrams, and combinations of blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer-readable program instructions.

These computer-readable program instructions may be provided to a processor of a general purpose computer, special purpose computer, 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/acts specified in the flowchart and/or block diagram block or blocks. These computer-readable program instructions may also be stored in a computer-readable storage medium that can direct a computer, programmable data processing apparatus, and/or other devices to function in a particular manner, such that the computer-readable medium storing the instructions comprises an article of manufacture including instructions which implement the function/act specified in the flowchart and/or block diagram block or blocks.

The computer readable program instructions may also be loaded onto a computer, other programmable data processing apparatus, or other devices to cause a series of operational steps to be performed on the computer, other programmable apparatus or other devices to produce a computer implemented process such that the instructions which execute on the computer, other programmable apparatus or other devices implement the functions/acts specified in the flowchart and/or block diagram block or blocks.

The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of instructions, which comprises one or more executable instructions for implementing the specified logical function(s). In some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.

The disclosure of the present invention is not intended to be limited to the particular embodiments disclosed, but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

14页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:标点符号添加方法、系统、移动终端及存储介质

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!