A method and system for online browser preview of documents and adding watermarks

By previewing documents online in the browser and adding watermarks, the problem of slow document preview process and insufficient security in domestic systems is solved, real-time preview of documents and watermark addition in multiple file formats is realized, enhancing the security of confidential documents consistency between sex and preview.

CN114357395BActive Publication Date: 2024-12-17SHANDONG ZHONGFU INFORMATION IND
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202111652791.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-12-30
Publication Date
2024-12-17
Estimated Expiration
2041-12-30

AI Technical Summary

Technical Problem

When existing domestic systems read documents from browsers, the document preview process is long and cannot meet real-time performance, so they cannot effectively protect the security of confidential documents.

Method used

By implementing online preview and watermark addition of documents in the browser, using unique identification codes to implant blind watermarks and clear watermarks, combining inverse Fourier transform and character Euler number replacement, a document in HTML or OFD format is generated, and Perform permission authentication to ensure the security of the document.

Benefits of technology

It realizes online preview and watermark addition of documents, enhances the security of confidential documents, provides traceability support, avoids font library problems in domestic environments, improves development efficiency, and ensures document security and preview consistency. .

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114357395B_ABST
    Figure CN114357395B_ABST
Patent Text Reader

Abstract

The present invention provides a method and system for online previewing of documents and adding watermarks by a browser, which comprises the following steps: obtaining a call request from a requesting party, reading a source file according to the call request, obtaining watermark information in the call request, and generating a unique identification code; adding the unique identification code as a watermark to a document to implant a blind watermark; replacing the Euler number of characters in the unique identification code, and adding a clear watermark of the document according to basic information of the watermark; converting the document to which the blind and clear watermarks are added into a set format, wherein the text in the document is stored as a tag, and the pictures in the document are converted into character strings and spliced ​​into the document in the set format; authenticating the call request; and displaying the document in the set format to the authenticated requesting party online through a browser. The present invention can realize adding a watermark in the online preview process of a document, thereby enhancing the security of confidential documents.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention belongs to the technical field of data access management, and in particular relates to a method and system for online browser document preview and watermark addition. Background Art

[0002] The statements in this section merely provide background information related to the present invention and do not necessarily constitute prior art.

[0003] In existing domestic systems, when reading documents from a browser, the document (or file) is usually retrieved, a watermark is added to the document, and then it is transmitted to the client. The whole process is long and cannot meet the real-time performance of online file preview. Summary of the invention

[0004] In order to solve the above problems, the present invention proposes a method and system for online previewing of documents and adding watermarks by a browser. The present invention can realize the adding of watermarks during the online preview process of documents, thereby enhancing the security of confidential documents. Both the document itself and the printed or photographed pictures carry watermarks, which can effectively deter people who come into contact with the documents and provide strong support for the traceability of the documents.

[0005] According to some embodiments, the present invention adopts the following technical solutions:

[0006] A method for previewing a document online and adding a watermark using a browser comprises the following steps:

[0007] Obtain a call request from the requesting party, read the source file according to the call request, obtain the watermark information in the call request, and generate a unique identification code;

[0008] Adding the unique identification code as a watermark to the document to perform blind watermark implantation;

[0009] The unique identification code is replaced with a character Euler number, and a clear watermark of the document is added according to the basic information of the watermark;

[0010] Convert the document with blind and visible watermarks into a set format, where the text in the document is stored as a label, and the pictures in the document are converted into strings and concatenated into the document in the set format;

[0011] Authenticate the call request;

[0012] The document in the set format is displayed online to the authenticated requester through a browser.

[0013] As an optional implementation, the specific process of generating a unique identification code is to generate a unique identification code based on the requester's MAC address, Internet Protocol address, preview time and some information of the user name.

[0014] As an optional implementation, in the process of adding the unique identification code as a watermark to the document, the unique identification code is added to the document as a watermark by using inverse Fourier transform.

[0015] As an optional implementation, the watermark information includes watermark content and address.

[0016] As an optional implementation manner, the basic information of the watermark includes the watermark position, size, tilt angle, color, X-axis and Y-axis distances.

[0017] As an optional implementation, the document with the blind and visible watermarks added is converted into an HTML file for online preview by a browser.

[0018] As an optional implementation, the document with the blind and visible watermarks added is converted into an OFD file and stored locally.

[0019] As an optional implementation, the specific process of authenticating the call request is: when the Internet Protocol address of the requester is consistent with the address in the watermark information in the call request, and the document is within the calling authority of the requester, the authentication is passed.

[0020] A system for previewing documents online and adding watermarks in a browser, comprising:

[0021] A call request acquisition module is configured to acquire a call request from a requesting party, read a source file according to the call request, acquire watermark information in the call request, and generate a unique identification code;

[0022] A blind watermark implantation module is configured to add the unique identification code as a watermark to the document to implant the blind watermark;

[0023] A clear watermark embedding module is configured to replace the character Euler number of the unique identification code and add a clear watermark of the document according to the basic information of the watermark;

