CN108875323A - watermark adding method and device - Google Patents

watermark adding method and device Download PDF

Info

Publication number
CN108875323A
CN108875323A CN201810619771.7A CN201810619771A CN108875323A CN 108875323 A CN108875323 A CN 108875323A CN 201810619771 A CN201810619771 A CN 201810619771A CN 108875323 A CN108875323 A CN 108875323A
Authority
CN
China
Prior art keywords
watermark
interface function
target
preset interface
parameter
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.)
Granted
Application number
CN201810619771.7A
Other languages
Chinese (zh)
Other versions
CN108875323B (en
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.)
Beixinyuan system integration Co., Ltd
Original Assignee
Jiangsu Shenzhouxinyuan System Engineering 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 Jiangsu Shenzhouxinyuan System Engineering Co Ltd filed Critical Jiangsu Shenzhouxinyuan System Engineering Co Ltd
Priority to CN201810619771.7A priority Critical patent/CN108875323B/en
Publication of CN108875323A publication Critical patent/CN108875323A/en
Application granted granted Critical
Publication of CN108875323B publication Critical patent/CN108875323B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/10Protecting distributed programs or content, e.g. vending or licensing of copyrighted material ; Digital rights management [DRM]
    • G06F21/16Program or content traceability, e.g. by watermarking

Abstract

The embodiment of the present invention provides a kind of watermark adding method and device.The method is applied to server, the method includes:The parameter information of target watermark is received, the parameter information includes at least the type of watermark and attribute information of the target watermark;In the system file for obtaining target device, corresponding with the type of watermark, control printing preset interface function;The attribute information is added in the preset interface function, target interface function is generated;The target interface function is sent to the target device, and sends the instruction information for executing the target interface function to the target device.In the embodiment of the present invention, the process for setting watermark is simple, without individually adding watermark for each printing document;The system file for directly modifying target device generates the processes such as watermark picture without executing.

Description

