File printing method, device and system, computer equipment and storage medium
By using the print file identification to determine the printing task and sending the task to the service provider's cloud server in the cloud printing technology within the enterprise, the problem of high printing costs in the existing cloud printing technology is solved, and cloud printing without additional software and hardware is realized. and improved data security.
Patent Information
- Application Number
- CN202310183957.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-02-22
- Publication Date
- 2024-08-23
- Estimated Expiration
- 2043-02-22
AI Technical Summary
Existing cloud printing technology requires dedicated computers or servers within the enterprise, resulting in high printing costs and additional software and hardware support.
When a print request is received, the associated print task is determined based on the print file identification, the print task is sent to the server cloud server, the task data acquisition interface is called to obtain the print data, and the cloud server controls the cloud printer to print, avoiding the need for help. Requirements for additional software and hardware.
It realizes cloud printing without additional software and hardware, saves printing costs, and completes the printing process through printing tasks and task identification, improving data security.
Smart Images

Figure CN118535104A
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technology, and in particular to a file printing method, apparatus, computer equipment, storage medium and computer program product. Background Art
[0002] With the development of computer technology, a lot of data people need can be obtained through the Internet, such as searching for the required data on the Internet, and obtaining the required data from other users through tools such as emails and instant messaging applications. In terms of the form of expression, these data are all electronic data. However, in real life, paper data (or paper documents) are still needed in many scenarios. Especially within various companies, it is often necessary to print various paper documents such as contracts, bidding documents, office materials, etc.
[0003] Currently, enterprises can use cloud printing to meet their printing needs. However, with existing cloud printing technology, enterprises need to prepare dedicated computers or servers to connect to printers, and install print management software on dedicated printers to accept printing needs within the company. Since additional software and hardware support is required, the printing cost is high. Summary of the invention
[0004] Based on this, it is necessary to provide a file printing method, apparatus, system, computer equipment, computer-readable storage medium and computer program product that can save printing costs in response to the above technical problems.
[0005] On the one hand, the present application provides a file printing method. The method includes: when receiving a print request for a file to be printed triggered by a target application, determining an associated print task according to a print file identifier carried in the print request; the print task includes a print task identifier; sending the print task to a service-side cloud server; the print task is used to instruct the service-side cloud server to call a task data acquisition interface provided by the sender of the print task to send a data acquisition request; receiving the data acquisition request, parsing the print task identifier from the data acquisition request, and determining the associated print file identifier according to the print task identifier; obtaining print data corresponding to the file to be printed according to the print file identifier, and sending the print data to the service-side cloud server; the service-side cloud server is used to control the cloud printer to print according to the print data.
[0006] On the other hand, the present application also provides a file printing device. The device includes: a print request receiving module, which is used to determine the associated print task according to the print file identifier carried in the print request when receiving a print request for a file to be printed triggered by a target application; the print task contains a print task identifier; a print task sending module, which is used to send the print task to the service party cloud server; the print task is used to instruct the service party cloud server to call the task data acquisition interface provided by the sender of the print task to send a data acquisition request; a file identifier acquisition module, which is used to receive the data acquisition request, parse the print task identifier from the data acquisition request, and determine the associated print file identifier according to the print task identifier; a print data sending module, which is used to obtain the print data corresponding to the file to be printed according to the print file identifier, and send the print data to the service party cloud server; the service party cloud server is used to control the cloud printer to print according to the print data.
[0007] On the other hand, the present application also provides a computer device. The computer device includes a memory and a processor, the memory stores a computer program, and the processor implements the following steps when executing the computer program: when receiving a print request for a file to be printed triggered by a target application, determining the associated print task according to the print file identifier carried in the print request; the print task contains a print task identifier; sending the print task to a service-side cloud server; the print task is used to instruct the service-side cloud server to call a task data acquisition interface provided by the sender of the print task to send a data acquisition request; receiving the data acquisition request, parsing the print task identifier from the data acquisition request, and determining the associated print file identifier according to the print task identifier; obtaining the print data corresponding to the file to be printed according to the print file identifier, and sending the print data to the service-side cloud server; the service-side cloud server is used to control the cloud printer to print according to the print data.
[0008] On the other hand, the present application also provides a computer-readable storage medium. The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the following steps are implemented: when a print request for a file to be printed is received and triggered by a target application, the associated print task is determined according to the print file identifier carried in the print request; the print task contains a print task identifier; the print task is sent to a service-side cloud server; the print task is used to instruct the service-side cloud server to call a task data acquisition interface provided by the sender of the print task to send a data acquisition request; the data acquisition request is received, the print task identifier is parsed from the data acquisition request, and the associated print file identifier is determined according to the print task identifier; the print data corresponding to the file to be printed is obtained according to the print file identifier, and the print data is sent to the service-side cloud server; the service-side cloud server is used to control the cloud printer to print according to the print data.
[0009] On the other hand, the present application also provides a computer program product. The computer program product includes a computer program, which implements the following steps when executed by a processor: when a print request for a file to be printed is received and triggered by a target application, the associated print task is determined according to the print file identifier carried in the print request; the print task includes a print task identifier; the print task is sent to a service-side cloud server; the print task is used to instruct the service-side cloud server to call a task data acquisition interface provided by the sender of the print task to send a data acquisition request; the data acquisition request is received, the print task identifier is obtained by parsing the data acquisition request, and the associated print file identifier is determined according to the print task identifier; the print data corresponding to the file to be printed is obtained according to the print file identifier, and the print data is sent to the service-side cloud server; the service-side cloud server is used to control the cloud printer to print according to the print data.
[0010] The above-mentioned file printing method, device, computer equipment, storage medium and computer program product, when receiving a print request for a file to be printed, determines the associated print task according to the print file identifier carried in the print request, the print task contains the print task identifier, sends the print task to the service party cloud server, the print task is used to instruct the service party cloud server to call the task data acquisition interface provided by the sender of the print task to send a data acquisition request, receives the data acquisition request, parses the data acquisition request to obtain the print task identifier, determines the associated print file identifier according to the print task identifier, obtains the print data corresponding to the file to be printed according to the print file identifier, and sends the print data to the service party cloud server. The service-side cloud server is used to control the cloud printer to print according to the print data, realizing cloud printing through the target application. During the printing process, the cloud server of the target application can directly communicate with the service-side cloud server, and the cloud printing is controlled by the service-side cloud server for printing. The entire printing process does not require the use of additional software and hardware, which greatly saves printing costs. In addition, during the printing process, by determining the print task associated with the print file identifier, and the print task contains the print task identifier, the cloud server of the target application and the service-side cloud server can complete the printing process through the print task and the task identifier, avoiding sending the print file identifier to the service-side cloud server, and improving the data security during the printing process.
[0011] On the one hand, the present application provides a file printing method. The method includes: in the case of receiving a print task sent by a cloud server corresponding to a target application, calling a task data acquisition interface provided by the cloud server corresponding to the target application to send a data acquisition request; the print task is determined by the cloud server corresponding to the target application when receiving a print request for a file to be printed triggered by the target application, and there is an association relationship between the print task identifier of the print task and the print file identifier carried in the print request; the data acquisition request is used to instruct the cloud server corresponding to the target application to obtain the print file identifier according to the print task identifier carried in the data acquisition request and the association relationship, obtain the print data corresponding to the file to be printed according to the print file identifier, and send the print data to the service party cloud server; receive the print data, and control the cloud printer to print according to the print data.
[0012] On the other hand, the present application also provides a file printing device. The device includes: a request sending module, which is used to call the task data acquisition interface provided by the cloud server corresponding to the target application to send a data acquisition request when receiving a print task sent by the cloud server corresponding to the target application; the print task is determined by the cloud server corresponding to the target application when receiving a print request for a file to be printed triggered by the target application, and there is an association between the print task identifier of the print task and the print file identifier carried in the print request; the data acquisition request is used to instruct the cloud server corresponding to the target application to obtain the print file identifier according to the print task identifier carried in the data acquisition request and the association, obtain the print data corresponding to the file to be printed according to the print file identifier, and send the print data to the service party cloud server; a print data receiving module is used to receive the print data and control the cloud printer to print according to the print data.
[0013] On the other hand, the present application also provides a computer device. The computer device includes a memory and a processor, the memory stores a computer program, and the processor implements the following steps when executing the computer program: in the case of receiving a print task sent by a cloud server corresponding to a target application, calling a task data acquisition interface provided by the cloud server corresponding to the target application to send a data acquisition request; the print task is determined by the cloud server corresponding to the target application when receiving a print request for a file to be printed triggered by the target application, and there is an association between the print task identifier of the print task and the print file identifier carried in the print request; the data acquisition request is used to instruct the cloud server corresponding to the target application to obtain the print file identifier according to the print task identifier carried in the data acquisition request and the association, obtain the print data corresponding to the file to be printed according to the print file identifier, and send the print data to the service party cloud server; receive the print data, and control the cloud printer to print according to the print data.
[0014] On the other hand, the present application also provides a computer-readable storage medium. The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the following steps are implemented: when receiving a print task sent by a cloud server corresponding to a target application, calling a task data acquisition interface provided by the cloud server corresponding to the target application to send a data acquisition request; the print task is determined by the cloud server corresponding to the target application when receiving a print request for a file to be printed triggered by the target application, and there is an association between the print task identifier of the print task and the print file identifier carried in the print request; the data acquisition request is used to instruct the cloud server corresponding to the target application to obtain the print file identifier according to the print task identifier carried in the data acquisition request and the association, obtain the print data corresponding to the file to be printed according to the print file identifier, and send the print data to the service party cloud server; receive the print data, and control the cloud printer to print according to the print data.
[0015] On the other hand, the present application also provides a computer program product. The computer program product includes a computer program, which implements the following steps when executed by a processor: in the case of receiving a print task sent by a cloud server corresponding to a target application, calling a task data acquisition interface provided by the cloud server corresponding to the target application to send a data acquisition request; the print task is determined by the cloud server corresponding to the target application when receiving a print request for a file to be printed triggered by the target application, and there is an association between the print task identifier of the print task and the print file identifier carried in the print request; the data acquisition request is used to instruct the cloud server corresponding to the target application to obtain the print file identifier according to the print task identifier carried in the data acquisition request and the association, obtain the print data corresponding to the file to be printed according to the print file identifier, and send the print data to the service party cloud server; receive the print data, and control the cloud printer to print according to the print data.
[0016] The above-mentioned file printing method, apparatus, computer equipment, storage medium and computer program product, when receiving a print task sent by the cloud server corresponding to the target application, call the task data acquisition interface provided by the cloud server corresponding to the target application to send a data acquisition request, receive print data, and control the cloud printer to print according to the print data, thereby realizing cloud printing through the target application. Since during the printing process, the cloud server of the target application can directly communicate with the service party cloud server, and the cloud printing is controlled by the service party cloud server to print, the entire printing process does not require the use of additional software and hardware, which greatly saves printing costs. In addition, during the printing process, by determining the print task associated with the print file identifier, and the print task contains the print task identifier, the cloud server of the target application and the service party cloud server can complete the printing process through the print task and the task identifier, thereby avoiding sending the print file identifier to the service party cloud server and improving the data security during the printing process.
[0017] On the other hand, the present application also provides a file printing system. The system includes a terminal with a target application installed, a cloud server of the target application, a service-side cloud server, and a cloud printer; wherein:
[0018] The terminal is used to send a print request for a file to be printed to a cloud server of the target application through a target application; the print request carries a print file identifier of the file to be printed;
[0019] The cloud server of the target application is used to determine the associated print task according to the print file identifier carried in the print request when receiving the print request, and send the print task carrying the print task identifier to the cloud server of the service party;
[0020] The service-side cloud server is used to call the task data acquisition interface provided by the cloud server of the target application to send a data acquisition request when receiving the print task;
[0021] The cloud server of the target application is also used to receive the data acquisition request, parse the data acquisition request to obtain the print task identifier, determine the associated print file identifier according to the print task identifier, obtain the print data corresponding to the file to be printed according to the print file identifier, and send the print data to the service party cloud server;
[0022] The service-side cloud server is also used to control the cloud printer to print according to the printing data.
[0023] The above-mentioned file printing system realizes cloud printing through the target application. During the printing process, the cloud server of the target application can directly communicate with the service party cloud server, and the cloud printing is controlled by the service party cloud server for printing. The entire printing process does not require the use of additional software and hardware, which greatly saves printing costs. In addition, during the printing process, by determining the print task associated with the print file identifier, and the print task contains the print task identifier, the cloud server of the target application and the service party cloud server can complete the printing process through the print task and the task identifier, avoiding the sending of the print file identifier to the service party cloud server, thereby improving data security during the printing process. BRIEF DESCRIPTION OF THE DRAWINGS
[0024] Figure 1 An application environment diagram of a file printing method in an embodiment;
[0025] Figure 2 A schematic diagram of a flow chart of a file printing method in one embodiment;
[0026] Figure 3A A schematic diagram of an interface related to a file printing method in an embodiment;
[0027] Figure 3B It is a schematic diagram of an interface related to a file printing method in another embodiment;
[0028] Figure 3C It is a schematic diagram of an interface related to a file printing method in another embodiment;
[0029] Figure 3D It is a schematic diagram of an interface related to a file printing method in another embodiment;
[0030] Figure 4 A schematic diagram of changes in the printing interface of a terminal in one embodiment;
[0031] Figure 5 A schematic flow chart of a file printing method in another embodiment;
[0032] Figure 6 A structural block diagram of a file printing system in one embodiment;
[0033] Figure 7 is a timing diagram of a file printing method in a specific embodiment;
[0034] Figure 8 is a timing diagram of a file printing method in another specific embodiment;
[0035] Fig. 9 is a timing diagram of a file printing method in yet another specific embodiment;
[0036] Fig.10 is a structural block diagram of a file printing device in an embodiment;
[0037] Fig.11 is a structural block diagram of a file printing device in another embodiment;
[0038] Fig.12 FIG. 4 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION
[0039] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0040] The file printing method provided in the embodiment of the present application can be applied to Figure 1 In the application environment shown, the terminal 102 is installed with the target application, the terminal 102 communicates with the cloud server 104 of the target application through the network, the cloud server 104 of the target application communicates with the service server 106 of the cloud printer through the network, and the service server 106 of the cloud printer communicates with the cloud printer 108 through the network. Specifically, the user can submit printing parameters through the terminal 102, and the terminal 102 can trigger a print request for the file to be printed in the target application through the target application. After receiving the print request, the cloud server 104 of the target application can determine the associated print task according to the print file identifier carried in the print request. The print task carries the print task identifier. The cloud server 104 of the target application can further send the print task to the service-side cloud server 106. After receiving the print task, the service-side cloud server 106 can call the task data acquisition interface provided by the cloud server 104 of the target application to send a data acquisition request. The data acquisition request carries the print task identifier of the print task. When the cloud server 104 of the target application receives the data acquisition request, it can determine the associated print file identifier based on the print task identifier carried in the data acquisition request, obtain the print data corresponding to the file to be printed according to the print file identifier, and send the print data to the service-side cloud server 106. The service-side cloud server 106 can send the print task to the cloud printer 108 according to the print data, and control the cloud printer 108 to print. During the printing process, the cloud printer 108 can monitor the device status of the service provider cloud server 106. After printing is completed, the cloud printer 108 can report the printing results to the service provider cloud server 106. The printing results can eventually be sent to the terminal through the cloud server of the target application and displayed to the user at the terminal.
[0041] It should be noted that in actual applications, there can be multiple cloud printers, and different cloud printers can correspond to different service providers, so that the cloud server of the target application can be connected to the network of multiple service provider cloud servers, and control different cloud printers for printing through multiple service provider cloud servers. Different cloud printers belong to different user companies, realizing the printing needs of different user companies.
[0042] The target application's cloud server 104 and the service provider's cloud server 106 may be independent physical servers, or a server cluster or distributed system consisting of multiple physical servers, or a cloud server providing cloud computing services. The terminal may be a smart phone, a tablet computer, a laptop computer, a desktop computer, a smart speaker, a smart watch, a car terminal, a smart TV, etc., but is not limited thereto. The terminal and the server may be directly or indirectly connected via wired or wireless communication, and this application does not limit this.
[0043] In one embodiment, in the file printing method disclosed in the present application, relevant data during the printing process can be saved on the blockchain.
[0044] In one embodiment, in the file printing method disclosed in the present application, multiple servers can be composed into a blockchain, and the cloud server of the target application and the cloud server of the service provider can be nodes on the blockchain.
[0045] In one embodiment, Figure 2 As shown, a file printing method is provided, which is applied to Figure 1 Taking the cloud server 104 of the target application as an example, the following steps are included:
[0046] Step 202: upon receiving a print request for a file to be printed triggered by a target application, determining an associated print task according to a print file identifier carried in the print request; the print task includes a print task identifier.
[0047] Among them, the file to be printed refers to the file to be printed, and the file to be printed can be various types of files, for example, it can be any one of a word file, a PDF file, a picture, an excel file, etc. The number of files to be printed can be one or more. Multiple refers to at least two. The embodiment of the present application does not limit the type and number of print files. When there are multiple print files, the multiple files to be printed can be files of the same format or files of different formats. For example, there can be 2 files to be printed, one can be a word file and the other can be a PDF file. In actual applications, when a user chooses to print multiple files to be printed at the same time, multiple files to be printed can correspond to the same print task. At this time, these multiple files to be printed are all associated with the print task, and the print request can carry the print file identifier of each file to be printed that needs to be printed.
[0048] The file to be printed can be a local file of the printer or a cloud file. The local file of the printer is a local file of the terminal where the target application is installed. Cloud files can be files of various file types stored in the cloud server of the target application or online documents. The target application refers to an application that can trigger printing, and the target application includes but is not limited to various communication applications, shopping applications, entertainment applications, etc. In some embodiments, the target application can be an instant messaging application, and the file to be printed can be a file received or sent during a session of a user of the target application. For example, refer to Figure 3A For a PDF file in a conversation in an instant messaging application, the user can long press the file and select the "Print" button from the menu, which can trigger the subsequent printing process and send a print request for the file to the cloud server of the target application. Figure 3B For PDF files in the conversation process of the instant messaging application, the user can choose to open the file and trigger a pop-up window such as Figure 3B In the menu shown, select the "Print" button from the menu to trigger the subsequent printing process and send a print request for the file to the cloud server of the target application. Figure 3C For a word file in a conversation in an instant messaging application, the user can long press the file and select the "Print" button from the menu, which can trigger the subsequent printing process and send a print request for the file to the cloud server of the target application. Figure 3D , users can also search for files in the instant messaging application. For the searched files, users can trigger a pop-up window such as Figure 3D In the menu shown, select the "Print" button from the menu to trigger the subsequent printing process and send a print request for the file to the cloud server of the target application.
[0049] In some other embodiments, the target application may include a virtual network disk component, and the user may view the cloud files stored in the cloud server of the target application through the virtual network disk component in the target application to trigger a print request for the cloud file.
[0050] The print request may carry a print file identifier, which is used to uniquely identify the file to be printed. In some embodiments, the print request may also carry other information, for example, the print request may also carry a printer identifier, a user identifier, and print parameters. The printer identifier is used to uniquely identify the printer selected by the user from the printer list, and the user identifier uniquely identifies the user of the target application that triggers the print request. The print parameters may be, for example, the number of copies, print range, print mode, color, and the like.
[0051] Specifically, when a terminal with a target application installed detects a user's print request for a file to be printed in the target application, the terminal sends the print request to the cloud server of the target application. After receiving the print request, the cloud server of the target application can parse the print request and obtain the data carried in the print request data packet. The data carried in the print request data packet includes at least a print file identifier. Based on the print file identifier, the cloud server of the target application can determine the print tasks with associated relationships.
[0052] In a specific embodiment, the print task may be generated by the cloud server of the target application before receiving the print request. For example, the cloud server of the target application may generate the print task after receiving the preview request. Each print task in the cloud server of the target application has a print file identifier associated with it. In a specific implementation, the cloud server of the target application may associate the task identifier of the print task with the print file identifier, and then determine the associated print task based on this association.
[0053] In another specific embodiment, a print task may be generated after receiving a print request. After receiving the print request, the cloud server of the target application may establish a print task including a print task identifier for the print request, and establish an association between the print task identifier in the print task and the print file identifier parsed from the print request.
[0054] Step 204, sending a print task to the service-side cloud server; the print task is used to instruct the service-side cloud server to call the task data acquisition interface provided by the sender of the print task to send a data acquisition request.
[0055] The sender of the print task is the cloud server of the target application, and the task data acquisition interface is an interface provided by the cloud server of the target application. The data acquisition request is used to request to obtain data from the cloud server of the target application. The data acquisition request carries the print task identifier of the print task, which is used to uniquely identify the print task.
[0056] Specifically, after generating a print task, the cloud server of the target application can send the print task to the cloud server of the service party. After receiving the print task, the cloud server of the service party first obtains the print data required for the print task, and then can control the corresponding cloud printer to print according to the print data. When obtaining the print data, the cloud server of the service party can call the data acquisition interface provided by the cloud server of the target application to send a data acquisition request to the cloud server of the target application, and carry the print task identifier in the data acquisition request, so that the cloud server of the target application can determine the required print data according to the print task identifier carried in the data acquisition request.
[0057] In some embodiments, the cloud server of the target application can establish a network connection with multiple server-side cloud servers, and the association relationship between the printer identifier and the server-side cloud server can be saved in the cloud server of the target application, so that after receiving a print request, the cloud server of the target application can select a server-side cloud server associated with it from multiple server-side cloud servers based on the printer identifier carried in the print request, and send the print task to the selected server-side cloud server.
[0058] Step 206: receiving a data acquisition request, parsing the data acquisition request to obtain a print task identifier, and determining an associated print file identifier according to the print task identifier.
[0059] Specifically, after receiving a data acquisition request, the cloud server of the target application can parse the data acquisition request, thereby obtaining the print task identifier carried in the data acquisition request. After obtaining the print task identifier, the cloud server of the target application can further query the established association between the print file identifier and the print task, thereby determining the print file identifier associated with the print task identifier carried in the data acquisition request.
[0060] Step 208, obtain the print data corresponding to the file to be printed according to the print file identifier, and send the print data to the service-side cloud server; the service-side cloud server is used to control the cloud printer to print according to the print data.
[0061] The print data is the relevant data required for the cloud printer printing process. In some embodiments, the print data may include print parameters and a print format file of the file to be printed. In other embodiments, the print data may also include print parameters and a file acquisition path of the file to be printed. In other embodiments, the print format file of the file to be printed may be stored in encrypted form, and the print parameters may also include a decryption parameter of the file to be printed.
[0062] Specifically, the print data of the file to be printed is stored in association with the print file identifier of the file to be printed. After the cloud server of the target application determines the print file identifier, it can obtain the print data corresponding to the file to be printed according to the print file identifier. The cloud server of the target application can further send the print data corresponding to the file to be printed to the service party cloud server. The service party cloud server can control the corresponding cloud printer to print according to the print data.
[0063] In a specific embodiment, reference Figure 4 , is a diagram showing the changes in the terminal's printing interface in one embodiment. The user enters the printing device list page, where the terminal displays the printing devices that meet the conditions (device status, device permissions, etc.). After the user selects a specific device, the page issues the user authorization agreement for the device; after the user selects the printing device, the user enters the print preparation page, during which the terminal can send the file to be printed to the cloud server of the target application; after the preparation for printing is completed, the terminal can further display the parameter setting page, where the user can set the printing parameters. If the user clicks "Print Preview", the terminal can send a preview request to the cloud server of the target application to enter the print preview process. If the user clicks "Print", the terminal can send a print request to the cloud server of the target application to enter the printing process, so that the cloud server of the target application submits the print task to the cloud server of the service provider; finally, the printing device reports the printing result through the cloud server of the service provider and finally displays it to the user.
[0064] In the above-mentioned file printing method, the cloud server of the target application, when receiving a print request for a file to be printed, generates a print task including a print task identifier, establishes an association between the print task identifier and the print file identifier carried in the print request, and sends the print task to the service-side cloud server; the print task is used to instruct the service-side cloud server to call a task data acquisition interface provided by the sender of the print task to send a data acquisition request, receive the data acquisition request, parse the data acquisition request to obtain the print task identifier, determine the associated print file identifier according to the print task identifier, obtain the print data corresponding to the file to be printed according to the print file identifier, send the print data to the service-side cloud server, and the service-side cloud server The server is used to control the cloud printer to print according to the print data, realizing cloud printing through the target application. During the printing process, the cloud server of the target application can directly communicate with the service-side cloud server, and the cloud printer is controlled by the service-side cloud server to print. The entire printing process does not require the use of additional software and hardware, which greatly saves printing costs. In the printing process, by determining the print task associated with the print file identifier, and the print task includes the print task identifier, the cloud server of the target application and the service-side cloud server can complete the printing process through the print task and the task identifier, avoiding sending the print file identifier to the service-side cloud server, thereby improving data security during the printing process.
[0065] In one embodiment, print data corresponding to a file to be printed is obtained according to a print file identifier, and the print data is sent to a service-side cloud server, including: obtaining print parameters and a file acquisition path corresponding to the file to be printed according to the print file identifier, and sending the print parameters and the file acquisition path to the service-side cloud server; the method also includes: upon receiving a file download request triggered by the service-side cloud server through the file acquisition path, responding to the file download request, sending a print format file corresponding to the file to be printed to the service-side cloud server; the service-side cloud server is used to send the print parameters and the print format file to the cloud printer to control the cloud printer to print according to the print parameters and the print format file.
[0066] Among them, the file acquisition path refers to the path for the user to obtain the print format file of the file to be printed. The file acquisition path can be a file download link. The file download link can trigger the file download, so as to obtain the print format file of the file to be printed. In a specific application, the file acquisition path has a certain validity period after being sent to the service party cloud server. The validity period can be set by the cloud server of the target application, for example, it can be 10 days. By setting the validity period, the security of the file can be further ensured. Here, the print format file refers to the file obtained after transcoding preprocessing the print file according to the print type supported by the cloud printer. The print format file can be the file to be printed itself, or the file obtained by format conversion of the file to be printed. It is determined according to the file type supported by the cloud printer. For a practical example, assuming that the file that the user needs to print is a word file, but the cloud printer only supports printing PDF, then the file to be printed needs to be converted into a PDF file for printing, and the converted PDF file is the print format file. The specific implementation of transcoding preprocessing will be introduced in the following embodiments.
[0067] In this embodiment, in order to ensure that the task data acquisition request of the service-side cloud server can be responded to as quickly as possible, the print data sent by the cloud server of the target application to the cloud server of the service-side cloud server may include a file acquisition path and print parameters. When the service-side cloud server receives the print data containing the file acquisition path and print parameters, it triggers a download request for the print format file of the file to be printed through the file acquisition path. The cloud server of the target application can respond to the download request and send the print format file corresponding to the file to be printed to the service-side cloud server. After receiving the print format file, the service-side cloud server can send the print file and other printing parameters together to the cloud printer, so that the cloud printer can start printing according to these data.
[0068] In specific applications, when the service-side cloud server downloads the file to be printed through the file acquisition path, it can perform block downloading, that is, execute the byte range to be downloaded in the request header of the download request. Block downloading can ensure that the file can be downloaded smoothly even if the file is large.
[0069] In a specific application, when a user needs to print multiple files to be printed, the cloud server of the target application can perform batch transcoding preprocessing on these files to be printed, and after obtaining the print format file, the print format file is packaged to obtain a target file package, and the target file package can be stored, and the file acquisition path of the target file package is sent to the service party cloud server. For example, assuming that a user needs to print three files to be printed, after receiving the three files to be printed uploaded by the terminal, the cloud server of the target application can simultaneously perform transcoding preprocessing on the three files to be printed according to the file types of the three files to be printed, and after respectively obtaining the print format files of the three files to be printed, the cloud server of the target application can further package the obtained three print format files to obtain a target file package, and after storing the target file package, the file acquisition path of the target file package is sent to the service party cloud server, so that the service party cloud server can obtain the target file package according to the file acquisition path, and the service party cloud server can simultaneously obtain the print format files of the three files that the user needs to print from the target file package.
[0070] In this embodiment, by sending the file acquisition path, the task data acquisition request can be quickly responded to, and the service party cloud server can asynchronously download the print format file based on the file acquisition path, which can improve the printing efficiency of the entire printing process.
[0071] In one embodiment, the print format file corresponding to the file to be printed is stored in encrypted form; the print parameters and file acquisition path corresponding to the file to be printed are obtained according to the print file identifier, and the print parameters and file acquisition path are sent to the service provider cloud server, including: obtaining the print parameters, file acquisition path and decryption parameters corresponding to the file to be printed according to the print file identifier, and sending the print parameters, file acquisition path and decryption parameters to the service provider cloud server; the service provider cloud server is also used to decrypt the print format file according to the decryption parameters, and send the print parameters and the decrypted print format file to the cloud printer to control the cloud printer to print according to the print parameters and the decrypted print format file.
[0072] In this embodiment, the cloud server of the target application can encrypt and store the print format file of the file to be printed. The specific encryption algorithm is not limited in this application, for example, it can be AES-256-CBC. It should be noted that for each printing process, the cloud server of the target application will further determine the print format file of the file to be printed after obtaining the original file of the file to be printed, and encrypt and store the print format file. In each printing process, even for the print format file of the same file, the encryption parameters of the encrypted storage are different, so the corresponding decryption parameters are also different, so that the security of the file storage and transmission process can be guaranteed.
[0073] Specifically, the print data obtained by the cloud server of the target application according to the print file identifier includes data such as print parameters, file acquisition path and decryption parameters. After the print data is sent to the service party cloud server, the service party cloud server can decrypt the print format file according to the decryption parameters, so that the service party cloud server can send the decrypted print format file and other print parameters to the cloud printer, so that cloud printing can start the printing process.
[0074] In the above embodiment, by encrypting and storing the print format file, data security during file storage and transmission can be guaranteed.
[0075] In one embodiment, the file to be printed is a local file of the printer selected by the target application; the file printing method of the present application also includes: the file to be printed is a local file of the printer selected by the target application; the above-mentioned file printing method also includes: receiving a local file of the printer uploaded by the target application; when the cloud printer supports the file type of the received local file of the printer, determining the received local file of the printer as the print format file corresponding to the file to be printed; when the cloud printer does not support the file type of the received local file of the printer, converting the received local file of the printer into a file type supported by the cloud printer to obtain the print format file corresponding to the file to be printed.
[0076] The local file of the printing party is the local file of the terminal where the target application is installed. For example, when the target application is an instant messaging application, the local file of the printing party can be a file received during the session of the target application. Different types of cloud printers may support different file types. The cloud server of the target application can store the association between the model of the cloud printer and the supported file types. When receiving the local file uploaded by the terminal through the target application, the model of the cloud printer selected by the user is first queried according to the printer identification, and the file type supported by cloud printing is determined according to the model, and then the print format file can be determined according to the file type.
[0077] Specifically, after the user triggers the process of printing a file in the target application, the user can select the target printer in the printing device list, so that the terminal can upload the local printing file selected by the user to the cloud server of the target application through the target application, so that the cloud server of the target application can asynchronously perform transcoding preprocessing operations, that is, determine whether the received local printing file is a file type supported by the cloud printer selected by the user. If so, the file to be printed can be determined as a print format file. If not, the received local printing file can be converted into a format according to the file type supported by the cloud printer selected by the user, so that the print format file corresponding to the file to be printed can be obtained.
[0078] In the above embodiment, the printing efficiency can be improved by performing asynchronous transcoding preprocessing on the file to be printed.
[0079] In one embodiment, the file to be printed is a cloud file stored in the cloud server of the target application; the file printing method of the present application also includes: receiving a print file identifier of the file to be printed uploaded by the target application, and determining the file to be printed based on the print file identifier; performing snapshot processing on the file content of the file to be printed, and determining the file obtained by the snapshot processing as the print format file corresponding to the file to be printed.
[0080] The cloud files in the cloud server of the target application are files that have been stored in the cloud server of the target application. In a specific application, the target application can display a list of files in the cloud file, and the user can select the cloud file to be printed in the list of files in the cloud file.
[0081] In this embodiment, since the cloud file is already stored in the cloud, the target application does not need to upload the file. Therefore, after the user selects the printing device, the target application can directly upload the print file identifier of the file to be printed selected by the user to the cloud server. After receiving the print file identifier, the cloud server can query the corresponding target cloud file from the database storing the cloud file according to the print file identifier, and perform snapshot processing on the content of the target cloud file, so that the file obtained by the snapshot processing can be determined as the print format file of the file to be printed, thereby realizing the transcoding preprocessing operation of the cloud file.
[0082] In the above embodiment, the cloud server of the target application can print cloud files by taking snapshots of the cloud files selected by the user. On the one hand, this expands the data sources in the printing scenario. On the other hand, for cloud files, users can print without downloading them, which improves the flexibility and efficiency of the printing process.
[0083] It is understandable that in the above embodiment of obtaining a print format file, after obtaining the print format file, the cloud server of the target application can store the print format file in association with the print file identifier. In actual applications, the cloud server of the target application can also encrypt the print format file and store the print format file, the print file identifier, and the decryption parameters in association.
[0084] In some embodiments, the print task is also used to instruct the service party cloud server to return the print result carrying the task identifier, and the file printing method also includes: receiving the print result; obtaining the print file identifier based on the task identifier and the association carried in the print result; based on the print file identifier, using the print result as the print result of the file to be printed, and returning the print result of the file to be printed to the file printer of the file to be printed.
[0085] The print result may include any one of printing, printing completed or printing failed. In a specific application, the print failure may be any one of the printer running out of ink, running out of paper, printer network error, etc. The print result may also carry a print task identifier, and then the cloud server of the target application, after receiving the print result fed back by the service party server, may determine the file to be printed for the print result according to the print task identifier, and return the print result of the file to be printed to the target application.
[0086] In this embodiment, the cloud server of the target application can receive the printing result fed back by the service-side server, and send the printing result to the target application, so as to better meet the user's needs.
[0087] In one embodiment, the above-mentioned file printing method also includes: in the case of receiving a preview request for a file to be printed triggered by a target application, generating a preview task including a preview task identifier, and sending the preview task to a service-side cloud server; the preview task carries the printing parameters and the preview task identifier parsed from the preview request, used to instruct the service-side cloud server to perform transcoding processing on the file to be printed according to the printing parameters to obtain a preview result, and return the preview result carrying the preview task identifier; assigning a preview operation identifier to the preview request, establishing an association relationship between the preview operation identifier and the preview task identifier, and sending the preview operation identifier to the file preview party; in the case of receiving a preview result acquisition request carrying the preview operation identifier sent by the file preview party, determining a preview task identifier with an associated relationship based on the preview operation identifier, and when a preview result carrying the preview task identifier is detected, returning the preview result to the file preview party.
[0088] The preview operation identifier corresponds to the preview request and can be used to identify the preview request. Each time the cloud server of the target application receives a preview request, it allocates a preview operation identifier to the preview request.
[0089] Specifically, during the printing process, the user may need to perform a print preview to determine in advance whether the settings of the printing parameters meet the requirements. During the preview process, the user can trigger a preview request for the file to be printed through the target application. When the cloud server of the target application receives the preview request, it can parse the preview request to obtain the printing parameters set by the user, and then generate a preview task, and send the preview task to the server-side cloud server. The preview task carries the printing parameters obtained by parsing the preview request. After receiving the preview task, the server-side cloud server can extract the printing parameters and the preview task identifier from the preview task. According to the printing parameters obtained in advance, the service-side cloud server can perform transcoding processing on the file to be printed to obtain the preview result, and return the preview result to the cloud server of the target application. The preview result can carry the preview task identifier, so that the cloud server of the target application can determine the preview task to which the preview result belongs according to the preview task identifier. It can be understood that in a specific application, the preview task can also carry the file acquisition path of the file to be printed. When the service-side cloud server prints the file to be printed, it can obtain the print format file of the file to be printed according to the file acquisition path, and then transcode the print format file of the file to be printed to obtain the preview result.
[0090] When receiving the preview request, the cloud server of the target application can also assign a preview operation identifier for the preview request, establish an association between the preview operation identifier and the preview task identifier, and return the preview operation identifier to the terminal. After receiving the preview operation identifier, the terminal can send a preview result acquisition request to the cloud server of the target application at a preset time interval to poll the preview result. Each time the cloud server of the target application receives the preview result acquisition request, it determines the preview task identifier according to the preview operation identifier carried in the preview result acquisition request, and then detects whether there is a corresponding preview result for the preview task identified by the preview task identifier. If so, the preview result can be returned to the terminal. If not, it continues to wait until the preview times out and returns a feedback result of preview failure to the terminal.
[0091] In a specific embodiment, the print request may also carry a printer identifier, which is used to uniquely identify a cloud printer. The cloud server of the target application sends a preview task to the cloud server of the service party by: obtaining pre-established association data, which records the association between the printer model and the callback service address of the service party cloud server; determining the printer model according to the printer identifier, and determining the target callback service address according to the printer model and the association data; and calling back the preview task to the corresponding server-side cloud server according to the target callback service address.
[0092] In the above embodiment, when the cloud server of the target application receives the preview request, it can obtain the preview result by sending the preview task to the cloud server of the service provider, which can improve the flexibility of the file printing process.
[0093] In one embodiment, when a preview request for a file to be printed is received, a preview task is generated and the preview task is sent to a service-side cloud server, including: when a preview request for a file to be printed is received, the preview request is parsed to obtain a print file identifier, and an associated target print task is determined based on the print file identifier obtained by parsing; when there is no associated preview task for the target print task, a preview task containing a preview task identifier is generated; the preview task carries the print parameters, the initial parameter version number and the preview task identifier of the preview task parsed from the preview request; the method also includes: when there is an associated preview task for the target print task, the preview task associated with the target print task is sent to the service-side cloud server; the preview task carries the print parameters, the current parameter version number and the preview task identifier of the preview task obtained by parsing from the preview request, and the current parameter version number is used to characterize the timing of the preview request relative to the preview task.
[0094] The initial parameter version number is used to identify that the current preview request is the first preview of the file to be printed. The initial parameter version number can be set as needed, for example, it can be V1. For each subsequent preview, according to the sending sequence of the preview request, the current parameter version number can be incremented based on the current maximum parameter version number to obtain the current parameter version number. For example, when the terminal sends the preview request for the second time, the current parameter version number corresponding to the second preview request can be V2, and when the terminal sends the preview request for the third time, the current parameter version number corresponding to the third preview request can be V3.
[0095] In this embodiment, when the service-side cloud server performs preview transcoding, it needs to download the print format file of the file to be printed. Considering that in one printing process, the user may modify the printing parameters multiple times and perform multiple previews, for multiple previews, the cloud server of the target application can reuse the same preview task, that is, by sending the same preview task identifier to the service-side cloud server, the service-side cloud server can download the file only once, saving traffic and bandwidth. However, because there may be timing problems with network requests, the service-side cloud server may return the preview result with a lag, which may cause the old preview request result to be returned when the user changes the parameters and previews again. In order to avoid incorrect preview results returned to the terminal, the preview task sent by the cloud server of the target application to the service-side cloud server can also carry a parameter version number. When the service-side cloud server returns the preview result, it carries the preview task identifier and the parameter version number in the preview result, so that the cloud server of the target application can determine the required preview result through the preview task identifier and the parameter version number.
[0096] Specifically, the cloud server of the target application can determine the associated target print task based on the print file identifier parsed from the preview request, and judge whether the target print task has an associated preview task. If not, it means that the current preview request is the first preview in this printing process. The cloud server of the target application assigns an initial parameter version number while generating the preview task. If there is an associated preview task, it means that the current preview request is not the first preview. The cloud server of the target application can query the maximum parameter version number corresponding to the preview task, increment the maximum parameter version number, and obtain the current parameter version number.
[0097] When the cloud server of the target application sends a preview task to the cloud server of the service party, the preview task may carry the print parameters, the preview task identifier, and the current parameter version number, and when the cloud server of the service party returns the preview result, the preview task identifier and the current parameter version number may be carried in the preview result. Since the preview result is identified by the preview task identifier and the current parameter version number, the cloud server of the target application may establish an association relationship between the preview operation identifier, the preview task identifier, and the current parameter version number after allocating the preview operation identifier to the preview request. Then, in the process of the terminal polling the preview result, the cloud server of the target application determines the associated preview task identifier and the current parameter version number according to the preview operation identifier carried in the preview result acquisition request, so as to determine whether there is a preview result for the current preview request according to the preview task identifier and the initial parameter version number. If there is, the preview result may be returned to the terminal. If not, it continues to wait until the preview times out and returns the feedback result of preview failure to the terminal.
[0098] In the service provider's cloud server, the downloaded files and preview task identifiers can be associated and stored, so that when a preview task is received, it can be determined whether the file has been downloaded based on the preview task identifier carried in the preview task. If the file has been downloaded, the downloaded file can be directly obtained. If the file has not been downloaded, the file can be downloaded based on the file acquisition path carried in the preview task.
[0099] It can be understood that in actual applications, if the cloud server of the target application detects that there is an associated preview task for the target printing task, it can further obtain the printing parameters of the preview task. Only when the printing parameters of the preview task are different from the printing parameters received in the current preview request, a parameter version number corresponding to the current preview request is generated. If the printing parameters of the preview task are the same as the printing parameters received in the current preview request, the parameter version number of the printing parameters and the preview result associated with the preview task can be directly returned to the terminal.
[0100] In the above embodiment, since the parameter version number can also be carried when sending the preview task, when the user initiates preview requests multiple times, the preview result of each preview request can be accurately determined, thereby ensuring the accuracy of the preview result.
[0101] In one embodiment, the associated target printing task is determined based on the print file identification obtained by parsing, including: determining the printing task with an associated relationship based on the print file identification obtained by parsing, and obtaining the task status of the printing task with an associated relationship; when the task status indicates that printing is not completed, determining the printing task with an associated relationship as the target printing task; when the task status indicates that printing is completed, generating a new printing task, and determining the newly generated printing task as the target printing task.
[0102] The task status of the preview task includes two types: a status indicating that the preview task is completed and a status indicating that the preview task is not completed.
[0103] Taking into account that a user may initiate a printing process multiple times for the same document, this embodiment can record the printing status for a print task. For each print task, the cloud server of the target application can set the status of the print task to a status indicating that the print task is not completed when establishing the print task. When receiving a print result indicating that printing is completed, the task status of the print task can be updated to a status indicating that the print task is completed. Therefore, when the cloud server of the target application receives a preview request, it first determines the print task with an associated relationship according to the print file identifier carried in the preview request, and then executes different processes according to the determined status of the print task. Specifically, when the task status indicates that printing is not completed, the print task can be reused and determined as the target print task. When the task status indicates that printing is completed, a new print task is generated, the newly generated print task is determined as the target print task, and the print status of the target print task is set to printing is not completed.
[0104] It is understandable that when a print file identifier has multiple associated print tasks, the task status of each print task is traversed. If all print tasks are in the printing completed status, a new print task is generated. Otherwise, the unfinished print task is determined as the target print task.
[0105] In the above embodiment, by setting the task status for the preview task, when the user initiates printing for the same file multiple times, the preview result can be accurately determined, thereby ensuring the accuracy of the preview result.
[0106] In one embodiment, the print request also carries a printer identifier; sending a print task to a service-side cloud server includes: obtaining pre-established association data; the association data records the association between the printer model and the callback service address of the service-side cloud server; determining the printer model according to the printer identifier carried in the print request, and determining the target callback service address according to the determined printer model and the association data; and calling back the print task to the corresponding server-side cloud server according to the target callback service address.
[0107] In this embodiment, a callback service can be configured for the service-side cloud server. To configure the callback service, three callback service configuration items are required, namely: URL (Uniform Resource Locator), Token, and EncodingAESKey. The URL is the callback service address, which is set up by the service-side server and is used to receive notification messages or events. The Token is used to calculate the signature, which is a custom string composed of English or numbers and not more than 32 bits in length, to determine the reliability of the message source. The EncodingAESKey is used to encrypt the message content, which is a custom string composed of English or numbers and 43 bits in length. After the callback service is configured, association data can be established in the cloud server of the target application. The association data records the association between the printer model and the callback service configuration items of the service-side cloud server. Then, when sending a print task, the cloud server of the target application can determine the printer model according to the printer identifier, and then determine the target callback service address according to the printer model and the association data, sign the print task through the Token and encrypt the print task through the EncodingAESKey, and call back the print task to the corresponding server-side cloud server according to the target callback service address.
[0108] In the above embodiment, by configuring the callback service, the cloud server of the target application can promptly and actively call back the printing task to the cloud server of the service provider, thereby improving the printing efficiency.
[0109] In one embodiment, Figure 5 As shown, a file printing method is provided, which is applied to Figure 1 Taking the service server 106 as an example, the following steps are included:
[0110] Step 502, when receiving a print task sent by the cloud server corresponding to the target application, call the task data acquisition interface provided by the cloud server corresponding to the target application to send a data acquisition request; the print task is determined by the cloud server corresponding to the target application when receiving a print request for a file to be printed triggered by the target application, and there is an association between the print task identifier of the print task and the print file identifier carried in the print request; the data acquisition request is used to instruct the cloud server corresponding to the target application to obtain the print file identifier according to the print task identifier and the association carried in the data acquisition request, obtain the print data corresponding to the file to be printed according to the print file identifier, and send the print data to the service-side cloud server.
[0111] Step 504, receiving printing data, and controlling the cloud printer to print according to the printing data.
[0112] For the relevant explanation of this embodiment, please refer to the above embodiment and will not be repeated here.
[0113] The above-mentioned file printing method, when receiving a print task sent by the cloud server corresponding to the target application, calls the task data acquisition interface provided by the cloud server corresponding to the target application to send a data acquisition request, receives print data, and controls the cloud printer to print according to the print data, thereby realizing cloud printing through the target application. During the printing process, the cloud server of the target application can directly communicate with the service party cloud server, and the cloud printing is controlled by the service party cloud server to print. For the printing user, the entire printing process does not require the aid of additional software and hardware, which greatly saves printing costs. In addition, during the printing process, by determining the print task associated with the print file identifier, and the print task includes the print task identifier, the cloud server of the target application and the service party cloud server can complete the printing process through the print task and the task identifier, thereby avoiding sending the print file identifier to the service party cloud server and improving data security during the printing process.
[0114] In one embodiment, the above-mentioned file printing method also includes: receiving a preview task sent by a cloud server corresponding to a target application; the preview task carries printing parameters parsed from a preview request and a preview task identifier of the preview task; transcoding the file to be printed according to the printing parameters to obtain a preview result, and returning the preview result carrying the preview task identifier to the cloud server corresponding to the target application; the cloud server corresponding to the target application is used to allocate a preview operation identifier for the preview request, establish an association relationship between the preview operation identifier and the preview task identifier, and send the preview operation identifier to the file preview party, and when receiving a preview result acquisition request carrying the preview operation identifier sent by the file preview party, determine a preview task identifier with an associated relationship based on the preview operation identifier, and when a preview result carrying the preview task identifier is detected, return the preview result to the file preview party.
[0115] In one embodiment, Figure 6 As shown, a file printing system 600 is provided, the system includes a terminal 602 with a target application installed, a cloud server 604 of the target application, a service cloud server 606 and a cloud printer 608; wherein:
[0116] The terminal is used to send a print request for the file to be printed to the cloud server of the target application through the target application; the print request carries a print file identifier of the file to be printed;
[0117] The cloud server of the target application is used to determine the associated print task according to the print file identifier carried in the print request when receiving the print request; the print task includes the print task identifier; and send the print task to the cloud server of the service party;
[0118] The service-side cloud server is used to call the task data acquisition interface provided by the cloud server of the target application to send a data acquisition request when receiving the printing task;
[0119] The cloud server of the target application is also used to receive a data acquisition request, parse the data acquisition request to obtain a print task identifier, determine an associated print file identifier according to the print task identifier, obtain print data corresponding to the file to be printed according to the print file identifier, and send the print data to the service party cloud server;
[0120] The service-side cloud server is also used to control the cloud printer to print according to the print data.
[0121] The above-mentioned file printing system realizes cloud printing through the target application. During the printing process, the cloud server of the target application can directly communicate with the service party cloud server, and the cloud printing is controlled by the service party cloud server for printing. For the printing user, the entire printing process does not require the help of additional software and hardware, which greatly saves printing costs. In the printing process, by determining the print task associated with the print file identifier, and the print task includes the print task identifier, the cloud server of the target application and the service party cloud server can complete the printing process through the print task and the task identifier, avoiding the sending of the print file identifier to the service party cloud server, thereby improving the data security during the printing process.
[0122] In a specific embodiment, a file printing method is provided, which mainly involves four roles: a terminal with a target application installed, a cloud server of the target application, a service cloud server, and a cloud printer. The main tasks are:
[0123] (1) A terminal with the target application installed
[0124] a) Accepting print requests: The user uploads the print file on the terminal where the target application is installed. The cloud server of the target application returns the file preview. The user sets the print parameters on the terminal where the target application is installed according to the print preview and submits the print request. Then the cloud server of the target application accesses the service provider cloud and submits the print task.
[0125] b) Feedback on printing results: After the cloud server of the target application obtains the printing results, it notifies the user using the terminal with the target application installed. In abnormal scenarios, the terminal with the target application installed can provide the cause of failure and customer service support.
[0126] (2) Cloud server of target application
[0127] a) Encrypted transmission of printed files: For local files, the target application's cloud server uses the AES-256-CBC algorithm to encrypt and store them; for cloud files, the target application's cloud server first snapshots the file content and then encrypts and stores it.
[0128] b) Provide communication capabilities with the service provider's cloud server: The target application's cloud server supports callback capabilities, actively sending some operations of the printing process to the service provider's cloud server; and the target application's cloud server provides an API (Application Programming Interface) to passively accept the service provider's cloud server reporting printing results, printer status, and print task status, etc.
[0129] (3) Service provider cloud server
[0130] a) Processing printing interaction with the target application's cloud server: According to the target application's cloud server requirements, develop a transit service platform to handle the interaction with the target application's cloud server during the printing process;
[0131] b) Processing the interaction with the underlying printing device: The cloud server of the target application provides a universal printing protocol, but the specific devices are heterogeneous. The service-side cloud server needs to correctly handle the interaction content with the printer and report the results to the cloud server of the target application.
[0132] (4) Cloud Printer
[0133] Responsible for completing the final printing work and feeding back the printing results to the service provider's cloud server.
[0134] like Figure 7 As shown, the file printing method of this embodiment can print the local file of the terminal, refer to Figure 7 , specifically including the following steps:
[0135] 1. The user selects local file to print.
[0136] 2. The terminal requests the cloud server of the target application to obtain all eligible printing devices (the screening conditions include the device visibility range, device online status, etc.).
[0137] 3. The cloud server of the target application returns the device list of the printing device.
[0138] 4. The user confirms the "User Authorization Agreement" and selects the specific printing device.
[0139] 5. The terminal submits the print file to the cloud server of the target application.
[0140] After receiving the print file submitted by the terminal, the cloud server of the target application performs transcoding preprocessing on the file according to the file type and the document type supported by the user's selected printing device. Specifically:
[0141] 6. If the cloud server of the printing device provides transcoding services and supports the current file type, the file will be directly encrypted and stored.
[0142] 7. If the printing device's service provider cloud server does not support printing of this type of file and the printing device selected by the user supports PDF file printing, the file will be transcoded into PDF.
[0143] 8. After transcoding is completed, the file is encrypted and stored.
[0144] Among them, in order to ensure the security of user information, the printed file contents are encrypted and stored using the AES-256-CBC algorithm, and the files have a certain validity period (for example, 10 days) and are directly deleted after expiration.
[0145] 9. The user sets the printing parameters and checks the print preview.
[0146] 10. The terminal sends a preview request to the cloud server of the target application.
[0147] The preview request may carry a print file identifier and print parameters.
[0148] 11. The cloud server of the target application generates a preview task and calls back the preview task to the cloud server of the service provider. The preview task carries jobID (preview task identifier) and setting_version (parameter version number).
[0149] The preview task also carries the printing parameters parsed from the preview request.
[0150] 12. The cloud server of the target application allocates an operID (preview operation identifier) for the preview request and returns the operID to the terminal.
[0151] 13. After receiving the preview task, the service provider's cloud server performs transcoding processing based on the printing parameters, obtains the preview result, and reports it to the cloud server of the target application.
[0152] 14. The terminal polls the preview results in the cloud server of the target application through operID.
[0153] 15. The cloud server of the target application refreshes to the preview result and feeds back the preview result to the terminal.
[0154] It is understandable that if the cloud server of the target application detects that the preview task has timed out, a result indicating that the preview has failed may be returned to the terminal.
[0155] 16. The terminal displays the print preview based on the preview results.
[0156] It should be noted that the "preview task" that the target application's cloud server calls back to the service provider's cloud server contains JobId, i.e., the preview task identifier. This preview task identifier corresponds to each user's printing process. When the printing parameters are changed and the preview is re-initiated, the preview task identifier remains unchanged. For a specific printing process, the print file is selected at the beginning, and the user only changes the parameters when re-initiating the preview. The service provider's cloud server does not need to obtain the print file multiple times. Using the same JobId facilitates the service provider to do mapping, thereby saving bandwidth on both sides.
[0157] The target application's cloud server calls back to the "preview task" of the service provider's cloud server, which contains a file download link. The service provider's cloud server obtains the print format file through this link. This link has a certain time limit (for example, it can be 10 minutes). When the user resets the printing parameters, the target application's cloud server will recalculate the signature and call back the data to the service provider's cloud server.
[0158] After the service-side cloud server completes the transcoding, it asynchronously uploads the preview result to the cloud server of the target application. However, users may modify the printing parameters and submit the print preview multiple times. In order to avoid possible timing problems during the operation, the callback data packet of the cloud server of the target application carries setting_version, i.e., the "parameter version number". Each time the parameter is modified, the cloud server of the target application increases the parameter value by one. The transcoding data packet reported by the service-side cloud server must also contain specific "parameter version number" information. The cloud server of the target application uses jobid+setting_version to correspond to the specific print preview request.
[0159] In actual usage scenarios, users will modify printing parameters multiple times, which may trigger preview events multiple times. Therefore, after the device capability check and transcoding preprocessing are completed, the relevant information is stored, and in the subsequent preview process, a "preview task" callback is directly initiated to the service provider's cloud server.
[0160] The above process describes the process of print preview with the help of the service provider's cloud server. In actual use, the print preview operation is not necessary, and users can directly initiate printing without previewing.
[0161] Optionally, a "print preview" module can be integrated in the cloud server of the target application. The preview module can realize the same preview function as the cloud server of the service party. After the user uploads the file to be printed through the terminal, the cloud server of the target application can directly call the module and perform transcoding processing according to the printing parameters set by the user to generate a preview result. Only after the user confirms the preview result and submits the print request, the print task is called back to the cloud server of the service party to continue the subsequent printing process.
[0162] 17. After the user sets the printing parameters, click "Print" on the page to submit the printing.
[0163] 18. The terminal sends a print request to the cloud server of the target application.
[0164] 19. The cloud server of the target application determines the print task according to the print file identifier in the print request, and calls back the print task to the cloud server of the service provider.
[0165] 20. The service provider's cloud server obtains printing data through the "Get Print File" interface, including printing parameters, decryption parameters, file download link, etc. The download link is valid for 10 minutes.
[0166] Specifically, the "print task" callback carries a unique JobId, i.e., the print task identifier. The service-side cloud server carries the JobId when obtaining print data and reporting print results. The cloud server of the target application maps the corresponding print task through the JobId.
[0167] 21. Execute printing. The service provider's cloud server controls the printer to complete printing.
[0168] 22. Call the API provided by the cloud server of the target application to upload the print results.
[0169] like Figure 8 As shown, the file printing method of this embodiment can print the cloud file in the cloud server, refer to Figure 8 , specifically including the following steps:
[0170] 1. The user chooses to print a cloud file.
[0171] 2. The terminal requests the cloud server of the target application to obtain all eligible printing devices (the screening conditions include the device visibility range, device online status, etc.).
[0172] 3. The cloud server of the target application returns the device list of the printing device.
[0173] 4. The user confirms the "User Authorization Agreement" and selects the specific printing device.
[0174] 5. The terminal uploads the docID (i.e., print file identifier) of the cloud file to the cloud server of the target application.
[0175] 6. Cloud server snapshot cloud file content of the target application.
[0176] The cloud server of the target application can find the cloud file that the user wants to print according to the file identifier and take a snapshot of the content of the cloud file.
[0177] Since cloud files are sensitive data, in order to ensure security, it is not possible to directly open document permissions to printing devices. Snapshot files are a better solution. In addition, cloud files do not need to go through transcoding services and can be generated as PDF files using the existing capabilities of online documents. The content of the snapshot file is encrypted and stored using the AES-256-CBC algorithm, and the file has a certain validity period (10 days) and is directly deleted after expiration.
[0178] 7. The user sets the printing parameters and checks the print preview.
[0179] 8. The terminal sends a preview request to the cloud server of the target application.
[0180] The preview request may carry the docID of the cloud file and printing parameters.
[0181] 9. The cloud server of the target application generates a preview task and calls back the preview task to the cloud server of the service provider. The preview task carries jobID (preview task identifier) and setting_version (parameter version number).
[0182] The preview task also carries the printing parameters parsed from the preview request.
[0183] 10. The cloud server of the target application allocates an operID (preview operation identifier) for the preview request and returns the operID to the terminal.
[0184] 11. After receiving the preview task, the service provider's cloud server performs transcoding processing based on the printing parameters, obtains the preview result, and reports it to the cloud server of the target application.
[0185] 12. The terminal polls the preview results in the cloud server of the target application through operID.
[0186] 13. The cloud server of the target application refreshes to the preview result and feeds back the preview result to the terminal.
[0187] It is understandable that if the cloud server of the target application detects that the preview task has timed out, a result indicating that the preview has failed may be returned to the terminal.
[0188] 14. The terminal displays the print preview based on the preview results.
[0189] 15. After the user sets the printing parameters, click "Print" on the page to submit for printing.
[0190] 16. The terminal sends a print request to the cloud server of the target application.
[0191] 17. The cloud server of the target application determines the print task according to the print file identifier in the print request, and calls back the print task to the cloud server of the service provider.
[0192] 18. The service provider's cloud server obtains printing data through the "Get Print File" interface. The printing data includes printing parameters, decryption parameters, file download link, etc. The download link is valid for 10 minutes.
[0193] Specifically, the "print task" callback carries a unique JobId, i.e., the print task identifier. The service-side cloud server carries the JobId when obtaining print data and reporting print results. The cloud server of the target application maps the corresponding print task through the JobId.
[0194] 19. Execute printing. The service provider's cloud server controls the printer to complete printing.
[0195] 20. Call the API provided by the cloud server of the target application to upload the print results.
[0196] In the above embodiment, a multi-cloud secure printing system is created by combining the cloud server of the target application and the cloud server of the service party, so that users can realize secure printing needs without additional software and hardware; and it provides the ability for enterprise users to directly print online documents, further enriching the printing scenarios of enterprise users and improving the printing efficiency of enterprise members; with the help of the cloud server capabilities of the service party, the cloud server of the target application does not need to pay attention to the details of printer data interaction, and can realize rapid access to printing devices, thereby reducing access costs, reducing system coupling, and reducing platform complexity.
[0197] In another specific embodiment, a file printing method is provided, in which printing is designed as a medium- to long-term asynchronous process to further improve the security of user files. After the user initiates printing, the file to be printed is stored in the cloud server of the target application; when the user comes to the printer and scans the QR code of the cloud printer device, the terminal displays the printing task submitted by the user on the current device; the user selects a specific printing task to execute the subsequent printing process.
[0198] Specifically, Fig. 9 As shown, in this embodiment, the file printing method includes the following steps:
[0199] 1. The user chooses to print a cloud file.
[0200] 2. The terminal requests the cloud server of the target application to obtain all eligible printing devices (the screening conditions include the device visibility range, device online status, etc.).
[0201] 3. The cloud server of the target application returns the device list of the printing device.
[0202] 4. The user confirms the "User Authorization Agreement" and selects the specific printing device.
[0203] 5. The terminal uploads the local file to the cloud server of the target application.
[0204] 6. The cloud server of the target application performs transcoding preprocessing on the local files uploaded by the user.
[0205] The specific process of transcoding preprocessing can be referred to Figure 7 Follow steps 6-8 in the tutorial.
[0206] 7. The user scans the printer QR code asynchronously.
[0207] 8. The terminal requests the cloud server of the target application to obtain the print file list.
[0208] 9. The cloud server of the target application returns the print task list to the terminal.
[0209] 10. The user selects a specific print file.
[0210] 11. The terminal sends a preview request to the cloud server of the target application.
[0211] 12. The cloud server of the target application allocates an operID, i.e., a preview operation identifier, to the received preview request and returns the operID to the terminal.
[0212] 13. The cloud server of the target application generates a preview task and calls back the preview task to the cloud server of the service provider.
[0213] 14. The service provider's cloud server transcodes the local print file selected by the user according to the preview task to obtain a preview result, and reports the preview result to the cloud server of the target application.
[0214] 15. The terminal polls the preview results in the cloud server of the target application through operID.
[0215] 16. The cloud server of the target application refreshes the preview result and feeds back the preview result to the terminal. It is understandable that if the cloud server of the target application detects that the preview task has timed out, it may return a preview failure result to the terminal.
[0216] 17. The terminal displays the print preview based on the preview results.
[0217] 18. User confirms printing.
[0218] 19. The terminal sends a print request to the cloud server of the target application.
[0219] 20. After receiving the print request, the cloud server of the target application determines the print task according to the print file identifier in the print request, and calls back the print task to the service provider cloud server.
[0220] 21. The service provider’s cloud server initiates printing to the cloud printer.
[0221] 22. The cloud printer returns the printing result.
[0222] 23. The service provider cloud server calls the API provided by the target application's cloud server to report the printing result to the target application's cloud server.
[0223] 24. The cloud server of the target application returns the printing result to the terminal.
[0224] It should be understood that, although the steps in the flowcharts involved in the above embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps is not strictly limited in order, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above embodiments may include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.
[0225] Based on the same inventive concept, the embodiment of the present application also provides a file printing device for implementing the file printing method involved above. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme recorded in the above method, so the specific limitations in one or more file printing device embodiments provided below can refer to the limitations on the file printing method above, and will not be repeated here.
[0226] In one embodiment, Fig.10 As shown, a document printing device 1000 is provided, comprising:
[0227] The print request receiving module 1002 is used to determine the associated print task according to the print file identifier carried in the print request when receiving the print request for the to-be-printed file triggered by the target application; the print task includes the print task identifier;
[0228] The print task sending module 1004 is used to send a print task to the service-side cloud server; the print task is used to instruct the service-side cloud server to call the task data acquisition interface provided by the sender of the print task to send a data acquisition request;
[0229] The file identification obtaining module 1006 is used to receive a data obtaining request, parse the data obtaining request to obtain a print task identification, and determine an associated print file identification according to the print task identification;
[0230] The print data sending module 1008 is used to obtain the print data corresponding to the file to be printed according to the print file identifier, and send the print data to the service-side cloud server; the service-side cloud server is used to control the cloud printer to print according to the print data.
[0231] The above-mentioned file printing device realizes cloud printing through the target application. During the printing process, the cloud server of the target application can directly communicate with the service party cloud server, and the cloud printing is controlled by the service party cloud server for printing. The entire printing process does not require the use of additional software and hardware, which greatly saves printing costs. In addition, during the printing process, by determining the print task associated with the print file identifier, and the print task includes the print task identifier, the cloud server of the target application and the service party cloud server can complete the printing process through the print task and the task identifier, avoiding the sending of the print file identifier to the service party cloud server, thereby improving data security during the printing process.
[0232] In one embodiment, the print data sending module is also used to: obtain the print parameters and file acquisition path corresponding to the file to be printed according to the print file identifier, and send the print parameters and file acquisition path to the service party cloud server; upon receiving a file download request triggered by the service party cloud server through the file acquisition path, respond to the file download request and send the print format file corresponding to the file to be printed to the service party cloud server; the service party cloud server is used to send the print parameters and print format file to the cloud printer to control the cloud printer to print according to the print parameters and print format file.
[0233] In one embodiment, the print format file corresponding to the file to be printed is stored in encrypted form; the print data sending module is also used to: obtain the print parameters, file acquisition path and decryption parameters corresponding to the file to be printed according to the print file identifier, and send the print parameters, file acquisition path and decryption parameters to the service party cloud server; the service party cloud server is also used to decrypt the print format file according to the decryption parameters, and send the print parameters and the decrypted print format file to the cloud printer to control the cloud printer to print according to the print parameters and the decrypted print format file.
[0234] In one embodiment, the file to be printed is a local file of the printer selected by the target application; the above-mentioned device also includes: a transcoding preprocessing module, which is used to receive the local file of the printer uploaded by the target application; when the cloud printer supports the file type of the received local file of the printer, the received local file of the printer is determined as the print format file corresponding to the file to be printed; when the cloud printer does not support the file type of the received local file of the printer, the received local file of the printer is converted into a file type supported by the cloud printer to obtain the print format file corresponding to the file to be printed.
[0235] In one embodiment, the file to be printed is a cloud file stored in the cloud server of the target application; the transcoding preprocessing module is also used to receive the print file identifier of the file to be printed uploaded by the target application, and determine the file to be printed according to the print file identifier; snapshot processing is performed on the file content of the file to be printed, and the file obtained by the snapshot processing is determined as the print format file corresponding to the file to be printed.
[0236] In one embodiment, the print task is also used to instruct the service party cloud server to return the print result carrying the task identifier; the above-mentioned device also includes: a print result receiving module, used to receive the print result; obtain the print file identifier based on the task identifier and the association relationship carried in the print result; based on the print file identifier, use the print result as the print result of the file to be printed, and return the print result of the file to be printed to the file printer of the file to be printed.
[0237] In one embodiment, the above-mentioned device also includes a preview task generation module, which is used to generate a preview task including a preview task identifier when a preview request for a file to be printed is received through a target application, and send the preview task to the service party cloud server; the preview task carries the printing parameters and the preview task identifier parsed from the preview request, and is used to instruct the service party cloud server to perform transcoding processing on the file to be printed according to the printing parameters to obtain a preview result, and return the preview result carrying the preview task identifier; allocate a preview operation identifier for the preview request, establish an association relationship between the preview operation identifier and the preview task identifier, and send the preview operation identifier to the file preview party; when a preview result acquisition request carrying the preview operation identifier is received from the file preview party, the preview task identifier with an associated relationship is determined based on the preview operation identifier, and when the preview result carrying the preview task identifier is detected, the preview result is returned to the file preview party.
[0238] In one embodiment, the preview task generation module is also used to parse the preview request for the file to be printed to obtain the print file identifier, and determine the associated target print task according to the print file identifier obtained by parsing, when a preview request is received for the file to be printed; if there is no associated preview task for the target print task, generate a preview task including the preview task identifier; the preview task carries the print parameters, the initial parameter version number and the preview task identifier of the preview task parsed from the preview request; if there is an associated preview task for the target print task, send the preview task associated with the target print task to the service party cloud server; the preview task carries the print parameters, the current parameter version number and the preview task identifier of the preview task parsed from the preview request, and the current parameter version number is used to characterize the timing of the preview request relative to the preview task.
[0239] In one embodiment, the preview task generation module is also used to determine the associated printing tasks based on the print file identifier obtained by parsing, and obtain the task status of the associated printing tasks; when the task status indicates that printing is not completed, the associated printing tasks are determined as target printing tasks; when the task status indicates that printing is completed, a new printing task is generated, and the newly generated printing task is determined as the target printing task.
[0240] In one embodiment, the print request also carries a printer identifier; the print task sending module is also used to obtain pre-established association relationship data; the association relationship data records the association relationship between the printer model and the callback service address of the service-side cloud server; the printer model is determined based on the printer identifier carried in the print request, and the target callback service address is determined based on the determined printer model and the association relationship data; the print task is called back to the corresponding server-side cloud server based on the target callback service address.
[0241] In one embodiment, Fig.11 As shown, a file printing device 1100 is provided, comprising:
[0242] The request sending module 1102 is used to call the task data acquisition interface provided by the cloud server corresponding to the target application to send a data acquisition request when receiving a print task sent by the cloud server corresponding to the target application; the print task is determined by the cloud server corresponding to the target application when receiving a print request for a file to be printed triggered by the target application, and there is an association between the print task identifier of the print task and the print file identifier carried in the print request; the data acquisition request is used to instruct the cloud server corresponding to the target application to obtain the print file identifier according to the print task identifier and the association carried in the data acquisition request, obtain the print data corresponding to the file to be printed according to the print file identifier, and send the print data to the service-side cloud server;
[0243] The print data receiving module 1104 is used to receive print data and control the cloud printer to print according to the print data.
[0244] The above-mentioned file printing device, when receiving a print task sent by the cloud server corresponding to the target application, calls the task data acquisition interface provided by the cloud server corresponding to the target application to send a data acquisition request, receives print data, and controls the cloud printer to print according to the print data, thereby realizing cloud printing through the target application. During the printing process, the cloud server of the target application can directly communicate with the service party cloud server, and the cloud printing is controlled by the service party cloud server to print. The entire printing process does not require the use of additional software and hardware, which greatly saves printing costs. In addition, during the printing process, by determining the print task associated with the print file identifier, and the print task includes the print task identifier, the cloud server of the target application and the service party cloud server can complete the printing process through the print task and the task identifier, thereby avoiding sending the print file identifier to the service party cloud server and improving data security during the printing process.
[0245] In one embodiment, the above-mentioned device also includes: a preview transcoding module, which is used to receive a preview task sent by a cloud server corresponding to a target application; the preview task carries the printing parameters parsed from the preview request and the preview task identifier of the preview task; transcoding is performed on the file to be printed according to the printing parameters to obtain a preview result, and the preview result carrying the preview task identifier is returned to the cloud server corresponding to the target application; the cloud server corresponding to the target application is used to allocate a preview operation identifier for the preview request, establish an association relationship between the preview operation identifier and the preview task identifier, and send the preview operation identifier to the file preview party. When a preview result acquisition request carrying the preview operation identifier is received from the file preview party, a preview task identifier with an associated relationship is determined based on the preview operation identifier, and when a preview result carrying the preview task identifier is detected, the preview result is returned to the file preview party.
[0246] Each module in the above-mentioned file printing device can be implemented in whole or in part by software, hardware or a combination thereof. Each module can be embedded in or independent of a processor in a computer device in the form of hardware, or can be stored in a memory in a computer device in the form of software, so that the processor can call and execute the operations corresponding to each module.
[0247] In one embodiment, a computer device is provided. The computer device may be a cloud server of a target application or a cloud server of a service provider. The internal structure diagram thereof may be as follows: Fig.12As shown. The computer device includes a processor, a memory, an input / output interface (Input / Output, referred to as I / O) and a communication interface. The processor, the memory and the input / output interface are connected through a system bus, and the communication interface is connected to the system bus through the input / output interface. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store data in the printing process, such as print files, print parameters, etc. The input / output interface of the computer device is used to exchange information between the processor and an external device. The communication interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, the file printing method in any of the above embodiments is implemented.
[0248] Those skilled in the art will understand that Fig.12 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.
[0249] In one embodiment, a computer device is provided, including a memory and a processor. The memory stores a computer program, and the processor implements the steps of the file printing method in any of the above embodiments when executing the computer program.
[0250] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps of the file printing method in any of the above embodiments are implemented.
[0251] In one embodiment, a computer program product is provided, including a computer program, which, when executed by a processor, implements the steps of the file printing method in any of the above embodiments.
[0252] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with relevant laws, regulations and standards of relevant countries and regions.
[0253] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in the present application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetoresistive random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, etc., but are not limited to this.
[0254] The technical features of the above embodiments may be arbitrarily combined. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0255] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.
Claims
1. A method for printing a file, It is characterized in that The method comprises: In the case of receiving a print request for a file to be printed triggered by a target application, determining an associated print task according to a print file identifier carried in the print request; the print task includes a print task identifier; Sending the print task to the service-side cloud server; the print task is used to instruct the service-side cloud server to call the task data acquisition interface provided by the sender of the print task to send a data acquisition request; receiving the data acquisition request, parsing the data acquisition request to obtain the print task identifier, and determining the associated print file identifier according to the print task identifier; The printing data corresponding to the file to be printed is obtained according to the printing file identifier, and the printing data is sent to the service-side cloud server; the service-side cloud server is used to control the cloud printer to print according to the printing data.
2. The method according to claim 1, It is characterized in that The obtaining the print data corresponding to the to-be-printed file according to the print file identifier, and sending the print data to the service-side cloud server, comprises: Obtaining the printing parameters and the file acquisition path corresponding to the to-be-printed file according to the printing file identifier, and sending the printing parameters and the file acquisition path to the service provider cloud server; The method further comprises: In response to a file download request triggered by the service-side cloud server through the file acquisition path, sending a print format file corresponding to the file to be printed to the service-side cloud server; The service-side cloud server is used to send the printing parameters and the printing format file to the cloud printer to control the cloud printer to print according to the printing parameters and the printing format file.
3. The method according to claim 2, It is characterized in that The print format file corresponding to the file to be printed is stored in encrypted form; the step of obtaining the print parameters and the file acquisition path corresponding to the file to be printed according to the print file identifier, and sending the print parameters and the file acquisition path to the service provider cloud server includes: Obtaining the printing parameters, file acquisition path and decryption parameters corresponding to the file to be printed according to the printing file identifier, and sending the printing parameters, the file acquisition path and the decryption parameters to the service provider cloud server; The service-side cloud server is also used to decrypt the print format file according to the decryption parameters, and send the print parameters and the decrypted print format file to the cloud printer to control the cloud printer to print according to the print parameters and the decrypted print format file.
4. The method according to claim 2, It is characterized in that The file to be printed is a local file of the printer selected by the target application; the method further comprises: Receiving a local file of a printing party uploaded by the target application; In the case that the cloud printer supports the file type of the received local file of the printing party, determining the received local file of the printing party as the print format file corresponding to the file to be printed; In the case that the cloud printer does not support the file type of the received local file of the printing party, the received local file of the printing party is converted into a file type supported by the cloud printer to obtain a print format file corresponding to the file to be printed.
5. The method according to claim 2, It is characterized in that The file to be printed is a cloud file stored in the cloud server of the target application; The method further comprises: Receiving a print file identifier of the file to be printed uploaded by the target application, and determining the file to be printed according to the print file identifier; Snapshot processing is performed on the file content of the file to be printed, and a file obtained by the snapshot processing is determined as a print format file corresponding to the file to be printed.
6. The method according to claim 1, It is characterized in that The printing task is also used to instruct the service-side cloud server to return a printing result carrying the task identifier; the method also includes: Receiving the printing result; obtaining the printing file identifier according to the task identifier and the association relationship carried in the printing result; Based on the print file identifier, the print result is used as the print result of the file to be printed, and the print result of the file to be printed is returned to the file printer of the file to be printed.
7. The method according to claim 1, It is characterized in that The method further comprises: In the case of receiving a preview request for a file to be printed triggered by a target application, generating a preview task including a preview task identifier, and sending the preview task to the service-side cloud server; the preview task carries the print parameters parsed from the preview request and the preview task identifier, and is used to instruct the service-side cloud server to perform transcoding processing on the file to be printed according to the print parameters to obtain a preview result, and returns the preview result carrying the preview task identifier; Allocating a preview operation identifier for the preview request, establishing an association relationship between the preview operation identifier and the preview task identifier, and sending the preview operation identifier to the file previewing party; In case of receiving a preview result acquisition request carrying the preview operation identifier sent by the file preview party, determining the preview task identifier with which there is an associated relationship based on the preview operation identifier; When a preview result carrying the preview task identifier is detected, the preview result is returned to the file preview party.
8. The method according to claim 7, It is characterized in that The method of generating a preview task upon receiving a preview request for a file to be printed and sending the preview task to the service-side cloud server includes: When receiving a preview request for a file to be printed, parsing the preview request to obtain a print file identifier, and determining an associated target print task according to the print file identifier obtained by parsing; In the case that the target print task does not have an associated preview task, generating a preview task including a preview task identifier; the preview task carries the print parameters parsed from the preview request, the initial parameter version number, and the preview task identifier of the preview task; The method further comprises: In the case that the target printing task has an associated preview task, the preview task associated with the target printing task is sent to the service party cloud server; the preview task carries the printing parameters parsed from the preview request, the current parameter version number and the preview task identifier of the preview task, and the current parameter version number is used to characterize the timing of the preview request relative to the preview task.
9. The method according to claim 8, It is characterized in that The step of determining the associated target printing task according to the print file identifier obtained through analysis includes: Determine the associated print tasks according to the print file identifiers obtained through analysis, and obtain the task status of the associated print tasks; When the task status indicates that printing is not completed, determining the associated printing task as a target printing task; When the task status indicates that printing is completed, a new print task is generated, and the newly generated print task is determined as a target print task.
10. The method according to any one of claims 1 to 9, It is characterized in that The printing request also carries a printer identifier; and sending the printing task to the service provider cloud server includes: Acquire pre-established association relationship data; the association relationship data records the association relationship between the printer model and the callback service address of the service party cloud server; Determine the printer model according to the printer identification carried in the print request, and determine the target callback service address according to the determined printer model and the association relationship data; The print task is called back to the corresponding server-side cloud server according to the target callback service address.
11. A method for printing a document, It is characterized in that The method comprises: In the case of receiving a print task sent by a cloud server corresponding to a target application, calling a task data acquisition interface provided by the cloud server corresponding to the target application to send a data acquisition request; the print task is determined by the cloud server corresponding to the target application when receiving a print request for a file to be printed triggered by the target application, and there is an association between a print task identifier of the print task and a print file identifier carried in the print request; the data acquisition request is used to instruct the cloud server corresponding to the target application to obtain the print file identifier according to the print task identifier carried in the data acquisition request and the association, obtain the print data corresponding to the file to be printed according to the print file identifier, and send the print data to the service-side cloud server; The printing data is received, and the cloud printer is controlled to print according to the printing data.
12. The method according to claim 11, It is characterized in that The method further comprises: Receive a preview task sent by the cloud server corresponding to the target application; the preview task carries the print parameters parsed from the preview request and a preview task identifier of the preview task; Performing transcoding processing on the to-be-printed file according to the printing parameters to obtain a preview result, and returning the preview result carrying the preview task identifier to the cloud server corresponding to the target application; The cloud server corresponding to the target application is used to allocate a preview operation identifier for the preview request, establish an association relationship between the preview operation identifier and the preview task identifier, and send the preview operation identifier to the file preview party. When receiving a preview result acquisition request carrying the preview operation identifier sent by the file preview party, the cloud server determines the preview task identifier with which there is an association based on the preview operation identifier, and when a preview result carrying the preview task identifier is detected, returns the preview result to the file preview party.
13. A document printing system, It is characterized in that The system includes a terminal with a target application installed, a cloud server of the target application, a service-side cloud server, and a cloud printer; wherein: The terminal is used to send a print request for a file to be printed to a cloud server of the target application through a target application; the print request carries a print file identifier of the file to be printed; The cloud server of the target application is used to determine the associated print task according to the print file identifier carried in the print request when receiving the print request, and send the print task carrying the print task identifier to the cloud server of the service party; The service-side cloud server is used to call the task data acquisition interface provided by the cloud server of the target application to send a data acquisition request when receiving the print task; The cloud server of the target application is also used to receive the data acquisition request, parse the data acquisition request to obtain the print task identifier, determine the associated print file identifier according to the print task identifier, obtain the print data corresponding to the file to be printed according to the print file identifier, and send the print data to the service party cloud server; The service-side cloud server is also used to control the cloud printer to print according to the printing data.
14. A document printing device, It is characterized in that The device comprises: A print request receiving module, configured to, upon receiving a print request for a file to be printed triggered by a target application, determine an associated print task according to a print file identifier carried in the print request; the print task includes a print task identifier; A print task sending module, used to send the print task to the service-side cloud server; the print task is used to instruct the service-side cloud server to call the task data acquisition interface provided by the sender of the print task to send a data acquisition request; A file identification obtaining module, configured to receive the data acquisition request, parse the data acquisition request to obtain the print task identification, and determine the associated print file identification according to the print task identification; The printing data sending module is used to obtain the printing data corresponding to the file to be printed according to the printing file identifier, and send the printing data to the service party cloud server; the service party cloud server is used to control the cloud printer to print according to the printing data.
15. A document printing device, It is characterized in that The device comprises: A request sending module is used to call a task data acquisition interface provided by the cloud server corresponding to the target application to send a data acquisition request when receiving a print task sent by the cloud server corresponding to the target application; the print task is determined by the cloud server corresponding to the target application when receiving a print request for a file to be printed triggered by the target application, and there is an association between the print task identifier of the print task and the print file identifier carried in the print request; the data acquisition request is used to instruct the cloud server corresponding to the target application to obtain the print file identifier according to the print task identifier carried in the data acquisition request and the association, obtain the print data corresponding to the file to be printed according to the print file identifier, and send the print data to the service-side cloud server; The printing data receiving module is used to receive the printing data and control the cloud printer to print according to the printing data.
16. A computer device comprising a memory and a processor, wherein the memory stores a computer program. It is characterized in that When the processor executes the computer program, the steps of the method according to any one of claims 1 to 10 or 11 to 12 are implemented.
17. A computer-readable storage medium having a computer program stored thereon, It is characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 10 or 11 to 12 are implemented.
18. A computer program product comprising a computer program, It is characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 10 or 11 to 12 are implemented.
Citation Information
Patent Citations
Cloud printing method, device and system, equipment and storage medium
CN111638859A
Order printing method and device, computer equipment and storage medium
CN114489520A
Printing system and printer
JP2017062811A
Secure federation of cloud print services
US20130163027A1
Service providing system, information processing method, and non-transitory recording medium
US20170171399A1
Cited By
Data printing method and device, electronic equipment and computer storage medium
CN120029566A
