CN109388352A - Print water mark method and system - Google Patents
Print water mark method and system Download PDFInfo
- Publication number
- CN109388352A CN109388352A CN201711001186.2A CN201711001186A CN109388352A CN 109388352 A CN109388352 A CN 109388352A CN 201711001186 A CN201711001186 A CN 201711001186A CN 109388352 A CN109388352 A CN 109388352A
- Authority
- CN
- China
- Prior art keywords
- watermark
- printing
- configuration information
- picture
- page
- 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
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input 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/12—Digital output to print unit, e.g. line printer, chain printer
- G06F3/1201—Dedicated interfaces to print systems
- G06F3/1202—Dedicated interfaces to print systems specifically adapted to achieve a particular effect
- G06F3/1203—Improving or facilitating administration, e.g. print management
- G06F3/1206—Improving or facilitating administration, e.g. print management resulting in increased flexibility in input data format or job format or job type
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input 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/12—Digital output to print unit, e.g. line printer, chain printer
- G06F3/1201—Dedicated interfaces to print systems
- G06F3/1202—Dedicated interfaces to print systems specifically adapted to achieve a particular effect
- G06F3/1203—Improving or facilitating administration, e.g. print management
- G06F3/1205—Improving or facilitating administration, e.g. print management resulting in increased flexibility in print job configuration, e.g. job settings, print requirements, job tickets
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T1/00—General purpose image data processing
- G06T1/0021—Image watermarking
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Human Computer Interaction (AREA)
- General Engineering & Computer Science (AREA)
- Editing Of Facsimile Originals (AREA)
Abstract
The invention discloses a kind of printing water mark methods can significantly improve printing watermark efficiency, and versatility is high, and realizes printing watermark unified management.The described method includes: obtaining watermark configuration information when application triggers printing operation;According to the watermark configuration information, watermark picture is generated;Before page print terminates, watermark picture and the single page content synchronization are printed.A kind of printing watermaking system is provided simultaneously, which includes that system includes: monitoring printing module, watermark generation module, printing watermark module.Since this technology does not need to obtain and replicate the particular content information printed, efficiency is significantly higher, does not interfere with print speed, and can use a unified electronic document watermark picture of acquisition by unified printing configuration, further increase efficiency.It does not need for watermark content to be integrated into type information simultaneously, therefore versatility is higher.
Description
Technical field
The present invention relates to the method for adding watermark in information security field more particularly to a kind of pair of paper mimeograph documents and it is
System.
Background technique
It is a kind of means of information protection generally used that watermark is added in printed paper item file.But in electronic document editor
Addition watermark information has certain operation difficulty in the process, and cannot achieve the watermark letter for different type electronic document
The batch setting of breath and unified management, marketing work efficiency, while will also result in the careless omission of information security management.In the prior art
The technical solution for realizing printing watermark is mainly the type information by getting document, adds in type information and hides printing
Information, to add printing watermark.The major defect for changing scheme is to obtain the duplication of document print information Step, and can stop
Type information is sent to printer to keep print speed slack-off.Another common method is to convert electronic document to emf text
Part carries out watermark addition again.But can not be general for different types of electronic document conversion emf technology, cause the technology
Versatility is insufficient, and limitation is big.In short, above two printing digital watermark, is all difficult to high efficiency, mass and high pass and uses
Property, the difficult of watermark information safety system is printed based on prior art exploitation.
Summary of the invention
In view of this, stamping ink can be significantly improved the embodiment of the invention provides a kind of printing water mark method and system
Efficiency is printed, versatility is high, and realizes printing watermark unified management.
A kind of printing water mark method provided according to embodiments of the present invention, which comprises when application triggers are beaten
When print acts, watermark configuration information is obtained;According to the watermark configuration information, watermark picture is generated;Terminate in page print
Before, watermark picture and the single page content synchronization are printed.
Preferably, when application triggers printing operation, the step of obtaining watermark configuration information, comprising: monitoring
Endpage function is turned by hook interception to watermark processing function in application call endpage function;According to answering
With the printing configuration information of program, corresponding watermark configuration information is obtained.
Preferably, before page print terminates, after the step of watermark picture and single page content synchronization printing, packet
It includes: if do not printed there are also the page, being turned by hook interception to watermark processing letter in application call endpage function
Number;Judge whether this printing is unified printing configuration, if then directly acquiring the watermark picture of a single page, if otherwise basis
The printing configuration information of application program reacquires corresponding watermark configuration information.
Preferably, the printing configuration information of the application program includes application program printing type, processing user, IP
Location, company name, computer name, paper size one of them or multinomial combination.
Preferably, the watermark configuration information includes watermark text, watermark picture, watermark location, watermark effect.
Preferably, before page print terminates, the step of watermark picture and the single page content synchronization are printed, comprising:
Call graphical device interface that watermark picture is added to printer page;Endpage function is called to terminate page print.
The embodiment of the present invention provides a kind of printing watermaking system simultaneously, the system comprises: monitoring printing module, for supervising
Control application program printing operation;Watermark configuration module, for obtaining when monitoring module monitors application triggers printing operation
Take corresponding watermark configuration information;Watermark generation module, the watermark configuration information for being obtained according to watermark configuration module generate
Watermark picture;Watermark module is printed, the watermark picture and the list for before page print terminates, watermark generation module to be generated
Page content synchronization printing.
Preferably, the monitoring module includes: interception unit, for monitoring endpage function, in application call
It is turned by hook interception to watermark processing function when endpage function;Acquiring unit is configured, is matched according to the printing of application program
Confidence breath, obtains corresponding watermark configuration information.
Preferably, the configuration acquiring unit, judges whether this printing is unified printing configuration, if then directly obtaining
The watermark picture of a single page is taken, if otherwise reacquiring corresponding watermark configuration according to the printing configuration information of application program
Information.
Preferably, watermark picture is added to printer page by the printing watermark module calling figure shape equipment interface, adjust
Terminate page print with endpage function.
In the embodiment of the present invention, when application program needs the meeting of printing recursive call system function startpage and endpage
Function carrys out print paper, and endpage function is called to complete a paper printing.It is intercepted in this programme using hook
Who is won to be printed upon in printing content and realizes information protection by endpage function before application call endpage function
Effect.Since this technology does not need to obtain and replicate the particular content information printed, efficiency is significantly higher, does not interfere with
Print speed, and can use unified electronic document by unified printing configuration and obtain a watermark picture, further increase
Efficiency.It does not need for watermark content to be integrated into type information simultaneously, therefore versatility is higher.
Detailed description of the invention
Fig. 1 is the flow chart for the printing water mark method that the embodiment of the present invention 1 provides.
Fig. 2 is the flow chart for the printing water mark method that the embodiment of the present invention 2 provides.
Fig. 3 is the flow chart for the printing water mark method that the embodiment of the present invention 3 provides.
Fig. 4 is the flow chart for the printing watermaking system that the embodiment of the present invention 4 provides.
Fig. 5 is the flow chart for the printing watermaking system that the embodiment of the present invention 5 provides.
Specific embodiment
The present invention is described further with reference to the accompanying drawings and detailed description.
Embodiment 1:
As shown in Figure 1, a kind of printing water mark method that inventive embodiments provide, which comprises
S101 obtains watermark configuration information when application triggers printing operation.
The step intercepts endpage function particular by hook and realizes for application program printing operation in the present embodiment
Monitoring and interception.When application program needs the meeting of printing recursive call system function startpage and endpage function to print
Paper calls endpage function to complete a paper printing.
The watermark configuration information is to be obtained according to preset watermark configuration strategy from server-side, is configured according to printing
Information searching is to corresponding watermark configuration information.
The printing configuration information of the application program includes application program printing type, processing user, IP address, company
Name, computer name, paper size one of them or multinomial combination.Watermark configuration information includes watermark text, watermark picture, water
Print position, watermark effect.
Since horizontal arrangement information is obtained from server-side, it can accomplish the unified management of horizontal content.
S102 generates watermark picture according to the watermark configuration information.
S103 prints watermark picture and the single page content synchronization before page print terminates.
The step calls graphical device interface GDI that watermark picture is added to printer page in the present embodiment;It recalls
Endpage function terminates page print.Because application program is that endpage function is called to complete a paper printing.
Before calling endpage, translucent watermark is printed to reach the printing leakage-preventing effect of content above printing content.
Printing water mark method in the present embodiment is the operation that application call endpage function is intercepted by hook,
To which before it calls endpage, corresponding watermark picture and printing content synchronization are printed upon on paper.Do not need duplication and
It obtains the specifying information of printing content therefore efficiency is significantly higher, do not interfere with print speed.Not needing simultaneously will be in watermark
Appearance is integrated into type information and is converted to emf document, and versatility is higher.
Embodiment 2:
As shown in Fig. 2, a kind of printing water mark method that inventive embodiments provide, which comprises
S201 monitors endpage function, is turned by hook interception to watermark in application call endpage function
Handle function.
When application program need to print can recursive call system function startpage and endpage function carry out print paper,
Endpage function is called to complete a paper printing.Endpage function is intercepted by hook to realize for application program
The monitoring and interception of printing operation.Endpage function will not be temporarily run after hook interception, but jumps to watermark processing letter
Number carries out corresponding horizontal arrangement operation.
S202 obtains corresponding watermark configuration information according to the printing configuration information of application program.
The watermark configuration information is to be obtained according to preset watermark configuration strategy from server-side, is configured according to printing
Information searching is to corresponding watermark configuration information.
The printing configuration information of the application program includes application program printing type, processing user, IP address, company
Name, computer name, paper size one of them or multinomial combination.Watermark configuration information includes watermark text, watermark picture, water
Print position, watermark effect.
S203 generates watermark picture according to the watermark configuration information.
In conjunction with configuration informations such as print paper size, printing type, positions, corresponding horizontal picture is generated, in subsequent step
Watermark is printed upon on paper with graphic form in rapid.For example server-side can choose full frame watermark, no matter print in this way
Paper is much, and paper can be completely covered in watermark.
S204 calls graphical device interface that watermark picture is added to printer page.
Graphical device interface (GDI:Graphics Device Interface), its main task be responsible for system with
Information exchange between mapping program handles the images outputting of all Windows programs.Woth no need to be concerned about hardware device and equipment
Driving, so that it may convert the output on hardware device for the output of application program.
S205 calls endpage function to terminate page print.
Endpage function is re-called, the page can be completed by printing content and watermark picture isochronous printing to paper
Print job.
When printing pages content, application program can frequently call endpage function, call endpage function every time
When, all can from S201 to S205 step circulation, realize printing watermark purpose.
In the present embodiment is the operation that application call endpage function is intercepted by hook, thus in its calling
Before endpage, corresponding watermark picture and printing content synchronization are printed upon on paper.It does not need to replicate and obtain printing content
Specifying information therefore efficiency it is significantly higher, do not interfere with print speed.It does not need for watermark content to be integrated into printing simultaneously
Information is converted to emf document, and versatility is higher.Watermark content is configured according to server-side to be realized unified management and forces to add.
Embodiment 3:
As shown in figure 3, a kind of printing water mark method that inventive embodiments provide, which comprises
S301 monitors endpage function, is turned by hook interception to watermark in application call endpage function
Handle function.
When application program need to print can recursive call system function startpage and endpage function carry out print paper,
Endpage function is called to complete a paper printing.Endpage function is intercepted by hook to realize for application program
The monitoring and interception of printing operation.Endpage function will not be temporarily run after hook interception, but jumps to watermark processing letter
Number carries out corresponding horizontal arrangement operation.
S302 judges whether it is unified printing configuration, if then going to step S308, if otherwise going to step S303.
S303 obtains corresponding watermark configuration information according to the printing configuration information of application program.
S304 generates watermark picture according to the watermark configuration information.
S305 calls graphical device interface that watermark picture is added to printer page.
S306 calls endpage function to terminate page print.
S307 judges whether not print there are also the page, if jumping to S301, if otherwise jumping to end printing.
S308 directly acquires the watermark picture of a single page.
For the money of asking of multi-page printing, unified printing configure lower every page printing watermark be all it is duplicate therefore, can be with
The watermark picture of a unit is called directly, and skips the step of obtaining horizontal arrangement information and generating watermark picture, is mentioned more greatly
Rise working efficiency.The Organization of African Unity one is printed and is configured, is i.e. all different situation of watermark of every page printing, can be intercepted by HOOK
When endpage function, primary configuration is reacquired, the watermark information of printing every page is carried out further according to configuration.
Embodiment 4:
As shown in figure 4, a kind of printing watermaking system provided in an embodiment of the present invention, which includes monitoring printing module
11, watermark generation module 12 and printing watermark module 13.
Monitoring printing module 11, in application triggers printing operation, is obtained for monitoring application program printing operation
Corresponding watermark configuration information.The realization of endpage function is intercepted for the prison of application program printing operation particular by hook
Control and interception.When application program needs the meeting of printing recursive call system function startpage and endpage function to carry out printing paper
, call endpage function to complete a paper printing.
The watermark configuration information is to be obtained according to preset watermark configuration strategy from server-side, is configured according to printing
Information searching is to corresponding watermark configuration information.
The printing configuration information of the application program includes application program printing type, processing user, IP address, company
Name, computer name, paper size one of them or multinomial combination.Watermark configuration information includes watermark text, watermark picture, water
Print position, watermark effect.
Since horizontal arrangement information is obtained from server-side, it can accomplish the unified management of horizontal content.
Watermark generation module 12, the watermark configuration information for being obtained according to watermark configuration module generate watermark picture.
Watermark module 13 is printed, for by the watermark picture of watermark generation module generation and being somebody's turn to do before page print terminates
The printing of single page content synchronization.
Watermark picture is added to printer page particular by calling graphical device interface GDI;Recall endpage letter
Number terminates page print.Because application program is that endpage function is called to complete a paper printing.It is calling
Before endpage, translucent watermark is printed to reach the printing leakage-preventing effect of content above printing content.
Printing watermaking system in the present embodiment is the operation that application call endpage function is intercepted by hook,
To which before it calls endpage, corresponding watermark picture and printing content synchronization are printed upon on paper.Do not need duplication and
It obtains the specifying information of printing content therefore efficiency is significantly higher, do not interfere with print speed.Not needing simultaneously will be in watermark
Appearance is integrated into type information and is converted to emf document, and versatility is higher.
Embodiment 5:
As shown in figure 4, a kind of printing watermaking system provided in an embodiment of the present invention, which includes monitoring printing mould
Block, watermark generation module 23 and printing watermark module 24.On the basis of embodiment 4, monitoring printing module packet in the present embodiment
Include interception unit 21 and configuration acquiring unit 22.
Interception unit 21 is blocked in application call endpage function by hook for monitoring endpage function
It cuts and turns to watermark processing function.When application program needs the meeting of printing recursive call system function startpage and endpage letter
Number carrys out print paper, and endpage function is called to complete a paper printing.Therefore can by hook for
Endpage function is monitored and intercepts the purpose for playing monitoring application program printing operation.
It configures acquiring unit 22 and corresponding watermark configuration information is obtained according to the printing configuration information of application program.
The printing configuration information of the application program includes application program printing type, processing user, IP address, company
Name, computer name, paper size one of them or multinomial combination.Watermark configuration information includes watermark text, watermark picture, water
Print position, watermark effect.
The configuration acquiring unit 22 judges whether this printing is unified printing configuration, if then directly acquiring one
The watermark picture of single page, if otherwise reacquiring corresponding watermark configuration information according to the printing configuration information of application program.
The watermark printing module 24 calls graphical device interface that watermark picture is added to printer page, calls
Endpage function terminates page print.
For the money of asking of multi-page printing, unified printing configure lower every page printing watermark be all it is duplicate therefore, can be with
The watermark picture of a unit is called directly, and skips the step of obtaining horizontal arrangement information and generating watermark picture, is mentioned more greatly
Rise working efficiency.The Organization of African Unity one is printed and is configured, is i.e. all different situation of watermark of every page printing, can be intercepted by HOOK
When endpage function, primary configuration is reacquired, the watermark information of printing every page is carried out further according to configuration.
Claims (10)
1. a kind of printing water mark method, characterized in that the described method includes:
When application triggers printing operation, watermark configuration information is obtained;
According to the watermark configuration information, watermark picture is generated;
Before page print terminates, watermark picture and the single page content synchronization are printed.
2. printing water mark method according to claim 1, characterized in that when application triggers printing operation, obtain
The step of watermark configuration information, comprising:
Endpage function is monitored, is turned by hook interception to watermark processing letter in application call endpage function
Number;
According to the printing configuration information of application program, corresponding watermark configuration information is obtained.
3. printing water mark method according to claim 1, characterized in that before page print terminates, by watermark picture and
After the step of single page content synchronization prints, comprising:
If do not printed there are also the page, turned by hook interception to watermark processing in application call endpage function
Function;
Judge whether this printing is unified printing configuration, if then directly acquiring the watermark picture of a single page, if otherwise root
According to the printing configuration information of application program, corresponding watermark configuration information is reacquired.
4. printing water mark method according to claim 1 or 2, characterized in that the printing configuration information of the application program
Including application program printing type, processing user, IP address, company name, computer name, paper size one of them or multinomial
Combination.
5. printing water mark method according to claim 1 or 2, characterized in that the watermark configuration information includes watermark text
Word, watermark picture, watermark location, watermark effect.
6. printing water mark method according to claim 1, characterized in that before page print terminates, by watermark picture and
The step of single page content synchronization prints, comprising:
Call graphical device interface that watermark picture is added to printer page;
Endpage function is called to terminate page print.
7. a kind of printing watermaking system, characterized in that the system comprises:
Monitoring printing module, in application triggers printing operation, obtains corresponding for monitoring application program printing operation
Watermark configuration information;
Watermark generation module, the watermark configuration information for being obtained according to watermark configuration module generate watermark picture;
Watermark printing module, for before page print terminates, in watermark picture and the single page that watermark generation module is generated
Hold isochronous printing.
8. printing watermaking system according to claim 7, characterized in that the monitoring module includes:
Interception unit is turned in application call endpage function by hook interception for monitoring endpage function
To watermark processing function;
It configures acquiring unit and corresponding watermark configuration information is obtained according to the printing configuration information of application program.
9. printing watermaking system according to claim 8, characterized in that the configuration acquiring unit judges this printing
It whether is unified printing configuration, if then directly acquiring the watermark picture of a single page, if otherwise according to the printing of application program
Configuration information reacquires corresponding watermark configuration information.
10. printing watermaking system according to claim 7, characterized in that the watermark printing module calls graphics device
Watermark picture is added to printer page by interface, and endpage function is called to terminate page print.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711001186.2A CN109388352A (en) | 2017-10-24 | 2017-10-24 | Print water mark method and system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711001186.2A CN109388352A (en) | 2017-10-24 | 2017-10-24 | Print water mark method and system |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109388352A true CN109388352A (en) | 2019-02-26 |
Family
ID=65417463
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201711001186.2A Pending CN109388352A (en) | 2017-10-24 | 2017-10-24 | Print water mark method and system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109388352A (en) |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20070291319A1 (en) * | 2006-06-16 | 2007-12-20 | Lite-On Technology Corporation | System and method of printing a watermark |
CN102866868A (en) * | 2012-09-07 | 2013-01-09 | 沈阳通用软件有限公司 | Method for realizing watermark print by using GDI (Graphics Device Interface) hooking technology |
CN103605487A (en) * | 2013-11-18 | 2014-02-26 | 江苏敏捷科技股份有限公司 | Method for transparently capturing print data |
CN104820962A (en) * | 2015-04-27 | 2015-08-05 | 北京北信源软件股份有限公司 | Method for generating and printing watermarks capable of replacing manual signatures |
-
2017
- 2017-10-24 CN CN201711001186.2A patent/CN109388352A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20070291319A1 (en) * | 2006-06-16 | 2007-12-20 | Lite-On Technology Corporation | System and method of printing a watermark |
CN102866868A (en) * | 2012-09-07 | 2013-01-09 | 沈阳通用软件有限公司 | Method for realizing watermark print by using GDI (Graphics Device Interface) hooking technology |
CN103605487A (en) * | 2013-11-18 | 2014-02-26 | 江苏敏捷科技股份有限公司 | Method for transparently capturing print data |
CN104820962A (en) * | 2015-04-27 | 2015-08-05 | 北京北信源软件股份有限公司 | Method for generating and printing watermarks capable of replacing manual signatures |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
ES2548171T3 (en) | Information processing apparatus, printing system and control procedure thereof | |
JP2006309351A5 (en) | ||
JP2006268837A5 (en) | ||
CN104461412A (en) | Method and system for printing specified area of web page | |
JP2006239946A5 (en) | ||
EP1696312A3 (en) | Document management software, print control device, and document management method of print control device | |
CN102855095A (en) | Printer printing content monitoring and auditing method based on windows printing pool | |
JP2009194563A5 (en) | Image processing apparatus, control method therefor, and program | |
JP2002082791A5 (en) | ||
CN109388352A (en) | Print water mark method and system | |
EP1217511A3 (en) | Print system, information processing apparatus and method, and computer-readable memory medium | |
JP2005190426A5 (en) | ||
JP2004078595A5 (en) | ||
JP2001088405A (en) | Printing control method, memory medium storing program thereof, printer control device and printer system | |
JP2004062243A (en) | Client server system, client, server, computer unit, and method and program for preparing print image | |
JP2010206682A (en) | Image processing system and language-switching program | |
CN108255441A (en) | File printing method and its system in LAN based on Quick Response Code | |
JP2004050701A (en) | Printer system | |
CN110489065A (en) | A kind of batch images Method of printing based on Web | |
JP2004007052A (en) | Color converting device and color conversion program | |
JP2014029633A (en) | Information processing device and printing system | |
WO2004079562A3 (en) | Methods and apparatus for providing printing services by assigning a telephone number to a printer | |
JP2001265545A (en) | Print content confirmation support system and its control method | |
JP4200855B2 (en) | Image processing device | |
JP2004215311A5 (en) |
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 | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20190226 |