Disclosure of Invention
Based on this, the embodiment of the application provides a printing process management and control method, device, equipment and storage medium, which can solve the problem of security loopholes existing in the existing printing process.
In a first aspect, a method for managing and controlling a printing process is provided, where the method includes:
after receiving a printing request of a user, a client generates a printing task according to the printing request and uploads the printing task to a server;
the server sends the printing task to the printing output end with the established connection relation;
and the printing output end downloads the printing preprocessing file and the printer parameters from the server according to the printing task and sends the printing preprocessing file and the printer parameters to the printer to execute printing output, wherein a printer task queue is polled in the printing output process to obtain all the printing task lists to be executed, and the tasks which do not belong to the printing request generation are cancelled.
Optionally, the print job includes a preprocessed file and a print application, the preprocessed file includes file content to be printed, and the print application at least includes output information to be printed, file page number, number of copies, single-sided and double-sided, and approver information.
Optionally, the sending, by the server, the print job to the print output end with the connection relationship established includes:
the server establishes a connection relationship to the printout terminal based on the output terminal information.
Optionally, before receiving a print request from a user, the method further comprises:
a user logs in a client through a client program;
and disabling a local printer and selecting an installed virtual printer by the client program.
Optionally, the client program disables a local printer and selects an installed virtual printer, which specifically includes:
the client program will poll and monitor the local printers, obtain the local printer status, set all local printers to disabled, and only select the virtual printer for printing.
Optionally, the printout end downloads the print preprocessing file and the printer parameters from the server according to the print job and sends the file and the printer parameters to the printer to execute printout, and further includes:
and the printing output end sets a printer according to the printer parameters, and the printer parameters comprise parameters such as a paper feeding frame, binder configuration, a double-sided printing component, a paper receiving frame and punching.
Optionally, the printout further comprises auditing the printed files.
Optionally, the print output further comprises binding the printed documents.
In a second aspect, a printing process management and control system is provided, which includes:
the client generates a printing task according to the printing request and uploads the printing task to the server after receiving the printing request of the user;
the server sends the printing task to the printing output end with the established connection relation;
and the printing output end downloads the printing preprocessing file and the printer parameters from the server according to the printing tasks and sends the printing preprocessing file and the printer parameters to the printer to execute the printing output, wherein the printer task queue is inquired in the printing output process, all the printing task lists to be executed are obtained, and the tasks which do not belong to the printing request generation are cancelled.
In a third aspect, there is provided a computer-readable storage medium having stored thereon a printing flow management program which, when executed by a processor, implements the steps of the printing flow management method according to any one of the first aspects.
The beneficial effects brought by the technical scheme provided by the embodiment of the application at least comprise:
according to the technical scheme provided by the embodiment of the application, firstly, after a client receives a printing request of a user, the client generates a printing task according to the printing request and uploads the printing task to a server; the server sends a printing task to the printing output end with the established connection relation; and the printing output end downloads the printing preprocessing file and the printer parameters from the server according to the printing task and sends the printing preprocessing file and the printer parameters to the printer to execute printing output, wherein a printer task queue is polled in the printing output process to obtain all the printing task lists to be executed, and the tasks which do not belong to the printing request generation are cancelled. According to the technical scheme, when the printing operation is carried out, the situations that a user uses a physical printer and does not belong to a printing task of a printing request can be well avoided, and the problem of security holes in the existing printing process is solved.
Detailed Description
The present invention is described in terms of particular embodiments, other advantages and features of the invention will become apparent to those skilled in the art from the following disclosure, and it is to be understood that the described embodiments are merely exemplary of the invention and that it is not intended to limit the invention to the particular embodiments disclosed. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
To facilitate understanding of the present embodiment, a detailed description will be first given of a printing process control method disclosed in the embodiments of the present application.
Referring to fig. 1, a flowchart of a method for managing a printing process provided by an embodiment of the present application is shown, where the method may include the following steps:
step 101, after receiving a print request of a user, a client generates a print task according to the print request and uploads the print task to a server.
The printing task comprises a preprocessed file and a printing application, the preprocessed file comprises file contents to be printed, and the printing application at least comprises output end information to be printed, file page number, number of copies, single and double sides and approver information.
In the embodiment of the application, the client functions mainly comprise monitoring, application, user authentication and message communication of the printing task. The core technology of the subsystem lies in monitoring the printing event on the host computer, forbidding the printing equipment and printing function existing in the system, only submitting the printing task to the software of the system, and selecting information such as an approver and the like according to the number of pages, the number of copies, single and double sides of the file in the printing application for the user to submit the printing application function. After submitting the printing application, the client uploads the preprocessed file of the printing application to the server.
Specifically, the implementation step performed by the client may include:
(1) a client program user logs in;
(2) performing printing operation by using document processing software, selecting an installed virtual printer, and selecting printing;
(3) information such as the number of copies, single and double sides, application reason filling and the like is submitted to a printing application;
(4) and uploading the preprocessed file of the local printing application to a server.
In an optional embodiment of the present application, before receiving the print request from the user, the method further comprises: a user logs in a client through a client program; and disable the local printer via the client program and select the installed virtual printer.
The client program will poll and monitor the local printers, obtain the local printer status, set all local printers to disabled, and only select the virtual printer for printing.
And 102, the server sends the printing task to the printing output end with the established connection relation.
And the server establishes a connection relation to the printing output end based on the output end information.
In the embodiment of the application, the server terminal system mainly comprises user authentication, file service, service processing and message communication functions. The server program mainly provides a user authentication communication interface, a service processing communication interface and a log auditing function with the client and the printing output end.
And 103, downloading the printing preprocessing file and the printer parameters from the server by the printing output end according to the printing task, and sending the file and the printer parameters to the printer to execute printing output.
In the process of printing output, a printer task queue is polled, all the to-be-executed printing task lists are obtained, and tasks which do not belong to the printing request generation are cancelled.
In the embodiment of the application, the printing output end mainly comprises user authentication, message communication, downloading of a printing task and printing execution. The core technology of the subsystem lies in the output of the printed file, and the binder function of the printer can be used when the file is printed according to the setting of the specific printer.
Specifically, the step of implementing the print output end may include:
(1) the user logs in the printing output end program;
(2) acquiring all print tasks to be printed of a login user;
(3) the output end program sets binder parameters of an actual printer to support the binder function;
(4) the user executes a print job, the printer outputs a print file, and stapling is performed.
Through the combination of the three subsystems and the core technology, the printing of the printing control auditing system and the binder printing equipment is controlled.
Referring to fig. 2, a block diagram of a printing process management and control system provided in an embodiment of the present application is shown. As shown in fig. 2, the system may include: client, server, printout terminal.
The client generates a printing task according to the printing request and uploads the printing task to the server after receiving the printing request of the user; the printing task comprises a preprocessed file and a printing application, the preprocessed file comprises the content of the file to be printed, and the printing application at least comprises output end information to be printed, the number of pages of the file, the number of copies, single and double faces and information of an approver;
the server sends a printing task to the printing output end based on the output end information;
and the printing output end is used for setting parameters of the printer according to the printing application and printing and binding the preprocessed files.
Another embodiment using the printing process management and control system of the present application is given below:
as shown in fig. 3, the client subsystem is a software system running on the client, and includes a client component, and the implementation details and the working principle of the functions shown are as follows:
(1) logging in a user: after the relevant users are added to the server, the client can log in;
(2) disabling the local printer: the client program can poll and monitor the local printer, obtain the state of the local printer, set all printers to be forbidden and only enable the virtual printer provided by the system to print and select by the application program;
(3) printing application: after submitting printing to the virtual printer, a client program pops up a printing application, displays the name, the page number, the single and double sides and other basic information of a printing file, and a user can select an approver and printing equipment; after the information is filled in, the application can be submitted, and the local printing preprocessing file can be uploaded to the server.
Referring to fig. 4, the printout-side subsystem needs to communicate data with the server side, and includes an output-side component, which can set relevant parameters of the printer in the program interface, and send the relevant parameters to the printer when executing a print job, and the following specific details and working principles are provided:
(1) logging in a user: logging in a user at a printing output end, displaying all tasks to be printed related to the user, and enabling the user to select and print and output;
(2) setting a printer: setting parameters of a printer, functions of a paper feeding frame, binder configuration, a double-sided printing component, a paper receiving frame, punching and the like in an interface, and storing the functions into a configuration file;
(3) executing the printout; executing printing output, wherein a printing output end downloads a printing task from a printing preprocessing file stored in a server to a problem, reads configured printer parameters from a configuration file, calls the printing preprocessing file and the printer parameters through an interface at the same time, and sends the printing preprocessing file and the printer parameters to a printer, so that the file is printed and output; in the process of executing the printing program, the background program polls the printer task queue of the CUPS to acquire all task lists to be executed, and cancels the printing tasks which do not belong to the program, so that the problem that the program can be bypassed to perform physical printing during the printing task is well avoided.
By adopting the invention, the printed preprocessed file can be uploaded to the server and can be downloaded from the server during printing output; in the software running process, the situation that a user uses a physical printer is well avoided, all printing tasks are only circulated in the system, and log audit is performed;
for specific limitations of the printing process management and control system, reference may be made to the above limitations of the printing process management and control method, which are not described herein again. The modules in the printing process management and control system can be wholly or partially realized by software, hardware and a combination thereof. The modules can be embedded in a hardware form or independent from a processor in the device, and can also be stored in a memory in the device in a software form, so that the processor can call and execute operations corresponding to the modules.
An embodiment of the present invention further provides a computer-readable storage medium, where a printing process management and control program is stored on the computer-readable storage medium, and when executed by a processor, the printing process management and control program implements the steps of the printing process management and control method described above.
The specific implementation manner of the computer-readable storage medium of the present invention is substantially the same as that of each embodiment of the above-mentioned printing process management and control method, and is not described herein again.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in the embodiments provided herein may include non-volatile and/or volatile memory, among others. Non-volatile memory can include read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in M forms, such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDRSDRAM), Enhanced SDRAM (ESDRAM), synchronous Link (SyMchliMk) DRAM (SLDRAM), RaMbus (RaMbus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
The technical features of the embodiments described above may be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the embodiments described above are not described, but should be considered as being within the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the claims. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.