CN113312010A - Watermark processing method and device for printed file, electronic equipment and storage medium - Google Patents

Watermark processing method and device for printed file, electronic equipment and storage medium Download PDF

Info

Publication number
CN113312010A
CN113312010A CN202010124709.8A CN202010124709A CN113312010A CN 113312010 A CN113312010 A CN 113312010A CN 202010124709 A CN202010124709 A CN 202010124709A CN 113312010 A CN113312010 A CN 113312010A
Authority
CN
China
Prior art keywords
watermark
file
printing
print
preset
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202010124709.8A
Other languages
Chinese (zh)
Inventor
张帅
张虹雨
李常坤
张聪
汤迪斌
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Qianxin Technology Group Co Ltd
Secworld Information Technology Beijing Co Ltd
Original Assignee
Qianxin Technology Group Co Ltd
Secworld Information Technology Beijing Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Qianxin Technology Group Co Ltd, Secworld Information Technology Beijing Co Ltd filed Critical Qianxin Technology Group Co Ltd
Priority to CN202010124709.8A priority Critical patent/CN113312010A/en
Publication of CN113312010A publication Critical patent/CN113312010A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/12Digital output to print unit, e.g. line printer, chain printer
    • G06F3/1201Dedicated interfaces to print systems
    • G06F3/1202Dedicated interfaces to print systems specifically adapted to achieve a particular effect
    • G06F3/1222Increasing security of the print job
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/12Digital output to print unit, e.g. line printer, chain printer
    • G06F3/1201Dedicated interfaces to print systems
    • G06F3/1202Dedicated interfaces to print systems specifically adapted to achieve a particular effect
    • G06F3/1203Improving or facilitating administration, e.g. print management
    • G06F3/1204Improving or facilitating administration, e.g. print management resulting in reduced user or operator actions, e.g. presetting, automatic actions, using hardware token storing data
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/12Digital output to print unit, e.g. line printer, chain printer
    • G06F3/1201Dedicated interfaces to print systems
    • G06F3/1223Dedicated interfaces to print systems specifically adapted to use a particular technique
    • G06F3/1237Print job management
    • G06F3/1238Secure printing, e.g. user identification, user rights for device usage, unallowed content, blanking portions or fields of a page, releasing held jobs

Abstract

The embodiment of the invention discloses a watermark processing method and device for a printed file, electronic equipment and a storage medium, wherein the method comprises the following steps: moving all printing processes under a process storage directory of a printing task to a preset storage directory, and creating a homonymy link for each printing process under the preset storage directory, wherein the homonymy link is connected to a virtual printer; acquiring a print file according to the print task, and if the print file is judged not to carry watermark information, adding the watermark information to the print file to generate a watermark file; and executing a printing process of the same-name link through the virtual printer to print the watermark file. The user is not required to add the watermark information, so that the labor is saved, each printed file can carry the watermark information, and the printed files can be managed conveniently.

Description

