CN108537053B - Delayed watermark adding technology based on document - Google Patents

Delayed watermark adding technology based on document Download PDF

Info

Publication number
CN108537053B
CN108537053B CN201810316865.7A CN201810316865A CN108537053B CN 108537053 B CN108537053 B CN 108537053B CN 201810316865 A CN201810316865 A CN 201810316865A CN 108537053 B CN108537053 B CN 108537053B
Authority
CN
China
Prior art keywords
watermark
file
copy
opening
password
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
Application number
CN201810316865.7A
Other languages
Chinese (zh)
Other versions
CN108537053A (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.)
Forest Fantasy Taiyuan Digital Technology Co ltd
Original Assignee
Jincheng Darui Jinma Business Information Consulting 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 Jincheng Darui Jinma Business Information Consulting Co ltd filed Critical Jincheng Darui Jinma Business Information Consulting Co ltd
Publication of CN108537053A publication Critical patent/CN108537053A/en
Application granted granted Critical
Publication of CN108537053B publication Critical patent/CN108537053B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/602Providing cryptographic facilities or services
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T1/00General purpose image data processing
    • G06T1/0021Image watermarking

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • General Health & Medical Sciences (AREA)
  • Bioethics (AREA)
  • Health & Medical Sciences (AREA)
  • Computer Hardware Design (AREA)
  • Computer Security & Cryptography (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Editing Of Facsimile Originals (AREA)
  • Image Processing (AREA)

Abstract

The invention relates to a delayed watermark adding technology based on a document, and belongs to the technical field of computer software and watermark adding. Creating a copy of the source file and the attribute file and opening the copy of the source file by opening the plug-in; the core idea is as follows: the user can set the time for adding the watermark and various parameters of the watermark to be added, and the watermark is added to the pdf file only when the current time is more than or equal to the set time; the system relied on by the invention comprises a graphical interface used for generating configuration files, a creation plug-in used for controlling the addition of watermarks and an opening plug-in used for controlling the opening of files. The invention supports the time-delay watermark adding, solves the technical problem that the current plug-in can only add the watermark immediately and can not add the watermark in a delay way, can add each page of the document as different watermark contents, and can not change the source file and the watermark file.

Description

Delayed watermark adding technology based on document
Technical Field
The invention relates to a delayed watermark adding technology based on a document, and belongs to the technical field of computer software and watermark adding.
Background
At present, the ownership requirements of each company for own internal files are higher and higher. The formal files are generally stored in PDF format, which has many advantages over other electronic document formats. The PDF file format may encapsulate text, fonts, formats, colors, and device and resolution independent graphical images, etc. in one file. The format file can also contain electronic information such as hypertext links, sound, dynamic images and the like, supports a special file, and has high integration level and high safety and reliability. The electronic book made of PDF has the texture and reading effect of a paper version book, can vividly show the original appearance of the original book, can be randomly adjusted in display size, and provides a personalized reading mode for readers. A common form of copyright protection is to add a corporate watermark to a file and then set the file in read-only mode. At present, many pdf readers support watermarking on a pdf, but cannot support delayed watermarking, and cannot realize that each page of a document is added as different watermark content.
Disclosure of Invention
The invention aims to overcome the technical current situation that the delayed watermark adding cannot be supported and the adding of different watermarks in each page cannot be realized in the prior art, and provides a document-based delayed watermark adding technology for solving the technical problem that the current plug-in can only add watermarks immediately and cannot add watermarks in a delayed manner.
The core idea of the invention is as follows: the user can set the time for adding the watermark, and when the current time is more than or equal to the set time, the watermark is added into the pdf file; the system relied on by the invention comprises a graphical interface used for generating configuration files, a creating plug-in used for controlling the addition of watermarks and an opening plug-in used for controlling the opening of files.
A technology for adding delay watermark based on document includes creating copy and attribute file of source file, opening copy of source file by opening plug-in;
wherein, creating a source file copy and a property file specifically comprises the following steps:
step A, setting relevant parameters for adding watermarks and generating configuration files through a graphical interface;
the relevant parameters comprise whether a watermark is added or not, a source file path, a watermark file path, a configuration file storage path, a generated encrypted file storage path, an open password, an edit password, a watermark angle, watermark transparency, a watermark proportion, background position and watermark adding time;
b, generating a copy of the source file and an attribute file by creating a plug-in;
wherein, an opening password and an editing password are added in the generated copy of the source file;
the property file contains: opening a password, editing the password, adding a watermark, adding time, locating in a background, a watermark proportion, a watermark angle and watermark transparency;
the method comprises the following steps of:
b.1, writing a first page of the attribute file into whether the watermark is added, a password is opened, a password is edited, a watermark angle, watermark transparency, watermark proportion, background position and watermark adding time which are set in the step A;
step b.2 opens the watermark file and copies the watermark file after the first page of the property file (there may be multiple pages of the watermark file). (ii) a
Step B.3, saving the attribute file into the folder of the generated encrypted file saving path set in the step A;
step C, reading the configuration file generated in the step A by creating a plug-in, opening the source file through a source file path, copying the source file to obtain a copy of the source file, and storing the copy of the source file into a folder of the generated encrypted file saving path set in the step A;
step D, adding an opening password and an editing password for the copy of the source file generated in the step B, and adding an opening password for the generated attribute file, wherein the steps are as follows:
the attribute file is stored in a folder of the generated encrypted file storage path, and the opening password added for the attribute file is not the opening password filled in the step A but a fixed password;
step E, closing the opened source file and the watermark file;
wherein, the source file and the watermark file are not changed in the process from the step A to the step E;
a copy of the source file and a property file are located under the generated encrypted file saving path;
from step A to step E, the creation of the copy of the source file and the property file is completed;
opening a copy of a source file by opening a plug-in, specifically comprising the steps of:
step 1, opening an attribute file and reading the content of a first page of the attribute file, specifically:
searching a corresponding attribute file in a peer directory of the generated encrypted file saving path by opening the plug-in, if the corresponding attribute file cannot be found, reporting an error, and exiting the program; if the attribute file is found, opening the plug-in, opening the attribute file by inputting a fixed opening password, and reading the content of the first page of the attribute file;
step 2, acquiring the current system time;
step 3, comparing the current system time with the time for adding the watermark to decide whether to add the watermark or not, specifically comprising the following steps:
3.1 if the current system time is less than the time for adding the watermark, the watermark is not required to be added, the plug-in is opened, the copy of the source file is opened in a read-only mode by inputting the opening password in the step A, and the copy is displayed to a user;
3.2 if the current system time is more than or equal to the time of adding the watermark, judging the attribute of 'whether the watermark is added' and determining whether the watermark is added or not without adding the watermark again and showing the watermark to a user according to the judgment result of 'whether the watermark is added', specifically:
a, if the 'whether the watermark is added' is equal to 1, the watermark is added, the watermark does not need to be added again, the opening password in the step A is input, the copy of the source file is opened in a read-only mode, and the copy is displayed to a user;
3.2.B if the 'whether the watermark is added' is equal to 0, indicating that the watermark is not added, firstly inputting the opening password and the editing password which are set in the step A, opening the copy of the source file in an editable mode, then reading the content of the attribute file after the second page, and adding the watermark to the copy of the source file through the attributes such as the watermark angle, the watermark transparency, the watermark proportion, the background and the like which are set in the step A; modifying the content of the attribute file, setting the value of 'whether the watermark is added' to be 1, finally closing the copy of the source file, inputting the opening password in the step A, opening the copy of the source file in a read-only mode, and displaying the copy to a user;
reading all contents, namely watermark files, of the attribute file after the first page;
step 4, closing the opened copy of the source file and the attribute file;
to this end, from step 1 to step 4, opening a copy of the source file by opening the plug-in is completed;
to this end, a document-based delayed watermarking technique is completed from step a to step E, and from step 1 to step 4.
Advantageous effects
Compared with the prior watermarking technology, the document-based delayed watermarking technology has the following advantages
Has the advantages that:
1. the watermark can be added in a delayed manner, so that the addition of the watermark is more flexible;
2. the original source file and the original watermark file are not modified, so that the security is high;
3. different watermarks can be added to different pages in batches.
Drawings
FIG. 1 is a schematic diagram of the components of a system in accordance with the present invention for delayed document-based watermarking;
FIG. 2 is a block diagram of a document-based delayed watermarking technique for generating a configuration file via a graphical interface in accordance with the present invention;
FIG. 3 is a block diagram of a document-based delayed watermarking technique for generating a copy of a source file by creating a plug-in and creating a property file in accordance with the present invention;
FIG. 4 is a block diagram of a document-based delayed watermarking technique for opening a source file by opening a plug-in accordance with the present invention.
Detailed Description
The document-based delayed watermarking technology according to the present invention will be described in detail below with reference to the accompanying drawings and embodiments.
Example 1
This embodiment describes the component composition of a system on which the document-based delayed watermarking technique of the present invention is based.
FIG. 1 is a schematic diagram of the components of a system in accordance with the present invention for delayed document-based watermarking. As can be seen from fig. 1, a system on which a document-based delayed watermarking technique relies includes a graphical interface 1, a creation plug-in 2, and an opening plug-in 3; wherein the graphical interface 1 is used to generate a configuration file 16, a create plug-in 2 is used to control the addition of the watermark, and an open plug-in 3 is used to control the opening of the pdf file.
Example 2
This embodiment describes the process of the present invention for a document-based delayed watermarking technique to create a configuration file 16 via the graphical interface 1, read the configuration file 16 via the creation plug-in 2 and generate a copy 19 of the source file and a property file 20.
Fig. 2 is a schematic diagram of a graphical interface 1 of a document-based delayed watermarking technique of the present invention. As can be seen from fig. 2, the graphical interface 1 includes whether a watermark 4 is added, a source file path 5, a watermark file path 6, a configuration file saving path 7, a generated encrypted file saving path 8, an open password 9, an edit password 10, a watermark angle 11, a watermark transparency 12, a watermark proportion 13, a position in a background 14, and a watermark adding time 15; by filling in these fields, a configuration file 16 is generated.
Fig. 3 is a schematic diagram of the generation of a copy 19 of the source file and a property file 20 by the creation plug-in 2 of a document-based delayed watermarking technique of the invention. The method comprises the following specific steps:
and a, copying the created plug-in 2 to a plug-in directory of the adobe reader.
And b, opening an adobe reader, clicking a time delay watermark creating button, and selecting the configuration file 16 generated in the embodiment 1.
And c, opening the source file and the watermark file through the source file path 5 and the watermark file path 6 filled in the embodiment 1.
Below the generated encrypted file path 8, two encrypted files will be generated, a copy 19 of the source file and a property file 20. The first page of the attribute file 20 is written with information about whether the watermark 4 is added, the opening password 9, the editing password 10, the watermark angle 11, the watermark transparency 12, the watermark proportion 13, the position in the background 14 and the watermark adding time 15, and the rest pages of the attribute file 20 are copies of the watermark file.
Step e. add the open password 9 and edit password 10 filled in example 1 to the generated copy 19 of the source file and add a fixed open password to the generated property file 20.
And f, closing the source file and the watermark file.
Thus, below the generated encrypted file saving path, a copy 19 of the source file to which the open password 9 and the edit password 10 are added and a property file 20 to which the open password is fixed are generated.
Example 3
This embodiment describes the process of opening a file by opening plug-in 3 according to a document-based delayed watermarking technique of the present invention.
Fig. 4 is a schematic diagram of the file opening by the opening plug-in 3 of the document-based delayed watermarking technique of the present invention. The method comprises the following specific steps:
and step I, copying the opened plug-in 3 to a plug-in directory of the adobe reader.
Step ii, open the adobe reader, click the open file button, and select the copy 19 of the source file generated in embodiment 2, at this time, open the plug-in 3 will search for the corresponding property file 20 in the peer directory of the copy 19 of the source file. If not, an error is reported, otherwise, all contents of the first page of the property file 20 are read.
And step III, opening the plug-in 3 to acquire the current time 22 of the system.
And IV, comparing the current time 22 of the system with the watermarking time 15.
And V, if the current time 22 of the system is less than the watermark adding time 15, the watermark is not required to be added, and the plug-in 3 is opened to control the copy 19 of the source file to be opened in a read-only mode.
Step vi. if the system current time 22 is greater than or equal to the watermark adding time 15 and if the added watermark 4 is equal to 1, it indicates that the watermark has been added, the copy 19 of the source file is opened in a read-only manner, otherwise, the copy 19 of the source file is opened in an editable manner and the property file 20 is opened in a read-only manner (not shown to the user). According to the information of the first page of the property file 20: watermark angle 11, watermark transparency 12, watermark proportion 13, files located after the background 14 and the first page of the property file (i.e. watermark files), a watermark is added to a copy 19 of the source file. And after the watermark is added, modifying the value of 'whether the watermark is added' 4 in the first page of the attribute file 20, changing 0 to 1, closing the copy 19 of the source file, and closing the attribute file 20. A copy 19 of the source file is then opened in a read-only manner.
The whole process of example 3 is now complete.
While the foregoing is directed to the preferred embodiment of the present invention, it is not intended that the invention be limited to the embodiment and the drawings disclosed herein. Equivalents and modifications may be made without departing from the spirit of the disclosure, which is to be considered as within the scope of the invention.

Claims (5)

1. A delay watermark adding method based on a document is characterized in that: creating a copy of a source file and an attribute file, and opening the copy of the source file by opening a plug-in;
the creating of the copy of the source file and the attribute file specifically comprises the following steps:
step A, setting relevant parameters for adding watermarks and generating configuration files through a graphical interface;
the relevant parameters comprise whether a watermark is added or not, a source file path, a watermark file path, a configuration file storage path, a generated encrypted file storage path, an open password, an edit password, a watermark angle, a watermark transparency, a watermark proportion and watermark adding time;
b, generating a copy of the source file and an attribute file by creating a plug-in;
wherein, an opening password and an editing password are added in the generated copy of the source file;
the property file contains: opening a password, editing the password, adding a watermark, adding time, a watermark proportion, a watermark angle and watermark transparency;
step C, reading the configuration file generated in the step A by creating a plug-in, opening the source file through a source file path, copying the source file to obtain a copy of the source file, and storing the copy of the source file into a folder of the generated encrypted file saving path set in the step A;
step D, adding an opening password and an editing password for the copy of the source file generated in the step B, and adding an opening password for the generated attribute file, wherein the steps are as follows:
step E, closing the opened source file and the watermark file;
from step A to step E, the creation of the copy of the source file and the property file is completed;
opening a copy of a source file by opening a plug-in, specifically comprising the steps of:
step 1, opening an attribute file and reading the content of a first page of the attribute file;
step 2, acquiring the current system time;
step 3, comparing the current system time with the time for adding the watermark to decide whether to add the watermark or not;
step 3, specifically:
3.1 if the current system time is less than the time for adding the watermark, the watermark is not required to be added, the plug-in is opened, the copy of the source file is opened in a read-only mode by inputting the opening password in the step A, and the copy is displayed to a user;
3.2 if the current system time is more than or equal to the time of adding the watermark, judging the attribute of 'whether the watermark is added' and determining whether the watermark is added or not without adding the watermark again according to the judgment result of 'whether the watermark is added' and displaying the watermark to the user;
3.2, specifically:
a, if the 'whether the watermark is added' is equal to 1, the watermark is added, the watermark does not need to be added again, the opening password in the step A is input, the copy of the source file is opened in a read-only mode, and the copy is displayed to a user;
if 'whether the watermark is added' is equal to 0, the fact that the watermark is not added is indicated, firstly, the opening password and the editing password which are set in the step A are input, the copy of the source file is opened in an editable mode, then, the contents behind the second page of the attribute file are read, and the watermark is added to the copy of the source file through the watermark angle, the watermark transparency and the watermark proportion attribute which are set in the step A; modifying the content of the attribute file, setting the value of 'whether the watermark is added' to be 1, finally closing the copy of the source file, inputting the opening password in the step A, opening the copy of the source file in a read-only mode, and displaying the copy to a user;
reading all contents, namely watermark files, of the attribute file after the first page;
step 4, closing the opened copy of the source file and the attribute file;
to this end, from step 1 to step 4, opening a copy of the source file by opening the plug-in is completed.
2.A document-based delayed watermarking method according to claim 1, wherein: in step B, the creation steps of the property file are as follows:
b.1, writing a first page of the attribute file into whether the watermark is added, a password is opened, a password is edited, a watermark angle, watermark transparency, watermark proportion and watermark adding time which are set in the step A;
b.2, opening the watermark file and copying the watermark file to a second page of the attribute file;
and step B.3, saving the attribute file into the folder of the generated encrypted file saving path set in the step A.
3. A document-based delayed watermarking method according to claim 1, wherein: in the step D, the property file is the property file stored in the folder of the "generated encrypted file storage path", and the open password added to the property file is not the open password filled in the step a, but is a fixed password.
4. A document-based delayed watermarking method according to claim 1, wherein: the source file and the watermark file are not changed in the process from the step A to the step E; located under the generated encrypted file saving path will be a copy of the source file and a property file.
5. A document-based delayed watermarking method according to claim 1, wherein: step 1, searching a corresponding attribute file in a peer directory of a generated encrypted file storage path by opening a plug-in, reporting an error if the corresponding attribute file cannot be found, and exiting the program; if the attribute file is found, the opening plug-in opens the attribute file by inputting a fixed opening password, and reads the content of the first page of the attribute file.
CN201810316865.7A 2017-12-29 2018-04-10 Delayed watermark adding technology based on document Active CN108537053B (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201711475877 2017-12-29
CN2017114758776 2017-12-29

Publications (2)

Publication Number Publication Date
CN108537053A CN108537053A (en) 2018-09-14
CN108537053B true CN108537053B (en) 2020-04-14

Family

ID=63479753

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810316865.7A Active CN108537053B (en) 2017-12-29 2018-04-10 Delayed watermark adding technology based on document

Country Status (1)

Country Link
CN (1) CN108537053B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111722897A (en) * 2020-05-06 2020-09-29 西安震有信通科技有限公司 Method and device for processing watermark effect of user-defined system interface

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101763487A (en) * 2009-12-16 2010-06-30 深圳市虹安信息技术有限公司 File active encryption method based on file notification message
CN102103736A (en) * 2009-12-18 2011-06-22 北京闻言科技有限公司 A technology for flexibly setting watermark parameters
CN101742193B (en) * 2009-12-22 2013-09-25 无锡中星微电子有限公司 Method for adding watermark into digital movie
CN102622545B (en) * 2012-03-01 2015-01-14 重庆大学 Picture file tracking method
CN104732162A (en) * 2015-04-02 2015-06-24 努比亚技术有限公司 File encryption processing method and device
CN107155057A (en) * 2016-03-06 2017-09-12 刘晓建 Electronic equipment quickly shoots the method with watermark photo

Also Published As

Publication number Publication date
CN108537053A (en) 2018-09-14

Similar Documents

Publication Publication Date Title
US7882432B2 (en) Information processing apparatus having font-information embedding function, information processing method therefor, and program and storage medium used therewith
US7688459B2 (en) Document processing method
US7634725B2 (en) Layout adjustment method, apparatus and program for the same
US20130073942A1 (en) Method, System, and Computer-Readable Medium To Uniformly Render Document Annotation Across Different Comuter Platforms
US20060170948A1 (en) Document processing apparatus, document processing method and program
US9449126B1 (en) System and method for displaying content according to a target format for presentation on a target presentation device
US8929686B2 (en) Method and system for deterministic document quality assurance
AU2021201489B2 (en) System and Process for generating an internet application
KR100798465B1 (en) Learning data formation system for the subject explanation
Whitington PDF explained
CN108537053B (en) Delayed watermark adding technology based on document
Castro EPUB Straight to the Point: Creating ebooks for the Apple iPad and other ereaders
JP2004527822A (en) System and method for independently editing computer-generated documents in creator software
JP6445457B2 (en) Electronic document providing method, system, parent server, and child client
JP2007316873A (en) Content server and layout system
US11526578B2 (en) System and method for producing transferable, modular web pages
US11783120B2 (en) System and process for generating an internet application
US8395793B2 (en) Apparatuses and methods that use a stamp function to register and edit a stamp
JP2011233104A (en) Information processing system, information processor, information processing method, program, and recording medium
JP4356533B2 (en) Document processing device
US20060017946A1 (en) Font and text management in documents
Huddleston Teach yourself visually web design
CN112818642B (en) Method and device for converting PDF (Portable document Format) file into form file, computer equipment and storage medium
JP5569367B2 (en) Image processing apparatus, image processing method, and program
Cohen Take Control of PDFpen

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
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20240202

Address after: Room 0606, 6th Floor, Building A, Berlin International Business Center, No. 85 Binhe West Road, Wanbailin District, Taiyuan City, Shanxi Province, 030024

Patentee after: Forest Fantasy (Taiyuan) Digital Technology Co.,Ltd.

Country or region after: China

Address before: 048000 Room 302, unit 2, building 5, Agricultural Bank of China residential area, Nancheng District, Xinshi East Street, Jincheng Development Zone, Shanxi Province

Patentee before: JINCHENG DARUI JINMA BUSINESS INFORMATION CONSULTING Co.,Ltd.

Country or region before: China