Watermark adding method and device
Technical field
The present embodiments relate to field of computer technology more particularly to a kind of watermark adding methods and device.
Background technique
In the prior art, the document printed in order to prevent is stolen, the paper document of some enterprises printings, usually logical It crosses the mode in document bottom or corner addition two dimensional code and realizes tracking.The process of addition two dimensional code generally passes through print center system System is concentrated and adds two dimensional code to each printing document, then is printed to unified authorization print center.It on the one hand, is each to beat Printed text shelves individually add two dimensional code, and front end submits application to backstage to generate picture, attachment two dimensional code, particular printer and obtains authorization Printing, process are relatively complicated;On the other hand, the stabilization that realization which must rely on print center system effectively works;Further Aspect, if the two dimensional code on paper document is damaged, the back jump tracking of document will be obstructed.
In view of the above problems, the mode for adding watermark for document is widely used.Watermark refers in picture or text Translucent icons added in shelves background, for preventing other people robber's figures.However, in the prior art, adding watermark for document Process is similar to the process of above-mentioned two dimensional code mode, and watermark need to be individually added for each printing document, and front end, which is submitted, applies to rear Platform generates picture and particular printer obtains authorization printing, and process is still cumbersome.
Summary of the invention
The embodiment of the present invention provides a kind of watermark adding method and device, adds in the prior art for printing document to solve The relatively complicated problem of the process of watermarking.
On the one hand, the embodiment of the present invention provides a kind of watermark adding method, is applied to server, the method includes:
Receive target watermark parameter information, the parameter information include at least the target watermark type of watermark and Attribute information;
In the system file for obtaining target device, corresponding with the type of watermark, control printing preset interface function;
The attribute information is added in the preset interface function, target interface function is generated;
The target interface function is sent to the target device, and is sent to the target device and executes the target The instruction information of interface function.
On the other hand, the embodiment of the present invention provides a kind of watermark adding set, is applied to server, and described device includes:
Receiving module, for receiving the parameter information of target watermark, the parameter information includes at least the target watermark Type of watermark and attribute information;
Module is obtained, it is corresponding with the type of watermark, control printing in the system file for obtaining target device Preset interface function;
Generation module generates target interface function for the attribute information to be added in the preset interface function;
Sending module for the target interface function to be sent to the target device, and is sent out to the target device Send the instruction information for executing the target interface function.
On the other hand, the embodiment of the invention also provides a kind of electronic equipment, including memory, processor, bus and The computer program that can be run on a memory and on a processor is stored, the processor is realized above-mentioned when executing described program Step in watermark adding method.
In another aspect, being stored thereon with the embodiment of the invention also provides a kind of non-transient computer readable storage medium Computer program realizes the step in above-mentioned watermark adding method when described program is executed by processor.
Watermark adding method and device provided in an embodiment of the present invention are obtained by receiving the parameter information of target watermark In the system file of target device, corresponding with the type of watermark, control printing preset interface function;The attribute is believed Breath is added in the preset interface function, generates target interface function;The target interface function is sent to the target Equipment, and the instruction information for executing the target interface function is sent to the target device, by changing target device system The preset interface function that user's control prints in file when so that target device printing document, adds target water automatically for document Print.Wherein, parameter information includes at least the type of watermark and attribute information of the target watermark, and parameter information can be realized only One property, customizability;In the embodiment of the present invention, the process for setting watermark is simple, without individually adding water for each printing document Print;The system file for directly modifying target device generates the processes such as watermark picture without executing.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is this hair Bright some embodiments for those of ordinary skill in the art without creative efforts, can be with root Other attached drawings are obtained according to these attached drawings.
Fig. 1 is the flow diagram of watermark adding method provided in an embodiment of the present invention;
Fig. 2 is the schematic diagram of a scenario of the specific example of the embodiment of the present invention;
The structural schematic diagram of Fig. 3 watermark adding set provided in an embodiment of the present invention;
Fig. 4 is the structural schematic diagram of electronic equipment provided in an embodiment of the present invention.
Specific embodiment
In order to make the object, technical scheme and advantages of the embodiment of the invention clearer, below in conjunction with the embodiment of the present invention In attached drawing, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that described embodiment is A part of the embodiment of the present invention, instead of all the embodiments.Based on the embodiments of the present invention, those of ordinary skill in the art Every other embodiment obtained without creative efforts, shall fall within the protection scope of the present invention.
Fig. 1 shows a kind of flow diagram of watermark adding method provided in an embodiment of the present invention.
As shown in Figure 1, watermark adding method provided in an embodiment of the present invention, is applied to server, the method is specifically wrapped Include following steps:
Step 101, the parameter information of target watermark is received, the parameter information includes at least the watermark of the target watermark Type and attribute information.
Wherein, target watermark, that is, user's watermark to be added.In the embodiment of the present invention, user circle can be provided for user Face (User Interface, UI) selects type of watermark for user and inputs the parameter information of target watermark;A visitor can also be provided Family end inputs the parameter information of target watermark to server transport user.
Optionally, in the embodiment of the present invention, the type of watermark includes:Text watermark, dot matrix watermark, picture watermark and/ Or two-dimentional code watermark.
Attribute information is the information parameter for characterizing the attribute value of target watermark, and each different types of watermark is corresponding different Attribute information;By providing the interface UI for inputting attribute information or client, it can be achieved that user's customized watermark for user Type and attribute.
Step 102, corresponding with the type of watermark, control printing default in the system file for obtaining target device Interface function.
Wherein, target device is to need to show the equipment of above-mentioned target watermark when printing document;Optionally, of the invention In embodiment, user inputs attribute information by the interface UI or client, and server receives attribute information time, can be directed to selection Target device (can also pre-select).
For a target device, server obtains the system file of the equipment, and searches system file and summarize for controlling The preset interface function of printing;By taking the target device of windows operating system as an example, in system file, gdi32.dll file Internal interface function EndPage be used to control printing interface breathe out number;Specifically, gdi32.dll is for drawing image With display text;EndPage is the printing for completing a page, and prepares device context, to print next page Function.
In this step, in EndPage, the context handle for obtaining target device is drawn, and device context is whole A window, including title bar, menu, scroll bar, toolbar etc..
Step 103, the attribute information is added in the preset interface function, generates target interface function.
Wherein, it by the corresponding parameter of the attribute letter information, is added in the preset interface function, according to preset volume Mode is translated, target interface function is generated.
Step 104, the target interface function is sent to the target device, and sends and executes to the target device The instruction information of the target interface function.
Wherein, target interface function is sent to target device by server, and sends instruction information;Target device is held The row target interface function;In this way, target watermark is added in the system file of target device, so that target device is being beaten When printed text shelves, target watermark is added on the document printed automatically.
In the above embodiment of the present invention, by receiving the parameter information of target watermark, the system file of target device is obtained In, corresponding with the type of watermark, control printing preset interface function;The attribute information is added to described preset to connect In mouth function, target interface function is generated;The target interface function is sent to the target device, and is set to the target Preparation send the instruction information for executing the target interface function, passes through user's control printing in change target device system file Preset interface function when so that target device printing document, adds target watermark automatically for document.Wherein, parameter information is at least Type of watermark and attribute information including the target watermark, and parameter information can realize uniqueness, customizability;The present invention In embodiment, the process for setting watermark is simple, without individually adding watermark for each printing document;Directly modify target device System file generates the processes such as watermark picture without executing.The present invention, which solves, adds watermark in the prior art for printing document The relatively complicated problem of process.
Optionally, in the embodiment of the present invention, when the type of watermark is text watermark, the attribute information is at least wrapped It includes:Word content and format parameter;
It is described that the attribute information is added in the preset interface function, generate target interface function the step of, packet It includes:
The word content, format parameter are added in the first preset interface function, target interface function is generated;It is described First preset interface function is preset interface function corresponding with the text watermark.
Specifically, when addition text watermark is as background, attribute information is included at least:Word content and format parameter; Format parameter includes the information such as font, font size.Attribute information may also include location parameter, for example specify the target watermark in document In display position.
Further, as a specific example, referring to fig. 2, by taking windows operating system as an example, when the type of watermark is When text watermark, the first preset interface function is DrawString function.
The word content, format parameter are added in the first preset interface function, the mistake of target interface function is generated Cheng Zhong, to device context handle, the upper text of remittance, is rotated on the position of setting, is called DrawString function, is being referred to Positioning is set and the text-string specified with specified Brush and Font objects draw, and text watermark background effect can be realized Fruit.
Optionally, in the embodiment of the present invention, when the type of watermark is dot matrix watermark, the attribute information is at least wrapped It includes:The location parameter and color parameter of each pixel in dot matrix;
It is described that the attribute information is added in the preset interface function, generate target interface function the step of, packet It includes:
The location parameter of each pixel in the dot matrix and color parameter are added in the second preset interface function, Generate target interface function;The second preset interface function is preset interface function corresponding with the dot matrix watermark.
Specifically, when addition dot matrix watermark is as background, attribute information is included at least:The position of each pixel in dot matrix Parameter and color parameter.Attribute information may also include location parameter, for example specify the display position of the target watermark in a document It sets.
Further, as a specific example, referring to fig. 2, by taking windows operating system as an example, when the type of watermark is When dot matrix watermark, the second preset interface function is SetPixel function, which is set as specified for the pixel at specified coordinate Color.
The location parameter of each pixel in the dot matrix and color parameter are added in the second preset interface function, During generating target interface function, to device context handle, joined according to the location parameter of each pixel and color Number calls SetPixel function, pixel is drawn in many places, is reached in the pixel point-rendering particular color of corresponding position Dot matrix effect.
In the embodiment of the present invention, also pass through the internal interface function of the gdi32.dll file of the system to windows StartPage (first to call this function before one new page of printing) is linked up with, and is carried out in the device context handle of acquisition It draws.
Optionally, in the embodiment of the present invention, when the type of watermark is picture watermark, the attribute information is at least wrapped It includes:The first bitmap that picture by replicating the target watermark obtains;
It is described that the attribute information is added in the preset interface function, generate target interface function the step of, packet It includes:
First bitmap is added in third preset interface function, target interface function is generated;The third is default Interface function is preset interface function corresponding with the picture watermark.
Specifically, when addition picture watermark is as background, attribute information is included at least:By replicating the target watermark The picture of the first bitmap that picture obtains, target watermark can directly be uploaded by user;Attribute information may also include location parameter, than Such as specify the display position of target watermark in a document.
Referring still to Fig. 2, by taking windows operating system as an example, when the type of watermark is two-dimentional code watermark, third Preset interface function is StretchBlt function, which replicates a bitmap to target rectangle from source rectangle, press when necessary The mode of target device setting carries out the stretching or compression of image.
First bitmap is added in third preset interface function, third preset interface function passes through duplication first Figure generates target interface function;Optionally, StretchBlt function can be called using specific icon picture as target watermark, It is drawn in the setting position of device context handle, picture watermark background effect is reached on the document printed.
Optionally, in the embodiment of the present invention, when the type of watermark is two-dimentional code watermark, the attribute information is at least wrapped It includes:The generation parameter of the corresponding two dimensional code of the target watermark;
It is described that the attribute information is added in the preset interface function, generate target interface function the step of, packet It includes:
According to the generation parameter, the second bitmap of the two dimensional code of target watermark is generated;
Second bitmap is added in the 4th preset interface function, target interface function is generated;Described 4th is default Interface function is preset interface function corresponding with the two dimension code watermark.
Specifically, when adding two-dimentional code watermark as background, attribute information is included at least:The target watermark corresponding two The generation parameter of code is tieed up, it may include login name, the host mark of user that the generation parameter of two dimensional code can directly be uploaded by user The information such as knowledge, IP and/or time;Attribute information may also include location parameter, for example specify the target watermark in a document aobvious Show position.
Referring still to Fig. 2, by taking windows operating system as an example, when the type of watermark is two-dimentional code watermark, the 4th Preset interface function is StretchBlt function, which replicates a bitmap to target rectangle from source rectangle, press when necessary The mode of target device setting carries out the stretching or compression of image.
According to the generation parameter, the second bitmap of the two dimensional code of target watermark is generated, then second bitmap is added Into the 4th preset interface function, target interface function is generated.Optionally, if there are privacy requirements, two dimensional code can also be added It is dense at.
Optionally, the second bitmap can will be generated according to the generation parameter of two dimensional code, StretchBlt function is called, in equipment The setting position of context handle is drawn, and two-dimentional code watermark background effect is reached on the document printed.
Optionally, in the embodiment of the present invention, the described the step of target interface function is sent to the target device, Including:
According to predetermined encryption mode, to being sent to the target device after the target interface function encrypting.
It wherein, can be according to predetermined encryption mode pair in order to improve the Information Security during target interface function transfer It after target interface function encrypting, retransmits to target device, avoids transmission process from summarizing target interface function and be held as a hostage.
In the above embodiment of the present invention, by receiving the parameter information of target watermark, the system file of target device is obtained In, corresponding with the type of watermark, control printing preset interface function;The attribute information is added to described preset to connect In mouth function, target interface function is generated;The target interface function is sent to the target device, and is set to the target Preparation send the instruction information for executing the target interface function, passes through user's control printing in change target device system file Preset interface function when so that target device printing document, adds target watermark automatically for document.Wherein, parameter information is at least Type of watermark and attribute information including the target watermark, and parameter information can realize uniqueness, customizability;The present invention In embodiment, the process for setting watermark is simple, without individually adding watermark for each printing document;Directly modify target device System file generates the processes such as watermark picture without executing.
Watermark adding method provided in an embodiment of the present invention is described above, introduces the present invention below in conjunction with attached drawing and implements The watermark adding set that example provides.
Referring to Fig. 3, the embodiment of the invention provides a kind of watermark adding sets, are applied to server, and described device includes:
Receiving module 301, for receiving the parameter information of target watermark, the parameter information includes at least the target water The type of watermark and attribute information of print.
Wherein, target watermark, that is, user's watermark to be added.In the embodiment of the present invention, UI circle can be provided for user Face selects type of watermark for user and inputs the parameter information of target watermark;A client can also be provided, used to server transport The parameter information of family input target watermark.
Optionally, in the embodiment of the present invention, the type of watermark includes:Text watermark, dot matrix watermark, picture watermark and/ Or two-dimentional code watermark.
Attribute information is the information parameter for characterizing the attribute value of target watermark, and each different types of watermark is corresponding different Attribute information;By providing the interface UI for inputting attribute information or client, it can be achieved that user's customized watermark for user Type and attribute.
Module 302 is obtained, in the system file for obtaining target device, control corresponding with the type of watermark is beaten The preset interface function of print.
Wherein, target device is to need to show the equipment of above-mentioned target watermark when printing document;Optionally, of the invention In embodiment, user inputs attribute information by the interface UI or client, and server receives attribute information time, can be directed to selection Target device (can also pre-select).
For a target device, server obtains the system file of the equipment, and searches system file and summarize for controlling The preset interface function of printing;By taking the target device of windows operating system as an example, in system file, gdi32.dll file Internal interface function EndPage be used to control printing interface breathe out number;Specifically, gdi32.dll is for drawing image With display text;EndPage is the printing for completing a page, and prepares device context, to print next page Function.
In EndPage, the context handle for obtaining target device is drawn, and device context is entire window, packet Include title bar, menu, scroll bar, toolbar etc..
Generation module 303 generates target interface letter for the attribute information to be added in the preset interface function Number.
Wherein, it by the corresponding parameter of the attribute letter information, is added in the preset interface function, according to preset volume Mode is translated, target interface function is generated.
Sending module 304, for the target interface function to be sent to the target device, and to the target device Send the instruction information for executing the target interface function.
Wherein, target interface function is sent to target device by server, and sends instruction information;Target device is held The row target interface function;In this way, target watermark is added in the system file of target device, so that target device is being beaten When printed text shelves, target watermark is added on the document printed automatically.
Optionally, in the embodiment of the present invention, the type of watermark includes:Text watermark, dot matrix watermark, picture watermark and/ Or two-dimentional code watermark.
Optionally, in the embodiment of the present invention, when the type of watermark is text watermark, the attribute information is at least wrapped It includes:Word content and format parameter;
The generation module 303 includes:
First generates submodule, raw for the word content, format parameter to be added in the first preset interface function At target interface function;The first preset interface function is preset interface function corresponding with the text watermark.
Optionally, in the embodiment of the present invention, when the type of watermark is dot matrix watermark, the attribute information is at least wrapped It includes:The location parameter and color parameter of each pixel in dot matrix;
The generation module 303 includes:
Second generates submodule, for the location parameter of each pixel in the dot matrix and color parameter to be added to In second preset interface function, target interface function is generated;The second preset interface function is corresponding with the dot matrix watermark Preset interface function.
Optionally, in the embodiment of the present invention, when the type of watermark is picture watermark, the attribute information is at least wrapped It includes:The first bitmap that picture by replicating the target watermark obtains;
The generation module 303 includes:
Third generates submodule, for first bitmap to be added in third preset interface function, generates target and connects Mouth function;The third preset interface function is preset interface function corresponding with the picture watermark.
Optionally, in the embodiment of the present invention, when the type of watermark is two-dimentional code watermark, the attribute information is at least wrapped It includes:The generation parameter of the corresponding two dimensional code of the target watermark;
The generation module 303 includes:
4th generates submodule, for generating the second bitmap of the two dimensional code of target watermark according to the generation parameter;
Second bitmap is added in the 4th preset interface function, target interface function is generated;Described 4th is default Interface function is preset interface function corresponding with the two dimension code watermark.
Optionally, in the embodiment of the present invention, the sending module 304 includes:
Submodule is encrypted, for according to predetermined encryption mode, to being sent to the mesh after the target interface function encrypting Marking device.
In the above embodiment of the present invention, the parameter information of target watermark is received by receiving module 301, obtains module 302 In the system file for obtaining target device, corresponding with the type of watermark, control printing preset interface function;Generation module 303 are added to the attribute information in the preset interface function, generate target interface function;Sending module 304 will be described Target interface function is sent to the target device, and the instruction for executing the target interface function is sent to the target device Information, by the preset interface function of user's control printing in change target device system file, so that target device printing text When shelves, target watermark is added for document automatically.Wherein, parameter information includes at least the type of watermark and category of the target watermark Property information, and parameter information can realize uniqueness, customizability;In the embodiment of the present invention, the process for setting watermark is simple, is not necessarily to Watermark is individually added for each printing document;The system file for directly modifying target device generates watermark picture etc. without executing Process.
Fig. 4 shows the structural schematic diagram of a kind of electronic equipment of further embodiment of this invention offer.
Referring to fig. 4, electronic equipment provided in an embodiment of the present invention, the electronic equipment include memory (memory) 41, Processor (processor) 42, bus 43 and it is stored in the computer program that can be run on memory 41 and on a processor. Wherein, the memory 41, processor 42 complete mutual communication by the bus 43.
The processor 42 is used to call the program instruction in the memory 41, realizes when executing described program as schemed 1 method.
In another embodiment, following method is realized when the processor executes described program:
Receive target watermark parameter information, the parameter information include at least the target watermark type of watermark and Attribute information;
In the system file for obtaining target device, corresponding with the type of watermark, control printing preset interface function;
The attribute information is added in the preset interface function, target interface function is generated;
The target interface function is sent to the target device, and is sent to the target device and executes the target The instruction information of interface function.
Electronic equipment provided in an embodiment of the present invention can be used for executing the corresponding program of method of above method embodiment, This implementation repeats no more.
Electronic equipment provided in an embodiment of the present invention obtains target device by receiving the parameter information of target watermark In system file, corresponding with the type of watermark, control printing preset interface function;The attribute information is added to institute It states in preset interface function, generates target interface function;The target interface function is sent to the target device, and to institute It states target device and sends the instruction information for executing the target interface function, controlled by user in change target device system file The preset interface function of printing is made, when so that target device printing document, adds target watermark automatically for document.Wherein, parameter Information includes at least the type of watermark and attribute information of the target watermark, and parameter information can realize uniqueness, may customize Property;In the embodiment of the present invention, the process for setting watermark is simple, without individually adding watermark for each printing document;Directly modify The system file of target device generates the processes such as watermark picture without executing.
A kind of non-transient computer readable storage medium that further embodiment of this invention provides, the non-transient computer can It reads to be stored with computer program on storage medium, realize when described program is executed by processor such as the step of Fig. 1.
In another embodiment, following method is realized when described program is executed by processor:
Receive target watermark parameter information, the parameter information include at least the target watermark type of watermark and Attribute information;
In the system file for obtaining target device, corresponding with the type of watermark, control printing preset interface function;
The attribute information is added in the preset interface function, target interface function is generated;
The target interface function is sent to the target device, and is sent to the target device and executes the target The instruction information of interface function.
Non-transient computer readable storage medium provided in an embodiment of the present invention, realization when described program is executed by processor The method of above method embodiment, this implementation repeat no more.
Non-transient computer readable storage medium provided in an embodiment of the present invention, the parameter by receiving target watermark are believed Breath, obtains in the system file of target device, corresponding with the type of watermark, control printing preset interface function;By institute It states attribute information to be added in the preset interface function, generates target interface function;The target interface function is sent to The target device, and the instruction information for executing the target interface function is sent to the target device, by changing target The preset interface function that user's control prints in device systems file adds automatically for document when so that target device printing document Add target watermark.Wherein, parameter information includes at least the type of watermark and attribute information of the target watermark, and parameter information Uniqueness, customizability can be achieved;In the embodiment of the present invention, the process for setting watermark is simple, without being each printing document list Solely addition watermark;The system file for directly modifying target device generates the processes such as watermark picture without executing.
Further embodiment of this invention discloses a kind of computer program product, and the computer program product is non-including being stored in Computer program in transitory computer readable storage medium, the computer program include program instruction, when described program refers to When order is computer-executed, computer is able to carry out method provided by above-mentioned each method embodiment, for example including:
Receive target watermark parameter information, the parameter information include at least the target watermark type of watermark and Attribute information;
In the system file for obtaining target device, corresponding with the type of watermark, control printing preset interface function;
The attribute information is added in the preset interface function, target interface function is generated;
The target interface function is sent to the target device, and is sent to the target device and executes the target The instruction information of interface function.
The apparatus embodiments described above are merely exemplary, wherein described, unit can as illustrated by the separation member It is physically separated with being or may not be, component shown as a unit may or may not be physics list Member, it can it is in one place, or may be distributed over multiple network units.It can be selected according to the actual needs In some or all of the modules achieve the purpose of the solution of this embodiment.Those of ordinary skill in the art are not paying creativeness Labour in the case where, it can understand and implement.
Through the above description of the embodiments, those skilled in the art can be understood that each embodiment can It realizes by means of software and necessary general hardware platform, naturally it is also possible to pass through hardware.Based on this understanding, on Stating technical solution, substantially the part that contributes to existing technology can be embodied in the form of software products in other words, should Computer software product may be stored in a computer readable storage medium, such as ROM/RAM, magnetic disk, CD, including several fingers It enables and using so that a computer equipment (can be personal computer, server or the network equipment etc.) executes each implementation Method described in certain parts of example or embodiment.
Finally it should be noted that:The above embodiments are merely illustrative of the technical solutions of the present invention, rather than its limitations;Although Present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that:It still may be used To modify the technical solutions described in the foregoing embodiments or equivalent replacement of some of the technical features; And these are modified or replaceed, technical solution of various embodiments of the present invention that it does not separate the essence of the corresponding technical solution spirit and Range.