Watermark processing method and device for printed file, electronic equipment and storage medium
Technical Field
The embodiment of the invention relates to the technical field of computers, in particular to a watermark processing method and device for a printed file, electronic equipment and a storage medium.
Background
With the rise of the domestic system, the domestic system penetrates deeper and deeper in the government and enterprise institutions. For the safe printing of documents, the management of document printing by part of units is very strict, and all printed documents are required to be provided with specific watermarks. However, as home-made systems are used more and more frequently, printers are widely used, so that the print management of documents becomes more and more difficult.
In the prior art, users of domestic systems are usually required to add watermark information before printing files, and an effective method for automatically adding watermarks to all printed files is lacked.
Disclosure of Invention
Because the existing method has the problems, the embodiments of the present invention provide a method and an apparatus for watermarking a print file, an electronic device, and a storage medium.
In a first aspect, an embodiment of the present invention provides a method for processing a watermark of a printed file, including:
moving all printing processes under a process storage directory of a printing task to a preset storage directory, and creating a homonymy link for each printing process under the preset storage directory, wherein the homonymy link is connected to a virtual printer;
acquiring a print file according to the print task, and if the print file is judged not to carry watermark information, adding the watermark information to the print file to generate a watermark file;
and executing a printing process of the same-name link through the virtual printer to print the watermark file.
Optionally, the moving all the printing processes in the process storage directory of the printing task to a preset storage directory, and creating a homonymy link for each printing process in the preset storage directory, where before the homonymy link is connected to the virtual printer, the method further includes:
intercepting the printing task at a terminal side, and acquiring a process storage directory corresponding to the printing task; or the like, or, alternatively,
and intercepting the printing task between the terminal and the physical printer, and acquiring a process storage directory corresponding to the printing task.
Optionally, the obtaining a print file according to the print job, and if it is determined that the print file does not carry watermark information, adding the watermark information to the print file to generate a watermark file specifically includes:
and acquiring a print file according to the print task, and if the print file is judged not to carry watermark information, adding the watermark information to a preset position of the print file according to a preset size and a preset transparency to generate a watermark file.
Optionally, the adding the watermark information to the preset position of the printed file according to the preset size and the preset transparency to generate the watermark file specifically includes:
calling a watermark picture generation function to generate a two-dimensional code watermark picture according to the preset size, the preset transparency and the preset watermark content;
calling a watermark information generating function to generate watermark information according to the two-dimension code watermark picture;
and calling a watermark information adding function to add the watermark information to a preset position of the printed file to generate the watermark file.
Optionally, the executing, by the virtual printer, a printing process of the homonymy link to print the watermark file specifically includes:
and executing a printing process linked with the same name through the virtual printer, calling a printing instruction, and sending the watermark file to a physical printer for printing.
In a second aspect, an embodiment of the present invention further provides a watermark processing apparatus for printing a file, including:
the link creation module is used for moving all printing processes under the process storage directory of the printing tasks to a preset storage directory and creating homonymous links for each printing process under the preset storage directory, wherein the homonymous links are connected to the virtual printer;
the watermark adding module is used for acquiring a print file according to the print task, and if the print file is judged not to carry watermark information, adding the watermark information to the print file to generate a watermark file;
and the file printing module is used for executing a printing process of the same name link through the virtual printer and printing the watermark file.
Optionally, the apparatus for processing a watermark of a printed document further includes:
the terminal interception module is used for intercepting the printing task at a terminal side and acquiring a process storage directory corresponding to the printing task; or the like, or, alternatively,
and the intermediate intercepting module is used for intercepting the printing task between the terminal and the physical printer and acquiring a process storage directory corresponding to the printing task.
Optionally, the watermarking module is specifically configured to:
and acquiring a print file according to the print task, and if the print file is judged not to carry watermark information, adding the watermark information to a preset position of the print file according to a preset size and a preset transparency to generate a watermark file.
Optionally, the watermarking module is specifically configured to:
calling a watermark picture generation function to generate a two-dimensional code watermark picture according to the preset size, the preset transparency and the preset watermark content;
calling a watermark information generating function to generate watermark information according to the two-dimension code watermark picture;
and calling a watermark information adding function to add the watermark information to a preset position of the printed file to generate the watermark file.
Optionally, the file printing module is specifically configured to:
and executing a printing process linked with the same name through the virtual printer, calling a printing instruction, and sending the watermark file to a physical printer for printing.
In a third aspect, an embodiment of the present invention further provides an electronic device, including:
at least one processor; and
at least one memory communicatively coupled to the processor, wherein:
the memory stores program instructions executable by the processor, which when called by the processor are capable of performing the above-described methods.
In a fourth aspect, an embodiment of the present invention further provides a non-transitory computer-readable storage medium storing a computer program, which causes the computer to execute the above method.
According to the technical scheme, all the printing processes are moved to the preset storage directory, the homonymous link is established for each printing process and connected to the virtual printer, the printing processes of the homonymous link can be automatically executed through the virtual printer, the watermark information is added to the printed files, the watermark files added with the watermark information are printed, the user does not need to add the watermark files by himself, manpower is saved, each printed file can be guaranteed to carry the watermark information, and management of the printed files is facilitated.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to these drawings without creative efforts.
Fig. 1 is a schematic flowchart of a method for watermarking a printed document according to an embodiment of the present invention;
fig. 2 is a flowchart illustrating a method for watermarking a printed document according to another embodiment of the present invention;
fig. 3 is a flowchart illustrating a method for watermarking a printed document according to another embodiment of the present invention;
fig. 4 is a schematic structural diagram of a watermark processing apparatus for printing a document according to an embodiment of the present invention;
fig. 5 is a logic block diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
The following further describes embodiments of the present invention with reference to the accompanying drawings. The following examples are only for illustrating the technical solutions of the present invention more clearly, and the protection scope of the present invention is not limited thereby.
Fig. 1 shows a flowchart of a watermarking method for a printed document according to this embodiment, including:
s101, moving all printing processes under a process storage directory of a printing task to a preset storage directory, and creating a homonymy link for each printing process under the preset storage directory, wherein the homonymy link is connected to a virtual printer.
And the printing task is a task to be printed currently.
The process storage directory is a directory storing all printing processes of the current printing task.
The printing process is a process of executing a printing task.
The preset storage directory is a preset directory for storing the backups of the printing processes.
The homonymous link is a link identical to the name of each print process.
The virtual printer is used for executing an application program of a printing task.
Specifically, after all printing processes under the process storage directory of the printing task are moved to the preset storage directory, a homonymous link is created for each printing process under the preset storage directory, and each homonymous link is connected to the virtual printer, so that the virtual printer can execute the printing task and print the file by calling the printing processes under the preset storage directory.
S102, acquiring a print file according to the print task, and if the print file is judged not to carry watermark information, adding the watermark information to the print file to generate a watermark file.
The printing file is a file to be printed, which is sent to a physical printer by a terminal.
The watermark information is watermark content to be added to the printed file, for example: an internal file.
The watermark file is a file to be printed after the watermark information is added.
Specifically, when determining whether the printed file carries the watermark information, it may be determined whether the printed file has the watermark information added according to an adding method of the watermark information, such as a preset position, a preset size, and a preset transparency of the watermark information. For example, if in this embodiment, when adding the watermark information, the watermark is added to the position of 100 × 100 pixel points in the upper right corner of the printed file, and the transparency is 30%; when judging whether the printed file carries the watermark information, the positions of 100 multiplied by 100 pixel points at the upper right corner of the printed file can be judged, whether an image with the transparency of 30% exists or not is judged, if yes, the printed file is determined to carry the watermark information, and if not, the printed file is determined not to carry the watermark information.
S103, executing a printing process of the same name link through the virtual printer, and printing the watermark file.
Specifically, a printing process under a preset storage directory is called through a homonymous link connected with the virtual printer, a printing task is executed, and the watermark file is printed.
This embodiment is through removing all printing processes to preset storage directory to establish the same name for every printing process and link to virtual printer, can carry out the printing process that the same name linked automatically through virtual printer, add watermark information to the file of printing, and print the watermark file after adding watermark information, need not the user and add by oneself, both saved the manpower, guaranteed also that every file homoenergetic of printing carries watermark information, the convenient management to the file of printing.
Further, on the basis of the above embodiment of the method, before S101, the method further includes:
intercepting the printing task at a terminal side, and acquiring a process storage directory corresponding to the printing task; or the like, or, alternatively,
and intercepting the printing task between the terminal and the physical printer, and acquiring a process storage directory corresponding to the printing task.
Specifically, the watermarking method for printing the file provided by this embodiment may be executed on the terminal side, that is, after the terminal generates the printing file and before the printing file is sent, the watermarking method for printing the file provided by this embodiment is executed, so as to ensure that the file sent to the physical printer carries the watermark information.
Or, the watermarking method for printing a file provided in this embodiment may also be executed by a device at any position between the terminal and the physical printer, that is, after the terminal generates and transmits the printed file and before the physical printer receives the printed file, the watermarking method for printing a file provided in this embodiment is executed to ensure that the file transmitted to the physical printer carries the watermark information.
No matter the execution is performed on the terminal side or the execution is performed on the device at any position between the terminal and the physical printer, the execution is performed after the virtual printer generates the print file and before the physical printer receives the watermark file, as shown in fig. 2, which is a schematic flow diagram of the watermark processing method for the print file provided in this embodiment, an application program of the terminal sends print data to a cupsd process for data printing, and the cupsd process is a print process of the printer; creating a printing file 1 by the cupsd process; the virtual printer reads the print file 1 by cutting the fiddle of the print task, rearranges the print content of the print file 1 and creates a print file 2; calling an Lpr (watermark information adding process) actual printed file, adding a private task mark (watermark information) into the printed file, and performing data processing by a cut process to obtain a watermark file; and reading the watermark file by the virtual Printer according to the printing task, sending the watermark file to the physical Printer through an Hp Printer process, and printing to obtain a printed document, wherein the Hp Printer is a selection process of the physical Printer.
In the embodiment, linux cups is mainly adopted for printing and intercepting, printing actions are intercepted on a domestic system, image watermarking is carried out on printed files, after the addition is completed, a device printing driving program is called to complete the printing of the files, so that the printed files and data are marked by watermarks, and the leakage and the safety of the files are guaranteed.
Further, on the basis of the above method embodiment, S102 specifically includes:
and acquiring a print file according to the print task, and if the print file is judged not to carry watermark information, adding the watermark information to a preset position of the print file according to a preset size and a preset transparency to generate the watermark file.
Specifically, after a print file is obtained according to a print task, it is required to first determine whether the print file carries watermark information, and if the print file carries the watermark information, the print file does not need to be added with the watermark information and is directly sent to a physical printer for printing, so that repeated addition of subsequent watermark information is avoided.
And if the printed file does not carry the watermark information, adding the watermark information to the preset position of the printed file according to the preset size and the preset transparency to generate the watermark file.
The preset size is the size of the preset watermark information in the printed file.
The preset transparency is the transparency of the preset watermark information in the printed file.
The preset position is the position of preset watermark information in the printed file.
By judging whether the printed file carries the watermark information or not, the repeated addition of the watermark information when the printed file carries the watermark information is avoided; through the preset size, the preset transparency and the preset position, the watermark information is conveniently and directly added into the printed file.
Further, on the basis of the above method embodiment, the adding the watermark information to the preset position of the print file according to the preset size and the preset transparency to generate the watermark file specifically includes:
calling a watermark picture generation function to generate a two-dimensional code watermark picture according to the preset size, the preset transparency and the preset watermark content;
calling a watermark information generating function to generate watermark information according to the two-dimension code watermark picture;
and calling a watermark information adding function to add the watermark information to a preset position of the printed file to generate the watermark file.
The watermark picture generating function generally adopts a zip _ code function and is used for generating a two-dimensional code watermark picture according to a preset size, a preset transparency and a preset watermark content, wherein the two-dimensional code watermark picture is in a picture format.
The watermark information generating function generally adopts a watermark function and is used for generating watermark information according to the two-dimensional code watermark picture.
The watermark information adding function generally adopts an ImageMagick function and is used for generating a watermark file according to the watermark information and a preset position.
By using the watermark information generating function, the watermark information adding function and the watermark picture generating function, the watermark information is conveniently and quickly generated.
Further, on the basis of the above method embodiment, S103 specifically includes:
and executing a printing process linked with the same name through the virtual printer, calling a printing instruction, and sending the watermark file to a physical printer for printing.
For example, the following steps are included:
a1, creating a virtual printer and processing a virtual printing task;
a2, intercepting the print task of the physical printer, moving all processes under/usr/lib/cups/backskend/directory to/usr/lib/cups/backskend/bk/directory, and creating homonymy links for each process name to connect to the virtual printer;
a3, intercepting parameters in a print task, and analyzing a generated temporary print file to perform identification processing;
a4, generating an information unique identifier, calling a zip _ code related function to generate a specified information two-dimensional code picture format, and calling a watermark related function to generate a watermark picture format of the specified information;
a5, adding the unique identifier of the watermark information, and adding the generated watermark information into a temporary print file by using ImageMagick function call to generate a watermark file;
a6, in the virtual printer process, the path and the relevant printing parameters of the generated watermark file with the watermark information call the printing command to finish the output of the watermark file from the printer.
Specifically, as shown in fig. 3, the application Trigger sends the print data to the cupsd process, and the cupsd process performs different data processing according to different printers and generates a print file. The virtual printer reads the print file from the preset storage directory, if the virtual printer finds that the private task mark (watermark information) is not carried, the virtual printer returns the successful processing after caching; scanning a printing list from a cached preset storage directory through a pre-installed virtual printer interface, and acquiring printer information to reassign a printing task; then the application program receives the printing task and sends the printing data to the cupsd process, and the cupsd process carries out different data processing according to different printers again and generates a printing file; and the virtual Printer cuts the print task from the preset storage directory again, sends the print task to the physical Printer through the Hp Printer process, and prints to obtain a print document.
In the embodiment, the printing file is intercepted, the watermark information is added to the printing file, and after the addition is completed, the equipment printing driving program is called to complete the printing of the document, so that the printed document and data are identified by the watermark, and the leakage and the safety of the document are guaranteed.
Fig. 4 is a schematic structural diagram of a watermark processing apparatus for printing a document according to this embodiment, where the apparatus includes: a link creation module 401, a watermarking module 402, and a file printing module 403, wherein:
the link creation module 401 is configured to move all printing processes in a process storage directory of a printing task to a preset storage directory, and create a homonymous link for each printing process in the preset storage directory, where the homonymous link is connected to a virtual printer;
the watermark adding module 402 is configured to obtain a print file according to the print job, and if it is determined that the print file does not carry watermark information, add the watermark information to the print file to generate a watermark file;
the file printing module 403 is configured to execute a printing process of the same name link through the virtual printer, and print the watermark file.
Specifically, the link creation module 401 moves all printing processes in a process storage directory of a printing task to a preset storage directory, and creates a homonymous link for each printing process in the preset storage directory, where the homonymous link is connected to a virtual printer; the watermark adding module 402 obtains a print file according to the print task, and if the print file is judged not to carry watermark information, the watermark information is added to the print file to generate a watermark file; the file printing module 403 executes a printing process linked by the same name through the virtual printer to print the watermark file.
This embodiment is through removing all printing processes to preset storage directory to establish the same name for every printing process and link to virtual printer, can carry out the printing process that the same name linked automatically through virtual printer, add watermark information to the file of printing, and print the watermark file after adding watermark information, need not the user and add by oneself, both saved the manpower, guaranteed also that every file homoenergetic of printing carries watermark information, the convenient management to the file of printing.
Further, on the basis of the above device embodiment, the watermark processing device for printing a file further includes:
the terminal interception module is used for intercepting the printing task at a terminal side and acquiring a process storage directory corresponding to the printing task; or the like, or, alternatively,
and the intermediate intercepting module is used for intercepting the printing task between the terminal and the physical printer and acquiring a process storage directory corresponding to the printing task.
Further, on the basis of the above apparatus embodiment, the watermarking module is specifically configured to:
and acquiring a print file according to the print task, and if the print file is judged not to carry watermark information, adding the watermark information to a preset position of the print file according to a preset size and a preset transparency to generate a watermark file.
Further, on the basis of the above apparatus embodiment, the watermarking module is specifically configured to:
calling a watermark picture generation function to generate a two-dimensional code watermark picture according to the preset size, the preset transparency and the preset watermark content;
calling a watermark information generating function to generate watermark information according to the two-dimension code watermark picture;
and calling a watermark information adding function to add the watermark information to a preset position of the printed file to generate the watermark file.
Further, on the basis of the above apparatus embodiment, the file printing module is specifically configured to:
and executing a printing process linked with the same name through the virtual printer, calling a printing instruction, and sending the watermark file to a physical printer for printing.
The watermark processing apparatus for printing a file described in this embodiment may be used to execute the above method embodiments, and the principle and technical effect are similar, which are not described herein again.
Referring to fig. 5, the electronic device includes: a processor (processor)501, a memory (memory)502, and a bus 503;
wherein the content of the first and second substances,
the processor 501 and the memory 502 are communicated with each other through the bus 503;
the processor 501 is used to call program instructions in the memory 502 to perform the methods provided by the above-described method embodiments.
The present embodiments disclose a computer program product comprising a computer program stored on a non-transitory computer readable storage medium, the computer program comprising program instructions which, when executed by a computer, enable the computer to perform the methods provided by the above-described method embodiments.
The present embodiments provide a non-transitory computer-readable storage medium storing computer instructions that cause the computer to perform the methods provided by the method embodiments described above.
The above-described embodiments of the apparatus are merely illustrative, and the units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment. One of ordinary skill in the art can understand and implement it without inventive effort.
Through the above description of the embodiments, those skilled in the art will clearly understand that each embodiment can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware. With this understanding in mind, the above-described technical solutions may be embodied in the form of a software product, which can be stored in a computer-readable storage medium such as ROM/RAM, magnetic disk, optical disk, etc., and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the methods described in the embodiments or some parts of the embodiments.
It should be noted that: the above examples are only intended to illustrate the technical solution of the present invention, but not to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.

