The invention relates to method and device for embedding and detecting a
watermark in a document by using a computer
system, in particular to method and device for loading a document
watermark to an electronic
text document by using a
computer program so as to protect the electronic
text document, belonging to the technical field of document protection. The
computer program at least comprises the generation of the electronic text
watermark, the loading and embedding of the watermark and the detection of the watermark. The method comprises the following steps of: firstly, generating watermark information from copyright information prepared to be added into the
electronic document by using a watermark generating module; then, reasonably optimizing the analysis of a watermark carrier medium, the preprocessing of embedded information, the selection of an
information embedding point, the design of an embedding mode and the control of embedding modulation by using a watermark loading and embedding module; and equivalently transforming set
natural language semantics to embed the watermark through reasonably selecting a secret key. If a copyright dispute happens, a watermark detection module designed in the invention can be used for detecting and extracting the document watermark of the
electronic document by using the preset secret key, and the result shows that the document watermark embedded in advance can provide an identification basis for solving the
electronic document copyright dispute. Thus, the invention can be widely applied to document protection
encryption, tracking, illegal
distribution control and technical protection of copyrights.