Claims (10)

1. a kind of watermark adding method is applied to server, which is characterized in that the method includes:
The parameter information of target watermark is received, the parameter information includes at least the type of watermark and attribute of the target watermark Information;
In the system file for obtaining target device, corresponding with the type of watermark, control printing preset interface function;
The attribute information is added in the preset interface function, target interface function is generated;
The target interface function is sent to the target device, and is sent to the target device and executes the target interface The instruction information of function.
2. the method according to claim 1, wherein the type of watermark includes:Text watermark, dot matrix watermark, Picture watermark and/or two-dimentional code watermark.
3. according to the method described in claim 2, it is characterized in that, when the type of watermark be text watermark when, the attribute Information includes at least:Word content and format parameter;
It is described that the attribute information is added in the preset interface function, generate target interface function the step of, including:
The word content, format parameter are added in the first preset interface function, target interface function is generated;Described first Preset interface function is preset interface function corresponding with the text watermark.
4. according to the method described in claim 2, it is characterized in that, when the type of watermark be dot matrix watermark when, the attribute Information includes at least:The location parameter and color parameter of each pixel in dot matrix;
It is described that the attribute information is added in the preset interface function, generate target interface function the step of, including:
The location parameter of each pixel in the dot matrix and color parameter are added in the second preset interface function, generated Target interface function;The second preset interface function is preset interface function corresponding with the dot matrix watermark.
5. according to the method described in claim 2, it is characterized in that, when the type of watermark be picture watermark when, the attribute Information includes at least:The first bitmap that picture by replicating the target watermark obtains;
It is described that the attribute information is added in the preset interface function, generate target interface function the step of, including:
First bitmap is added in third preset interface function, target interface function is generated;The third preset interface Function is preset interface function corresponding with the picture watermark.
6. according to the method described in claim 2, it is characterized in that, when the type of watermark is two-dimentional code watermark, the category Property information includes at least:The generation parameter of the corresponding two dimensional code of the target watermark;
It is described that the attribute information is added in the preset interface function, generate target interface function the step of, including:
According to the generation parameter, the second bitmap of the two dimensional code of target watermark is generated;
Second bitmap is added in the 4th preset interface function, target interface function is generated;4th preset interface Function is preset interface function corresponding with the two dimension code watermark.
7. the method according to claim 1, wherein described be sent to the target for the target interface function The step of equipment, including:
According to predetermined encryption mode, to being sent to the target device after the target interface function encrypting.
8. a kind of watermark adding set, it is applied to server, which is characterized in that described device includes:
Receiving module, for receiving the parameter information of target watermark, the parameter information includes at least the water of the target watermark Print type and attribute information;
Module is obtained, it is corresponding with the type of watermark, control printing default in the system file for obtaining target device Interface function;
Generation module generates target interface function for the attribute information to be added in the preset interface function;
Sending module for the target interface function to be sent to the target device, and is held to target device transmission The instruction information of the row target interface function.
9. a kind of electronic equipment, which is characterized in that on a memory and can be including memory, processor, bus and storage The computer program run on processor, the processor are realized when executing described program such as any one of claims 1 to 7 institute The step in watermark adding method stated.
10. a kind of non-transient computer readable storage medium, is stored thereon with computer program, it is characterised in that:Described program The step in the watermark adding method as described in any one of claims 1 to 7 is realized when being executed by processor.
CN201810619771.7A 2018-06-15 2018-06-15 Watermark adding method and device Active CN108875323B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810619771.7A CN108875323B (en) 2018-06-15 2018-06-15 Watermark adding method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810619771.7A CN108875323B (en) 2018-06-15 2018-06-15 Watermark adding method and device

