Document access method and device, computer equipment, storage medium and program product
By displaying screenshots of document content on the client and jumping to the display page of the target document, the problem of inefficient document access in the prior art is solved, and a faster and more convenient document access process is achieved.
Patent Information
- Application Number
- CN202311815965.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-12-26
- Publication Date
- 2025-06-27
AI Technical Summary
In the prior art, document access efficiency is low, especially when more information in the document is needed, the recipient needs to ask the sender for the source document taken by the screenshot and access the document by asking for a document link.
Provide a document access method, by displaying screenshots of document content on the client of the target account, and displaying the document viewing logo in response to the trigger operation, jump to the display page of the target document, so as to directly access the target document through screenshot of document content.
It effectively improves the efficiency of document access and reduces the interaction steps and waiting time of users during document access.
Smart Images

Figure CN120216791A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of computer technologies, and in particular, to a document access method, apparatus, computer device, storage medium, and computer program product. Background Art
[0002] With the development of computer networks, there are more and more online office matters. During the interaction process, there are often scenarios where relevant documents are intercepted and sent to the interaction object.
[0003] Since the content of the intercepted document is limited, when the recipient needs to know more information in the document, they need to ask the sender for the source document of the screenshot and access the document by asking for the document link, resulting in relatively low access efficiency. Summary of the Invention
[0004] Based on this, in view of the above technical problems, it is necessary to provide a document access method, apparatus, computer device, computer-readable storage medium, and computer program product that can improve document access efficiency.
[0005] In a first aspect, this application provides a document access method. The method includes:
[0006] Display a screenshot of the document content intercepted for a target document on the client where the target account is located;
[0007] In response to a trigger operation on the screenshot of the document content, when the target account has the viewing permission for the target document, display a document viewing identifier pointing to the target document;
[0008] In response to a trigger operation on the document viewing identifier, jump to the display page of the target document.
[0009] In a second aspect, this application provides a document access method. The method includes:
[0010] Receive an identifier acquisition request sent by a client; the identifier acquisition request is a request generated by the client in response to a trigger operation on a screenshot of document content;
[0011] Extract the watermark content of the screenshot of the document content from the identifier acquisition request;
[0012] Identify the target document pointed to by the watermark content in the screenshot of the document content;
[0013] Generate an access interface for accessing the target document, and send the document viewing identifier corresponding to the access interface to the client after encapsulation.
[0014] In a third aspect, this application further provides a document access apparatus. The apparatus includes:
[0015] A screenshot display module, configured to display a screenshot of the document content captured for a target document on the client where the target account is located;
[0016] An identifier display module, configured to display a document viewing identifier pointing to the target document in response to a trigger operation on the screenshot of the document content, when the target account has the viewing permission for the target document;
[0017] A document jump module, configured to jump to the display page of the target document in response to a trigger operation on the document viewing identifier.
[0018] In a fourth aspect, the present application further provides a document access device. The device includes:
[0019] A request receiving module, configured to receive an identifier acquisition request sent by a client; the identifier acquisition request is a request generated by the client in response to a trigger operation on the screenshot of the document content;
[0020] An information extraction module, configured to extract the watermark content of the screenshot of the document content from the identifier acquisition request;
[0021] A watermark recognition module, configured to recognize the target document pointed to by the watermark content in the screenshot of the document content;
[0022] An identifier processing module, configured to generate an access interface for accessing the target document, and send the document viewing identifier corresponding to the access interface to the client.
[0023] In a fifth aspect, the present application further provides a computer device. The computer device includes a memory and a processor. The memory stores a computer program, and when the processor executes the computer program, it implements the document access method according to any one of the above embodiments.
[0024] In a sixth aspect, the present application further provides a computer-readable storage medium. The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, it implements the document access method according to any one of the above embodiments.
[0025] In a seventh aspect, the present application further provides a computer program product. The computer program product includes a computer program, and when the computer program is executed by a processor, it implements the document access method according to any one of the above embodiments.
[0026] The above-mentioned document access method, device, computer device, storage medium, and computer program product display a screenshot of the document content intercepted from the target document on the client where the target account is located. In response to a trigger operation on the screenshot of the document content, when the target account has the viewing permission for the target document, the terminal displays a document viewing identifier pointing to the target document to prompt the user that they can access the target document through the document viewing identifier. By responding to the trigger operation on the document viewing identifier, it is confirmed that the target account has the need to access the target document, and it directly jumps to the display page of the target document, so as to realize directly jumping to the target document through the screenshot of the document content to view the document content, which can effectively improve the access efficiency of the document. Description of the Drawings
[0027] Figure 1 It is an application environment diagram of the document access method in an embodiment;
[0028] Figure 2 It is a schematic flowchart of the document access method in an embodiment;
[0029] Figure 3 It is a schematic diagram comparing the visible watermark and the invisible watermark in an embodiment;
[0030] Figure 4 It is a schematic diagram of the page change during the document access process in an embodiment;
[0031] Figure 5 It is a schematic diagram of the page change when opening a document to display a watermarked document in an embodiment;
[0032] Figure 6 It is a schematic diagram comparing the watermark effects corresponding to different document area division methods in an embodiment;
[0033] Figure 7 It is a schematic diagram of the process of closing the screenshot jump function switch in an embodiment;
[0034] Figure 8 It is an interaction schematic diagram of closing the screenshot jump function switch in an embodiment;
[0035] Figure 9 It is a schematic flowchart of the document access method in another embodiment;
[0036] Figure 10 It is an interaction schematic diagram of the document access method in an embodiment;
[0037] Figure 11 It is a schematic diagram of the process of generating an invisible watermark in an embodiment;
[0038] Figure 12 It is a schematic diagram of the process of recognizing a document screenshot in an embodiment;
[0039] Figure 13 is a structural block diagram of a document access device in one embodiment;
[0040] Figure 14 is a structural block diagram of a document access device in another embodiment;
[0041] Figure 15 is an internal structure diagram of a computer device in one embodiment;
[0042] Figure 16 is an internal structure diagram of a computer device in another embodiment. Detailed implementation manners
[0043] In order to make the objectives, technical solutions, and advantages of the present application clearer and more understandable, the present application will be further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0044] The document access method provided by the embodiments of the present application can be applied to an application environment as Figure 1 shown. Among them, the terminal 102 communicates with the server 104 through a network. The data storage system can store the data that the server 104 needs to process. The data storage system can be integrated on the server 104, or can be placed in the cloud or on other servers. The client 102A is installed on the terminal 102. The user can log in to the client 102A through the account registered on 102A. In the client 102A where the target account is located, when a screenshot of the document content intercepted for the target document is received, the screenshot of the document content is displayed in the client 102A. The terminal 102, in response to a trigger operation on the screenshot of the document content, displays a document viewing identifier pointing to the target document when the target account has the viewing permission for the target document. The terminal 102, in response to a trigger operation on the document viewing identifier, jumps to the display page of the target document to implement access to the target document.
[0045] In some specific application scenarios, the client can be the client of a communication application, and the target document can be an online document created through the account organization in the communication application. Among them, the online document can be a document that supports multi-person online editing, such as word documents, tables, slides, etc. The editing operations on the online document can be synchronized in real time to the terminals corresponding to other participants of the online document. A communication application refers to an application that realizes data communication through a network based on computer technology, such as various communication-enabled applications like instant messaging applications, email applications, and conferencing applications. An account organization refers to an organization composed of multiple communication application accounts. Through the account organization, each account in the communication application can be uniformly managed. For example, the account organization can be a class collective, that is, the communication application accounts of users belonging to the same class collective can belong to the account organization corresponding to the class collective; another example is that the account organization can be an enterprise organization, and the accounts belonging to the same enterprise can belong to the enterprise account organization corresponding to the enterprise. In the communication application, it is supported to establish different account organizations according to user needs to uniformly manage different accounts through the account organization. For example, for each account belonging to the same account organization, by creating an online document, it is supported for each account to perform collaborative operations on the online document.
[0046] Specifically, the terminal can display the online document in the interface of the client, and the online document can be created through the account organization in the communication application. In the account organization, the user can create an online document through the account held, and configure the access rights to the created online document through the terminal. For example, in the account organization of Enterprise A, the online table created by User A through Account 1 can default that all accounts in the account organization of Enterprise A have the viewing right to the online table. User A can also configure the viewing rights of some accounts in the account organization of Enterprise A to the online table through Account 1. For example, User A configures that Accounts 2, 3, and 4 in the account organization of Enterprise A have the viewing right for the created online table, then Accounts 2, 3, and 4 can access the online table normally and view the content of the online table.
[0047] In the specific implementation, the user can log in to the communication application through the account belonging to the account organization, and send a screenshot of the document content of the target document to the target account of the interaction object in the communication application; in the client where the target account is located, display the screenshot of the document content intercepted for the target document; when the interaction object views the screenshot of the document content, if the target account of the interaction object has the viewing right to the target document, then display a document viewing identifier pointing to the target document; the interaction object can jump to the display page of the target document for access by triggering the document viewing identifier.
[0048] In addition, if the target account of the interaction object does not have the viewing permission for the target document, indicating that the user has no right to access the online document, the terminal displays other operation identifiers for the screenshot of the document content, such as operation identifiers for copying the picture, saving the picture as another file, etc.
[0049] Among them, the terminal 102 can be, but is not limited to, various desktop computers, laptop computers, smart phones, tablet computers, Internet of Things devices, and portable wearable devices. The Internet of Things devices can be smart speakers, smart TVs, smart air conditioners, smart in-vehicle devices, etc. The portable wearable devices can be smart watches, smart bracelets, head-mounted devices, etc. The server 104 can be implemented by an independent server or a server cluster composed of multiple servers.
[0050] Artificial Intelligence (AI) is a theory, method, technology, and application system that uses digital computers or machines controlled by digital computers to simulate, extend, and expand human intelligence, perceive the environment, acquire knowledge, and use knowledge to obtain the best results. In other words, artificial intelligence is a comprehensive technology in computer science. It attempts to understand the essence of intelligence and produce a new intelligent machine that can respond in a way similar to human intelligence. Artificial intelligence also studies the design principles and implementation methods of various intelligent machines to enable the machines to have the functions of perception, reasoning, and decision-making. Artificial intelligence technology is an interdisciplinary subject, involving a wide range of fields, including both hardware-level technologies and software-level technologies. Artificial intelligence basic technologies generally include technologies such as sensors, dedicated artificial intelligence chips, cloud computing, distributed storage, big data processing technology, operation / interaction systems, and mechatronics. Artificial intelligence software technologies mainly include several major directions such as computer vision technology, speech processing technology, natural language processing technology, and machine learning / deep learning.
[0051] Computer Vision Technology (CV) Computer vision is a science that studies how to enable machines to "see". Further, it refers to using cameras and computers to replace human eyes to perform machine vision such as identifying, tracking, and measuring targets, and further performing graphic processing to make the images processed by the computer more suitable for human eyes to observe or be transmitted to instruments for detection. As a scientific discipline, computer vision studies related theories and technologies and attempts to establish an artificial intelligence system that can obtain information from images or multi-dimensional data. Computer vision technology usually includes technologies such as image processing, image recognition, image semantic understanding, image retrieval, OCR, video processing, video semantic understanding, video content / behavior recognition, three-dimensional object reconstruction, 3D technology, virtual reality, augmented reality, simultaneous localization and mapping, etc., and also includes common biometric recognition technologies such as face recognition and fingerprint recognition.
[0052] Natural Language Processing (NLP) is an important direction in the fields of computer science and artificial intelligence. It studies various theories and methods that can achieve effective communication between humans and computers in natural language. Natural language processing is a science that integrates linguistics, computer science, and mathematics. Therefore, the research in this field will involve natural language, that is, the language people use in daily life, so it has a close connection with the research of linguistics. Natural language processing technologies usually include text processing, semantic understanding, machine translation, robot question answering, knowledge graph and other technologies.
[0053] The solution provided in the embodiments of this application involves technologies such as computer vision technology and natural language processing in artificial intelligence, to accurately and efficiently identify the watermark content in the target document, which will be specifically described through the following embodiments.
[0054] In one embodiment, as Figure 2 shown, a document access method is provided. This method is executed by a computer device, and specifically, it can be executed alone by a computer device such as a terminal or a server, or jointly executed by a terminal and a server. In the embodiments of this application, taking the case where this method is applied to Figure 1 the terminal as an example, it includes the following steps:
[0055] Step 202, display a screenshot of the document content intercepted from the target document on the client where the target account is located.
[0056] Among them, the client is a program that provides local services for customers corresponding to the server. The client is installed on the terminal, and the server corresponding to the client has the background processing ability for the target document. The target account is the account currently logged in on the client. The target account can also be a member of an account organization. Taking the client that uses this client as a communication application as an example, the account organization is an organization composed of the accounts of multiple communication applications. Through the account organization, each account in the communication application can be uniformly managed. For example, the account organization can be a class collective, that is, the communication application accounts of users belonging to the same class collective can belong to the account organization corresponding to the class collective; another example is that the account organization can be an enterprise organization, then the accounts belonging to the same enterprise can belong to the enterprise account organization corresponding to the enterprise. In the communication application, it is supported to establish different account organizations according to user needs to uniformly manage different accounts through the account organization.
[0057] The target document can be an online document that supports multi-person online editing. Editing operations on the online document can be synchronized in real time to the corresponding terminals of other participants of the online document. For example, for each account belonging to the same account organization, an online document can be created to support collaborative operations on the online document by each account. The target document can also be a general document that only supports single-person editing. After an editing operation on the online document, the synchronization of the editing operation needs to be achieved by saving and sending the file. The document types of the target document include any one of word documents, tables, and slides.
[0058] A document content screenshot is a picture of the document content intercepted from the target document, and the document content intercepted from the target document is at least a part of all the content of the target document. For example, if the target document has a total of 15 pages, the intercepted document content can be a part of one of the pages. Another example is that if the target document has a total of 3 sub-tables, the intercepted document content can be a part of one of the sub-tables.
[0059] In some of the embodiments, the document content screenshot is added with a watermark. A watermark refers to an additional layer of identification information added without changing the original data. The watermark added to the document content screenshot is used to characterize the source document of the document content screenshot. Among them, the watermark added to the document content screenshot can specifically be Figure 3 the visible watermark shown in the left picture in Figure 3 or the invisible watermark shown in the right picture in
[0060] Specifically, the watermark added to the document content screenshot can be used to characterize the relevant information of the target document to enable access to the target document, and can also characterize the specific location of the document content in the document content screenshot in the target document to enable positioning of the specific screenshot location in the target document.
[0061] Step 204, in response to a trigger operation on the document content screenshot, when the target account has the viewing permission for the target document, display a document viewing identifier pointing to the target document.
[0062] Among them, in an interactive scenario, the target account receives the document content interception Figure 1Generally, it is displayed based on a specific size. On the terminal logged in by the target account, the interactive object can trigger a screenshot of the document content and view the screenshot of the document content. Specifically, taking the terminal as a touch-screen operation terminal as an example, the triggering operation for the screenshot of the document content can be any one of the triggering operations such as a click operation, a long-press operation, a double-click operation, etc. on the screenshot of the document content. Taking the terminal as a PC as an example, the triggering operation for the screenshot of the document content can be a triggering operation on the screenshot of the document content through an input device, such as triggering by right-clicking the mouse or double-clicking the mouse after selecting the screenshot of the document content.
[0063] The viewing permission of the target account for the target document can be a permission that the system default has, or a permission configured by the owner of the target document. The owner of the target document can specifically be the creator of the target document, or a manager with management permission for the target document, or an account with read-write permission for the target document, or all accounts with viewing permission for the target document. The owner of the target document can be defined according to the actual application scenario.
[0064] In some embodiments, on the client of the management account of the target document, the default permission range for viewing the target document can be displayed; the terminal displays the member accounts with viewing permission for the target document by responding to the modification operation triggered by the management account for the default permission range.
[0065] For example, in the A enterprise account organization to which the target account belongs, user A creates an online form through account 1. It can be default that all accounts in the A enterprise account organization have the viewing permission for the online form. Since the target account belongs to the A enterprise account organization, it has the viewing permission for the online form. For another example, user A can also configure the viewing permission for the online form for some accounts in the A enterprise account organization through account 1. User A configures that the target account, account 2, account 3, and account 4 in the A enterprise account organization have the viewing permission for the created online form. Then the target account, account 2, account 3, and account 4 can access the online form normally and view the content of the online form.
[0066] By associating the accounts in the viewing permission range of the target document with the target account, if the target account exists in the viewing permission range of the target document, it means that the target account has the viewing permission for the target document. Similarly, if the target account does not exist in the viewing permission range of the target document, it means that the target account does not have the viewing permission for the target document.
[0067] The document viewing identifier pointing to the target document refers to the identifier that prompts the user to access the target document by triggering. The document viewing identifier can encapsulate the access interface for accessing the target document, so that when the document viewing identifier is triggered, the access to the target document can be realized through the access interface.
[0068] Specifically, the document viewing identifier can be the identifier obtained by the target account triggering the triggering operation for the screenshot of the document content and obtaining it from the server. The server can verify the viewing permission of the target account for the target document. When the target account has the viewing permission for the target document, it can feedback the document viewing identifier pointing to the target document to the terminal and display the document viewing identifier on the terminal.
[0069] Step 206, in response to the triggering operation for the document viewing identifier, jump to the display page of the target document.
[0070] The triggering operation for the document viewing identifier can be implemented by any one of the triggering forms such as clicking, long pressing, double clicking, etc. on the document viewing identifier. The specific triggering operation form can be set according to the actual scenario and is not limited here.
[0071] The display page of the target document can specifically be the detailed content display page of the target document, or the message display page corresponding to the target document sent in the form of a message in the interaction record. For example, when the target object has received the target document sent in the form of a message from other interaction objects, the terminal can, in response to the triggering operation for the document viewing identifier, jump to the message display page corresponding to the target document. Another example is that regardless of whether the target object has received the target document sent in the form of a message, when the screenshot of the document content of the target document is obtained, the detailed document content display page of the target document can be jumped to through the triggering operation of the document viewing identifier.
[0072] In some embodiments, taking the target document as an online document as an example, in response to the triggering operation for the document viewing identifier, jumping to the display page of the target document includes: in response to the triggering operation for the document viewing identifier, opening the online document on the client.
[0073] For example, as Figure 4 shown, in the interaction page of the communication application, the screenshot of the document content is displayed in the form of a message for the target account, and then by responding to the trigger for the screenshot of the document content, the document viewing identifier pointing to the target document is displayed. When the target account triggers the document viewing identifier, the online document is opened in the communication application.
[0074] In this embodiment, by opening the online document on the client, it is possible to directly implement the collaborative operation of each account for the online document on the client, improving the convenience of document collaborative operation.
[0075] In the above document access method, by displaying a screenshot of the document content intercepted from the target document on the client where the target account is located, since the screenshot of the document content is added with a watermark indicating the source document of the screenshot, the source document of the screenshot of the document content can be determined through the watermark. The terminal, in response to a trigger operation on the screenshot of the document content, displays a document viewing identifier pointing to the target document when the target account has the viewing permission for the target document, so as to prompt the user that the target document can be accessed through the document viewing identifier. By responding to the trigger operation on the document viewing identifier, it is confirmed that the target account has the need to access the target document, and directly jumps to the display page of the target document, so as to realize directly jumping to the target document through the screenshot of the document content for viewing the document content, which can effectively improve the access efficiency of the document.
[0076] In some of these embodiments, the screenshot of the document content is obtained by taking a screenshot of the document with a watermark added and sent to the target account. The specific process includes: in response to the open operation of the target document by an account with the viewing permission for the target document, the target document with the watermark added is displayed.
[0077] In response to the intercept operation on part of the content in the target document, a screenshot of the document content with the watermark added is displayed.
[0078] To ensure that the screenshot of the document content contains a watermark, a watermark is added to the target document when the target document is opened, that is, before taking a screenshot of part of the content in the target document, which can ensure that the screenshot of the document content obtained by taking a screenshot of part of the content in the target document carries a watermark representing the document information of the target document. When the target account that receives the screenshot of the document content views the screenshot of the document content, the server can extract the document information representing the target document of the screenshot of the document content carried by the identifier acquisition request through the identifier acquisition request sent by the terminal where the target account is located, and generate a document viewing identifier for accessing the target document.
[0079] In this embodiment, by displaying the target document with the watermark added when the target document is opened, it can be ensured that when taking a screenshot of part of the content in the target document, it carries the watermark for the target document, so that the source document of the screenshot of the document content can be determined through the watermark, and further, the target document can be directly jumped to through the screenshot of the document content for viewing the document content, which can effectively improve the access efficiency of the document.
[0080] In some of these embodiments, the watermark added to the target document is related to the account that opens the target document. The specific process includes:
[0081] In response to the opening operation of the target document by the first account that has the viewing permission for the target document, display the target document with a watermark added.
[0082] In response to the intercepting operation of part of the content in the target document by the first account, display a screenshot of the document content with a watermark added.
[0083] Among them, the watermark of the target document is generated in real time when the user opens the target document through the first account. The watermark content of this watermark includes not only the document information of the target document but also the account information of the first account. In other words, when different accounts open the same target document, the watermarks added to the target document are different. By adding a watermark carrying account information to the target document, it is possible to trace the account that intercepted the screenshot of the document content based on the account information in the watermark and quickly locate the account that intercepted and sent the document content.
[0084] Specifically, as Figure 5 shown, in the "My Documents" of the client of User A, online documents related to the user can be displayed. Through the clock-in operation for one of the documents, such as the document "Competitive Product Analysis", display the document with a watermark added. For example, Figure 5 the watermark in
[0085] is "User A, Competitive Product Analysis". User A is the account information of the user, and Competitive Product Analysis is the document information.
[0086] In this embodiment, when the target document is opened, the target document with a watermark added can be displayed according to the account that opened the target document, so that the screenshot of the document content obtained by the first account taking a screenshot of the target document has a watermark that characterizes the source document of the screenshot. From the source, a watermark is added to the target document, which is convenient for realizing the dissemination traceability of the document content screenshot through the watermark and the quick positioning access to the target document.
[0087] In some of these embodiments, in response to an open operation on a target document by a first account that has viewing permission for the target document, a target document with a watermark added is displayed, including:
[0088] In response to a viewing operation on the target document by a first account that has viewing permission for the target document, a watermark acquisition request is sent to the server; the watermark acquisition request carries the document information of the target document and the account information of the first account;
[0089] A watermark image fed back by the server is received; the watermark image is an image generated by the server based on the document information and the account information;
[0090] The watermark image is layer-overlaid with the target document, and the target document with the watermark added is rendered and displayed.
[0091] Among them, the watermark acquisition request is a request sent by the terminal to the server when the first account triggers an open operation on the target document. The watermark acquisition request is used to obtain a watermark image containing the first account and information related to the target document. The watermark acquisition request carries the document information of the target document and the account information of the first account, so that the server can extract the document information of the target document and the account information of the first account from the watermark acquisition request, and then generate a watermark image based on the document information and the account information and feed it back to the terminal.
[0092] The watermark content in the watermark image includes both the information related to the target document and the account information of the first account. When the server obtains the watermark content again, it can locate the target document corresponding to the watermark based on the information related to the target document, and can also determine the capture object of the document content screenshot through the account information of the first account. After the terminal obtains the watermark image fed back by the server, it can overlay the watermark image on the target document to achieve the rendering of the watermark image, and then obtain the target document with the watermark added. Thus, in response to the viewing operation of the first account on the target document, the target document displayed on the client of the first account is a document with a watermark added, and when the user captures the content of the target document through the first account, the captured content is the content with the watermark added.
[0093] In this embodiment, through the interaction between the terminal and the server, a watermark associated with the document information and the account information is obtained from the server, and the generation process of the watermark is transferred to the server to be implemented, which can reduce the data processing pressure of the terminal and improve the data processing efficiency. It can be understood that in some embodiments, when the computing power of the terminal is strong enough, the watermark can also be generated by the terminal based on the document information and the account information and overlaid on the target document.
[0094] For a target document with a large amount of content, since the captured screenshot of the document content is only a small part of the target document, when the target account accesses the target document, it takes a relatively long time to find the content of the screenshot from the target document. The following embodiments solve this problem:
[0095] In some embodiments, the target document includes multiple document areas, and the watermark image includes multiple watermark sub-images corresponding one-to-one to the document areas. The watermark sub-images represent the account information of the first account and the position information of the corresponding document area in the target document;
[0096] Overlaying the watermark image and the target document in layers and rendering to obtain the target document with the watermark added includes:
[0097] Overlaying each watermark image and the target document in layers according to the corresponding document area, and rendering to obtain the target document with different watermarks added to different document areas.
[0098] Among them, the composition of the document area refers to the result obtained by dividing the target document according to the document structure or document content. The area division method of the target document can be divided according to the document type. For example, a word document is divided by page, a table is divided by a sub-table, and a slide is divided by one sheet. The area division method of the target document can be divided according to the document content. For example, it can be divided by chapter, by table header, etc. The specific area division method and division granularity can be adjusted and configured according to the actual application scenario. For scenarios with high positioning accuracy requirements, the area division granularity can be set relatively small, and for scenarios with low positioning accuracy requirements, the area division granularity can be set relatively large. As Figure 6 shown, in the competitor analysis document, the document area can be divided according to the document chapter, and the watermarks of different chapters are different. As Figure 6 shown in the left figure, the watermark contents of each chapter of the document are "Section 1 of Competitor Analysis", "Section 2 of Competitor Analysis", "Section 3 of Competitor Analysis", "Section 4 of Competitor Analysis", etc. In the competitor analysis document, the document area can be divided according to the number of pages, and the watermarks of different pages are different. As Figure 6 shown in the right figure, the content of the document is the first page, and the corresponding watermark content is "Page 1 of Competitor Analysis".
[0099] Specifically, taking the generation of a watermark image by a server as an example, the generation process of the watermark image includes: obtaining the composition of document areas based on the document information, and generating a plurality of watermark sub-images corresponding one-to-one to each document area based on the composition of the document areas and the account information. By generating a plurality of watermark sub-images corresponding one-to-one to each document area according to the composition of the document areas in the document information and the account information, the watermark content of each watermark sub-image can include the account information of the first account and the position information of the corresponding document area in the target document. Thus, during the process of identifying the watermark content of the watermark added to the screenshot of the document content, the document area to which the screenshot of the document content belongs can be located. Furthermore, when accessing the target document, rapid positioning of the screenshot of the document content can be achieved, without the user having to search for the screenshot of the document content from the beginning of the target document, which can reduce the processing resources consumed by the computer in responding to the user's search for the screenshot of the document content and improve resource utilization rate.
[0100] In some embodiments, taking the process of generating the watermark image being implemented by the server as an example, before generating the watermark image, it further includes verifying whether the first account has access rights to the target document and verifying whether the target document enables the screenshot jump function. When the verification passes, the watermark image is generated based on the document information of the target document and the account information of the first account, avoiding waste of the computer's processing resources caused by useless processing processes and improving resource utilization rate.
[0101] In some embodiments, when at least one of the verification of the access rights of the first account and the verification of whether the target document enables the screenshot jump function fails, the target document is directly displayed on the client of the first account, that is, the target document without the watermark is displayed. Correspondingly, for the screenshot of the document content without the watermark, the document viewing identifier pointing to the target document is not displayed either, that is, the processing method is the same as that of an ordinary document screenshot.
[0102] In some embodiments, the watermark includes watermark content indicating the document area where the screenshot of the document content is located in the target document;
[0103] Responding to a trigger operation on the document viewing identifier and jumping to the display page of the target document includes:
[0104] Responding to a trigger operation on the document viewing identifier, jumping to the display page of the target document, and positioning and displaying the document area where the screenshot of the document content is located in the target document.
[0105] Among them, the watermark content is the specific content of the watermark. The watermark content can be the plaintext content or the encoded content obtained by encoding the plaintext content. For example, the watermark content can include document information, and the document information can specifically be the position information of the area where the screenshot of the document content is located in the target document, etc. The watermark content can also include the account information of the account that opens the target document and takes a screenshot. The account information can be the user account, user name, user department, etc.
[0106] Specifically, since the watermark includes the watermark content representing the document area where the screenshot of the document content is located in the target document, and different document areas in the target document correspond to different watermarks, therefore, based on the watermark content of the watermark, the document area where the screenshot of the document content is located can be located, so as to realize the rapid positioning and access to the document area where the screenshot of the document content is located.
[0107] In this embodiment, the document area to which the screenshot of the document content belongs is located through the document area represented by the watermark content of the watermark. Furthermore, when accessing the target document, the rapid positioning of the screenshot of the document content can be realized, without the user having to search for the screenshot of the document content from the beginning in the target document, which can reduce the processing resources consumed by the computer in responding to the process of the user searching for the screenshot of the document content and improve the resource utilization rate.
[0108] In one of the embodiments, locating and displaying the document area where the screenshot of the document content is located in the target document includes:
[0109] In the current display page of the target document, display the document area where the screenshot of the document content is located.
[0110] Specifically, when locating and displaying the document area where the screenshot of the document content is located, it can be that when accessing the target document by triggering the document viewing identifier, the user opens the target document and directly displays the document area where the screenshot of the document content is located, so that the user can directly display the document content of the screenshot of the document content in the current display page, which is convenient for the user to view the context content of the document content of the screenshot of the document content in the target document and improves the positioning efficiency of the screenshot of the document content.
[0111] In one of the embodiments, locating and displaying the document area where the screenshot of the document content is located in the target document includes:
[0112] In the target document, mark and display the area where the screenshot of the document content is located.
[0113] Specifically, when positioning the document area where the screenshot of the document content is located, when accessing the target document by triggering the document viewing identifier, the target document can be opened in the default opening manner. For example, when the target document is opened by default, the first page or the first sub-table is displayed. For the area where the document content screenshot is located, it can be displayed in a marked manner. When the user browses to the area where the document content screenshot is located, the mark can be used to determine that this document area is the area where the document content screenshot is located, and the marked display is cancelled after the browsing time meets the preset duration condition.
[0114] In this embodiment, without changing the original document opening method, the marked display can help users quickly locate the area where the document content screenshot is located and improve the positioning efficiency of the document content screenshot.
[0115] In some of these embodiments, the method further includes:
[0116] Displaying a screenshot jump function switch for the target document;
[0117] In response to an open operation on the target document by a first account with viewing permission for the target document, displaying the target document with a watermark added, including:
[0118] In the case where the screenshot jump function switch of the target document is in the on state, in response to an open operation on the target document by a first account with viewing permission for the target document, displaying the target document with a watermark added.
[0119] Among them, the screenshot jump function switch refers to a switch that determines whether to allow access to the document corresponding to the screenshot by triggering a jump through the screenshot. As Figure 7 and Figure 8 shown, the owner of the target document can control the opening or closing of the screenshot jump function switch of the target document. In the case where the screenshot jump function switch is in the on state, when the target document is opened, a watermark will be added to the target document, and the target document with the watermark added will be displayed. Among them, the definition of the owner of the target document is the same as above and will not be elaborated here.
[0120] Correspondingly, in the case where the screenshot jump function switch is in the off state, when the target document is opened, no watermark will be added to the target document, and the target document will be directly displayed, that is, the target document without the watermark added will be displayed. Correspondingly, for the document content screenshot without the watermark added, the document viewing identifier pointing to the target document will not be displayed either, that is, the same processing method as that of an ordinary document screenshot.
[0121] In this embodiment, by displaying a screenshot jump function switch for a target document, so that the on - off state of the screenshot jump function can be adjusted through the screenshot jump function switch, the on - off of the screenshot jump access channel for the target document can be directly adjusted through the screenshot jump function switch, which can improve the management efficiency of the target document and enhance the security of the target document.
[0122] In some embodiments, in response to a trigger operation for a screenshot of document content, when the target account has the viewing permission for the target document, a document viewing identifier pointing to the target document is displayed, including:
[0123] When the screenshot jump function switch of the target document is in the on state and the target account has the viewing permission for the target document, in response to a trigger operation for a screenshot of document content, a document viewing identifier pointing to the target document is displayed.
[0124] If when the target document is opened by a first account and the screenshot jump function switch is in the on state, and the first account sends a screenshot of the watermarked document content to the target account, then when the target account views the screenshot of the watermarked document content, it will again verify whether the screenshot jump function switch of the target document is in the on state. When the verification result is that the screenshot jump function switch is in the on state, a document viewing identifier pointing to the target document will be displayed on the client of the target account. When the verification result is that the screenshot jump function switch is in the off state, a document viewing identifier pointing to the target document will not be displayed on the client of the target account.
[0125] In this embodiment, by introducing a screenshot jump function switch for the target document, based on the on - off state of the screenshot jump function switch, the display or non - display of the document viewing identifier is adjusted, and the on - off of the screenshot jump access channel for the target document can be directly adjusted through the screenshot jump function switch, which can improve the management efficiency of the target document and enhance the security of the target document.
[0126] In some embodiments, in response to a trigger operation for a screenshot of document content, when the target account has the viewing permission for the target document, a document viewing identifier pointing to the target document is displayed, including:
[0127] In response to a trigger operation for a screenshot of document content, send an identifier acquisition request to the server; the identifier acquisition request carries the account information of the target account and the watermark content of the screenshot of the document content;
[0128] Receive the document viewing identifier feedback by the server. The document viewing identifier is an interface identifier for accessing the target document generated by the server through identifying the target document pointed to by the watermark content and verifying that the target account has the viewing permission for the target document;
[0129] Display the document viewing identifier.
[0130] Among them, the identifier acquisition request is a request to obtain from the server a document viewing identifier for accessing the target interface. The identifier acquisition request carries the account information of the target account and the watermark content of the document content screenshot. After the server receives the identifier acquisition request, it first extracts the account information of the target account and the watermark content of the document content screenshot carried by the identifier acquisition request, determines the target document pointed to by the watermark content through the watermark content of the document content screenshot, and then based on the account information of the target account, verifies that the target account has the viewing permission for the target document. Only when the target account has the viewing permission for the target document, a document viewing identifier for accessing the target document is generated.
[0131] Correspondingly, when the target account does not have the viewing permission for the target document, the document viewing identifier is not fed back to the terminal, and the document viewing identifier pointing to the target document is not displayed on the client of the target account either.
[0132] In this embodiment, through the interaction between the terminal and the server, the document viewing identifier is obtained from the server, and the generation process of the document viewing identifier is transferred to the server to achieve, which can reduce the data processing pressure of the terminal and improve the data processing efficiency. It can be understood that in some embodiments, when the computing power of the terminal is strong enough, the generation of the document viewing identifier can also be generated and displayed by the terminal.
[0133] On the terminal, multiple different clients are installed, and the user systems of different clients are different and generally cannot directly communicate data. For example, account A of client 1 and account B of client 2 belong to different systems. When account A sends a screenshot of the document content to account B, account B cannot directly access the target document from which the document content screenshot is sourced due to lack of access permission to the document in client 1.
[0134] In some embodiments, when account A of client 1 receives a document content screenshot obtained by taking a screenshot of the target document, it can access the target document through the above document access method, and then send the target document converted into a document link or a mini-program card representing the target document to account B of client 2.
[0135] Specifically, the terminal can display an online document in the client interface of the enterprise communication application. The online document can be created through the account organization in the enterprise communication application. In the account organization, any user can create an online document through the account they hold and configure the access rights to the created online document through the terminal. For example, in the X enterprise account organization, the online form created by user A through account A can default that all accounts in the X enterprise account organization have the viewing right to the online form. User A can also configure the viewing rights of some accounts in the X enterprise account organization to the online form through account A.
[0136] Any user in the X enterprise account organization who has access rights to the online document, taking user B as an example, can access the online document through the client of the enterprise communication application on the terminal. When opening the online document, the client will send a watermark image acquisition request to the server of the enterprise communication application according to the account logged in by user B on the client. The server of the enterprise communication application will respond to the watermark image acquisition request, generate a watermark image representing the target document, or a watermark image representing both the target document and the account logged in by user B on the client, and return the watermark image to the client where user B is located. The client will render the watermark image to the target document to obtain the target document with the watermark added and display it on the interface of the client where user B is located. The watermark added to the target document can be a visible watermark or an invisible watermark, and the watermark content added to different areas of the target document can be different, respectively used to represent their respective areas. For example, the watermark information of the watermark added on the first page of the document represents the first page of the document, and the watermark information of the watermark added on the second page of the document represents the second page of the document.
[0137] User B can also take a screenshot of some content in the opened target document. Since the opened target document has at least a watermark representing the document information, the screenshot obtained is also a screenshot with a watermark. User B can send the document content screenshot to other members in the X enterprise account organization through the client of the enterprise communication application and display the document content screenshot in the conversation interface with that member. Similarly, when creating the target document, user A, who created the target document, will also request a watermark image from the server, obtain the target document with the watermark added, and then can take a screenshot of some content in the target document to obtain a screenshot of the document content with the watermark added and send it to other members in the X enterprise account organization.
[0138] For both the recipient and the sender of the screenshot of the document content, the screenshot of the document content will be displayed in the conversation interface of the client of the enterprise communication application. Both the recipient and the sender of the screenshot of the document content can directly access the target document through the screenshot of the document content. Taking the example of sending the screenshot of the document content to member user C in the X enterprise account organization, after receiving the screenshot of the document content, user C can click on the screenshot of the document content to perform specific operations. At this time, the client will, in response to the triggering operation of user C on the screenshot of the document content, send an identification acquisition request carrying the watermark content to the server of the enterprise communication application, and obtain the document viewing identification returned by the server of the enterprise communication application and display it on the client. This document viewing identification is an access interface identification that can directly access the target document generated by the server of the enterprise communication application by identifying the target document pointed to by the watermark content. When user C clicks on this document viewing identification, the target document can be directly opened and accessed through the encapsulated access interface.
[0139] Further, when user C, after receiving the screenshot of the document content, needs to send the target document from which the screenshot of the document content is sourced to member user D of other communication information, user C can first directly jump to the target document through the screenshot of the document content, then convert the target document into a document link or a mini-program card representing the target document, and then open the client of other communication information. Through the conversation page with user D in the client of other communication information, send the document link or the mini-program card representing the target document to user D, so that user D can directly access the target document through the document link or the mini-program card representing the target document, realizing the interconnection across different applications and improving the access efficiency of the target document.
[0140] As Figure 9 shown, a document access method is provided. This method is executed by a computer device. In the embodiments of the present application, taking the example that this method is applied to the Figure 1 server as an example, it includes the following steps:
[0141] Step 902, receive the identification acquisition request sent by the client; the identification acquisition request is a request generated by the client in response to the triggering operation on the screenshot of the document content.
[0142] Step 904, extract the watermark content of the screenshot of the document content from the identification acquisition request.
[0143] Step 906, identify the target document pointed to by the watermark content.
[0144] Step 908, generate an access interface for accessing the target document, and send the document viewing identification encapsulating the access interface to the client.
[0145] Among them, the identification acquisition request refers to a request sent by the terminal to the server to obtain a document viewing identification for accessing a target interface. The identification acquisition request carries the account information of the target account and the watermark content of the document content screenshot. After the server receives the identification acquisition request, it first extracts the account information of the target account and the watermark content of the document content screenshot carried in the identification acquisition request, determines the target document pointed to by the watermark content through the watermark content of the document content screenshot, and then generates a document viewing identification for accessing the target document.
[0146] The document content screenshot is a picture of the document content intercepted for the target document, and the document content intercepted from the target document is at least a part of all the content of the target document. The watermark content refers to the content of the watermark added to the document content screenshot, and the watermark added to the document content screenshot is used to represent the source document of the document content screenshot. Among them, the watermark added to the document content screenshot can specifically be a visible watermark or an invisible watermark.
[0147] The watermark content in the watermark picture includes relevant information of the target document, so that when the server obtains the watermark content again, it can locate the target document corresponding to the watermark based on the relevant information of the target document. After the terminal obtains the watermark picture fed back by the server, it can superimpose the watermark picture on the target document to implement the rendering of the watermark picture, and then obtain the target document with the watermark added. The watermark content in the watermark picture also includes the account information of the first account that opens the target document and takes a screenshot. Based on the account information in the watermark content, the interception object of the document content screenshot can be determined.
[0148] After the server identifies the target document pointed to by the watermark content, it generates an access interface for accessing the target document, and sends the document viewing identification corresponding to the encapsulated access interface to the client, so that the client displays the document viewing identification pointing to the target document. The client can, in response to a trigger operation on the document viewing identification, access the target document based on the access interface encapsulated in the document viewing identification.
[0149] The above document access method, by receiving the identification acquisition request generated by the client in response to the trigger operation on the document content screenshot; extracting the watermark content of the document content screenshot from the identification acquisition request, identifying the target document pointed to by the watermark content, generating an access interface for accessing the target document, and sending the document viewing identification corresponding to the encapsulated access interface to the client, can prompt the user to access the target document through the document viewing identification, can directly jump to the target document pointed to by the watermark content in the document content screenshot for access, and can effectively improve the access efficiency of the document.
[0150] In some embodiments, the method further includes:
[0151] Extract the account information of the target account carried in the identification acquisition request;
[0152] Based on the account information, verify the viewing permission of the target account for the target document;
[0153] Generate an access interface for accessing the target document, including:
[0154] Generate an access interface for accessing the target document when the target account has the viewing permission for the target document.
[0155] Among them, the identification acquisition request processes the watermark content of the document content screenshot and also carries the account information of the target account. Specifically, after the server obtains the identification acquisition request, it first extracts the account information of the target account carried in the identification acquisition request and the watermark content of the document content screenshot, determines the target document pointed to by the watermark content through the watermark content of the document content screenshot, and verifies whether the target account has the viewing permission for the target document based on the account information of the target account. Only when the target account has the viewing permission for the target document, a document viewing identifier for accessing the target document is generated.
[0156] Correspondingly, when the target account does not have the viewing permission for the target document, the document viewing identifier is not fed back to the terminal, and the document viewing identifier pointing to the target document is not displayed on the client of the target account either. For example, the access permission of the target document is that enterprise internal members can view it. When a certain enterprise member sends a screenshot of the document content to other non-enterprise member users, based on the above solution, for non-enterprise member users, they can only view the content in the document content screenshot and cannot directly access the target document that only enterprise internal members can view. Another example is that the access permission of the target document is that members of department A in the enterprise can view it. When a certain department member in department A sends a screenshot of the document content to members of other departments in the enterprise, based on the above solution, for members of other departments in the enterprise, they can only view the content in the document content screenshot and cannot directly access the target document that only enterprise internal members can view.
[0157] In this embodiment, when identifying the target document pointed to by the watermark content, by verifying the viewing permission of the target account for the target document and generating an access interface for accessing the target document when the target account has the viewing permission for the target document, it can prevent users without access permission to the target document from accessing the target document through the document content screenshot, resulting in the leakage of other information in the target document and improving the document security.
[0158] In one of the embodiments, the method further includes:
[0159] Receive a watermark acquisition request sent by a client; the watermark acquisition request is a request generated by the client in response to a viewing operation of a target document by a first account;
[0160] Extract the document information of the target document and the account information of the first account carried in the watermark acquisition request;
[0161] Generate a watermark image based on the document information and the account information; send the watermark image to the client, and the client is used to perform layer overlay of the watermark image and the target document to render the target document with the watermark added.
[0162] Among them, the watermark acquisition request is a request sent by the terminal to the server when triggering an open operation of the target document. The watermark acquisition request is used to obtain a watermark image containing the account for opening the target document and relevant information of the target document. The watermark acquisition request carries the document information of the target document and the account information of the account for opening the target document, so that the server can extract the document information of the target document and the account information of the account for opening the target document from the watermark acquisition request, and then generate a watermark image based on the document information and the account information and feedback it to the terminal.
[0163] The watermark content in the watermark image includes both the relevant information of the target document and the account information of the account for opening the target document. When the server obtains the watermark content again, it can locate the target document corresponding to the watermark based on the relevant information of the target document, and can also determine the interception object of the document content screenshot through the account information. After the terminal obtains the watermark image fed back by the server, it can overlay the watermark image on the target document to implement the rendering of the watermark image, and then obtain the target document with the watermark added. Thus, in response to the viewing operation of the target document, the target document displayed on the client is the document with the watermark added, and when the user intercepts the content of the target document, the intercepted content is the content with the watermark added.
[0164] In this embodiment, through the interaction between the terminal and the server, the server generates a watermark associated with the document information and the account information and sends it to the terminal, transferring the watermark generation process to the server to achieve, which can reduce the data processing pressure of the terminal and improve the data processing efficiency. It can be understood that in some embodiments, when the computing power of the terminal is strong enough, the watermark can also be generated by the terminal based on the document information and the account information and overlaid on the target document.
[0165] In some of these embodiments, generating a watermark image based on the document information and the account information includes:
[0166] Based on the document information, determine the position information of each document area in the target document in the target document;
[0167] For each document area, a watermark image corresponding to the document area is generated based on the location information and the account information.
[0168] Among them, the composition of the document area refers to the result obtained by dividing the target document according to the document structure or the document content. The area division method of the target document can be divided according to the document type. For example, a word document is divided by page, a table is divided by a sub-table, and a slide is divided by one. The area division method of the target document can be divided according to the document content. For example, it can be divided by chapter, by table header, etc. The specific area division method and division granularity can be adjusted and configured according to the actual application scenario. For scenarios with high positioning accuracy requirements, the area division granularity can be set relatively small. For scenarios with low positioning accuracy requirements, the area division granularity can be set relatively large.
[0169] Specifically, the server determines the composition of the document area from the document information, obtains the location information of each document area in the target document in the target document, and generates a watermark image corresponding to each document area based on the composition of the document area and the account information. By generating multiple watermark images corresponding to each document area according to the composition of the document area and the account information in the document information, it can be ensured that the watermark content of each watermark image includes the account information and the location information of the corresponding document area in the target document. Thus, during the process of identifying the watermark content of the watermark added to the document content screenshot, the document area to which the document content screenshot belongs can be located. Furthermore, when accessing the target document, rapid positioning of the document content screenshot can be achieved, without the user having to search for the document content screenshot from the beginning of the target document, which can reduce the processing resources consumed by the computer in responding to the user's search for the document content screenshot and improve resource utilization.
[0170] The watermark added to the document content screenshot can specifically be a visible watermark or an invisible watermark. Among them, a visible watermark refers to a watermark that is visible to the naked eye, and an invisible watermark is a watermark that is invisible to the naked eye, such as a watermark with a transparency reaching a set threshold. The generation method of the invisible watermark can specifically be obtained by adjusting the transparency of the watermark according to the invisible watermark transparency threshold, or can be achieved through methods such as small changes in RGB component values, discrete Fourier transform, discrete cosine transform, and discrete wavelet transform.
[0171] In some embodiments, for each document area, generating a watermark image corresponding to the document area based on the location information and the account information includes:
[0172] For each document area, generating watermark content corresponding to the document area based on the location information and the account information; generating an invisible watermark image corresponding to the document area according to the watermark content.
[0173] Among them, the watermark content can be partial information that needs to be used as the watermark content directly extracted from the location information and account information, or the location information and account information can be directly used as the watermark content. The invisible watermark image is a watermark image that is invisible to the naked eye. By generating an invisible watermark image corresponding to the document area according to the watermark content, it is impossible to see the watermark through the naked eye in the screenshot of the document content with the invisible watermark added. On the premise of not affecting the image content of the screenshot of the document content, the watermark information is increased to achieve direct jump access to the target document.
[0174] In some of these embodiments, for each document area, based on the location information and account information, a watermark image corresponding to the document area is generated, including:
[0175] For each document area, encoding is performed according to the location information and account information to generate an encoded watermark image corresponding to the document area.
[0176] Among them, encoding refers to the process of encoding the plaintext information directly recognizable by the user into machine language. Decoding the watermark content in the encoded watermark image according to the decoding method corresponding to the encoding method can obtain the location information and account information. In this way, during the sending process of the document content screenshot, the location information and account information will not be directly displayed. On the one hand, the security of the location information and account information can be improved. On the other hand, when the data content of the location information and account information is relatively large, by encoding the location information and account information, the length of the watermark content in the encoded watermark image can be reduced to ensure that at least one complete watermark content can be displayed when the screenshot area is relatively small.
[0177] This application also provides an application scenario that applies the above-mentioned document access method. Specifically, the application of this document access method in this application scenario is as follows:
[0178] In the daily use of enterprise communication applications, there are often scenarios where relevant documents are intercepted and sent to interaction objects. The recipient may also want to know more information in the document and needs to manually ask the sender the source of the screenshot and request the document link. In this application, in the online document of the enterprise communication application, invisible watermarks are pre-embedded to mark relevant document information. When the user receives a document screenshot, the background will be requested according to the watermark information. After the background verifies relevant information such as permissions, the document link will be returned to the user. The user can directly jump to the online document and locate to the screenshot position, making communication more efficient.
[0179] As Figure 10 shown, in this embodiment, it is mainly realized through the interaction between the enterprise communication application client, the enterprise communication application background, and the enterprise communication application background storage.
[0180] Specifically, the user initiates a data request through the enterprise communication application client and the enterprise communication application background; the enterprise communication application background processes the user request and queries the enterprise communication application background for relevant data information stored; the enterprise communication application background displays the request result to the enterprise communication application user through the enterprise communication application client.
[0181] Furthermore, the following describes the process of generating a dark watermark and the process of the image recipient identifying a document screenshot:
[0182] The process of generating dark watermark is as follows: Figure 11 , including the following steps:
[0183] (1) The user opens an online document of an enterprise communication application;
[0184] (2) The enterprise communication application online document service requests the enterprise communication application document backend to request dark watermark information;
[0185] (3) Enterprise communication application document background verification related information, such as: the document is opened to allow dark watermark screenshot access, the requester has access rights to the document, etc.;
[0186] (4) The enterprise communication application document background sends a request to the enterprise communication application image service to generate dark watermark image information;
[0187] (5) The online document of the enterprise communication application renders the dark watermark according to the dark watermark image information returned by the background.
[0188] The process of the image receiver identifying the document screenshot is as follows: Figure 12 As shown, the following steps are included:
[0189] (1) The user opens the screenshot in the enterprise communication application client;
[0190] (2) The enterprise communication application client sends a request to the enterprise communication application image service backend;
[0191] (3) The enterprise communication application image background recognizes that the image has dark watermark information, parses the relevant information and sends the information to the enterprise communication application document background;
[0192] (4) The enterprise communication application background verifies the document information, verifies whether the document allows dark watermark screenshot access, whether the dark watermark generator has document viewing permissions, whether the document opener has document permissions, etc., and returns the document URL;
[0193] (5) The enterprise communication application client receives the URL of the document and displays the document viewing icon.
[0194] Further, the user turns off the switch allowing access to the hidden watermark on the online document page of the enterprise communication application; the enterprise communication application no longer embeds the hidden watermark in the online document; the hidden watermark in the historical hidden watermark screenshot becomes invalid, and the document viewing identifier for jumping to the online document is not displayed.
[0195] It should be understood that although the steps in the flowcharts involved in the above-described embodiments are sequentially shown according to the indications of the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless there is a clear indication in this article, the execution of these steps has no strict order limitation, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above-described embodiments may include multiple steps or multiple stages. These steps or stages are not necessarily executed at the same moment, but can be executed at different moments. The execution order of these steps or stages is not necessarily sequential, but can be executed alternately or in turn with at least a part of other steps or steps or stages in other steps.
[0196] Based on the same inventive concept, an embodiment of the present application further provides a document access device for implementing the above-mentioned document access method. The solution provided by this device to solve the problem is similar to the solution described in the above method. Therefore, the specific limitations in one or more embodiments of the document access device provided below can refer to the limitations on the document access method in the above text, and will not be repeated here.
[0197] In one embodiment, as Figure 13 shown, a document access device is provided, including: a screenshot display module 1302, an identifier display module 1304, and a document jump module 1306, where:
[0198] The screenshot display module 1302 is configured to display a screenshot of the document content intercepted for the target document on the client where the target account is located;
[0199] The identifier display module 1304 is configured to, in response to a trigger operation on the screenshot of the document content, display a document viewing identifier pointing to the target document when the target account has the viewing permission for the target document;
[0200] The document jump module 1306 is configured to, in response to a trigger operation on the document viewing identifier, jump to the display page of the target document.
[0201] In some of these embodiments, the device further includes a watermark adding module, which is configured to, in response to an open operation of the target document by a first account having viewing permission for the target document, display the target document with a watermark added; and in response to a screenshot operation on a part of the content in the target document by the first account, display a screenshot of the document content with a watermark added.
[0202] In some of these embodiments, the watermark adding module is further configured to, in response to a viewing operation of the target document by a first account having viewing permission for the target document, send a watermark acquisition request to the server; receive the watermark image fed back by the server; perform layer overlay of the watermark image and the target document, and render to obtain and display the target document with a watermark added; wherein, the watermark acquisition request carries the document information of the target document and the account information of the first account; and the watermark image is an image generated by the server based on the document information and the account information.
[0203] In some of these embodiments, the target document includes a plurality of document areas, and the watermark image includes a plurality of watermark sub-images corresponding one-to-one to the respective document areas. The watermark sub-images represent the account information of the first account and the position information of the corresponding document area in the target document.
[0204] The watermark adding module is further configured to perform layer overlay of each watermark sub-image and the target document according to the corresponding document area, and render to obtain the target document with different watermarks added to different document areas.
[0205] In some of these embodiments, the watermark includes watermark content characterizing the document area where the document content screenshot is located in the target document.
[0206] The document jump module 1306 is specifically configured to, in response to a trigger operation on the document viewing identifier, jump to the display page of the target document, and position and display the document area where the document content screenshot is located in the target document.
[0207] In some of these embodiments, the document jump module 1306 is specifically configured to display the document area where the document content screenshot is located in the current display page of the target document.
[0208] In some of these embodiments, the document jump module 1306 is specifically configured to mark and display the document area where the document content screenshot is located in the target document.
[0209] In some of these embodiments, the device further includes a switch display module, which is configured to display a screenshot jump function switch for the target document.
[0210] In some of these embodiments, the watermark adding module is further configured to, when the screenshot jump function switch of the target document is in the on state, in response to an open operation on the target document by a first account having viewing permission for the target document, display the target document with a watermark added thereto.
[0211] In some of these embodiments, the identification display module 1304 is further configured to, in response to a trigger operation on the screenshot of the document content, send an identification acquisition request to the server; receive the document viewing identification fed back by the server, and display the document viewing identification; wherein, the identification acquisition request carries the account information of the target account and the watermark content of the screenshot of the document content; the document viewing identification is an interface identification for accessing the target document generated by the server after identifying the target document pointed to by the watermark content and verifying that the target account has viewing permission for the target document.
[0212] In some of these embodiments, the identification display module 1304 is further configured to, when the screenshot jump function switch of the target document is in the on state and the target account has viewing permission for the target document, in response to a trigger operation on the screenshot of the document content, display the document viewing identification pointing to the target document.
[0213] In some of these embodiments, the device further includes a permission processing module, configured to display the default permission range for viewing the target document; and in response to a modification operation triggered by the management account of the target document on the default permission range, display the member accounts having viewing permission for the target document.
[0214] In some of these embodiments, the target document is an online document; the document jump module 1306 is specifically configured to, in response to a trigger operation on the document viewing identification, open the online document on the client side.
[0215] In some of these embodiments, the watermark is a dark watermark with a transparency greater than a set threshold.
[0216] The above-mentioned document access device displays a screenshot of the document content intercepted from the target document on the client where the target account is located. Since the screenshot of the document content is added with a watermark indicating the source document of the screenshot, the source document of the screenshot of the document content can be determined through the watermark. The terminal, in response to a trigger operation on the screenshot of the document content, displays a document viewing identifier pointing to the target document when the target account has the viewing permission for the target document, so as to prompt the user that the target document can be accessed through the document viewing identifier. By responding to the trigger operation on the document viewing identifier, it is confirmed that the target account has the need to access the target document, and directly jumps to the display page of the target document, so as to realize directly jumping to the target document through the screenshot of the document content to view the document content, which can effectively improve the access efficiency of the document.
[0217] In one embodiment, as Figure 14 shown, a document access device is provided, including: a request receiving module 1402, an information extraction module 1404, a watermark recognition module 1406, and an identifier processing module 1408, where:
[0218] The request receiving module 1402 is configured to receive an identifier acquisition request sent by the client; the identifier acquisition request is a request generated by the client in response to a trigger operation on the screenshot of the document content.
[0219] The information extraction module 1404 is configured to extract the watermark content of the screenshot of the document content from the identifier acquisition request.
[0220] The watermark recognition module 1406 is configured to recognize the target document pointed to by the watermark content in the screenshot of the document content.
[0221] The identifier processing module 1408 is configured to generate an access interface for accessing the target document, and send the document viewing identifier corresponding to the access interface to the client.
[0222] In some of the embodiments, the device further includes a first permission verification module, configured to extract the account information of the target account carried in the identifier acquisition request; based on the account information, verify the viewing permission of the target account for the target document.
[0223] The identifier processing module 1408 is specifically configured to generate an access interface for accessing the target document when the target account has the viewing permission for the target document.
[0224] In some of these embodiments, the device further includes a watermark generation module, configured to receive a watermark acquisition request sent by a client; the watermark acquisition request is a request generated by the client in response to a viewing operation of a target document by a first account; extract the document information of the target document and the account information of the first account carried in the watermark acquisition request; generate a watermark image based on the document information and the account information; send the watermark image to the client, and the client is configured to perform layer overlay of the watermark image and the target document to render a target document with a watermark added thereto.
[0225] In some of these embodiments, the device further includes a second permission verification module, configured to verify whether the screenshot jump function of the target document is enabled based on the document information to obtain a first verification result; verify whether the first account has access permission to the target document based on the account information to obtain a second verification result;
[0226] The watermark generation module is specifically configured to generate a watermark image based on the document information and the account information when both the first verification result and the second verification result indicate that the verification is passed.
[0227] In some of these embodiments, the watermark generation module is specifically configured to determine the position information of each document area in the target document based on the document information; for each of the document areas, generate a watermark image corresponding to the document area based on the position information and the account information.
[0228] In some of these embodiments, the watermark generation module is specifically configured to, for each of the document areas, generate watermark content corresponding to the document area based on the position information and the account information; generate a hidden watermark image corresponding to the document area according to the watermark content.
[0229] In some of these embodiments, the watermark generation module is specifically configured to, for each of the document areas, perform encoding according to the position information and the account information to generate an encoded watermark image corresponding to the document area.
[0230] The above-mentioned document access device obtains an identification acquisition request generated by a client in response to a trigger operation for a screenshot of document content; extracts the watermark content of the document content screenshot from the identification acquisition request, identifies the target document pointed to by the watermark content, generates an access interface for accessing the target document, and sends the document viewing identification corresponding to the access interface to the client, which can prompt the user to access the target document through the document viewing identification, and can directly jump to the target document pointed to by the watermark content in the document content screenshot for access, which can effectively improve the access efficiency of the document.
[0231] Each module in the above-mentioned document access device can be implemented in whole or in part by software, hardware, and their combination. The above-mentioned modules can be embedded in the processor in the computer device in hardware form or be independent of it, or can be stored in the memory in the computer device in software form, so as to facilitate the processor to call and execute the operations corresponding to the above-mentioned modules.
[0232] In one embodiment, a computer device is provided. The computer device can be a server, and its internal structure diagram can be as Figure 15 shown. The computer device includes a processor, a memory, an input / output interface (Input / Output, abbreviated as I / O), and a communication interface. Among them, the processor, the memory, and the input / output interface are connected through a system bus, and the communication interface is connected to the system bus through the input / output interface. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program, and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store data. The input / output interface of the computer device is used to exchange information between the processor and external devices. The communication interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, it implements a document access method.
[0233] In one embodiment, a computer device is provided. The computer device can be a terminal, and its internal structure diagram can be as Figure 16As shown in the figure. The computer device includes a processor, a memory, an input / output interface, a communication interface, a display unit, and an input device. Among them, the processor, the memory, and the input / output interface are connected through a system bus, and the communication interface, the display unit, and the input device are connected to the system bus through the input / output interface. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The input / output interface of the computer device is used to exchange information between the processor and external devices. The communication interface of the computer device is used to communicate with external terminals in a wired or wireless manner, and the wireless manner can be implemented through WIFI, a mobile cellular network, NFC (Near Field Communication), or other technologies. The computer program, when executed by the processor, implements a document access method. The display unit of the computer device is used to form a visually visible picture, which can be a display screen, a projection device, or a virtual reality imaging device. The display screen can be a liquid crystal display screen or an electronic ink display screen. The input device of the computer device can be a touch layer covering the display screen, or a button, a trackball, or a touchpad provided on the housing of the computer device, or an external keyboard, touchpad, or mouse, etc.
[0234] Those skilled in the art can understand that Figure 15 or Figure 16 the structure shown in the figure is only a block diagram of some structures related to the solution of this application, and does not constitute a limitation on the computer device to which the solution of this application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine some components, or have different component arrangements.
[0235] In one embodiment, a computer device is provided, including a memory and a processor. A computer program is stored in the memory, and when the processor executes the computer program, the steps in the above method embodiments are implemented.
[0236] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by the processor, the steps in the above method embodiments are implemented.
[0237] In one embodiment, a computer program product is provided, including a computer program. When the computer program is executed by the processor, the steps in the above method embodiments are implemented.
[0238] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use, and processing of relevant data need to comply with relevant regulations.
[0239] Those of ordinary skill in the art can understand that all or part of the processes of implementing the methods in the above embodiments can be completed by instructing relevant hardware through a computer program. The computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above methods. Among them, any reference to a memory, database, or other medium used in the embodiments provided in this application can include at least one of non-volatile and volatile memories. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetoresistive random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. By way of illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM), etc. The databases involved in the embodiments provided in this application can include at least one of relational databases and non-relational databases. Non-relational databases can include distributed databases based on blockchain, etc., without limitation. The processors involved in the embodiments provided in this application can be general-purpose processors, central processing units, graphics processing units, digital signal processors, programmable logic devices, data processing logics based on quantum computing, etc., without limitation.
[0240] The technical features of the above embodiments can be combined arbitrarily. For the sake of brevity of description, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, it should be considered as the scope described in this specification.
[0241] The above-described embodiments merely represent several implementation manners of the present application. The description thereof is relatively specific and detailed, but it should not be construed as a limitation on the patent scope of the present application. It should be noted that for those of ordinary skill in the art, without departing from the concept of the present application, several modifications and improvements can still be made, and these all fall within the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the appended claims.
Claims
1. A document access method, characterized in that, The method includes: On the client where the target account is located, display a screenshot of the document content intercepted from the target document; In response to a trigger operation on the screenshot of the document content, when the target account has the viewing permission for the target document, display a document viewing identifier pointing to the target document; In response to a trigger operation on the document viewing identifier, jump to the display page of the target document.
2. The method according to claim 1, characterized in that, The method further includes: In response to the opening operation of the target document by a first account that has the viewing permission for the target document, display the target document with a watermark added; In response to the interception operation of a part of the content in the target document by the first account, display a screenshot of the document content with a watermark added.
3. The method according to claim 2, characterized in that The step of, in response to the opening operation of the target document by a first account that has the viewing permission for the target document, display the target document with a watermark added, includes: In response to the viewing operation of the target document by a first account that has the viewing permission for the target document, send a watermark acquisition request to the server; the watermark acquisition request carries the document information of the target document and the account information of the first account; Receive the watermark image feedback by the server; the watermark image is an image generated by the server based on the document information and the account information; Overlay the watermark image and the target document in layers, and render to obtain and display the target document with a watermark added.
4. The method according to claim 3, characterized in that, The target document includes multiple document areas, and the watermark image includes multiple watermark sub-images corresponding one by one to each of the document areas. The watermark sub-images represent the account information of the first account and the position information of the corresponding document area in the target document; The step of overlaying the watermark image and the target document in layers and rendering to obtain the target document with a watermark added includes: Overlay each of the watermark sub-images and the target document in layers according to the corresponding document area, and render to obtain the target document with different watermarks added to different document areas.
5. The method according to claim 1, wherein The screenshot of the document content has a watermark added, and the watermark includes watermark content indicating the document area where the screenshot of the document content is located in the target document; The step of, in response to a trigger operation on the document viewing identifier, jump to the display page of the target document includes: In response to a trigger operation on the document viewing identifier, jump to the display page of the target document, and locate and display the document area where the screenshot of the document content is located in the target document.
6. The method according to claim 5, wherein The step of locating and displaying the document area where the screenshot of the document content is located in the target document includes any one of the following: On the current display page of the target document, display the document area where the screenshot of the document content is located; In the target document, mark and display the document area where the screenshot of the document content is located.
7. The method according to claim 2, wherein The method further includes: Display a screenshot jump function switch for the target document; The step of, in response to the opening operation of the target document by a first account that has the viewing permission for the target document, display the target document with a watermark added, includes: When the screenshot jump function switch of the target document is in the on state, in response to the open operation of the target document by the first account that has the viewing permission for the target document, display the target document with a watermark added.
8. The method according to claim 1, characterized in that, In response to the trigger operation for taking a screenshot of the document content, when the target account has the viewing permission for the target document, display the document viewing identifier pointing to the target document, including: In response to the trigger operation for taking a screenshot of the document content, send an identifier acquisition request to the server; the identifier acquisition request carries the account information of the target account and the watermark content of the document content screenshot. Receive the document viewing identifier feedback by the server, where the document viewing identifier is an interface identifier for accessing the target document generated by the server after identifying the target document pointed to by the watermark content and verifying that the target account has the viewing permission for the target document. Display the document viewing identifier.
9. The method according to claim 1, characterized in that In response to the trigger operation for taking a screenshot of the document content, when the target account has the viewing permission for the target document, display the document viewing identifier pointing to the target document, including: When the screenshot jump function switch of the target document is in the on state and the target account has the viewing permission for the target document, in response to the trigger operation for taking a screenshot of the document content, display the document viewing identifier pointing to the target document.
10. The method according to claim 1, characterized in that The method further includes: Display the default permission range for the target document that has the viewing permission. In response to the modification operation triggered by the management account of the target document for the default permission range, display the member accounts that have the viewing permission for the target document.
11. The method according to any one of claims 1 to 10, characterized in that, The target document is an online document. In response to the trigger operation for the document viewing identifier, jump to the display page of the target document, including: In response to the trigger operation for the document viewing identifier, open the online document on the client.
12. The method according to any one of claims 1 to 10, characterized in that, The document content screenshot is added with a dark watermark with a transparency greater than the set threshold.
13. A document access method, characterized in that, The method includes: Receive the identifier acquisition request sent by the client; the identifier acquisition request is a request generated by the client in response to the trigger operation for taking a screenshot of the document content. Extract the watermark content of the document content screenshot from the identifier acquisition request. Identify the target document pointed to by the watermark content. Generate an access interface for accessing the target document, and send the document viewing identifier corresponding to the encapsulated access interface to the client.
14. The method according to claim 13, wherein The method further includes: Extract the account information of the target account carried by the identifier acquisition request. Based on the account information, verify the viewing permission of the target account for the target document. The generation of the access interface for accessing the target document includes: When the target account has the viewing permission for the target document, generate an access interface for accessing the target document.
15. The method according to claim 13, wherein The method further includes: Receive a watermark acquisition request sent by a client; the watermark acquisition request is a request generated by the client in response to a viewing operation of a target document by a first account; Extract the document information of the target document and the account information of the first account carried in the watermark acquisition request; Generate a watermark image based on the document information and the account information; Send the watermark image to the client, and the client is used to overlay the watermark image with the target document and render the target document with the watermark added.
16. The method according to claim 15, wherein The method further includes: Based on the document information, verify whether the target document enables the screenshot jump function to obtain a first verification result; Based on the account information, verify whether the first account has access rights to the target document to obtain a second verification result; The generating a watermark image based on the document information and the account information includes: In the case where both the first verification result and the second verification result indicate that the verification is passed, generate a watermark image based on the document information and the account information.
17. The method according to claim 15, wherein The generating a watermark image based on the document information and the account information includes: Based on the document information, determine the position information of each document area in the target document in the target document; For each document area, generate a watermark image corresponding to the document area based on the position information and the account information.
18. The method according to claim 17, wherein The generating a watermark image corresponding to each document area based on the position information and the account information includes: For each document area, generate watermark content corresponding to the document area based on the position information and the account information; Generate a hidden watermark image corresponding to the document area according to the watermark content.
19. The method according to claim 17, wherein The generating a watermark image corresponding to each document area based on the position information and the account information includes: For each document area, encode according to the position information and the account information to generate an encoded watermark image corresponding to the document area.
20. A document access device, characterized in that, The device includes: A screenshot display module, configured to display a screenshot of the document content intercepted for a target document on the client where the target account is located; An identification display module, configured to display a document viewing identification pointing to the target document in the case where the target account has the viewing right for the target document in response to a trigger operation on the document content screenshot; A document jump module, configured to jump to the display page of the target document in response to a trigger operation on the document viewing identification.
21. A document access device, characterized in that, The device includes: A request receiving module, configured to receive an identification acquisition request sent by a client; the identification acquisition request is a request generated by the client in response to a trigger operation on a document content screenshot; An information extraction module, configured to extract the watermark content of the document content screenshot from the identification acquisition request; A watermark recognition module, configured to recognize the target document pointed to by the watermark content in the document content screenshot; An identification processing module, configured to generate an access interface for accessing the target document, and send a document viewing identifier corresponding to the access interface to the client.
22. A computer device, comprising a memory and a processor, the memory storing a computer program, characterized in that, When the processor executes the computer program, the steps of the method according to any one of claims 1 to 19 are implemented.
23. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 19 are implemented.
24. A computer program product, comprising a computer program, characterized in that, When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 19 are implemented.