[0024] A conversion module is configured to convert the document with the blind and visible watermarks added into a set format, wherein the text in the document is stored as a tag, and the image in the document is converted into a string and concatenated into the document in the set format;

[0025] An authentication module, configured to perform authentication of a call request;

[0026] The online display module is configured to display the document in the set format to the authenticated requester online through a browser.

[0027] An electronic device comprises a memory and a processor, and computer instructions stored in the memory and executed on the processor. When the computer instructions are executed by the processor, the steps in the above method are completed.

[0028] A computer-readable storage medium is used to store computer instructions, and when the computer instructions are executed by a processor, the steps in the above method are completed.

[0029] Compared with the prior art, the present invention has the following beneficial effects:

[0030] The present invention is simple and easy to use, reduces the threshold for practitioners, saves manpower investment, can avoid the unavailability of transcoding due to font library problems in a domestic environment, and improves development efficiency.

[0031] The invention can realize two functions of adding watermark and online preview, can be applicable to adding watermark to various files, and has wide application.

[0032] The present invention can effectively protect confidential documents through both light and dark watermarks.

[0033] The present invention includes a security authentication mechanism, so other terminals cannot access the previewed document even if the URL is copied, thereby ensuring the security of the document.

[0034] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, preferred embodiments are given below and described in detail with reference to the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0035] The accompanying drawings in the specification, which constitute a part of the present invention, are used to provide a further understanding of the present invention. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute improper limitations on the present invention.

[0036] Figure 1 2 is a system architecture diagram of this embodiment. DETAILED DESCRIPTION

[0037] The present invention will be further described below in conjunction with the accompanying drawings and embodiments.

[0038] It should be noted that the following detailed descriptions are all illustrative and intended to provide further explanation of the present invention. Unless otherwise specified, all technical and scientific terms used herein have the same meanings as those commonly understood by those skilled in the art to which the present invention belongs.

[0039] It should be noted that the terms used herein are only for describing specific embodiments and are not intended to limit exemplary embodiments according to the present invention. As used herein, unless the context clearly indicates otherwise, the singular form is also intended to include the plural form. In addition, it should be understood that when the terms "comprising" and / or "including" are used in this specification, it indicates the presence of features, steps, operations, devices, components and / or combinations thereof.

[0040] like Figure 1 As shown, the two parties involved in information transmission of the present invention are a server end and a user end, and the two communicate through the Internet.

[0041] The client sends a call request to the server, which includes the document information to be called, the watermark information to be added, and the basic information of the client.

[0042] The watermark information includes watermark content, address and basic information (position, size, tilt angle, color, X-axis and Y-axis distance of the watermark in the document);

[0043] The basic information of the client includes MAC address, IP address, preview time, user name, etc.

[0044] The server reads the corresponding source file according to the call request, saves the transmitted watermark information into the database, and returns the unique identification code UUID;

[0045] The unique identification code UUID is added to the document as a watermark through inverse Fourier transform to complete the implantation of blind watermarks, and the built-in font library is called to complete the replacement of the Euler number of the unique identification code UUID character. According to the watermark position, size, tilt angle, color, X-axis and Y-axis distance in the call request, the converted character Euler number is used as the explicit watermark, and the explicit watermark information of the document is added to the specified position of the document based on the above basic information.

[0046] The server converts the watermarked document into an OFD file and saves it locally.

[0047] The server converts the watermarked document into an HTML file, in which the text of the document is stored in a SPAN tag, and the images in the document are converted into BASE64 strings and spliced ​​into the HTML document.

[0048] Authenticate the calling authority of HTML documents, and allow terminal access only when the IP address of the accessing client is consistent with the address in the watermark information or the address in the calling request;

[0049] After authentication, the client opens the returned HTML file through the browser.

[0050] At this point, the document preview and watermark adding are completed.

[0051] The present invention also provides the following product embodiments:

[0052] A system for previewing documents online and adding watermarks in a browser, comprising:

[0053] A call request acquisition module is configured to acquire a call request from a requesting party, read a source file according to the call request, acquire watermark information in the call request, and generate a unique identification code;

[0054] A blind watermark implantation module is configured to add the unique identification code as a watermark to the document to implant the blind watermark;

[0055] A clear watermark embedding module is configured to replace the character Euler number of the unique identification code and add a clear watermark of the document according to the basic information of the watermark;

[0056] A conversion module is configured to convert the document with the blind and visible watermarks added into a set format, wherein the text in the document is stored as a tag, and the image in the document is converted into a string and concatenated into the document in the set format;

[0057] An authentication module, configured to perform authentication of a call request;

[0058] The online display module is configured to display the document in the set format to the authenticated requester online through a browser.

[0059] An electronic device comprises a memory and a processor, and computer instructions stored in the memory and executed on the processor. When the computer instructions are executed by the processor, the steps in the above method are completed.

