CN111428210B - Method and device for editing watermark and electronic equipment - Google Patents
Method and device for editing watermark and electronic equipment Download PDFInfo
- Publication number
- CN111428210B CN111428210B CN201910023021.8A CN201910023021A CN111428210B CN 111428210 B CN111428210 B CN 111428210B CN 201910023021 A CN201910023021 A CN 201910023021A CN 111428210 B CN111428210 B CN 111428210B
- Authority
- CN
- China
- Prior art keywords
- watermark
- editing
- edited
- document
- target
- 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.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 68
- 238000004891 communication Methods 0.000 claims description 17
- 238000001514 detection method Methods 0.000 claims description 11
- 238000004590 computer program Methods 0.000 claims description 9
- 230000009471 action Effects 0.000 description 3
- 230000008569 process Effects 0.000 description 3
- 238000010586 diagram Methods 0.000 description 2
- 230000002093 peripheral effect Effects 0.000 description 2
- 238000003491 array Methods 0.000 description 1
- 238000013500 data storage Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 238000000802 evaporation-induced self-assembly Methods 0.000 description 1
- 230000006870 function Effects 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 230000010354 integration Effects 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 239000013307 optical fiber Substances 0.000 description 1
- 239000004065 semiconductor Substances 0.000 description 1
- 239000007787 solid Substances 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F21/00—Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
- G06F21/10—Protecting distributed programs or content, e.g. vending or licensing of copyrighted material ; Digital rights management [DRM]
- G06F21/16—Program or content traceability, e.g. by watermarking
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- Multimedia (AREA)
- Technology Law (AREA)
- Computer Hardware Design (AREA)
- Computer Security & Cryptography (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Editing Of Facsimile Originals (AREA)
- Document Processing Apparatus (AREA)
Abstract
The embodiment of the invention provides a method and a device for editing watermarks and electronic equipment, wherein the method comprises the following steps: acquiring a document to be processed; the document to be processed at least comprises one watermark character or watermark pattern; obtaining a watermark editing request; the watermark editing request comprises identification information of a watermark to be edited; obtaining a target watermark; the target watermark is an edited watermark to be edited; and storing the target watermark into the document to be processed. According to the embodiment of the invention, the watermark to be edited, which is determined by the user according to the identification information of each watermark, is obtained, so that the watermark editing request containing the identification information of the watermark to be edited is obtained, the designated watermark is edited, and the user can conveniently update or replace the watermark.
Description
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a method and an apparatus for editing watermarks, and an electronic device.
Background
At present, in order to prevent forgery, illegal copying and malicious tampering of a protected object, information about an owner in the protected object is often embedded in the protected object in the form of a watermark. Taking a common PDF document as an example, the author information and company name can be embedded into the document, so that not only can the copyright be protected and the attribution of the copyright be proved, but also the safety of document data can be ensured to a great extent.
However, the user may sometimes make changes to the pattern or text in the watermark as desired. In the prior art, if only one watermark exists in the protected object, the protected object can be conveniently updated or replaced; if multiple watermarks are set in the protected object, only the first added watermark can be updated or replaced. Obviously, the prior art cannot edit the appointed watermark, and inconvenience is brought to the use of a user.
Disclosure of Invention
The embodiment of the invention aims to provide a method, a device and electronic equipment for editing watermarks, so as to realize the editing of specified watermarks and facilitate the updating or replacement of watermarks by users. The specific technical scheme is as follows:
in a first aspect, an embodiment of the present invention provides a method for editing a watermark, where the method includes:
acquiring a document to be processed; the document to be processed at least comprises one watermark character or watermark pattern;
obtaining a watermark editing request; the watermark editing request comprises identification information of a watermark to be edited;
obtaining a target watermark; the target watermark is an edited watermark to be edited;
and storing the target watermark into the document to be processed.
Optionally, the step of obtaining the watermark editing request includes:
detecting whether a watermark editing button in a document editing interface is pressed;
when the watermark editing button is detected to be pressed, displaying a watermark data list in the document editing interface; the watermark data list comprises identification information of each watermark text and watermark pattern in the current page of the document to be processed;
receiving watermark characters or watermark patterns which are selected by a user in the watermark data list according to the identification information and need to be edited as watermarks to be edited;
acquiring identification information of a watermark to be edited from the watermark data list;
a watermark editing request is generated that contains identification information of the watermark to be edited.
Optionally, the step of obtaining the target watermark includes:
displaying a watermark editing interface;
receiving the editing operation of a user on the watermark editing interface for the watermark to be edited, and editing the watermark to be edited;
detecting whether an editing completion button in a watermark editing interface is pressed;
and when the editing completion button is detected to be pressed, obtaining the watermark to be edited after editing is completed, and taking the watermark to be edited as a target watermark.
Optionally, the step of obtaining the target watermark includes:
displaying a watermark editing interface;
receiving a new watermark edited by a user on a watermark editing interface;
replacing the watermark to be edited with a new watermark;
detecting whether an editing completion button in a watermark editing interface is pressed;
and when the editing completion button is detected to be pressed, obtaining the watermark to be edited after editing is completed, and taking the watermark to be edited as a target watermark.
Optionally, the step of storing the target watermark includes:
displaying a target watermark preview in the watermark editing interface;
detecting whether a save button in a watermark editing interface is pressed; if yes, replacing the watermark to be edited in the document to be processed with the target watermark, and storing the target watermark into the document to be processed.
Optionally, the document to be processed is a PDF document.
In a second aspect, an embodiment of the present invention provides an apparatus for editing a watermark, the apparatus including:
a document acquisition module: the method comprises the steps of acquiring a document to be processed; the document to be processed at least comprises one watermark character or watermark pattern;
request acquisition module: for obtaining a watermark editing request; the watermark editing request comprises identification information of a watermark to be edited;
a watermark obtaining module: for obtaining a target watermark; the target watermark is an edited watermark to be edited;
watermark saving module: and the target watermark is used for storing the target watermark into the document to be processed.
Optionally, the request obtaining module includes:
a first detection unit: the method is particularly used for detecting whether a watermark editing button in a document editing interface is pressed or not;
list display unit: the method is particularly used for displaying a watermark data list in the document editing interface when the watermark editing button is detected to be pressed; the watermark data list comprises identification information of each watermark text and watermark pattern in the current page of the document to be processed;
a watermark receiving unit to be edited: the method is particularly used for receiving watermark characters or watermark patterns which are selected by a user in the watermark data list according to the identification information and need to be edited as watermarks to be edited;
identification information acquisition unit: the method is particularly used for acquiring identification information of the watermark to be edited from the watermark data list;
request generation unit: the method is particularly used for generating a watermark editing request containing identification information of the watermark to be edited.
Optionally, the watermark obtaining module includes:
a first display unit: the method is particularly used for displaying a watermark editing interface;
watermark editing unit: the watermark editing interface is specifically used for receiving the editing operation of a user on the watermark to be edited on the watermark editing interface, and editing the watermark to be edited;
a second detection unit: the method is particularly used for detecting whether an editing completion button in the watermark editing interface is pressed or not;
a first target watermark obtaining unit: the method is particularly used for obtaining the watermark to be edited after the editing is completed as a target watermark when the editing completion button is detected to be pressed.
Optionally, the watermark obtaining module includes:
a second display unit: the method is particularly used for displaying a watermark editing interface;
a receiving unit: the method is particularly used for receiving a new watermark edited by a user on a watermark editing interface;
watermark replacement unit: the method is particularly used for replacing the watermark to be edited with a new watermark;
a third detection unit: the method is particularly used for detecting whether an editing completion button in the watermark editing interface is pressed or not;
a second target watermark obtaining unit: the method is particularly used for obtaining the watermark to be edited after the editing is completed as a target watermark when the editing completion button is detected to be pressed.
Optionally, the watermark saving module includes:
a third display unit: the method is particularly used for displaying a target watermark preview in the watermark editing interface;
fourth detection unit: the method is particularly used for detecting whether a save button in the watermark editing window is pressed or not; if yes, replacing the watermark to be edited with the target watermark, and storing the target watermark to the document to be processed.
In a third aspect, an embodiment of the present invention provides an electronic device, including a processor, a communication interface, a memory, and a communication bus, where the processor, the communication interface, and the memory complete communication with each other through the bus;
a memory for storing a computer program;
a processor for executing a program stored on a memory, implementing the method steps of any one of the first aspects.
In a fourth aspect, embodiments of the present invention also provide a computer readable storage medium having stored therein a computer program which, when executed by a processor, implements the steps of any of the methods of editing a watermark of the first aspect.
According to the method, the device and the electronic equipment for editing the watermark, disclosed by the embodiment of the invention, the watermark editing request containing the identification information of the watermark to be edited can be obtained by acquiring the document to be processed containing at least one watermark character or watermark pattern, the edited watermark to be edited is taken as the target watermark and is stored in the document to be processed, so that the editing of the specified watermark is realized, and the watermark is conveniently updated or replaced by a user.
Of course, it is not necessary for any one product or method of practicing the invention to achieve all of the advantages set forth above at the same time.
Drawings
In order to more clearly illustrate the embodiments of the invention or the technical solutions in the prior art, the drawings that are required in the embodiments or the description of the prior art will be briefly described, it being obvious that the drawings in the following description are only some embodiments of the invention, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a flowchart of a method for editing a watermark according to an embodiment of the present invention;
fig. 2 is a schematic structural diagram of an apparatus for editing watermarks according to an embodiment of the present invention;
fig. 3 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present invention, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
In order to realize editing of a specified watermark, the embodiment of the invention provides a method, a device and electronic equipment for editing the watermark. The watermark editing request containing the identification information of the watermark to be edited is obtained by obtaining the document to be processed at least containing one watermark character or watermark pattern, the edited watermark to be edited is used as the target watermark and is stored in the document to be processed, so that the specified watermark is edited, and the user can conveniently update or replace the watermark.
In order to facilitate understanding of the technical method in the embodiment of the present invention, a PDF document is taken as an example for explanation.
As an implementation manner of the embodiment of the present invention, as shown in fig. 1, a method for editing a watermark provided by the embodiment of the present invention includes:
s101, acquiring a document to be processed; the document to be processed contains at least one watermark text or watermark pattern.
S102, obtaining a watermark editing request; the watermark editing request contains identification information of the watermark to be edited.
Specifically, whether a watermark editing button in a document editing interface is pressed or not is detected; when the watermark editing button is detected to be pressed, a watermark data list is displayed in the document editing interface, and a user can select watermark characters or watermark patterns to be edited in a checking mode according to identification information displayed in the watermark data list to serve as the watermark to be edited.
Optionally, the watermark data list includes identification information of each watermark word and watermark pattern in the current page of the document to be processed, such as the position of each watermark, the content of the watermark word, the content of the watermark pattern, and the like. After the user selects the watermark to be edited, the identification information of the watermark to be edited is obtained from the watermark data list, and a watermark editing request containing the identification information of the watermark to be edited is generated.
S103, obtaining a target watermark; the target watermark is the watermark to be edited after the editing is completed.
Alternatively, the target watermark may be obtained in two ways: one is to update the watermark to be edited and the other is to replace the watermark to be edited.
Specifically, when a user needs to update the watermark to be edited, a watermark editing interface is displayed; and receiving the editing operation of the user on the watermark editing interface on the watermark to be edited, and editing the watermark to be edited. For example: the position, transparency and size of the watermark to be edited can be changed in the watermark editing interface. If the watermark to be edited is watermark text, the font and the font size of the watermark text can be changed, and if the watermark to be edited is watermark pattern, the size of the picture can be cut, and the definition of the picture can be set.
Specifically, when a user needs to replace the watermark to be edited, a watermark editing interface is displayed; and receiving a new watermark edited by the user on the watermark editing interface. For example: the new watermark characters can be input in an input field in a watermark editing interface, or new watermark patterns can be obtained through online downloading or local importing, and after the size, the position and the transparency of the new watermark are adjusted, the new watermark replaces the watermark to be edited.
After the user finishes updating or replacing the watermark to be edited, detecting whether an editing completion button in a watermark editing interface is pressed by the user; and when the editing completion button is detected to be pressed, obtaining the watermark to be edited after editing is completed, and taking the watermark to be edited as a target watermark.
S104, storing the target watermark into the document to be processed.
Specifically, after the target watermark is obtained, displaying a target watermark preview image in a watermark editing interface, and detecting whether a save button in the watermark editing interface is pressed or not; if yes, replacing the watermark to be edited in the document to be processed with the target watermark, and storing the target watermark into the document to be processed. For example: a user can judge whether the target watermark is satisfied with the target watermark through the preview image; if not satisfied, clicking the button of the last step to continue editing operation; if satisfied, clicking a save button, and replacing the watermark to be edited in the document to be processed by the target watermark to finish the step of saving the target watermark to the document to be processed.
According to the method for editing the watermark, provided by the embodiment of the invention, the watermark editing request containing the identification information of the watermark to be edited is obtained by obtaining the document to be processed containing at least one watermark character or watermark pattern, the edited watermark to be edited is taken as the target watermark and is stored in the document to be processed, so that the editing of the specified watermark is realized, and the watermark is conveniently updated or replaced by a user.
As an implementation manner of the embodiment of the present invention, as shown in fig. 2, an apparatus for editing a watermark provided by the embodiment of the present invention corresponds to the method for editing a watermark, and includes:
a document acquisition module 210, configured to acquire a document to be processed; the document to be processed at least comprises one watermark text or watermark pattern.
A request obtaining module 220, configured to obtain a watermark editing request; the watermark editing request contains identification information of the watermark to be edited.
A watermark obtaining module 230, configured to obtain a target watermark; the target watermark is the watermark to be edited after the editing is completed.
And the watermark saving module 240 is configured to save the target watermark to the document to be processed.
According to the watermark editing device provided by the embodiment of the invention, the watermark editing request containing the identification information of the watermark to be edited is obtained by obtaining the document to be processed containing at least one watermark character or watermark pattern, the edited watermark to be edited is taken as the target watermark and is stored in the document to be processed, so that the editing of the specified watermark is realized, and the watermark is conveniently updated or replaced by a user.
As an implementation manner of the embodiment of the present invention, the request obtaining module may include:
the first detection unit is specifically configured to detect whether a watermark editing button in a document editing interface is pressed.
A list display unit, specifically configured to display a watermark data list in the document editing interface when it is detected that a watermark editing button is pressed; the watermark data list contains identification information of each watermark text and watermark pattern in the current page of the document to be processed.
The watermark receiving unit to be edited is specifically configured to receive, as a watermark to be edited, watermark characters or watermark patterns to be edited selected by a user according to the identification information in the watermark data list.
The identification information acquisition unit is specifically used for acquiring the identification information of the watermark to be edited from the watermark data list.
The request generation unit is specifically configured to generate a watermark editing request containing identification information of a watermark to be edited.
As an implementation manner of the embodiment of the present invention, the watermark obtaining module may include:
the first display unit is specifically used for displaying a watermark editing interface.
The watermark editing unit is specifically configured to receive an editing operation of the user on the watermark editing interface on the watermark to be edited, and edit the watermark to be edited.
And the second detection unit is specifically used for detecting whether an editing completion button in the watermark editing interface is pressed.
The first target watermark obtaining unit is specifically configured to obtain, as a target watermark, a watermark to be edited after the editing is completed when the editing completion button is detected to be pressed.
As an implementation manner of the embodiment of the present invention, the watermark obtaining module may include:
the second display unit is specifically used for displaying a watermark editing interface.
The receiving unit is specifically used for receiving the new watermark edited by the user on the watermark editing interface.
And the watermark replacing unit is particularly used for replacing the watermark to be edited with a new watermark.
And a third detection unit, specifically configured to detect whether an editing completion button in the watermark editing interface is pressed.
And the second target watermark obtaining unit is specifically used for obtaining the watermark to be edited after the editing is completed as the target watermark when the editing completion button is detected to be pressed.
As an implementation manner of the embodiment of the present invention, the watermark saving module may include:
and the third display unit is specifically used for displaying the target watermark preview in the watermark editing interface.
A fourth detecting unit, specifically configured to detect whether a save button in the watermark editing window is pressed; if yes, replacing the watermark to be edited with the target watermark, and storing the target watermark to the document to be processed.
According to the watermark editing device provided by the embodiment of the invention, the watermark editing request containing the identification information of the watermark to be edited is obtained by obtaining the document to be processed containing at least one watermark character or watermark pattern, the edited watermark to be edited is taken as the target watermark and is stored in the document to be processed, so that the editing of the specified watermark is realized, and the watermark is conveniently updated or replaced by a user.
The embodiment of the present invention further provides an electronic device, as shown in fig. 3, including a processor 301, a communication interface 302, a memory 303, and a communication bus 304, where the processor 301, the communication interface 302, and the memory 303 perform communication with each other through the communication bus 304,
a memory 303 for storing a computer program;
the processor 301 is configured to execute the program stored in the memory 303, and implement the following steps:
acquiring a document to be processed; the document to be processed at least comprises one watermark character or watermark pattern;
obtaining a watermark editing request; the watermark editing request comprises identification information of a watermark to be edited;
obtaining a target watermark; the target watermark is an edited watermark to be edited;
and storing the target watermark into the document to be processed.
According to the electronic equipment provided by the embodiment of the invention, a method for editing the watermark is realized, a watermark editing request containing identification information of the watermark to be edited is obtained by acquiring the document to be processed containing at least one watermark character or watermark pattern, the edited watermark to be edited is taken as a target watermark and is stored in the document to be processed, the editing of the specified watermark is realized, and the watermark is conveniently updated or replaced by a user.
The communication bus mentioned above for the electronic devices may be a peripheral component interconnect standard (Peripheral Component Interconnect, PCI) bus or an extended industry standard architecture (Extended Industry Standard Architecture, EISA) bus, etc. The communication bus may be classified as an address bus, a data bus, a control bus, or the like. For ease of illustration, the figures are shown with only one bold line, but not with only one bus or one type of bus.
The communication interface is used for communication between the electronic device and other devices.
The Memory may include random access Memory (Random Access Memory, RAM) or may include Non-Volatile Memory (NVM), such as at least one disk Memory. Optionally, the memory may also be at least one memory device located remotely from the aforementioned processor.
The processor may be a general-purpose processor, including a central processing unit (Central Processing Unit, CPU), a network processor (Network Processor, NP), etc.; but also digital signal processors (Digital Signal Processing, DSP), application specific integrated circuits (Application Specific Integrated Circuit, ASIC), field programmable gate arrays (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.
In yet another embodiment of the present invention, a computer readable storage medium is provided, and the embodiment of the present invention further provides a computer readable storage medium having a computer program stored therein, the computer program implementing the first following steps when executed by a processor:
acquiring a document to be processed; the document to be processed at least comprises one watermark character or watermark pattern;
obtaining a watermark editing request; the watermark editing request comprises identification information of a watermark to be edited;
obtaining a target watermark; the target watermark is an edited watermark to be edited;
and storing the target watermark into the document to be processed.
According to the method for editing the watermark, provided by the embodiment of the invention, the watermark editing request containing the identification information of the watermark to be edited is obtained by obtaining the document to be processed containing at least one watermark character or watermark pattern, the edited watermark to be edited is taken as the target watermark and is stored in the document to be processed, so that the editing of the specified watermark is realized, and the watermark is conveniently updated or replaced by a user.
In the above embodiments, it may be implemented in whole or in part by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When loaded and executed on a computer, produces a flow or function in accordance with embodiments of the present invention, in whole or in part. The computer may be a general purpose computer, a special purpose computer, a computer network, or other programmable apparatus. The computer instructions may be stored in or transmitted from one computer-readable storage medium to another, for example, by wired (e.g., coaxial cable, optical fiber, digital Subscriber Line (DSL)), or wireless (e.g., infrared, wireless, microwave, etc.). The computer readable storage medium may be any available medium that can be accessed by a computer or a data storage device such as a server, data center, etc. that contains an integration of one or more available media. The usable medium may be a magnetic medium (e.g., floppy Disk, hard Disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., solid State Disk (SSD)), etc.
It is noted that relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Moreover, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
In this specification, each embodiment is described in a related manner, and identical and similar parts of each embodiment are all referred to each other, and each embodiment mainly describes differences from other embodiments. In particular, for the device embodiments, since they are substantially similar to the method embodiments, the description is relatively simple, and reference is made to the description of the method embodiments in part.
The foregoing description is only of the preferred embodiments of the present invention and is not intended to limit the scope of the present invention. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention are included in the protection scope of the present invention.
Claims (11)
1. A method of editing a watermark, the method comprising:
acquiring a document to be processed; the document to be processed contains a plurality of watermark characters or watermark patterns;
obtaining a watermark editing request; the watermark editing request comprises identification information of a watermark to be edited in the document to be processed; the identification information includes: the position of the watermark to be edited, the content of the watermark text to be edited and the content of the watermark pattern to be edited;
obtaining a target watermark; the target watermark is an edited watermark to be edited;
storing the target watermark into the document to be processed;
wherein the step of storing the target watermark comprises:
displaying a target watermark preview in a watermark editing interface;
detecting whether a save button in a watermark editing interface is pressed; if yes, replacing the watermark to be edited in the document to be processed with the target watermark, and storing the target watermark into the document to be processed.
2. The method of claim 1, wherein the step of obtaining a watermark editing request comprises:
detecting whether a watermark editing button in a document editing interface is pressed;
when the watermark editing button is detected to be pressed, displaying a watermark data list in the document editing interface; the watermark data list comprises identification information of each watermark text and watermark pattern in the current page of the document to be processed;
receiving watermark characters or watermark patterns which are selected by a user in the watermark data list according to the identification information and need to be edited as watermarks to be edited;
acquiring identification information of a watermark to be edited from the watermark data list;
a watermark editing request is generated that contains identification information of the watermark to be edited.
3. The method of claim 1, wherein the step of obtaining the target watermark comprises:
displaying a watermark editing interface;
receiving the editing operation of a user on the watermark editing interface for the watermark to be edited, and editing the watermark to be edited;
detecting whether an editing completion button in a watermark editing interface is pressed;
and when the editing completion button is detected to be pressed, obtaining the watermark to be edited after editing is completed, and taking the watermark to be edited as a target watermark.
4. The method of claim 1, wherein the step of obtaining the target watermark comprises:
displaying a watermark editing interface;
receiving a new watermark edited by a user on a watermark editing interface;
replacing the watermark to be edited with a new watermark;
detecting whether an editing completion button in a watermark editing interface is pressed;
and when the editing completion button is detected to be pressed, obtaining the watermark to be edited after editing is completed, and taking the watermark to be edited as a target watermark.
5. The method of claim 1, wherein the document to be processed is a PDF document.
6. An apparatus for editing a watermark, the apparatus comprising:
a document acquisition module: the method comprises the steps of acquiring a document to be processed; the document to be processed contains a plurality of watermark characters or watermark patterns;
request acquisition module: for obtaining a watermark editing request; the watermark editing request comprises identification information of a watermark to be edited in the document to be processed; the identification information includes: the position of the watermark to be edited, the content of the watermark text to be edited and the content of the watermark pattern to be edited;
a watermark obtaining module: for obtaining a target watermark; the target watermark is an edited watermark to be edited;
watermark saving module: the target watermark is used for storing the target watermark into the document to be processed;
wherein, the watermark saving module comprises:
a third display unit: the method is particularly used for displaying a target watermark preview in a watermark editing interface;
fourth detection unit: the method is particularly used for detecting whether a save button in the watermark editing window is pressed or not; if yes, replacing the watermark to be edited with the target watermark, and storing the target watermark to the document to be processed.
7. The apparatus of claim 6, wherein the request acquisition module comprises:
a first detection unit: the method is particularly used for detecting whether a watermark editing button in a document editing interface is pressed or not;
list display unit: the method is particularly used for displaying a watermark data list in the document editing interface when the watermark editing button is detected to be pressed; the watermark data list comprises identification information of each watermark text and watermark pattern in the current page of the document to be processed;
a watermark receiving unit to be edited: the method is particularly used for receiving watermark characters or watermark patterns which are selected by a user in the watermark data list according to the identification information and need to be edited as watermarks to be edited;
identification information acquisition unit: the method is particularly used for acquiring identification information of the watermark to be edited from the watermark data list;
request generation unit: the method is particularly used for generating a watermark editing request containing identification information of the watermark to be edited.
8. The apparatus of claim 6, wherein the watermark obtaining module comprises:
a first display unit: the method is particularly used for displaying a watermark editing interface;
watermark editing unit: the watermark editing interface is specifically used for receiving the editing operation of a user on the watermark to be edited on the watermark editing interface, and editing the watermark to be edited;
a second detection unit: the method is particularly used for detecting whether an editing completion button in the watermark editing interface is pressed or not;
a first target watermark obtaining unit: the method is particularly used for obtaining the watermark to be edited after the editing is completed as a target watermark when the editing completion button is detected to be pressed.
9. The apparatus of claim 6, wherein the watermark obtaining module comprises:
a second display unit: the method is particularly used for displaying a watermark editing interface;
a receiving unit: the method is particularly used for receiving a new watermark edited by a user on a watermark editing interface;
watermark replacement unit: the method is particularly used for replacing the watermark to be edited with a new watermark;
a third detection unit: the method is particularly used for detecting whether an editing completion button in the watermark editing interface is pressed or not;
a second target watermark obtaining unit: the method is particularly used for obtaining the watermark to be edited after the editing is completed as a target watermark when the editing completion button is detected to be pressed.
10. The electronic equipment is characterized by comprising a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory are communicated with each other through the communication bus;
a memory for storing a computer program;
a processor for carrying out the method steps of any one of claims 1-5 when executing a program stored on a memory.
11. A computer-readable storage medium, characterized in that the computer-readable storage medium has stored therein a computer program which, when executed by a processor, implements the method steps of any of claims 1-5.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910023021.8A CN111428210B (en) | 2019-01-10 | 2019-01-10 | Method and device for editing watermark and electronic equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910023021.8A CN111428210B (en) | 2019-01-10 | 2019-01-10 | Method and device for editing watermark and electronic equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN111428210A CN111428210A (en) | 2020-07-17 |
CN111428210B true CN111428210B (en) | 2024-03-26 |
Family
ID=71546062
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910023021.8A Active CN111428210B (en) | 2019-01-10 | 2019-01-10 | Method and device for editing watermark and electronic equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111428210B (en) |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102881034A (en) * | 2012-05-14 | 2013-01-16 | 珠海金山办公软件有限公司 | System and method for inserting watermarks into application document |
CN104240175A (en) * | 2013-06-08 | 2014-12-24 | 阿里巴巴集团控股有限公司 | Image editing and rendering method and device |
CN105630757A (en) * | 2014-11-07 | 2016-06-01 | 珠海金山办公软件有限公司 | Data editing method and apparatus |
CN105872854A (en) * | 2015-12-14 | 2016-08-17 | 乐视网信息技术(北京)股份有限公司 | Watermark showing method and device |
CN106485645A (en) * | 2016-10-31 | 2017-03-08 | 珠海赛纳打印科技股份有限公司 | A kind of method and device of watermark adjustment |
CN107464206A (en) * | 2017-07-26 | 2017-12-12 | 维沃移动通信有限公司 | A kind of watermark adding method and mobile terminal |
CN107545157A (en) * | 2017-08-02 | 2018-01-05 | 山东中创软件工程股份有限公司 | The watermark adding method and device of a kind of document |
CN107797737A (en) * | 2017-09-26 | 2018-03-13 | 努比亚技术有限公司 | The method, apparatus and computer-readable recording medium that picture is edited again |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6577746B1 (en) * | 1999-12-28 | 2003-06-10 | Digimarc Corporation | Watermark-based object linking and embedding |
-
2019
- 2019-01-10 CN CN201910023021.8A patent/CN111428210B/en active Active
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102881034A (en) * | 2012-05-14 | 2013-01-16 | 珠海金山办公软件有限公司 | System and method for inserting watermarks into application document |
CN104240175A (en) * | 2013-06-08 | 2014-12-24 | 阿里巴巴集团控股有限公司 | Image editing and rendering method and device |
CN105630757A (en) * | 2014-11-07 | 2016-06-01 | 珠海金山办公软件有限公司 | Data editing method and apparatus |
CN105872854A (en) * | 2015-12-14 | 2016-08-17 | 乐视网信息技术(北京)股份有限公司 | Watermark showing method and device |
CN106485645A (en) * | 2016-10-31 | 2017-03-08 | 珠海赛纳打印科技股份有限公司 | A kind of method and device of watermark adjustment |
CN107464206A (en) * | 2017-07-26 | 2017-12-12 | 维沃移动通信有限公司 | A kind of watermark adding method and mobile terminal |
CN107545157A (en) * | 2017-08-02 | 2018-01-05 | 山东中创软件工程股份有限公司 | The watermark adding method and device of a kind of document |
CN107797737A (en) * | 2017-09-26 | 2018-03-13 | 努比亚技术有限公司 | The method, apparatus and computer-readable recording medium that picture is edited again |
Also Published As
Publication number | Publication date |
---|---|
CN111428210A (en) | 2020-07-17 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN111414727B (en) | Editing method and device for PDF document header footer and electronic equipment | |
EP3026575A1 (en) | Method for referring to specific content on a web page and web browsing system | |
CN112052647B (en) | Document editing method and device, electronic equipment and readable storage medium | |
CN111428210B (en) | Method and device for editing watermark and electronic equipment | |
CN112926034A (en) | Watermark processing method and device | |
CN111553130A (en) | Chapter title style conversion method and device, electronic equipment and storage medium | |
CN112256820B (en) | Document positioning method and device | |
CN111199144B (en) | Document content altering method and device, electronic equipment and readable storage medium | |
CN112035848B (en) | Method and device for protecting graphic text content, electronic equipment and storage medium | |
CN112784526A (en) | Document page adjusting method and device | |
CN112115486B (en) | Protection method and device for graphic shape format, electronic equipment and storage medium | |
CN107203718B (en) | Detection method and system for SQL command injection | |
CN111191427A (en) | PDF document annotation method and device and electronic equipment | |
CN112115501B (en) | Method and device for protecting graphic shape in document, electronic equipment and storage medium | |
CN112115485B (en) | Method and device for protecting width and height of graphics in document, electronic equipment and storage medium | |
CN111832262B (en) | Document processing method and device, electronic equipment and storage medium | |
CN112784564B (en) | Document generation method and device | |
CN112036126B (en) | Method, device, equipment and storage medium for prohibiting operation of graph in document | |
CN110543623B (en) | PDF document display method and device | |
CN112035869B (en) | Protection method and device for pattern combination form, electronic equipment and storage medium | |
CN112115685A (en) | Method and device for protecting graphic position in document, electronic equipment and storage medium | |
CN113312317B (en) | File processing method and device, electronic equipment and storage medium | |
CN110874520B (en) | Method and device for removing overlapped paths and terminal equipment | |
CN111259621B (en) | Cloud font display method and device | |
CN112150195B (en) | Recommendation method, device and equipment for target object and computer readable medium |
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 |