Claims (10)

1. A method of watermarking a printed document, comprising:
moving all printing processes under a process storage directory of a printing task to a preset storage directory, and creating a homonymy link for each printing process under the preset storage directory, wherein the homonymy link is connected to a virtual printer;
acquiring a print file according to the print task, and if the print file is judged not to carry watermark information, adding the watermark information to the print file to generate a watermark file;
and executing a printing process of the same-name link through the virtual printer to print the watermark file.
2. The method for watermarking a print file according to claim 1, wherein the moving all print processes under a process storage directory of the print job to a preset storage directory and creating a homonymous link for each print process under the preset storage directory, the homonymous link being connected to a virtual printer, further comprises:
intercepting the printing task at a terminal side, and acquiring a process storage directory corresponding to the printing task; or the like, or, alternatively,
and intercepting the printing task between the terminal and the physical printer, and acquiring a process storage directory corresponding to the printing task.
3. The method for processing the watermark of the print file according to claim 1, wherein the obtaining of the print file according to the print job, and if it is determined that the print file does not carry the watermark information, adding the watermark information to the print file to generate the watermark file specifically include:
and acquiring a print file according to the print task, and if the print file is judged not to carry watermark information, adding the watermark information to a preset position of the print file according to a preset size and a preset transparency to generate a watermark file.
4. The method for processing the watermark of the printed file according to claim 3, wherein the step of adding the watermark information to the preset position of the printed file according to the preset size and the preset transparency to generate the watermark file specifically comprises:
calling a watermark picture generation function to generate a two-dimensional code watermark picture according to the preset size, the preset transparency and the preset watermark content;
calling a watermark information generating function to generate watermark information according to the two-dimension code watermark picture;
and calling a watermark information adding function to add the watermark information to a preset position of the printed file to generate the watermark file.
5. The method for watermarking a print file according to claim 1, wherein the printing process of the homonymy link is executed by the virtual printer to print the watermark file, specifically comprising:
and executing a printing process linked with the same name through the virtual printer, calling a printing instruction, and sending the watermark file to a physical printer for printing.
6. A watermark processing apparatus for printing a document, comprising:
the link creation module is used for moving all printing processes under the process storage directory of the printing tasks to a preset storage directory and creating homonymous links for each printing process under the preset storage directory, wherein the homonymous links are connected to the virtual printer;
the watermark adding module is used for acquiring a print file according to the print task, and if the print file is judged not to carry watermark information, adding the watermark information to the print file to generate a watermark file;
and the file printing module is used for executing a printing process of the same name link through the virtual printer and printing the watermark file.
7. The apparatus for watermarking a printed document according to claim 6, wherein the apparatus for watermarking a printed document further comprises:
the terminal interception module is used for intercepting the printing task at a terminal side and acquiring a process storage directory corresponding to the printing task; or the like, or, alternatively,
and the intermediate intercepting module is used for intercepting the printing task between the terminal and the physical printer and acquiring a process storage directory corresponding to the printing task.
8. An electronic device, comprising:
at least one processor; and
at least one memory communicatively coupled to the processor, wherein:
the memory stores program instructions executable by the processor, the processor invoking the program instructions to enable execution of a method of watermarking a printed document according to any of claims 1 to 5.
9. A non-transitory computer-readable storage medium storing a computer program for causing a computer to execute the watermark processing method of a print file according to any one of claims 1 to 5.
10. A computer program product comprising computer executable instructions, wherein said instructions when executed by a processor are adapted to implement a method of watermarking a printed document according to any of claims 1 to 5.
CN202010124709.8A 2020-02-27 2020-02-27 Watermark processing method and device for printed file, electronic equipment and storage medium Pending CN113312010A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010124709.8A CN113312010A (en) 2020-02-27 2020-02-27 Watermark processing method and device for printed file, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010124709.8A CN113312010A (en) 2020-02-27 2020-02-27 Watermark processing method and device for printed file, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN113312010A true CN113312010A (en) 2021-08-27