[0060] A computer-readable storage medium is used to store computer instructions, and when the computer instructions are executed by a processor, the steps in the above method are completed.

[0061] The present invention can realize the online preview of files in various formats and the method of adding watermarks in one step, and ensure the uniqueness and reliability of each document by converting the electronic document into domestic OFD format files.

[0062] The user end that needs to add a watermark can upload the access address of the file in PDF, OFD, DOC, XLS, PPT and other formats by sending a request and calling the URL.

[0063] When this URL is called, the file stream of the calling end is obtained, the document is first converted into an OFD format document, and then redundant information (watermark) is added to the OFD document and the Euler number of the text is transformed using the built-in font library to add the watermark. After the watermark is added, the OFD format file is converted into HTML and returned to the user end to achieve online preview and watermark addition.

[0064] Configure this tool service through the interface to achieve online document preview and add watermarks.

[0065] Compared with the traditional initial document preview and watermark adding process, the present invention solves the problems of inconsistent document preview format display and low watermark quality under domestic machines and operating systems. By providing online services, the security of confidential documents and the consistency of preview in domestic environments are enhanced. Whether it is printing during preview or taking pictures, the pictures carry dark watermark information, which can effectively deter people who come into contact with the documents. It provides strong support for document traceability.

[0066] Those skilled in the art will appreciate that embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0067] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0068] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0069] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0070] Although the above describes the specific implementation mode of the present invention in conjunction with the accompanying drawings, it is not intended to limit the scope of protection of the present invention. Those skilled in the art should understand that various modifications or variations that can be made by those skilled in the art on the basis of the technical solution of the present invention without creative work are still within the scope of protection of the present invention.

Claims

1. A method for online document preview and watermarking in a browser, characterized by: The following steps are involved: Obtaining a call request from a requesting party, reading a source file according to the call request, obtaining watermark information in the call request, and generating a unique identification code; the watermark information includes watermark content and address; Using inverse Fourier transform to add the unique identification code as a watermark to the document, thereby performing blind watermark implantation; The unique identification code is replaced with the character Euler number, and a clear watermark of the document is added according to the basic information of the watermark; the basic information of the watermark includes the watermark position, size, tilt angle, color, X-axis and Y-axis distance; the document with the blind and clear watermarks added is converted into a set format, wherein the text in the document is stored as a label, and the pictures in the document are converted into character strings and spliced ​​into the document in the set format; When the URL is called, the file stream of the calling end is obtained, the document is first converted into an OFD format document, and then redundant information is added to the OFD document and the Euler number of the text is transformed using the built-in font library to add a watermark; after the watermark is added, the OFD format file is converted into HTML and returned to the user end to achieve online preview and watermark addition; Authenticate the call request; The document in the set format is displayed online to the authenticated requester through a browser.

2. A method for online document preview and watermarking in a browser as claimed in claim 1, characterized in that: The specific process of generating a unique identification code is to generate a unique identification code based on the requester's MAC address, Internet Protocol address, preview time and certain information in the user's name.

3. The method for online document preview and watermarking in a browser as claimed in claim 1, characterized in that: The specific process of authenticating the call request is: when the Internet Protocol address of the requester is consistent with the address in the watermark information in the call request, and the document is within the call authority of the requester, the authentication is passed.

4. A system for online document preview and watermarking in a browser, characterized by: include: A call request acquisition module is configured to acquire a call request from a requesting party, read a source file according to the call request, acquire watermark information in the call request, and generate a unique identification code; the watermark information includes watermark content and address; A blind watermark implantation module is configured to use inverse Fourier transform to add the unique identification code as a watermark to the document to implant the blind watermark; The watermark embedding module is configured to replace the unique identification code with the Euler number of the characters, and add the watermark of the document according to the basic information of the watermark; the basic information of the watermark includes the watermark position, size, tilt angle, color, X-axis and Y-axis distance; A conversion module is configured to convert the document with the blind and visible watermarks added into a set format, wherein the text in the document is stored as a tag, and the image in the document is converted into a string and concatenated into the document in the set format; When the URL is called, the file stream of the calling end is obtained, the document is first converted into an OFD format document, and then redundant information is added to the OFD document and the Euler number of the text is transformed using the built-in font library to add a watermark; after the watermark is added, the OFD format file is converted into HTML and returned to the user end to achieve online preview and watermark addition; An authentication module, configured to perform authentication of a call request; The online display module is configured to display the document in the set format to the authenticated requester online through a browser.

5. An electronic device, characterized in that: The method comprises a memory and a processor, and computer instructions stored in the memory and executed on the processor, wherein when the computer instructions are executed by the processor, the steps in the method according to any one of claims 1 to 3 are completed.

6. A computer-readable storage medium, characterized in that: Used to store computer instructions, which, when executed by a processor, complete the steps of the method according to any one of claims 1 to 3.

Citation Information

Patent Citations

  • Encrypted document processing method and system

    CN112258376A