Publications (2)

Publication Number Publication Date
CN108875323A true CN108875323A (en) 2018-11-23
CN108875323B CN108875323B (en) 2020-06-23

Family

ID=64338960

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810619771.7A Active CN108875323B (en) 2018-06-15 2018-06-15 Watermark adding method and device

Country Status (1)

Country Link
CN (1) CN108875323B (en)

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109635525A (en) * 2018-12-11 2019-04-16 上海智臻智能网络科技股份有限公司 Adding method, device, equipment and the storage medium of watermark
CN109784011A (en) * 2018-12-24 2019-05-21 北京奇安信科技有限公司 Watermark generation method and device
CN110362971A (en) * 2019-06-11 2019-10-22 杭州电子科技大学 A kind of screen watermark display methods of content-adaptive
CN111191414A (en) * 2019-11-11 2020-05-22 苏州亿歌网络科技有限公司 Page watermark generation method, identification method, device, equipment and storage medium
CN111340676A (en) * 2020-02-17 2020-06-26 北京北信源软件股份有限公司 Image watermark embedding method, image watermark identification method, image watermark embedding device, image watermark identification device and electronic equipment
CN111680340A (en) * 2020-05-28 2020-09-18 上海上咨工程造价咨询有限公司 Building material price information pushing method, system and device and storage medium thereof
CN111783762A (en) * 2020-06-30 2020-10-16 联想(北京)有限公司 Processing method and device
CN112000303A (en) * 2020-08-26 2020-11-27 杭州网易再顾科技有限公司 Processing method and device capable of realizing watermark printing, electronic equipment and storage medium
CN112417390A (en) * 2020-12-03 2021-02-26 北京指掌易科技有限公司 File processing method, device, equipment and storage medium
CN112464177A (en) * 2019-09-06 2021-03-09 成都鼎桥通信技术有限公司 Watermark full-coverage method and device

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101089807A (en) * 2006-06-16 2007-12-19 光宝科技股份有限公司 Printing method and device for floating print
US20130170695A1 (en) * 2010-08-27 2013-07-04 Fujitsu Limited Digital watermark embedding apparatus, digital watermark embedding method, and digital watermark detection apparatus
CN104361265A (en) * 2014-10-28 2015-02-18 深圳市大成天下信息技术有限公司 Document protection method, device and system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101089807A (en) * 2006-06-16 2007-12-19 光宝科技股份有限公司 Printing method and device for floating print
US20130170695A1 (en) * 2010-08-27 2013-07-04 Fujitsu Limited Digital watermark embedding apparatus, digital watermark embedding method, and digital watermark detection apparatus
CN104361265A (en) * 2014-10-28 2015-02-18 深圳市大成天下信息技术有限公司 Document protection method, device and system

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
严健武: "使用Alpha-Blending技术实现图片水印效果", 《现代计算机(专业版)》 *

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109635525A (en) * 2018-12-11 2019-04-16 上海智臻智能网络科技股份有限公司 Adding method, device, equipment and the storage medium of watermark
CN109784011A (en) * 2018-12-24 2019-05-21 北京奇安信科技有限公司 Watermark generation method and device
CN110362971A (en) * 2019-06-11 2019-10-22 杭州电子科技大学 A kind of screen watermark display methods of content-adaptive
CN112464177A (en) * 2019-09-06 2021-03-09 成都鼎桥通信技术有限公司 Watermark full-coverage method and device
CN112464177B (en) * 2019-09-06 2023-10-17 成都鼎桥通信技术有限公司 Watermark full-coverage method and device
CN111191414A (en) * 2019-11-11 2020-05-22 苏州亿歌网络科技有限公司 Page watermark generation method, identification method, device, equipment and storage medium
CN111340676A (en) * 2020-02-17 2020-06-26 北京北信源软件股份有限公司 Image watermark embedding method, image watermark identification method, image watermark embedding device, image watermark identification device and electronic equipment
CN111680340A (en) * 2020-05-28 2020-09-18 上海上咨工程造价咨询有限公司 Building material price information pushing method, system and device and storage medium thereof
CN111680340B (en) * 2020-05-28 2022-08-23 上海上咨工程造价咨询有限公司 Building material price information pushing method, system and device and storage medium thereof
CN111783762A (en) * 2020-06-30 2020-10-16 联想(北京)有限公司 Processing method and device
CN112000303A (en) * 2020-08-26 2020-11-27 杭州网易再顾科技有限公司 Processing method and device capable of realizing watermark printing, electronic equipment and storage medium
CN112417390A (en) * 2020-12-03 2021-02-26 北京指掌易科技有限公司 File processing method, device, equipment and storage medium