Family

ID=77370386

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010124709.8A Pending CN113312010A (en) 2020-02-27 2020-02-27 Watermark processing method and device for printed file, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN113312010A (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103336923A (en) * 2013-03-06 2013-10-02 西安电子科技大学 Print monitoring system and method for universal printer
US9501251B1 (en) * 2015-03-31 2016-11-22 Symantec Corporation Techniques for print monitoring
CN106484340A (en) * 2016-09-08 2017-03-08 中标软件有限公司 Watermark interpolation is carried out in print procedure to document knows method for distinguishing with watermark
CN107766011A (en) * 2017-09-22 2018-03-06 北京北信源软件股份有限公司 Print control program, apparatus and system
CN108646988A (en) * 2018-03-20 2018-10-12 北京明朝万达科技股份有限公司 Document printing method and system
CN109521973A (en) * 2018-09-27 2019-03-26 平安科技(深圳)有限公司 Watermark adding method, device, computer equipment and storage medium

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103336923A (en) * 2013-03-06 2013-10-02 西安电子科技大学 Print monitoring system and method for universal printer
US9501251B1 (en) * 2015-03-31 2016-11-22 Symantec Corporation Techniques for print monitoring
CN106484340A (en) * 2016-09-08 2017-03-08 中标软件有限公司 Watermark interpolation is carried out in print procedure to document knows method for distinguishing with watermark
CN107766011A (en) * 2017-09-22 2018-03-06 北京北信源软件股份有限公司 Print control program, apparatus and system
CN108646988A (en) * 2018-03-20 2018-10-12 北京明朝万达科技股份有限公司 Document printing method and system
CN109521973A (en) * 2018-09-27 2019-03-26 平安科技(深圳)有限公司 Watermark adding method, device, computer equipment and storage medium

Similar Documents

Publication Publication Date Title
US8250103B2 (en) Image log management device, image log management method, image log management program
CN108646988B (en) Document printing method and system
CN111679826A (en) Method, device and equipment for previewing webpage editing content in real time and storage medium
US20200301636A1 (en) Image forming apparatus, non-transitory computer readable medium, and image forming system
US8134733B2 (en) Pre-concatenation execution method and system for automated prepress process nodes
KR20080011925A (en) Fax machine, fax transmission system and fax transmission method
CN107766011B (en) Printing control method, device and system
CN113312010A (en) Watermark processing method and device for printed file, electronic equipment and storage medium
WO2021065126A1 (en) Support program, information processing device, and printing method
JP2013046349A (en) Image processing apparatus, control method of the same, and program
CN107423006B (en) Method and device for adaptively printing watermark
US10140558B2 (en) Print control system, print control apparatus, and program
US20070211265A1 (en) Print Control System, Print Control Method, Print Control Program Storage Medium, And Printing System
CA2372184A1 (en) Method, system and storage medium for document processing
US8446603B2 (en) Systems and methods for optimizing function based object operations in interpreted page description languages
CN107273067B (en) Information processor
CN112256214A (en) Job cancel printing method, image forming apparatus, image forming system, and computer storage medium
CN111176591A (en) Printing auditing method, device, equipment and medium based on CUPS system
JP5979950B2 (en) Image processing apparatus, control method therefor, and program
CN110175006A (en) Print the processing method and processing device of source file
JP5495197B2 (en) Data relay apparatus, image forming method, program, and recording medium
JP6217097B2 (en) Information processing apparatus, program, system, and method
CN117234623B (en) Page theme changing method and device of application program and electronic equipment
JP2010026649A (en) Data repeater system, image forming method, program, and recording medium
JP6279025B2 (en) Image processing apparatus, image processing apparatus control method, and program

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination