CN112417828A - Method for adding watermark label for domestic operating system - Google Patents

Method for adding watermark label for domestic operating system Download PDF

Info

Publication number
CN112417828A
CN112417828A CN202011457701.XA CN202011457701A CN112417828A CN 112417828 A CN112417828 A CN 112417828A CN 202011457701 A CN202011457701 A CN 202011457701A CN 112417828 A CN112417828 A CN 112417828A
Authority
CN
China
Prior art keywords
window
current
sub
target
watermark
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
CN202011457701.XA
Other languages
Chinese (zh)
Other versions
CN112417828B (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.)
Beijing North Source Software Co ltd
Original Assignee
Beijing North Source Software 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 Beijing North Source Software Co ltd filed Critical Beijing North Source Software Co ltd
Priority to CN202011457701.XA priority Critical patent/CN112417828B/en
Publication of CN112417828A publication Critical patent/CN112417828A/en
Application granted granted Critical
Publication of CN112417828B publication Critical patent/CN112417828B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/166Editing, e.g. inserting or deleting
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T1/00General purpose image data processing
    • G06T1/0021Image watermarking
    • G06T1/0042Fragile watermarking, e.g. so as to detect tampering

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Health & Medical Sciences (AREA)
  • Artificial Intelligence (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Computational Linguistics (AREA)
  • General Health & Medical Sciences (AREA)
  • General Engineering & Computer Science (AREA)
  • Editing Of Facsimile Originals (AREA)
  • Image Processing (AREA)

Abstract

The invention provides a method for adding a watermark label aiming at a domestic operating system, which comprises the following steps: binding a full path of a target file with a current window, and displaying the target file on the current window; binding a target watermark label with the current sub-window, wherein the current sub-window is positioned on the current window and is bound with the current window; and adding and displaying the target watermark label in the current sub-window. According to the method, the related information of the target file is read, the set picture and the related information are spliced, the current sub-window is drawn at the center of the top of the current window and used for displaying the target watermark label, and the target watermark label is finally displayed.

Description

Method for adding watermark label for domestic operating system
Technical Field
The invention relates to the technical field of computers, in particular to a method for adding a watermark label aiming at a domestic operating system.
Background
With the increase of domestic operating systems year by year, corresponding office documents under the domestic systems are gradually increased, and in order to better identify important information of the office documents, the watermark labels can well display the relevant important information of the documents. Common documents without watermark marks can cause more and more secret divulgence events, cause great loss to party administrative organs, military troops, enterprises and public institutions and possibly harm national security.
At present, watermarking technologies of PDF documents are almost used under the conditions of kylin, Galaxy kylin, Chinese Korea, depth systems and the like in a domestic system. Most employees contain documents that are compromised of sensitive content. To prevent this, to help other sources of leakage, etc., these documents are often watermarked with identifying information.
Such watermark presentation currently affects the reading and viewing of the operator and supports few file types.
Disclosure of Invention
The invention provides a method for adding a watermark label aiming at a domestic operating system, which is used for solving the defect that PDF watermark supports less file types in the prior art and realizing the purpose of supporting more file types to display watermarks.
The invention provides a method for adding a watermark label aiming at a domestic operating system, which comprises the following steps:
binding a full path of a target file with a current window, and displaying the target file on the current window;
binding a target watermark label with the current sub-window, wherein the current sub-window is positioned on the current window and is bound with the current window;
and adding and displaying the target watermark label in the current sub-window.
The invention provides a method for adding a watermark label aiming at a domestic operating system, which comprises the following steps before binding a target watermark label with the current sub-window:
drawing a plurality of sub-windows on the current window, and monitoring the switching change events of all the sub-windows;
and taking the sub-window with the latest switching change as the current sub-window.
The invention provides a method for adding a watermark label aiming at a domestic operating system, which comprises the following steps before binding a target watermark label with the current sub-window:
acquiring a plurality of watermark labels;
and taking the currently activated watermark label as the target watermark label.
The invention provides a method for adding a watermark label aiming at a domestic operating system, which further comprises the following steps:
monitoring the content of the target watermark label;
and if the target watermark label is changed, taking the changed target watermark label as the target watermark label.
According to the method for adding the watermark label to the domestic operating system, the full path of the target file is obtained through a hook technology.
The invention provides a method for adding watermark labels for a domestic operating system, wherein the method for drawing a plurality of sub-windows on a current window comprises the following steps:
drawing a plurality of sub-windows on the current window by an x11 technology.
The invention provides a method for adding a watermark label aiming at a domestic operating system, which further comprises the following steps:
the width, height and background color of each sub-window are set by x 11.
The invention also provides a system for adding watermark labels for the domestic operating system, which comprises the following steps:
the path module is used for binding the full path of the target file with the current window and displaying the target file on the current window;
a sub-window module, configured to bind a target watermark label to the current sub-window, where the current sub-window is located on the current window and the current sub-window is bound to the current window;
and the display module is used for adding and displaying the target watermark label in the current sub-window.
The invention also provides an electronic device, which comprises a memory, a processor and a computer program stored on the memory and capable of running on the processor, wherein the processor executes the program to realize the steps of the method for adding the watermark label to the domestic operating system.
The present invention also provides a non-transitory computer readable storage medium having stored thereon a computer program which, when executed by a processor, performs the steps of the method of watermarking a domestic operating system as described in any of the above.
The invention provides a method for adding watermark labels aiming at a domestic operating system, which is characterized in that related information of a target file is read, a current sub-window is drawn at the top center position of a current window for displaying the target watermark labels after the set picture and the related information are spliced, and finally the target watermark labels are displayed.
Drawings
In order to more clearly illustrate the technical solutions of the present invention or the prior art, the drawings needed for the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and those skilled in the art can also obtain other drawings according to the drawings without creative efforts.
FIG. 1 is a flowchart of a method for adding a watermark label to a homemade operating system according to the present invention;
FIG. 2 is a second flowchart of a method for adding a watermark label to a domestic operating system according to the present invention;
fig. 3 is a schematic structural diagram of a system for adding a watermark label to a domestic operating system according to the present invention;
fig. 4 is a schematic physical structure diagram of an electronic device provided in the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention clearer, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings, and it is obvious that the described embodiments are some, but not all embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
An embodiment of the present invention provides a method for adding a watermark label to a homemade operating system, as shown in fig. 1, the method includes:
the domestic operating systems in the embodiment of the invention refer to domestic operating systems such as the standard-winning kylin, the silver river kylin, the Chinese curdlan, the depth system and the like. And is not suitable for foreign operating systems.
110, binding the full path of the target file with the current window, and displaying the target file on the current window;
the target file is a file needing to be added with the watermark, and a full path of the target file is obtained, wherein the full path refers to an absolute position under a directory and directly reaches a target position, usually a path from a drive letter.
And binding the full path of the target file with the current window, and displaying the target file on the current window.
120, binding a target watermark label with the current sub-window, wherein the current sub-window is positioned on the current window and is bound with the current window;
and binding the target watermark label with the current sub-window, wherein the current sub-window refers to the sub-window which is currently in an activated state, and the current sub-window is bound with the current window, and the current sub-window is positioned on the current window.
And 130, adding and displaying the target watermark label in the current sub-window.
And adding the target watermark label in the current sub-window and displaying the target watermark label.
According to the embodiment of the invention, after the set target picture and the related information of the target file are spliced, the current sub-window area is drawn at the top center position of the current window to display the target watermark label, and finally the target watermark label is displayed, so that the aim of better displaying the target watermark label can be achieved.
In addition, the embodiment of the invention can support various types of file formats, such as: layout files, streaming files, music and video, etc.
Support for a variety of software, for example: wps, Yongzhong office, several departments, Fu Xin, etc.
The invention provides a method for adding watermark labels aiming at a domestic operating system, which is characterized in that related information of a target file is read, a current sub-window is drawn at the top center position of a current window for displaying the target watermark labels after the set picture and the related information are spliced, and finally the target watermark labels are displayed.
On the basis of the foregoing embodiment, preferably, before the binding the target watermark label with the current sub-window, the method further includes:
drawing a plurality of sub-windows on the current window, and monitoring the switching change events of all the sub-windows;
and taking the sub-window with the latest switching change as the current sub-window.
Specifically, a plurality of sub-windows are drawn on the current window, and switching change events of all the sub-windows are monitored, wherein the switching change event refers to switching from one sub-window to another sub-window, and when the sub-windows are switched and changed, the sub-window which is switched and changed latest is taken as the current sub-window.
On the basis of the foregoing embodiment, preferably, before the binding the target watermark label with the current sub-window, the method further includes:
acquiring a plurality of watermark labels;
and taking the currently activated watermark label as the target watermark label.
Specifically, the method further comprises the steps of obtaining a plurality of watermark labels before the target watermark label is bound with the current sub-window, and selecting one of the plurality of watermark labels as the target watermark label.
On the basis of the above embodiment, it is preferable to further include:
monitoring the content of the target watermark label;
and if the target watermark label is changed, taking the changed target watermark label as the target watermark label.
Specifically, in the embodiment of the present invention, the content of the target watermark label is monitored, and if the content of the target watermark label is changed, the changed target watermark label is used as the target watermark label again and is bound to the current sub-window, so that the content of the target watermark label can be displayed in real time.
On the basis of the above embodiment, preferably, the full path of the target file is obtained by hook technology.
Specifically, in the embodiment of the present invention, the full path of the target file is obtained through a hook technology, which is also called a hook function, before the system does not call the function, the hook program captures the message first, and the hook function obtains the control right first, where the hook function can process (change) the execution behavior of the function, and can also forcibly end the transfer of the message. In short, the program of the system is pulled out to become the self-executing code segment.
To implement the hook function, there are two steps:
1. the interface is implemented by using an interface provided inside the system, and then injected into the system (used in a specific scenario).
2. Dynamic proxy (using all scenarios).
On the basis of the foregoing embodiment, preferably, the drawing a plurality of sub-windows on the current window includes:
drawing a plurality of sub-windows on the current window by an x11 technology.
X11 is also called X Window system, which is a Window system with bitmap display (X11 or X). It is a standard toolkit and protocol for building graphical user interfaces on Unix and Unix-like operating systems, and OpenVMS, and can be used for almost all existing modern operating systems.
On the basis of the above embodiment, it is preferable to further include:
the width, height and background color of each sub-window are set by x 11.
The width, height and background color of each sub-window can also be set by x 11.
A preferred embodiment of the present invention provides a method for adding a watermark label to a homemade operating system, as shown in fig. 2, the method specifically includes the following steps:
and acquiring a full path for opening the target file by a hook technology, storing the position information of the target file, drawing a sub-window by an x11 technology according to the displayed current window, setting corresponding width, height, background color and the like, and finally binding the current window and the current sub-window. When a plurality of sub-windows exist, monitoring the event of window switching change by using x11, acquiring the current file path by using a plug-in of corresponding software, and dynamically displaying the current file watermark label content of the activated window. If the watermark of the file is changed, the latest watermark content can be dynamically displayed.
The system for adding a watermark label to a homemade operating system provided in the embodiment of the present invention, as shown in fig. 3, includes a path module 310, a sub-window module 320, and a display module 330, where:
the path module 310 is configured to bind a full path of a target file with a current window, and display the target file on the current window;
the sub-window module 320 is configured to bind a target watermark label with the current sub-window, where the current sub-window is located on the current window and the current sub-window is bound with the current window;
the display module 330 is configured to add and display the target watermark label in the current sub-window.
The present embodiment is a system embodiment corresponding to the above method, and please refer to the above method embodiment for details, which is not described herein again.
An embodiment of the present invention provides an electronic device, as shown in fig. 4, the electronic device may include: a processor (processor)410, a communication Interface 420, a memory (memory)430 and a communication bus 440, wherein the processor 410, the communication Interface 420 and the memory 430 are communicated with each other via the communication bus 440. Processor 410 may invoke logic instructions in memory 430 to perform a method of watermarking a homemade operating system, the method comprising:
binding a full path of a target file with a current window, and displaying the target file on the current window;
binding a target watermark label with the current sub-window, wherein the current sub-window is positioned on the current window and is bound with the current window;
and adding and displaying the target watermark label in the current sub-window.
In addition, the logic instructions in the memory 430 may be implemented in the form of software functional units and stored in a computer readable storage medium when the software functional units are sold or used as independent products. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
In another aspect, the present invention also provides 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 a method for adding watermark labels to a domestic operating system, the method comprising:
binding a full path of a target file with a current window, and displaying the target file on the current window;
binding a target watermark label with the current sub-window, wherein the current sub-window is positioned on the current window and is bound with the current window;
and adding and displaying the target watermark label in the current sub-window.
In yet another aspect, the present invention also provides a non-transitory computer-readable storage medium, on which a computer program is stored, the computer program being implemented by a processor to perform the method for watermarking a homemade operating system provided in the above, the method comprising:
binding a full path of a target file with a current window, and displaying the target file on the current window;
binding a target watermark label with the current sub-window, wherein the current sub-window is positioned on the current window and is bound with the current window;
and adding and displaying the target watermark label in the current sub-window.
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.
Finally, 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 for adding watermark labels to a homemade operating system is characterized by comprising the following steps:
binding a full path of a target file with a current window, and displaying the target file on the current window;
binding a target watermark label with the current sub-window, wherein the current sub-window is positioned on the current window and is bound with the current window;
and adding and displaying the target watermark label in the current sub-window.
2. The method for adding watermark labels to domestic operating systems according to claim 1, wherein before binding the target watermark label to the current sub-window, further comprising:
drawing a plurality of sub-windows on the current window, and monitoring the switching change events of all the sub-windows;
and taking the sub-window with the latest switching change as the current sub-window.
3. The method for adding watermark labels to domestic operating systems according to claim 1, wherein before binding the target watermark label to the current sub-window, further comprising:
acquiring a plurality of watermark labels;
and taking the currently activated watermark label as the target watermark label.
4. The method for watermarking a homemade operating system according to claim 1, further comprising:
monitoring the content of the target watermark label;
and if the target watermark label is changed, taking the changed target watermark label as the target watermark label.
5. The method for adding watermark labels to the homemade operating system according to any one of claims 1 to 4, wherein the full path of the target file is obtained by hook technology.
6. The method for watermarking a homemade operating system according to claim 2, wherein the drawing a plurality of sub-windows on the current window comprises:
drawing a plurality of sub-windows on the current window by an x11 technology.
7. The method for watermarking a homemade operating system according to claim 6, further comprising:
the width, height and background color of each sub-window are set by x 11.
8. A system for watermarking a homemade operating system, comprising:
the path module is used for binding the full path of the target file with the current window and displaying the target file on the current window;
a sub-window module, configured to bind a target watermark label to the current sub-window, where the current sub-window is located on the current window and the current sub-window is bound to the current window;
and the display module is used for adding and displaying the target watermark label in the current sub-window.
9. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor when executing the program performs the steps of the method for watermarking a domestic operating system according to any one of claims 1 to 7.
10. A non-transitory computer readable storage medium having stored thereon a computer program, wherein the computer program when executed by a processor implements the steps of the method for watermarking a homemade operating system according to any one of claims 1 to 7.
CN202011457701.XA 2020-12-11 2020-12-11 Method for adding watermark label to domestic operation system Active CN112417828B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011457701.XA CN112417828B (en) 2020-12-11 2020-12-11 Method for adding watermark label to domestic operation system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011457701.XA CN112417828B (en) 2020-12-11 2020-12-11 Method for adding watermark label to domestic operation system

Publications (2)

Publication Number Publication Date
CN112417828A true CN112417828A (en) 2021-02-26
CN112417828B CN112417828B (en) 2024-05-14

Family

ID=74775588

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011457701.XA Active CN112417828B (en) 2020-12-11 2020-12-11 Method for adding watermark label to domestic operation system

Country Status (1)

Country Link
CN (1) CN112417828B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113901001A (en) * 2021-12-09 2022-01-07 武汉华工安鼎信息技术有限责任公司 File identification processing method and device

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140121555A1 (en) * 2012-11-01 2014-05-01 Justin Scott Neuromonitoring systems and methods
CN107239679A (en) * 2017-04-28 2017-10-10 浙江华途信息安全技术股份有限公司 program window information protecting method and system
CN111583091A (en) * 2020-05-25 2020-08-25 天津赢达信科技有限公司 Method and system for adding picture watermark to browser client

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140121555A1 (en) * 2012-11-01 2014-05-01 Justin Scott Neuromonitoring systems and methods
CN107239679A (en) * 2017-04-28 2017-10-10 浙江华途信息安全技术股份有限公司 program window information protecting method and system
CN111583091A (en) * 2020-05-25 2020-08-25 天津赢达信科技有限公司 Method and system for adding picture watermark to browser client

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
明日科技 等: "Python GUI设计 PyQt5从入门到实践", 吉林大学出版社, pages: 169 - 171 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113901001A (en) * 2021-12-09 2022-01-07 武汉华工安鼎信息技术有限责任公司 File identification processing method and device
CN113901001B (en) * 2021-12-09 2022-03-01 武汉华工安鼎信息技术有限责任公司 File identification processing method and device

Also Published As

Publication number Publication date
CN112417828B (en) 2024-05-14

Similar Documents

Publication Publication Date Title
CN106681581B (en) Application icon arrangement method and device
US9451423B2 (en) Method and apparatus for recording information during a call
CN111277659B (en) Method and device for detecting display state of transverse screen and vertical screen of mobile phone
CN115344835A (en) Picture processing method, storage medium and computer terminal
CN106789973B (en) Page security detection method and terminal equipment
CN112417828A (en) Method for adding watermark label for domestic operating system
CN112257037B (en) Process watermarking method, system and electronic equipment
US10313391B1 (en) Digital distillation
CN111813485A (en) Page layout processing method, device and equipment and computer readable storage medium
CN108038403B (en) Card reading method based on NFC technology and client
CN116244764A (en) Method and system for generating device unique ID of Android device
CN114138717A (en) Rich text information publishing method and related device
CN109684846A (en) A kind of file extraction method and device
CN110795388B (en) Binary file processing method, system, equipment and readable storage medium
CN111259276A (en) Method and device for displaying title content, electronic equipment and storage medium
CN111262996A (en) Notification bar message processing method and device, electronic device and storage medium
Yang et al. Design and implementation of forensic systems for android devices based on cloud computing
CN104850551A (en) Data processing method, data processing apparatus and mobile terminal
US11886893B2 (en) Method and device for capturing screen and terminal
CN109905759B (en) List display method, device, equipment and medium applied to Android client
CN112464177B (en) Watermark full-coverage method and device
CN112804653B (en) 5G message scene method, system and computer readable storage medium
CN113656728B (en) Webpage rendering method and device, electronic equipment and computer readable storage medium
CN117112047B (en) USB equipment management and control method, equipment and storage medium
US20230353522A1 (en) Message capture in a multi channel communication environment

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