Also Published As

Publication number Publication date
CN108875323B (en) 2020-06-23

Similar Documents

Publication Publication Date Title
CN108875323A (en) watermark adding method and device
US20130215474A1 (en) System and Method for Printing Documents Containing Dynamically Generated Security Features
CN101365588B (en) Systems and methods for printing artwork containing overlapped inks
US8891097B2 (en) Image processing apparatus, image processing system, and control method executing processing according to process definition file
JP4917104B2 (en) System and method for printing artwork including transparency
CN101408836B (en) Print implementing method
JP2003303088A (en) N-up printing method and system
CN106528006A (en) Page printing method and device
JP6478676B2 (en) Image forming apparatus, information processing method, and program
US8863036B2 (en) Information processing apparatus, display control method, and storage medium
CN102576297A (en) Preview of a document with printable components at a printing device based on its printing capability
JPWO2014106882A1 (en) Device control system, printing apparatus, and device control system control method
US20070291319A1 (en) System and method of printing a watermark
CN109445726A (en) A kind of printing equipment and Method of printing of multi-direction rotation editor printing content
US9535635B2 (en) Carrier images
US10802767B2 (en) Printer and non-transitory computer readable storage medium with shared review function
JP2005135390A (en) Electronic file printing system and electronic file printing method
US20140029025A1 (en) Print job preview
CN106055193A (en) Method and system for photo downloading
CN106227475A (en) Print system and method thereof
US8270761B2 (en) Method and system for displaying images
US10642556B2 (en) Image forming apparatus capable of communicating with a modality
CN104394291B (en) Endorsement scanner uni content input fixed point Method of printing based on integrating scanning and printing machine
EP2852142B1 (en) Printing control apparatus and program
JP5600960B2 (en) Host computer, print data generation 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
GR01 Patent grant
GR01 Patent grant
CP03 Change of name, title or address

Address after: Room 2298, Yingying building, No.99, Tuanjie Road, yanchuangyuan, Jiangbei new district, Nanjing, Jiangsu Province

Patentee after: Beixinyuan system integration Co., Ltd

Address before: 210000 Rui Yun Road, Jiangpu street, Pukou District, Nanjing, Jiangsu Province, No. 3

Patentee before: JIANGSU SHENZHOU XINYUAN SYSTEM ENGINEERING Co.,Ltd.

CP03 Change of name, title or address