Network printing method, cloud printing server, storage medium and electronic device
Communication with the Internet printer through the cloud print server, the problem of cloud desktop printing files being restricted by the local area network is solved, and convenient network printing services are realized.
Patent Information
- Application Number
- CN202410077792.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-01-18
- Publication Date
- 2025-07-18
AI Technical Summary
Cloud desktop printing files are restricted by the LAN, and users need to move to the LAN with network printers to print.
Communication with network printers on the Internet through a cloud print server, receiving printing files uploaded by cloud terminals, and sending printing instructions through the APP client to achieve remote printing.
Users can print without being restricted by local area network, achieving convenient network printing services.
Smart Images

Figure CN120343162A_ABST
Abstract
Description
Technical Field
[0001] Embodiments of the present application relate to the field of computer technology, and more specifically, to a network printing method, a cloud printing server, a storage medium, and an electronic device. Background Art
[0002] On the one hand, with the rapid development of the modern economy, printing services have been increasingly integrated into all walks of life; on the other hand, the rapid progress of cloud computer technology has led to a growing number of users in multiple scenarios such as operators, universities, and governments. Today, in the effort to promote digital transformation, how to meet the daily printing needs of cloud computer users and provide personalized network printing services with rich functions, convenient operation, and security and reliability has become an urgent problem to be solved.
[0003] In the related cloud desktop printing technology, the user logs in to the cloud computer virtual machine to achieve interconnection with the network printer within the same local area network. After the user selects the print file and uploads it through the local area network, the file needs to be printed at the network printer within the local area network. However, if there is no network printer equipped in the local area network where the user is located, then the user is required to move to the local area network with a network printer and log in to their own cloud desktop using a computer to print. Therefore, this scenario is restricted by the local area network.
[0004] In summary, there is an urgent need for a printing technology to solve the problem that printing files on the cloud desktop is restricted by the local area network. Summary of the Invention
[0005] Embodiments of the present application provide a network printing method, a cloud printing server, a storage medium, and an electronic device, which at least solve the problem that printing files on the cloud desktop is restricted by the local area network in the related technology.
[0006] According to an embodiment of the present application, a network printing method is provided, which is applied to a cloud printing server and includes:
[0007] Receiving a print file uploaded by a cloud terminal, where the cloud terminal and the cloud printing server are located within the same local area network;
[0008] Creating a print task for the print file on the cloud printing server, where the cloud printing server communicates with a network printer located in the Internet through a gateway;
[0009] Receiving a print instruction from an APP client to print the print file in the print task, where the APP client is located on the cloud terminal or on another mobile terminal;
[0010] Transmitting the print file to the network printer for printing according to the print instruction.
[0011] According to another embodiment of the present application, a network printing method is further provided, which is applied to a cloud terminal. The method includes:
[0012] Upload the print file to the cloud printing server so as to create a print task for the print file on the cloud printing server. Wherein, the cloud terminal and the cloud printing server are located in the same local area network, and the cloud printing server communicates with a network printer located in the Internet through a gateway;
[0013] After logging in to the cloud printing server through the APP client, send a print instruction to print the print file in the print task, so that the cloud printing server transmits the print file to the network printer for printing.
[0014] According to another embodiment of the present application, a cloud printing server is further provided, including:
[0015] A document management module, configured to receive the print file uploaded by the cloud terminal, wherein the cloud terminal and the cloud printing server are located in the same local area network;
[0016] A task management module, configured to create a print task for the print file on the cloud printing server, wherein the cloud printing server communicates with a network printer located in the Internet through a gateway;
[0017] A user management module, configured to receive a print instruction for printing the print file in the print task from the APP client, wherein the APP client is located on the cloud terminal or on another mobile terminal;
[0018] The document management module is further configured to transmit the print file to the network printer for printing according to the print instruction.
[0019] According to another embodiment of the present application, a computer-readable storage medium is further provided. A computer program is stored in the computer-readable storage medium. Wherein, the computer program is configured to execute the steps in any one of the above method embodiments when running.
[0020] According to another embodiment of the present application, an electronic device is further provided, including a memory and a processor. A computer program is stored in the memory, and the processor is configured to run the computer program to execute the steps in any one of the above method embodiments.
[0021] According to an embodiment of the present application, since the print file and the print instruction can be sent to the network printer through the Internet by the cloud printing server system, so that the network printer prints the file. At the same time, after receiving the print file uploaded by the cloud terminal, the cloud printing server creates a print task for the file and communicates with the network printer located in the Internet through the gateway to realize the distribution and printing of the print file. In addition, the user can also send a print instruction through the APP client to transmit the print file corresponding to the print instruction to the network printer for printing.
[0022] Therefore, the present invention realizes the connection and printing operation between the print file and the network printer through the cloud printing server system and the Internet, and is no longer restricted by the local area network. The user can realize the operation of printing the file through the cloud printing server system without moving to the local area network with the network printer, solving the problem that printing files on the cloud desktop is restricted by the local area network. BRIEF DESCRIPTION OF THE DRAWINGS
[0023] Figure 1 is a schematic structural diagram of a printing system based on a cloud computer virtual machine according to the related art;
[0024] Figure 2 is a flowchart of a network printing method applied to a cloud printing server according to an embodiment of the present application;
[0025] Figure 3 is a flowchart of a network printing method applied to a cloud terminal according to an embodiment of the present application;
[0026] Figure 4 is a schematic structural diagram of a cloud printing server according to an embodiment of the present application;
[0027] Figure 5 is a schematic structural diagram of a cloud terminal, a cloud printing server, and a network printer according to an embodiment of the present application;
[0028] Figure 6 is a signaling interaction diagram of a cloud terminal, a cloud printing server, and a network printer according to an embodiment of the present application. DETAILED DESCRIPTION OF THE EMBODIMENTS
[0029] Hereinafter, embodiments of the present application will be described in detail with reference to the drawings and in conjunction with the embodiments.
[0030] Figure 1 is a schematic structural diagram of a printing system based on a cloud computer virtual machine according to the related art, as Figure 1As shown, in the related cloud desktop printing technology, the user logs in to the cloud computer virtual machine to achieve interconnection with the network printer within the same local area network. After the user selects the print file and uploads it through the local area network, the file needs to be printed at the network printer within the local area network. However, if there is no network printer equipped in the local area network where the user is located, then the user is required to move to the local area network with a network printer and use the computer to log in to their own cloud desktop to print. Therefore, this scenario is restricted by the local area network.
[0031] To solve the above problems, in this embodiment, a network printing method is provided, which is applied to a cloud printing server. Figure 2 It is a flowchart of the network printing method applied to the cloud printing server according to the embodiment of the present application, as Figure 2 shown, this process includes the following steps:
[0032] Step S201, receive the print file uploaded by the cloud terminal, where the cloud terminal and the cloud printing server are located within the same local area network;
[0033] In an exemplary implementation, the cloud printing server receives the print file from the cloud terminal. The cloud terminal and the cloud printing server need to be within the same local area network to ensure the stability and reliability of data transmission. For example, when the user uses the cloud terminal to print a file in the office / printing shop, the cloud terminal and the cloud printing server need to be connected to the same local area network. Among them, the cloud terminal and the cloud printing server need to be connected to the same local area network, which can be achieved by logging in to the configured account. For example, use VPN and virtual machines and log in to the configured account to communicate with the cloud terminal and the cloud printing server corresponding to the account.
[0034] Step S202, create a print task for the print file on the cloud printing server, where the cloud printing server communicates with the network printer located in the Internet through the gateway;
[0035] In an exemplary implementation, after receiving the print file, the cloud printing server creates a print task for the print file and communicates with the network printer located in the Internet through the gateway. For example, when there are multiple print tasks, print queues can be created for multiple print files to form print tasks, and the print tasks are stored in the memory of the cloud printing server. Or, a file server is set in the cloud printing server, and the print tasks are stored in the central warehouse of the file server.
[0036] Step S203, receive the print instruction for printing the print file in the print task from the APP client, where the APP client is located on the cloud terminal or on another mobile terminal;
[0037] In an exemplary embodiment, the cloud printing server receives a printing instruction from the APP client. The user can send the printing instruction through the APP client on the cloud terminal or the APP client on other mobile terminals. For example, the user can perform a printing operation on the printing files stored in the cloud printing server through the APP client on the mobile phone. Alternatively, a cloud desktop is set in the cloud terminal, and the APP client is pre-installed in the cloud desktop. After the user logs in to the cloud desktop with the configured account, the printing instruction is sent through the APP client in the cloud desktop. The APP client is provided with an interface connected to the cloud printing server, so that the content of the cloud printing server can be viewed on the APP client. For example, the printing tasks stored in the cloud printing server can be viewed through this interface, the printing instruction can be sent to the cloud printing server through this interface, and files can be transmitted through this interface. The APP client can be an application program, and the application program corresponds to a visual interface, which is convenient for the user to perform operations such as editing the printing instruction, editing the printing file, transmitting the printing instruction, and transmitting the printing file in the visual interface. Of course, the above method is only an exemplary illustration, and the specific method can be set according to the actual situation.
[0038] Step S204, transmit the printing file to the network printer for printing according to the printing instruction.
[0039] In an exemplary embodiment, the cloud printing server transmits the printing file to the network printer for printing according to the printing instruction edited by the user. For example, when there is a printing queue in the cloud printing server, the user can specify the printing file to be printed in the printing queue based on the printing instruction. When the user sends a printing instruction on the APP client of the cloud terminal or the APP client of the mobile terminal, the cloud printing server will transmit the corresponding printing file to the network printer to complete the printing operation.
[0040] Through the above steps, the printing requirement of the printing file can be realized by using the cloud printing server without being restricted by the local area network. By communicating between the cloud printing server and the network printer located in the Internet, the user can upload the printing file through the cloud terminal at any location and send a printing instruction through the APP client to realize the printing operation on the network printer, thus solving the problem that printing files in the cloud desktop is restricted by the local area network.
[0041] In one embodiment, receiving the printing file uploaded by the cloud terminal, where the cloud terminal and the cloud printing server are located in the same local area network, includes:
[0042] Receive the printing file through the network printer driver, where the network printer driver is installed on the cloud terminal.
[0043] In an exemplary embodiment, first, the cloud printing server receives the print files uploaded from the cloud terminal through the network printer driver, ensuring that the cloud terminal and the cloud printing server are within the same local area network to ensure the stability and reliability of data transmission. Then, a print task is created for the print files on the cloud printing server, and communication is made with the network printer located in the Internet through the gateway. Next, the cloud printing server receives the print instructions from the APP client. The user can send the print instructions through the APP client on the cloud terminal or the APP client on other mobile terminals. Finally, according to the print instructions, the cloud printing server transmits the print files to the network printer for printing.
[0044] For example, when a user uses a cloud terminal in an office / printing shop and uploads one or more print files through the network printer driver, the cloud printing server will receive the files and create a print task for them. Subsequently, the user can send print instructions through the APP client on the mobile phone, specifying the files to be printed using the print instructions. The cloud printing server will transmit the print files corresponding to the print instructions to the network printer for printing. In this way, the user can use the cloud printing server to achieve the operation of printing files using the cloud terminal in the office / printing shop.
[0045] In one embodiment, receiving a print instruction for printing the print files in the print task from the APP client, where the APP client is located before the cloud terminal or another mobile terminal, includes:
[0046] In response to the operation of the APP client scanning the two-dimensional barcode, communicate the cloud printing server with the network printer, where the two-dimensional barcode is associated with the network printer.
[0047] In an exemplary embodiment, the network printer is provided with a two-dimensional barcode, where the two-dimensional barcode can be a QR code or a bar code. For example, the two-dimensional barcode can be displayed on the screen of the network printer, or the two-dimensional barcode can be pasted at any position of the network printer. The two-dimensional barcode includes the MAC address, and the MAC address includes: network segment, address, location IP, etc. The cloud printing server stores the MAC address to facilitate finding the network printer corresponding to the two-dimensional barcode based on the scanning operation of the APP client.
[0048] In one embodiment, receiving a print instruction for printing the print files in the print task from the APP client, where the APP client is located before the cloud terminal or another mobile terminal, includes: in response to the account login operation, finding the print files uploaded by the account, where the APP client and the cloud terminal are configured with the same account.
[0049] In an exemplary embodiment, the user registers an account through the APP client, and the user management module of the cloud printing server authorizes the account to complete the account registration operation. After the account registration is completed, the user can log in to the account through the APP client of the cloud terminal or through the APP client of the mobile terminal, so as to search for the print files in the cloud printing server through the APP client of the cloud terminal or the APP client of the mobile terminal. Of course, the account can also be the account corresponding to the cloud terminal, and the cloud desktop of the cloud terminal can be logged in using this account.
[0050] In one embodiment, the method further includes: receiving a login request sent by the mobile terminal, where the login request includes account information and network printer information;
[0051] Verifying the account information and network printer information through the cloud printing server.
[0052] In an exemplary embodiment, when the cloud printing server receives the login request, it compares the account information and network printer information with the stored registered account information and network printer information to verify the account information and network printer information.
[0053] In an exemplary embodiment, when the account information and network printer information do not match the stored registered account information and network printer information, a prompt warning is given on the visual interface of the APP client.
[0054] In an exemplary embodiment, when the account information and network printer information both match the stored registered account information and network printer information, a communication link is established between the APP client and the task management module, and a communication link is established between the task management module and the print server; wherein, the cloud printing server includes a task management module and a print server;
[0055] By accessing the proxy printing interface provided by the print server, the print server is enabled to execute the print task issued by the management server, so that the network printer corresponding to the two-dimensional barcode performs the printing operation of the print file.
[0056] In one embodiment, a print task is created for the print file on the cloud printing server, where the cloud printing server communicates with the network printer located in the Internet through the gateway, and further includes:
[0057] Converting the print file into an editable template format, and the editable template format includes at least one of the following: WORD file, PDF file, EXCEL file.
[0058] In an exemplary embodiment, the following method can be adopted:
[0059] 1. First, the cloud printing server needs to detect the format of the print file stored in its memory, and can determine the file type by checking the file extension or file header information.
[0060] 2. In the case where the file format is determined, the cloud printing server can use the corresponding file conversion tool to convert the print file into an editable template format. For example, for WORD files, Microsoft Office or other software that supports the WORD format can be used for conversion; for PDF files, Adobe Acrobat or other PDF editing software can be used for conversion; for EXCEL files, Microsoft Excel or other software that supports the EXCEL format can be used for conversion.
[0061] 3. During the conversion process, the cloud printing server keeps the converted file in its original layout and format, and can be edited and modified.
[0062] 4. After the conversion is completed, the cloud printing server stores the generated editable template format file in a specified location (such as the central repository of the document management module of the cloud printing server), so that the mobile terminal can edit the print file converted into the editable template format based on the APP client.
[0063] Through the above operations, the cloud printing server can convert print files of various formats into editable template formats, thus realizing the effective management and processing of print files.
[0064] In one embodiment, the method further includes: in response to the editing operation of the APP client, editing the print file in the editable template format.
[0065] In an exemplary embodiment, the APP client is provided with an API connected to the document management module of the cloud printing server. The user calls the API through the APP client to download the print file in the editable template format, so as to edit the print file in the editable template format. After the editing is completed, the edited print file is uploaded to the print queue of the document management module of the cloud printing server by calling the API.
[0066] In this embodiment, a network printing method applied to a cloud terminal is also provided. Figure 3 is a flowchart of the network printing method applied to a cloud terminal according to the embodiment of the present application, as Figure 3 shown, the process includes the following steps:
[0067] Step S301: Upload the print file to the cloud printing server to create a print task for the print file on the cloud printing server. Here, the cloud terminal and the cloud printing server are located within the same local area network, and the cloud printing server communicates with a network printer located in the Internet through a gateway.
[0068] In an exemplary implementation, the user uploads the print file to the cloud printing server through the cloud terminal, and then the cloud printing server creates a print task for the print file, so as to perform the printing operation on the print file in the print task using the network printer in the Internet. In this way, the user does not need to worry about whether there is a network printer within their local area network, and only needs to upload the file to the cloud printing server.
[0069] Step S302: After logging in to the cloud printing server through the APP client, send a print instruction to print the print file in the print task, so that the cloud printing server transmits the print file to the network printer for printing.
[0070] In an exemplary implementation, after the user logs in to the cloud printing server through the APP client, send an instruction to print the print file, and the cloud printing server transmits the print file to the network printer for printing. In this way, the user can easily send a print instruction through a mobile phone or other device, without being limited to a specific computer or local area network.
[0071] Through the above steps, for example, the user can log in to the configured account in a print shop, thereby logging in to the cloud desktop of the cloud terminal, and upload the print file through the cloud desktop. Scan the two-dimensional barcode through the APP client to log in to the configured account to log in to the cloud printing server, search for the print file uploaded by this account, and send a print instruction to print the print file in the print task, so that the cloud printing server transmits the print file to the network printer for printing.
[0072] Therefore, by uploading the print file to the cloud printing server and communicating with the network printer through the cloud printing server, the present invention enables the user to perform printing operations without being restricted by the local area network. In this way, the problem of being restricted by the local area network when printing files on the cloud desktop is solved, providing a convenient network printing service for cloud computer users.
[0073] In one implementation, uploading the print file to the cloud printing server includes:
[0074] Upload the print file through the network printer driver, where the network printer driver is installed on the cloud terminal.
[0075] In one implementation, the method further includes:
[0076] Scan the two-dimensional barcode of the network printer through the APP client to log in to the configured account, so that the network print server communicates with the network printer, where the two-dimensional barcode is associated with the network printer.
[0077] In one embodiment, the method further includes:
[0078] Based on the account login operation, search for the print files uploaded by the account through the cloud print server, where the APP client and the cloud terminal (for example, the cloud desktop corresponding to the cloud computer virtual machine) are configured with the same account.
[0079] In one embodiment, upload the print file through the network printer driver, so that the cloud print server converts the print file into an editable template format, and the editable template format includes at least one of the following: WORD file, PDF file, EXCEL file.
[0080] In one embodiment, edit the print file in the editable template format based on the editing operation of the APP client.
[0081] Through the description of the above embodiments, those skilled in the art can clearly understand that the method according to the above embodiments can be implemented by means of software adding the necessary general hardware platform. Of course, it can also be implemented by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, in essence, or the part that contributes to the prior art, can be embodied in the form of a software product. The computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disc), and includes several instructions to enable a terminal device (which can be a mobile phone, computer, server, or network device, etc.) to execute the methods described in various embodiments of the present application.
[0082] In this embodiment, a cloud print server is further provided. The cloud print server is used to implement the above embodiments and implementation manners, and those that have been described will not be repeated. As used below, the term "module" can be a combination of software and / or hardware that can implement a predetermined function. Although the devices described in the following embodiments are preferably implemented in software, implementation in hardware, or a combination of software and hardware is also possible and contemplated.
[0083] Figure 4 It is a schematic structural diagram of the cloud print server according to an embodiment of the present application. As Figure 4 shown, the cloud print server includes:
[0084] A document management module 41, configured to receive the print files uploaded by the cloud terminal, where the cloud terminal and the cloud print server are located in the same local area network;
[0085] The task management module 42 is used to create a print task for a print file on the cloud printing server, where the cloud printing server communicates with a network printer located in the Internet through a gateway;
[0086] The user management module 43 is used to receive a print instruction for printing a print file in the print task from the APP client, where the APP client is located on a cloud terminal or another mobile terminal;
[0087] The document management module 44 is further used to transmit the print file to the network printer for printing according to the print instruction.
[0088] In one implementation, the cloud printing server is further used for:
[0089] Receiving a print file through a network printer driver, where the network printer driver is installed on the cloud terminal.
[0090] In one implementation, the cloud printing server is further used for:
[0091] Responding to the operation of the APP client scanning a two-dimensional barcode, and communicating the cloud printing server with the network printer, where the two-dimensional barcode is associated with the network printer.
[0092] In one implementation, the cloud printing server is further used for:
[0093] Responding to an account login operation, and searching for print files uploaded by the account, where the APP client and the cloud terminal are configured with the same account.
[0094] In one implementation, the cloud printing server is further used for:
[0095] Converting the print file into an editable template format, and the editable template format includes at least one of the following: WORD file, PDF file, EXCEL file.
[0096] In one implementation, the cloud printing server is further used for:
[0097] Responding to the editing operation of the APP client, and editing the print file in the editable template format.
[0098] It should be noted that the above-mentioned various modules can be implemented by software or hardware. For the latter, it can be achieved in the following ways, but not limited to this: the above-mentioned modules are all located in the same processor; or, the above-mentioned various modules are separately located in different processors in any combination form.
[0099] The following explains the above content with examples:
[0100] Figure 5Schematic diagrams of a cloud terminal, a cloud printing server, and a network printer according to an embodiment of the present application Figure 6 Is a signaling interaction diagram of a cloud terminal, a cloud printing server, and a network printer according to an embodiment of the present application, as Figure 5 and Figure 6 shown, the cloud terminal may include a cloud computer virtual machine, the mobile terminal is provided with an application program, and the application program corresponds to an APP client. The mobile terminal may be a mobile phone, a tablet computer, a notebook computer, etc. Of course, the application program may also be set on the cloud desktop corresponding to the cloud computer virtual machine. The cloud printing server further includes: a file server, a management server, and a printing server. The above method includes the following steps:
[0101] 1. Based on the connection method of the switch's LAN-LAN data link layer, establish a data transmission channel between the same broadcast domain of the cloud computer virtual machine and the cloud printing server;
[0102] In an exemplary embodiment, after the cloud computer virtual machine accesses the switch, it communicates with the file server through the TCP / IP protocol. On this basis, the cloud computer virtual machine will pre-install the network printer driver. After the user selects a file to be printed, the driver transfers the data between the auxiliary virtual machine and the file server in the local area network through the SFTP protocol, and uploads and stores the printed file to the central warehouse of the file server (for example Figure 6 step 2 in).
[0103] 2. The file server detects a file upload request from the cloud computer virtual machine, notifies the management server to create an associated user printing task, and stores it in the task queue;
[0104] In an exemplary embodiment, by adding an interceptor function to the file server interface layer, once a file upload request initiated by the cloud computer virtual machine is detected, it immediately communicates with the management server through the TCP / IP protocol (for example Figure 6 step 4 in), after the task management module receives the message, it creates a printing task corresponding to the user, and on the premise of ensuring thread safety, adds this task to the cache queue to increase the printing target concurrency (for example Figure 6 step 7 in), meeting the requirements of high-concurrency scenarios.
[0105] 3. After receiving the message, the management server sends a notification to each printing server through the distribution interface;
[0106] In an exemplary embodiment, after the management server obtains the notification message passed by the file server, while creating a printing task in a multi-threaded manner, the management server communicates with the printing server based on the TCP / IP protocol (for example Figure 6In step 6), after the data channel between the management server and the print server is established, the print task is sent to each print server through the HTTPS request distribution interface, and then the print server establishes a link with the network printer.
[0107] 4. The user logs in to the management server using the application on the terminal device;
[0108] In an exemplary implementation, a cloud computer virtual machine user opens an application on a mobile terminal and scans a network printer QR code for login verification. After establishing a data link with the management server through an Internet channel, a user permission interceptor is added to the management server interface layer. After the user initiates a login request through the HTTPS protocol (for example, Figure 6 In step 8), the management server intercepts the request carrying parameters and compares the registered user information and network printer information in the database to identify whether the current user and printer are successfully registered. If the authentication fails, the user login error and printer information prompt alarm will be prompted on the program interface.
[0109] 5. After successful login, access the user's print data and perform printing operations;
[0110] In an exemplary implementation, after the cloud computer virtual machine user successfully logs in to the current network printer application on the mobile phone, the communication is established with the management server through the HTTPS protocol. After passing through the interceptor, the task management module on the management server can be accessed. The task management module provides a REST interface including functions such as querying print records, printing bills, and printing task lists. By establishing communication with the print server through the HTTPS protocol, the proxy printing interface (e.g. Figure 6 Step 10) in the above process, thereby executing the task sent by the management server to the print server.
[0111] 6. Based on the connection mode between the router WAN-WAN network layer, forward packets between the print server and the network printer to establish a data transmission channel;
[0112] In an exemplary embodiment, the print server accesses the Internet through a gateway relay system and communicates with the network printer. After the print server receives the distribution task from the management server, once the user chooses to perform a print operation, the print server receives the proxy print request transmitted by the HTTPS protocol (e.g. Figure 6 In step 10), a data link is established with the network printer, and then the to-be-printed file in the central warehouse of the file server is accessed through the SFTP protocol (for example Figure 6 In step 11), the file data is sent to the network printer via the Internet channel.
[0113] The network printer receives file data, outputs the final printed file, and closes the established link at the same time;
[0114] In an exemplary embodiment, both the network printer and the print server are connected to the Internet. After the data transmission channels between the two are established, the print server transmits the user's printed file to the scanned printer in the form of a file stream (for example Figure 5 in step 11), and after printing is completed, the data link between the network printer and the print server is removed.
[0115] An embodiment of the present application also provides a computer-readable storage medium, in which a computer program is stored. Among them, the computer program is set to execute the steps in any one of the above method embodiments when running.
[0116] In an exemplary embodiment, the above computer-readable storage medium may include, but is not limited to: USB flash drive, read-only memory (abbreviated as ROM), random access memory (abbreviated as RAM), mobile hard disk, magnetic disk or optical disc, etc., various media that can store computer programs.
[0117] An embodiment of the present application also provides an electronic device, including a memory and a processor. A computer program is stored in the memory, and the processor is set to run the computer program to execute the steps in any one of the above method embodiments.
[0118] In an exemplary embodiment, the above electronic device may further include a transmission device and an input / output device. Among them, the transmission device is connected to the above processor, and the input / output device is connected to the above processor.
[0119] Specific examples in this embodiment may refer to the examples described in the above embodiments and exemplary embodiments, and will not be repeated here.
[0120] Obviously, those skilled in the art should understand that the above-mentioned modules or steps of the present application can be implemented by a general-purpose computing device. They can be concentrated on a single computing device or distributed on a network composed of multiple computing devices. They can be implemented by program codes executable by the computing device. Thus, they can be stored in a storage device and executed by the computing device. And in some cases, the steps shown or described can be executed in a different order from here, or they can be separately made into individual integrated circuit modules, or multiple modules or steps among them can be made into a single integrated circuit module to implement. In this way, the present application is not limited to any specific combination of hardware and software.
[0121] The above are only the preferred embodiments of the present application and are not intended to limit the present application. For those skilled in the art, the present application may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the principle of the present application shall be included within the protection scope of the present application.
Claims
1. A network printing method, characterized in that, Applied to a cloud printing server, the method includes: Receiving a print file uploaded by a cloud terminal, where the cloud terminal and the cloud printing server are within the same local area network; Creating a print task for the print file on the cloud printing server, where the cloud printing server communicates with a network printer located in the Internet through a gateway; Receiving a print instruction from an APP client to print the print file in the print task, where the APP client is located on the cloud terminal or on another mobile terminal; Transmitting the print file to the network printer for printing according to the print instruction.
2. The method according to claim 1, characterized in that, Receiving a print file uploaded by a cloud terminal, where the cloud terminal and the cloud printing server are within the same local area network, includes: Receiving the print file through a network printer driver, where the network printer driver is installed on the cloud terminal.
3. The method according to claim 1, wherein Before receiving a print instruction from an APP client to print the print file in the print task, where the APP client is located on the cloud terminal or on another mobile terminal, includes: In response to an operation of the APP client scanning a two-dimensional barcode, communicating the cloud printing server with the network printer, where the two-dimensional barcode is associated with the network printer.
4. The method according to claim 1, characterized in that, Before receiving a print instruction from an APP client to print the print file in the print task, where the APP client is located on the cloud terminal or on another mobile terminal, includes: In response to an account login operation, searching for print files uploaded by the account, where the APP client and the cloud terminal are configured with the same account.
5. The method according to claim 1, characterized in that, Creating a print task for the print file on the cloud printing server, where the cloud printing server communicates with a network printer located in the Internet through a gateway, further includes: Converting the print file into an editable template format, where the editable template format includes at least one of the following: WORD file, PDF file, EXCEL file.
6. The method according to claim 5, characterized in that, Further includes: In response to an editing operation of the APP client, editing the print file in the editable template format.
7. A network printing method, characterized in that, Applied to a cloud terminal, the method includes: Uploading a print file to a cloud printing server to create a print task for the print file on the cloud printing server, where the cloud terminal and the cloud printing server are within the same local area network, and the cloud printing server communicates with a network printer located in the Internet through a gateway; After logging in to the cloud printing server through an APP client, sending a print instruction to print the print file in the print task, so that the cloud printing server transmits the print file to the network printer for printing.
8. A cloud printing server, characterized in that, Includes: A document management module, configured to receive a print file uploaded by a cloud terminal, where the cloud terminal and the cloud printing server are within the same local area network; A task management module, configured to create a print task for the print file on the cloud printing server, where the cloud printing server communicates with a network printer located in the Internet through a gateway; A user management module, configured to receive a printing instruction for printing a printing file in the printing task from an APP client, where the APP client is located on the cloud terminal or on another mobile terminal; The document management module is further configured to transmit the printing file to the network printer for printing according to the printing instruction.
9. A computer-readable storage medium, characterized in that, A computer program is stored in the computer-readable storage medium, where when the computer program is executed by a processor, the steps of the method described in any one of claims 1 to 6 are implemented, or the steps of the method described in claim 7 are implemented.
10. An electronic device, comprising a memory, a processor, and a computer program stored on the memory and executable on the processor, characterized in that, When the processor executes the computer program, the steps of the method described in any one of claims 1 to 6 are implemented, or the steps of the method described in claim 7 are implemented.