Printing control method of OFD document, image forming device, equipment and medium
By analyzing OFD documents and detecting sensitive words in the image forming device, the missed and mis-checking problems during manual inspection are solved, and the detection efficiency and confidentiality are improved.
Patent Information
- Application Number
- CN202411885664.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-20
- Publication Date
- 2025-05-06
- Estimated Expiration
- 2044-12-20
AI Technical Summary
Manual inspection of OFD documents can easily lead to missed and missed inspections, and are very slow to detect sensitive words that cannot meet the needs of confidentiality.
An OFD document printing control method is provided, which analyzes the OFD document through an image forming device, detects sensitive words in the text object and image object, and outputs a prompt screen for the user to choose whether to delete or replace sensitive words, and constructs a desensitized OFD document.
It improves the accuracy and efficiency of sensitive word detection, reduces missed detection, and ensures the security and confidentiality of the output documents.
Smart Images

Figure CN119937948A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of image forming technology, and in particular to a printing control method for an OFD document, an image forming device, an electronic device and a storage medium. Background Art
[0002] OFD (Open Fixed layout Document) is an electronic file format that is independently controllable in my country. It has a fixed layout, does not run out of page, and what you see is what you get. Therefore, it can be regarded as the "digital paper" of the computer age. It is an ideal document format for electronic document publishing, digital information dissemination and archiving.
[0003] At present, in the field of image formation, OFD documents are mostly used to be transmitted to image forming devices, which are parsed by the image forming devices, perform image forming operations, and output paper documents. In some companies, paper documents will be kept as data for a long time. Therefore, special attention should be paid to the output content of the image forming device to prevent the appearance of some inappropriate, unsuitable or confidential sensitive words. However, since some companies have strict control over external access devices, it is impossible to install image formation control systems in control devices. Therefore, sensitive words in OFD documents can only be checked manually. However, manual inspection is very easy to cause missed detection and wrong detection, and the efficiency is very slow, especially when multiple layers exist at the same time, the information in the staggered or overlapping layers is easily ignored, affecting the detection efficiency and security and confidentiality. At the same time, the current sensitive word detection method for OFD documents is single, and many documents need to be printed and issued in paper form due to signing, review, meetings, etc., resulting in the document detection results cannot meet the confidentiality requirements. Summary of the invention
[0004] In view of this, the present application provides an OFD document printing control method, an image forming device, an electronic device and a storage medium, so as to solve the problems of missed detection, false detection and low efficiency which are very easy to cause when manually checking OFD documents, as well as the problem that the sensitive word detection method for OFD documents is single, resulting in the output document failing to meet confidentiality requirements.
[0005] In a first aspect, an embodiment of the present application provides an OFD document printing control method, which is applied to an image forming device, comprising: Acquire an OFD document, wherein the OFD document includes at least one text page; The OFD document is parsed. When the OFD document contains text objects and / or image objects, sensitive word detection is performed on the text objects and / or image objects contained in the OFD document according to the user role. When sensitive words are detected in the text objects and / or image objects contained in the OFD document, a prompt screen is output for the user to select: If the user chooses to continue the operation, the sensitive words detected in the OFD document are deleted or replaced to construct a desensitized OFD document; Execute printing of the desensitized OFD document and record the job information of the OFD document in a log; If the user chooses to abandon the job, the printing is terminated and the job information of the OFD document is deleted; wherein, The user roles include administrators and general users, and the administrator can perform user role assignment, log access and data update via the network or direct settings. In a possible implementation, the administrator may assign user roles via a network or directly set the user roles, including: The administrator can assign user roles by direct burning, networking batch configuration and / or mirroring of devices in the same network.
[0006] In a possible implementation, the data update includes: sensitive word update, sensitive word detection strategy adjustment and user role definition.
[0007] In a possible implementation, the sensitive word detection strategy adjustment includes: Adjust the sensitive word detection method corresponding to the user role, wherein the sensitive word detection method includes a first detection method, a second detection method and a third detection method, the first detection method is to perform sensitive word detection on text objects and image objects separately, the second detection method is to perform sensitive word detection on the intersection of text objects and image objects, and the third detection method is to perform sensitive word detection on the entire intersection of text objects and image objects.
[0008] In a possible implementation, the administrator may update data via the network or directly set the method, including: The administrator can update data by direct burning, networking batch configuration and / or mirroring of devices in the same network.
[0009] In a possible implementation, the job information includes: job name, job attribute data, user information, printing time, number of print copies and / or detection results.
[0010] In a possible implementation, the sensitive word detection on the text object and / or image object included in the OFD document according to the user role includes: Determine the sensitive word detection method based on the user role; The text object is subjected to font encoding data sensitive word detection according to the determined sensitive word detection method, and / or the text glyph is subjected to sensitive word detection after the text glyph is extracted from the image object.
[0011] In a possible implementation, the performing sensitive word detection on the font encoding data of the text object and / or, after performing text glyph extraction on the image object, performing sensitive word detection on the text glyph, includes: Comparing the text object with a first database to obtain a first comparison result, wherein the first database is a font encoding database of the sensitive words; and / or Extracting the text glyphs in the image object, and comparing the text glyphs with a second database to obtain a second comparison result, where the second database is a glyph database of the sensitive words; Determine whether the text object and / or image object contains sensitive words according to the first comparison result and / or the second comparison result.
[0012] In a possible implementation, when the sensitive word detection mode is the first detection mode, determining whether the text object and / or the image object contains sensitive words according to the first comparison result and / or the second comparison result includes: Determine whether the text object contains sensitive words according to the first comparison result; and / or Determine whether the image object contains sensitive words according to the second comparison result.
[0013] In a possible implementation, when the sensitive word detection mode is the second detection mode, determining whether the text object and / or the image object contains sensitive words according to the first comparison result and / or the second comparison result includes: Performing combined analysis on the first comparison result and / or the second comparison result; Determine whether the text object and / or the image object contains sensitive words according to the combined analysis result.
[0014] In a possible implementation, when the sensitive word detection mode is the third detection mode, determining whether the text object and / or the image object contains sensitive words according to the first comparison result and / or the second comparison result includes: Adjusting the order of the first comparison result and / or the second comparison result according to the sensitive words; Determine whether the text object and / or the image object contains sensitive words according to the result of the text order adjustment.
[0015] In a possible implementation manner, comparing the text object with a first database to obtain a first comparison result includes: Acquire a text string set of the OFD document based on the text object; Obtaining the font encoding of each text string in the text string set; The font encoding of each of the text strings is compared with the font encoding of each sensitive word in the first database to obtain a first comparison result.
[0016] In a possible implementation, the acquiring the text string set of the OFD document based on the text object includes: Dividing the text objects according to the text pages to which they belong, to obtain a set of text objects corresponding to each text page in the OFD document; sorting the text objects contained in each of the text object sets respectively to obtain sorted text object sets; A text string set of the OFD document is obtained based on the sorted text object sets.
[0017] In a possible implementation, the sorting of the text objects contained in each of the text object sets includes: The text objects included in each of the text object sets are sorted according to the order of the rows and columns in which the text objects are located in the text pages to which they belong.
[0018] In a possible implementation, sorting the text objects included in each of the text object sets according to the order of the rows and columns in which the text objects are located in the text page to which they belong includes: Taking any one text object set as a target text object set, determining the row number and the starting column number of each text object in the target text object set in the corresponding text page; Grouping the text objects with the same row number into a group, and arranging each group of text objects in rows according to the row numbers from small to large; The column order of the text objects in each group is adjusted according to the size of the starting column sequence number of the text objects in each group.
[0019] In a possible implementation, the acquiring the text string set of the OFD document based on the sorted text object sets includes: Based on the sorted text object sets, respectively obtain text string sets of each of the text object sets; The text character string set of the OFD document is acquired based on each of the text character string sets.
[0020] In a possible implementation, after comparing the font encoding of each of the text strings with the font encoding of each sensitive word in the first database, the method further includes: When the font encoding of the text string at the end of the nth line is the same as the first half of the font encoding of the mth sensitive word in the first database, the font encoding of the text string at the beginning of the n+1th line is compared with the second half of the font encoding of the mth sensitive word; If the font encoding of the text string at the beginning of the n+1th line is the same as the second half of the font encoding of the mth sensitive word, it is confirmed that there is a font encoding of the text string that is consistent with the font encoding of the sensitive word in the first database.
[0021] In a possible implementation, after comparing the font encoding of each of the text strings with the font encoding of each sensitive word in the first database, the method further includes: When the font encoding of the text string at the end of the text page of page t is the same as the first half of the font encoding of the k-th sensitive word in the first database, the font encoding of the first text string of the text page of page t+1 is compared with the second half of the font encoding of the k-th sensitive word; If the font encoding of the first text string of the text page on the t+1th page is the same as the second half of the font encoding of the kth sensitive word, it is confirmed that there is a font encoding of the text string that is consistent with the font encoding of the sensitive word in the first database.
[0022] In a possible implementation, comparing the character font with a second database to obtain a second comparison result includes: Acquire a glyph string set of the OFD document based on the text glyph; Each character string in the character string set is compared with the character shape of each sensitive word in the second database to obtain a second comparison result.
[0023] In a possible implementation, the acquiring the glyph string set of the OFD document based on the text glyph includes: Dividing the text glyphs according to the text pages to which the text glyphs belong, to obtain a set of text glyphs corresponding to each text page in the OFD document; Sorting the character glyphs contained in each of the character glyph sets respectively to obtain sorted character glyph sets; A glyph string set of the OFD document is obtained based on the sorted glyph sets of each character.
[0024] In a possible implementation, the sorting of the character glyphs contained in each of the character glyph sets includes: The character glyphs included in each of the character glyph sets are sorted according to the image object to which each character glyph belongs.
[0025] In a possible implementation, the administrator includes two role definitions: a common administrator and a super administrator, and the two role definitions correspond to different permissions.
[0026] Ordinary administrators can perform general user role assignment, log access and data update via the network or direct settings; super administrators have all the permissions of ordinary administrators and can also assign user roles of ordinary administrators.
[0027] In one possible implementation, general users include three role definitions: ordinary employees, ordinary confidential personnel, and senior confidential personnel. The three role definitions correspond to different user confidentiality levels, user-corresponding sensitive word detection methods, printable file categories, etc.
[0028] In a possible implementation, sorting the character glyphs included in each character glyph set according to the image object to which each character glyph belongs includes: Grouping the text glyphs belonging to the same image object into a group; The text glyphs in each group are sorted according to the positions of the text glyphs in the corresponding image object.
[0029] In a possible implementation, the obtaining of the glyph string set of the OFD document based on the sorted glyph sets of the characters includes: Based on the sorted character glyph sets, respectively obtain the glyph string sets of the character glyph sets; The glyph string set of the OFD document is obtained based on the glyph string set of each of the character glyph sets.
[0030] In a possible implementation, the method further includes: When a sensitive word is detected in a text object and / or an image object included in the OFD document, determining a level of the sensitive word in the text object and / or the image object; An image forming strategy for the OFD document is determined according to the level of the sensitive word.
[0031] In a second aspect, an embodiment of the present application provides an image forming device, including: An acquisition unit, configured to acquire an OFD document, wherein the OFD document includes at least one text page; A parsing unit, used for parsing the text page of the OFD document; a detection unit, configured to perform sensitive word detection on the text objects and / or image objects contained in the OFD document when the OFD document contains text objects and / or image objects; The output unit is used to output a prompt screen when sensitive words are detected in the text objects and / or image objects contained in the OFD document: The execution unit is used to execute a corresponding image formation control operation on the OFD document in response to the image formation control instruction triggered on the prompt screen.
[0032] In a third aspect, an embodiment of the present application provides an electronic device, including: processor; Memory; A computer program is stored in the memory, and when the computer program is executed, the electronic device executes any one of the methods described in the first aspect.
[0033] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium includes a stored program, wherein when the program is running, the device where the computer-readable storage medium is located is controlled to execute any method described in the first aspect.
[0034] Compared with the prior art, the embodiments of the present application can perform sensitive word detection on OFD documents through an image forming device during the printing process of OFD documents, thereby improving the accuracy and efficiency of sensitive word detection, performing sensitive word detection on multiple layers existing in OFD documents, and taking into account text objects and image objects, as well as the combined effects of text objects and image objects, thereby greatly reducing the occurrence of missed detections and ensuring that the document detection results meet confidentiality requirements. BRIEF DESCRIPTION OF THE DRAWINGS
[0035] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.
[0036] Figure 1 A schematic diagram of an application scenario provided for an embodiment of the present application; Figure 2 A flowchart of a printing control method for an OFD document provided in an embodiment of the present application; Figure 3 A schematic diagram of a control device sending an OFD document provided in an embodiment of the present application; Figure 4 A schematic diagram of segmenting sensitive words provided in an embodiment of the present application; Figure 5 A flowchart of another OFD document printing control method provided in an embodiment of the present application; Figure 6 A schematic diagram of the structure of an image forming device provided in an embodiment of the present application; Figure 7 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0037] In order to better understand the technical solution of the present application, the embodiments of the present application are described in detail below with reference to the accompanying drawings.
[0038] It should be clear that the described embodiments are only part of the embodiments of the present application, rather than all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in the field without creative work are within the scope of protection of the present application.
[0039] The terms used in the embodiments of the present application are only for the purpose of describing specific embodiments, and are not intended to limit the present application. The singular forms "a", "said" and "the" used in the embodiments of the present application and the appended claims are also intended to include plural forms, unless the context clearly indicates other meanings.
[0040] It should be understood that the term "and / or" used in this article is only a description of the association relationship of associated objects, indicating that there can be three relationships. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / " in this article generally indicates that the associated objects before and after are in an "or" relationship.
[0041] See also Figure 1 , is a schematic diagram of an application scenario provided by an embodiment of the present application. Figure 1 As shown, the application scenario includes: a control device 110 and an image forming apparatus 120, wherein the control device 110 and the image forming apparatus 120 are interconnected through a wired or wireless communication network to transmit information. During the image forming process, the control device 110 converts the print data into an OFD document, and sends the OFD document to the image forming apparatus 120, which parses the OFD document and then performs an image forming operation.
[0042] The communication network between the control device 110 and the image forming device 120 may be a local area network or a wide area network transferred through a relay device. When the communication network is a local area network, exemplarily, the communication network may be a short-distance communication network such as a wifi hotspot network, a wifi P2P network, a Bluetooth network, a zigbee network or a near field communication (NFC) network. When the communication network is a wide area network, exemplarily, the communication network may be a third-generation wireless telephone technology (3G) network, a fourth-generation mobile communication technology (4G) network, a fifth-generation mobile communication technology (5G) network, a future-evolved public land mobile network (PLMN) or the Internet.
[0043] It should be pointed out that Figure 1 This is only an exemplary description and should not be used as a limitation on the scope of protection of this application. For example, the image forming device 120 includes but is not limited to a printer, a copier, a fax machine, a multi-function image making and copying device, an electrostatic printing device, and any other similar device. The control device 110 includes but is not limited to a computer, a mobile phone, a tablet computer, an enterprise internal server, a cloud server, and other electronic devices that can communicate with the image forming device 120.
[0044] In some possible implementations, the control device 110 may also be referred to as a host computer, a host, a terminal device, etc.
[0045] OFD (Open Fixed layout Document) is an electronic file format that is independently controllable in my country. It has a fixed layout, does not run out of page, and what you see is what you get. Therefore, it can be regarded as the "digital paper" of the computer age. It is an ideal document format for electronic document publishing, digital information dissemination and archiving.
[0046] At present, in the field of image formation, OFD documents are mostly used to be transmitted to image forming devices, which will parse them, perform image formation operations, and output paper documents. In some companies, paper documents will be kept as data for a long time. Therefore, special attention should be paid to the output content of the image forming device to prevent the appearance of some inappropriate, unsuitable or confidential sensitive words. However, since some companies have very strict control over external access devices, it is impossible to install an image formation control system in the control device. Therefore, sensitive words in OFD documents can only be checked manually. However, manual inspection is very prone to missed detections and false detections, and is very inefficient, affecting the image formation effect and efficiency. At present, the sensitive word detection method for OFD documents is single. If the sensitive word detection of OFD documents is limited to the text part, there is no corresponding detection method for text combinations in multiple text boxes or modules in a text page, text in an image, and text combinations generated by the overlapping of text and / or images. Figure 4 As shown in , the two text boxes produce a combination effect of text content due to their positional relationship. If conventional detection logic is used to detect only a single object, missed detection may occur easily.
[0047] In view of the above problems, the present application proposes a printing control method, an image forming device, an electronic device and a storage medium for OFD documents. The present application embodiment can detect sensitive words in OFD documents by using the image forming device during the printing process of OFD documents, thereby improving the accuracy and efficiency of sensitive word detection. The following is a detailed description with reference to the accompanying drawings.
[0048] See also Figure 2 , is a flow chart of an OFD document printing control method provided in an embodiment of the present application. The method can be applied to Figure 1 In the image forming device of the application scenario shown in FIG. Figure 2 As shown, it mainly includes the following steps.
[0049] S201: Obtain an OFD document, where the OFD document includes at least one text page.
[0050] In an embodiment of the present application, before the image forming device obtains the OFD document, it is necessary to first transmit the character string that is expected to be controlled, that is, the sensitive word, to the image forming device, and establish a sensitive word database in the image forming device for sensitive word detection on the obtained OFD document. Specifically, the sensitive word data can be sent to the image forming device through an APP or a supporting driver of the image forming device, or by logging into the background website of the image forming device to set up a sensitive word database, or by sending sensitive word data to the image forming device through a file. The sent sensitive word data includes the font encoding of the sensitive word and the commonly used glyphs of the sensitive word, wherein the image forming device receives the font encoding of the sensitive word, such as Figure 3 As shown, the font encoding of the sensitive word is stored in the first database of the sensitive word storage module 121, that is, a font encoding database of the sensitive word is established in the sensitive word storage module 121, which is used to detect the text objects in the OFD document for sensitive words, and after receiving the commonly used glyphs of the sensitive words, the commonly used glyphs of the sensitive words are stored in the second database of the sensitive word storage module 121, that is, a glyph database of the sensitive word is established in the sensitive word storage module 121, which is used to detect the image objects of the OFD document for sensitive words. It can be understood that the preset font encoding is stored in the first database, which is the font encoding database of the sensitive word; the preset glyphs are stored in the second database, which is the glyph database of the sensitive word. By storing the preset font encoding and the preset glyphs in different databases, the data can be better managed and called.
[0051] In the specific implementation, the font encoding of sensitive words can be a common font encoding, and the embodiment of the present application does not make specific requirements for this. The glyphs of sensitive words can be obtained by extracting the glyphs corresponding to the sensitive words from the common font library, such as bold, Song, Kai, etc., and obtaining the common font size of each glyph, such as small four, five, etc., as a target glyph set, where the glyph data is saved in bitmap form. Of course, in actual applications, the glyphs of sensitive words can also be obtained by other means, and the embodiment of the present application does not make specific requirements for this.
[0052] After the first database and the second database are established, Figure 3 As shown, after the control device 110 sends the OFD document, the image forming device 120 obtains the OFD document sent by the control device 110, and performs sensitive word detection and replacement on the OFD document through the sensitive word processing module 122 (described in detail below), wherein the OFD document includes at least one text page.
[0053] In one embodiment of the present application, the preset font encoding and the preset glyphs may be stored in the same database, and the preset font encoding or the preset glyphs may be queried correspondingly through specific instructions.
[0054] S202: Parse the text page of the OFD document. When the OFD document contains text objects and / or image objects, perform sensitive word detection on the text objects and / or image objects contained in the OFD document. When sensitive words are detected in the text objects and / or image objects contained in the OFD document, output a prompt screen for the user to select.
[0055] In the OFD document, information on the OFD layout, such as text information and image information, is recorded in the text page of the OFD, wherein the text page is a page in xml format, and each text object on the text page, namely, TextObject, includes one or more texts, and the description of the text object includes information about the text size, starting point (row and column number), font, and font encoding, etc. Each image object on the text page, namely, Imageobject or Pathobject, includes an image, and the description of the image object includes information about the image size, starting point (row and column number), image content, color, etc. Since the text page may include multiple types of objects, and each type of object corresponds to a different database for sensitive word detection, after obtaining the OFD document, the OFD document needs to be parsed by the sensitive word processing module 122 to determine whether the text page of the OFD document contains text objects and / or image objects, and when the text page of the OFD document contains text objects and / or image objects, sensitive word detection is performed on the text objects and / or image objects contained in the text page of the OFD document.
[0056] In one embodiment of the present application, a mapping relationship between user roles and sensitive word detection methods can be preset, a corresponding sensitive word detection method is determined according to the user role, and sensitive word detection is performed on text objects and / or image objects contained in the OFD document according to the sensitive word detection method. User roles include administrators and general users, administrators include at least one role definition, and general users include at least one role definition.
[0057] In one embodiment of the present application, the administrator can perform user role assignment, log access and data update via the network or direct setting. Specifically, the administrator can perform user role assignment and data update by direct burning, networking batch configuration and / or mirroring of devices in the same network. Direct burning can be performed directly from the system of the image forming device through a wired or wireless network, such as adding, deleting, modifying and checking operations. This method is suitable for performing user role assignment, log access and data update for a specific device. Network batch configuration is to perform operations such as adding, deleting, modifying and checking on the image forming device through a pre-established network. This method is suitable for scenarios such as printing systems and LAN printing. The administrator can synchronize the configuration of multiple image forming devices through the network. Mirroring of devices in the same network means that image forming devices in the same network can achieve data sharing through network mirroring. This method is suitable for the synchronization of user roles and data information when new devices are added.
[0058] In one possible implementation, the administrator can access the log by accessing the device webpage, entering the administrator password to complete the verification, and then accessing the log system. The local log can be viewed in the log system, and the IP address, device number or device name of the target device in the same network can be entered on the webpage to access the log of the target device.
[0059] In one possible implementation, multiple devices are networked to form a printing system or a cloud printing system. The administrator can access the logs of each networked device by accessing the background system of the printing system or the cloud printing system and completing identity authentication.
[0060] In a possible implementation, the administrator includes at least two role definitions: a common administrator and a super administrator, and the two role definitions correspond to different permissions.
[0061] Ordinary administrators can perform general user role assignment, log access and data update via the network or direct settings; super administrators enjoy all the permissions of ordinary administrators and can also assign user roles of ordinary administrators.
[0062] In one possible implementation, general users include at least three role definitions: ordinary employees, ordinary confidential personnel, and senior confidential personnel. The three role definitions correspond to different user confidentiality levels, user-corresponding sensitive word detection methods, printable file categories, etc.
[0063] In one possible implementation, users (whether administrators or general users) can be divided into three confidentiality levels, Class I, Class II and Class III, and sensitive word detection methods include a first detection method, a second detection method and a third detection method, wherein users at a confidentiality level of Class I perform sensitive word detection on text objects and / or image objects in the OFD document corresponding to the first detection method, and the first detection method is to perform sensitive word detection on text objects and image objects separately; users at a confidentiality level of Class II perform sensitive word detection on text objects and / or image objects in the OFD document corresponding to the second detection method, and the second detection method is to perform sensitive word detection on the intersection of text objects and image objects; users at a confidentiality level of Class III perform sensitive word detection on text objects and / or image objects in the OFD document corresponding to the third detection method, and the third detection method is to perform sensitive word detection on the entire intersection of text objects and image objects. Specifically, when there are multiple layers in a text page, the corresponding sensitive word detection method is determined according to the user role. If the user role is an ordinary employee, it corresponds to confidentiality level I, and the first detection method is used. The first detection method is to perform a separate detection on each of the multiple layers; if the user role is an ordinary confidential personnel, it corresponds to confidentiality level II, and the second detection method is used. The second detection method is to perform a cross-detection on all text objects in the layer, and to perform a cross-detection on all image objects in the layer; if the user role is a senior confidential personnel, it corresponds to confidentiality level III, and the third detection method is used. The third detection method is to perform a combined detection on all objects in the layer, that is, to perform a full cross-sorting detection on the text contained in all objects.
[0064] It should be noted that the confidentiality level for the administrator role can be set according to specific needs.
[0065] It can be seen that the first detection method is a relatively loose detection method, suitable for people with lower confidentiality requirements. The second detection method is a normal detection method, suitable for most confidentiality personnel. The third detection method is a relatively strict detection method, suitable for people with strict confidentiality requirements.
[0066] The embodiment of the present application allows the administrator to assign roles to users, so that users with different roles can execute different sensitive word detection methods, thereby ensuring that users with different roles correspond to different sensitivity and confidentiality levels.
[0067] Data updates include sensitive word updates, sensitive word detection strategy adjustments, and user role definitions.
[0068] Specifically, when sensitive words are updated, the font encoding of the newly added sensitive words can be entered into the first database of the image forming device through the auxiliary program of the control device. If the image forming device also supports image recognition plug-ins, the control device can first obtain different font sizes and glyphs of the newly added sensitive words from different character libraries, and then write the different font sizes and glyphs into the second database of the image forming device in image format. At the same time, the embodiment of the present application can also write images of partial signatures, handwritten signatures, etc. in the second database.
[0069] In one possible implementation, when there may be several image forming devices in the usage scenario and the image forming devices are allowed to be deployed in the internal network, when updating the sensitive word library stored in the image forming device, the updated image forming device can be used as a server to search for image forming devices of the same series in the same network segment, and synchronously transmit the data to other image forming devices of the same series.
[0070] In one possible implementation, the user has already deployed the sensitive word database on all image forming devices in the internal network. When the user adds a new image forming device and has the same requirement for deploying a sensitive word database on the new image forming device, after adding the new image forming device to the internal network, the user can use the deployed image forming device as a mirror source, transmit the data through the internal network, and copy the data mirror to the new image forming device to complete the deployment of the sensitive word database on the new device.
[0071] Specifically, the sensitive word detection strategy adjustment mainly adjusts the sensitive word detection method corresponding to the user role according to the user role definition, such as adjusting the sensitive word detection method corresponding to users with Class I confidentiality level, users with Class II confidentiality level, and users with Class III confidentiality level.
[0072] Specifically, the user role definition is mainly to add the role definition of the new user to the database when there is a new user. The user role definition includes whether the user is a confidential person, the confidentiality level, etc.
[0073] Compared with the prior art, the embodiment of the present application allows administrators to customize different sensitive word detection strategies, allows users to be graded, allows sensitive word libraries to be updated, and allows sensitive word libraries to be "cloned" between different devices, which greatly facilitates the management of confidential personnel and information and ensures the security of output documents. At the same time, the management of sensitive word databases and user roles can be quickly and synchronously updated between networking devices, which facilitates unified management and improves the efficiency of confidentiality management.
[0074] In one possible implementation, sensitive word detection is performed on the OFD document according to a determined sensitive word detection method, wherein the sensitive word detection includes performing font encoding data sensitive word detection on the text object of the OFD document, and / or performing sensitive word detection on the extracted text glyphs after performing text glyph extraction on the image object of the OFD document.
[0075] Specifically, when the type of objects included in the OFD document includes text objects, the text objects in the OFD document can be taken out by the sensitive word processing module 122 and compared with the first database to obtain a first comparison result, that is, the text objects are compared with the preset font encoding to obtain the first comparison result.
[0076] In one possible implementation, since a text object may include one or more characters, we need to first obtain a text string set (a text string set composed of characters) of the OFD document based on the text object, and then obtain the font encoding of each text string in the text string set of the OFD document, and compare the font encoding of each text string with the font encoding of each sensitive word in the first database to obtain a first comparison result.
[0077] In a specific implementation, in the code of the text page, the font encoding of each text string can be obtained through ofd:TextCode, wherein the specific content ofd:TextCode can refer to the description in the relevant technology, and for the sake of brevity, the embodiment of the present application will not be repeated here.
[0078] It is understandable that in actual applications, a text index number database of sensitive words can also be established in the image forming device. After obtaining the text string set of the OFD document, the text index number of each text string in the text string set of the OFD document is obtained, and compared with each text index number in the text index number database to obtain a first comparison result. This method can obtain the text content to be compared based on searching the ofd:Glyphs node. However, the establishment of the text index number database is very troublesome and not as convenient as font encoding. Therefore, the embodiment of the present application preferably uses font encoding to detect sensitive words of text objects.
[0079] Theoretically, from the perspective of constructing OFD documents, a text object is generally constructed as a line unit, but in actual applications, a line of text can also be described by two or more text objects. Therefore, when obtaining a text string set, it is necessary to consider the possibility that sensitive words are truncated. In one possible situation, sensitive words are divided by two or more text objects, such as Figure 4As shown in the figure, assuming that our sensitive word is "smooth wood", the sensitive word is separated by text object a and text object b; in another possible case, the sensitive word is typeset into two adjacent lines, such as Figure 4 In the example, part of the sensitive word "the world" is typeset at the end of this line, and the other part is typeset at the beginning of the next line, that is, the first half is included in text object c, and the second half is included in text object d.
[0080] For the above two situations, when obtaining the text string set of the OFD document based on the text objects, the text objects can be first divided according to the text pages to which the text objects belong, and the text object set corresponding to each text page in the OFD document can be obtained. Then, the text objects contained in each text object set can be sorted respectively to obtain the sorted text object sets, and finally, the text string set of the OFD document can be obtained based on the sorted text object sets.
[0081] In a possible implementation, the text objects included in each text object set can be sorted according to the order of the rows and columns of each text object in the text page to which it belongs. Specifically, take any text object set as the target text object set, determine the row number and starting column number of each text object in the target text object set in the text page to which it belongs, group the text objects with the same row number into a group, and arrange each group of text objects in rows according to the row numbers from small to large, and then adjust the column order of the text objects in each group according to the size of the starting column number of the text objects in each group, such as adjusting the column order of the text objects in each group according to the order of the starting column numbers from small to large, so as to obtain the sorted target text object set. Among them, the starting column number refers to the column number of the first character in a text object, and is also the smallest column number of all characters in a text object. Specifically, when sorting text objects, you can take the upper left corner of the text page as the origin, arrange each group of text objects in rows from top to bottom according to the row numbers from small to large, and then adjust the column order of the text objects in each group from left to right according to the starting column numbers from small to large.
[0082] After sorting the text objects included in each text object set, the text string set of each text object set can be obtained based on the sorted text object sets. Specifically, all the text of each text page can be obtained according to the description of the text objects in each sorted text object set, and all the text of each text page can be sorted into lines of strings according to the sorting of the text objects in units of pages, thereby obtaining the text string set of each text page, and the text string set of the OFD document can be obtained based on the text string set of each text page.
[0083] The text string set of the OFD document obtained in the above manner can identify sensitive words that are truncated by text objects in the same line. At the same time, for the problem of sensitive words being typeset across lines, if it is found that the font encoding of the text string at the end of the nth line is the same as the first half of the font encoding of the mth sensitive word in the first database when comparing the font encoding of the text string with the font encoding of each sensitive word in the first database, then the font encoding of the text string at the beginning of the sentence in the n+1th line is compared with the second half of the font encoding of the mth sensitive word. If the font encoding of the text string at the beginning of the sentence in the n+1th line is the same as the second half of the font encoding of the mth sensitive word, it is confirmed that there is a font encoding of the text string in the OFD document that is consistent with the font encoding of the sensitive word in the first database, and the first comparison result is obtained.
[0084] Similarly, if sensitive words are typeset across lines, the problem of typesetting across pages is also involved, that is, the first half of the sensitive words is typeset at the end of this page, and the second half is typeset at the beginning of the next page. The method for identifying sensitive words includes: when comparing the font encoding of the text string with the font encoding of each sensitive word in the first database, it is found that the font encoding of the text string at the end of the tth text page is the same as the first half of the font encoding of the kth sensitive word in the first database, then the font encoding of the first text string on the t+1th text page is compared with the second half of the font encoding of the kth sensitive word. If the font encoding of the first text string on the t+1th text page is the same as the second half of the font encoding of the kth sensitive word, it is confirmed that there is a font encoding of the text string in the OFD document that is consistent with the font encoding of the sensitive word in the first database, and the first comparison result is obtained.
[0085] In a possible implementation, other methods can also be adopted to sort the text objects included in each set of text objects. It should be noted that since Chinese characters are block-shaped and are naturally separated from each other, in contrast, Western languages (taking English as an example) express meaning through alphabetic phonetic representation, and letters form words through specific arrangements. Therefore, the sorting detection for Western language sensitive words is different from that of Chinese. It is necessary to first isolate and reconstruct the letters, obtain the new semantics, and then perform sensitive word detection. If the OFD document involves Western language text, sorting needs to be artificially isolated and removed first, and then natural semantic processing is performed to identify possible Western language text compositions, and then these possible Western language text compositions are detected. For example, a piece of Western text is as follows: "He is confident I already out", and its Chinese translation is "他相信我已经出去了". If the artificial letter isolation is removed, it becomes "HeisconfidentIalreadyout". After re-isolating, "Heis confidential ready out" can be obtained, and its Chinese semantics can be understood as "他已经做好了保密准备". If there is an overlapping layer covering one or more letters at this time, new semantics will be generated. For example, if the letter "e" in "He" is covered, the Western text will become "HisconfidentIalreadyout". After re-isolating, "His confidentialready out" can be obtained, and its Chinese semantics can be understood as "他的机密已经准备好了". Through the sorting mechanism for Western language detection described above, each set of sorted text objects can be obtained.
[0086] It should also be noted that based on the above sorting mechanism for Western language detection, in scenarios with specific confidentiality requirements, the detection method in the present invention can also be executed after isolating and reconstructing Chinese characters to improve the security margin. For example, for the Chinese characters "木几禾必", "机秘" can be obtained after reconstruction.
[0087] The above text reconstruction can also be applied to phonetic alphabets such as Chinese pinyin, Japanese, and Korean. Details are not elaborated here.
[0088] By sorting the text objects and then obtaining the text string of each text page in the OFD document in the embodiments of the present application, sensitive words truncated by text objects can be identified, the accuracy rate of sensitive word recognition is improved, and the compliance of the output document is ensured.
[0089] In the text page of the OFD document, some text will be presented in the form of images, that is, the text content will be included in the ofd:Imageobject or ofd:Pathobject. In this case, on the one hand, the text will not be easy to find directly, and on the other hand, due to the overlap of multiple images, the image containing sensitive words will be stacked on the bottom layer, which cannot be seen through and neglected to check. Based on this, when the type of object contained in the text page includes an image object, the embodiment of the present application takes out the image object through the sensitive word processing module 122, and extracts the text glyphs in the image object, and then compares the text glyphs with the text glyphs of the sensitive words in the second database to obtain a second comparison result. That is, the text glyphs in the image object are extracted, and the text glyphs are compared with the preset glyphs to obtain the second comparison result.
[0090] In a specific implementation, image recognition technologies such as OCR or image fuzzy matching can be embedded in the sensitive word processing module 122 as a plug-in function. After the sensitive word processing module 122 takes out the image object, the text in the image object can be recognized and the text font can be extracted through image recognition technologies such as OCR or image fuzzy matching. Of course, if the user needs to perform additional detection on the image due to factors such as scene requirements, image recognition technologies such as OCR or image fuzzy matching can be integrated into the image recognition module, and the image recognition module can be set in the image forming device, and the image recognition module can perform text recognition and text font extraction.
[0091] In a possible implementation, the text glyphs are compared with the text glyphs of sensitive words in the second database to determine whether there are sensitive words in the image object, specifically including: obtaining a glyph string set of the OFD document based on the text glyphs, comparing each glyph string in the glyph string set with the glyph of each sensitive word in the second database, and when there is a glyph string whose similarity with the glyph of the sensitive word in the second database is greater than a preset threshold, it is determined that there are sensitive words in the image object. Among them, the preset threshold can be set according to specific needs. If the requirements for sensitive words are relatively strict, the preset threshold can be set lower, such as 70%. If the requirements for sensitive words are relatively loose, the preset threshold can be set higher, such as 90%. The embodiment of the present application does not impose specific restrictions on this.
[0092] In a possible implementation, since the acquired text glyphs are individual, they need to be combined into glyph strings for sensitive word recognition. Specifically, the text glyphs can be divided according to the text pages to which the text glyphs belong, and a text glyph set corresponding to each text page in the OFD document is obtained. Then, the text glyphs contained in each text glyph set are sorted to obtain sorted text glyph sets, and the glyph string set of the OFD document is obtained based on the sorted text glyph sets.
[0093] In a possible implementation, the text glyphs included in each text glyph set can be sorted according to the image object to which each text glyph belongs. Specifically, the text glyphs belonging to the same image object in each text glyph set are grouped together, and the text glyphs in each group are sorted according to the positions of the text glyphs in the image object to which they belong.
[0094] After sorting the character glyphs contained in each character glyph set, the glyph string set of each character glyph set can be obtained based on the sorted character glyph sets, and the glyph string set of the OFD document can be obtained based on the glyph string set of each character glyph set.
[0095] The embodiment of the present application detects sensitive words in the image object by extracting text glyphs in the image object and comparing them with the second database, which can prevent sensitive words from appearing in the output image and further ensure the compliance of the final output content.
[0096] In the embodiment of the present application, after obtaining the first comparison result and / or the second comparison result, it can be determined whether the text object and / or the image object contains sensitive words according to the first comparison result and / or the second comparison result.
[0097] In a possible implementation, a traversal comparison program may be preset, and the program may identify character string data, and obtain a first comparison result by comparing the character string data of the text object in the OFD with the first database.
[0098] In a possible implementation, an OCR comparison program may be preset, which can recognize text in an image, compare the text content of the image object in the OFD with the second database, and then perform sensitive word detection on the text content to obtain a second comparison result.
[0099] It should be noted that the first comparison result and the second comparison result in the embodiment of the present application include not only words that are completely consistent with the sensitive words, but also characters or words that exist in the sensitive words. For example, if the sensitive word is "blockchain", the comparison results for "block", "block", "chain", "block", "block chain", etc. will be placed in the first comparison result and / or the second comparison result. However, when the detection method is different, Specifically, when the sensitive word detection method is the first detection method, the first comparison result and the second comparison result include the comparison result of whether there is a word that is completely consistent with the sensitive word. At this time, determining whether the text object and / or the image object contains sensitive words according to the first comparison result and / or the second comparison result specifically includes: determining whether the text object contains sensitive words according to the first comparison result; and / or determining whether the image object contains sensitive words according to the second comparison result. That is, if there is a first comparison result, whether the text object contains sensitive words is determined according to whether there is a word that is completely consistent with the sensitive word in the first comparison result; if the first comparison result shows that there is a word that is completely consistent with the sensitive word, it is determined that there is a sensitive word in the text object, and if there is a second comparison result, whether the image object contains sensitive words is determined according to whether there is a word that is completely consistent with the sensitive word in the second comparison result, and if the second comparison result shows that there is a word that is completely consistent with the sensitive word, it is determined that there is a sensitive word in the image object.
[0100] Specifically, when the sensitive word detection method is the second detection method, the first comparison result and the second comparison result include not only the comparison result of whether there is a word that is completely consistent with the sensitive word, but also the comparison result of whether there is a word or word that is completely consistent with the character or word in the sensitive word. For example, if the sensitive word is "blockchain", then the comparison results for "area", "block", "chain", "block", "block chain", etc. will all be placed in the first comparison result and / or the second comparison result. At this time, determining whether the text object and / or image object contains sensitive words based on the first comparison result and / or the second comparison result specifically includes: combining and analyzing the first comparison result and / or the second comparison result, and determining whether the text object and / or image object contains sensitive words based on the combined analysis result. That is, if there is only the first comparison result, the result of the combined analysis is to determine whether the text object contains sensitive words based on whether there are words that are completely consistent with the sensitive words in the first comparison result; if the first comparison result shows that there are words that are completely consistent with the sensitive words, it is determined that the text object contains sensitive words; if there is only the second comparison result, the result of the combined analysis is to determine whether the image object contains sensitive words based on whether there are words that are completely consistent with the sensitive words in the second comparison result; if the second comparison result shows that there are words that are completely consistent with the sensitive words, it is determined that the image object contains sensitive words; if there are both the first comparison result and the second comparison result, the result of the combined analysis is to determine whether the image object contains sensitive words based on whether there are words that are completely consistent with the sensitive words in the first comparison result. The first comparison result and the second comparison result are combined to determine whether the text object and the image object contain sensitive words based on whether there are words that are completely consistent with the sensitive words. If the first comparison result shows that there are words that are completely consistent with the sensitive words, it is determined that there are sensitive words in the text object. If the second comparison result shows that there are words that are completely consistent with the sensitive words, it is determined that there are sensitive words in the image object. If the combination result shows that there are words that are completely consistent with the sensitive words, it is determined that there are sensitive words in the text object and the image object. Exemplarily, if it is detected that the first comparison result shows that there is the first half of the mth sensitive word at position A of a text page of the OFD document, and the second comparison result shows that there is the second half of the mth sensitive word at the position after position A of the same text page of the OFD document, then after combining the first comparison result with the second comparison result, a word that is completely consistent with the mth sensitive word can be obtained, so that the text object and the image object can be determined to contain sensitive words.
[0101] Specifically, when the sensitive word detection method is the second detection method, the first comparison result and the second comparison result include, in addition to the comparison result of whether there is a word that is completely consistent with the sensitive word, the comparison result of whether there is a word or word that is completely consistent with the character or word in the sensitive word, and the comparison result of whether there is a word that is completely consistent with the word after the order of the characters in the sensitive word is swapped. For example, if the sensitive word is "blockchain", the comparison results of "zone", "block", "chain", "block chain", "block zone chain", "block chain zone", "chain block zone", "block zone", etc. will all be placed in the first comparison result and / or the second comparison result. At this time, determining whether the text object and / or image object contains sensitive words according to the first comparison result and / or the second comparison result specifically includes: adjusting the text order of the first comparison result and / or the second comparison result according to the sensitive word, and determining whether the text object and / or image object contains sensitive words according to the result of the text order adjustment. That is, if there is only the first comparison result, the text order of the first comparison result is adjusted, and whether the text object contains sensitive words is determined based on whether there are words that are completely consistent with the sensitive words in the text order adjustment result of the first comparison result; if there are words that are completely consistent with the sensitive words in the text order adjustment result of the first comparison result, it is determined that sensitive words exist in the text object; if there is only the second comparison result, the text order of the second comparison result is adjusted, and whether the image object contains sensitive words is determined based on whether there are words that are completely consistent with the sensitive words in the text order adjustment result of the second comparison result; if there are words that are completely consistent with the sensitive words in the text order adjustment result of the second comparison result, it is determined that sensitive words exist in the image object; if there are both the first comparison result and the second comparison result, the second comparison result is adjusted. The text order of the first comparison result, the second comparison result, and the combination result of the first comparison result and the second comparison result is adjusted, and whether the text object and / or the image object contains sensitive words is determined according to whether there are words that are completely consistent with the sensitive words in the text order adjustment result of the first comparison result, the text order adjustment result of the second comparison result, and the text order adjustment result of the combination result. If there are words that are completely consistent with the sensitive words in the text order adjustment result of the first comparison result, it is determined that the text object contains sensitive words. If there are words that are completely consistent with the sensitive words in the text order adjustment result of the second comparison result, it is determined that the image object contains sensitive words. If there are words that are completely consistent with the sensitive words in the text order adjustment result of the combination result, it is determined that the text object and the image object contain sensitive words. Exemplarily, if the sensitive word is "abcd", the first comparison result shows that ba exists, and the second comparison result shows that dc exists, then after combining the first comparison result and the second comparison result, the text order of the combination result is adjusted to obtain the sensitive word "abcd", thereby determining that the text object and the image object contain sensitive words.
[0102] The embodiment of the present application adopts different sensitive word detection methods according to different user roles, thereby ensuring different sensitivity and confidentiality levels for different user roles, so that the output documents meet different levels of confidentiality requirements.
[0103] S200: In response to the image formation control instruction triggered on the prompt screen, a corresponding image formation control operation is performed on the OFD document.
[0104] In an embodiment of the present application, when sensitive words are detected in the text objects and / or image objects contained in the OFD document, a prompt screen will be output on the image forming device for the user to select. In response to the image formation control instruction triggered by the user on the prompt screen, the corresponding image formation control operation is performed on the OFD document. When the image formation control instruction is used to instruct to continue the image formation operation, the sensitive words detected in the OFD document are deleted or replaced to construct a desensitized OFD document; the desensitized OFD document is printed and the job information of the OFD document is recorded; or, when the image formation control instruction is used to instruct to abandon the image formation operation, the current image formation process is terminated and the job information of the OFD document is deleted.
[0105] In the above step S200, step S203, step S204 and step S205 may be further included.
[0106] Specifically, the prompt screen includes two options: abandon the job and continue the job. The user can select the corresponding option according to the actual situation. If the user chooses to abandon the job, the image forming device directly ends the current job and deletes the relevant data; if the user chooses to continue the job, the current job is desensitized before printing. When no sensitive words are detected in the text objects and / or image objects contained in the OFD document, the OFD document is directly printed.
[0107] Step S203: If the user chooses to continue the operation, the sensitive words detected in the OFD document are deleted or replaced to construct a desensitized OFD document.
[0108] In an embodiment of the present application, for an OFD document containing sensitive words, the sensitive words detected in the OFD document will be deleted or replaced to construct a desensitized OFD document.
[0109] It should be noted that the deletion or replacement of sensitive words detected in the OFD document can refer to the relevant technology. For the sake of brevity, the embodiments of the present application will not be described in detail here.
[0110] S204: Execute printing of the desensitized OFD document and record the job information of the OFD document in the log.
[0111] In the embodiment of the present application, the printing operation can be directly performed on the desensitized OFD document. Figure 3 The image forming module 123 is shown to execute printing of the desensitized OFD document.
[0112] At the same time, the embodiment of the present application will also record the job information of the OFD document in the log for easy access by the administrator. The job information includes: job name, user information, printing time, number of copies printed and / or sensitive word detection results.
[0113] S205: If the user chooses to abandon the job, the printing is terminated and the job information of the OFD document is deleted.
[0114] In the embodiment of the present application, if the user selects the option to abandon the job on the prompt screen, the printing operation of the OFD document is directly terminated and the job information of the OFD document is deleted.
[0115] In one possible implementation, when the user chooses to abandon the job on the prompt screen, the processor generates an instruction to end and delete the job, delete the detection result, and delete the cached job file. In the embodiment of the present application, when the OFD document contains sensitive words and the user chooses to continue printing, the sensitive words are deleted or replaced to form a desensitized OFD document, thereby ensuring the security of OFD document printing and ensuring that the output document meets confidentiality requirements.
[0116] In one possible implementation, when the OFD document contains sensitive words and the user chooses to continue printing, the processor generates a replacement or deletion command, calls the pre-stored filling color blocks in the memory to replace the layer containing sensitive words in the original document, or directly deletes the layer containing sensitive words in the original document.
[0117] In one possible implementation, the embodiment of the present application may also integrate an AI model (text semantic recognition after OCR recognition) into the image forming device based on sensitive word detection, so as to facilitate more intelligent detection of sensitive words or recognition of semantics.
[0118] In a possible implementation, if the image forming device is allowed to access the network, the embodiment of the present application can also perform further fuzzy query of the text information in the first database and the image information in the second database, obtain the font encoding and glyphs of similar words, and store them in the corresponding database, so as to expand the detection range and detection accuracy of sensitive words. Of course, if the memory and computing power of the image forming device are sufficient, it is also possible to perform further fuzzy query of the text information and image information in the OFD document, obtain the font encoding and glyphs of similar words, and then compare them with the corresponding database again to confirm whether there are sensitive words in the similar words, so as to determine whether there are sensitive words in the OFD document.
[0119] Additionally, after the AI model is connected, it can also be used to detect whether there are problems such as sentence incoherence and typos before performing image formation operations. If there are problems, the user is asked to print the original manuscript, the revised manuscript, or both.
[0120] In the embodiment of the present application, an image forming device can perform intelligent and extended detection of sensitive words on an OFD document during the printing process of the OFD document, thereby improving the accuracy of sensitive word detection.
[0121] The method of the embodiment of the present application is further explained below in conjunction with the printing process.
[0122] See also Figure 5 , is a flow chart of another OFD document printing control method provided in an embodiment of the present application. Figure 5 As shown, after the control device sends the OFD job, the image forming device (such as a printer) performs sensitive word detection on the OFD job to confirm whether there are sensitive words in the OFD job, that is, the printer determines whether there are sensitive words. When there are no sensitive words in the OFD job, normal printing is performed. When there are sensitive words in the OFD job, a prompt screen is output. If the user chooses to continue the job, the sensitive words detected in the OFD document are deleted or replaced, and then normal printing is performed. If the user chooses to abandon the job, the printing ends. The detailed description of the embodiments of the present application can refer to the above-mentioned method embodiments. For the sake of brevity, it will not be repeated here.
[0123] When printing an OFD document, the embodiment of the present application recognizes some text information inside the document and can replace the set sensitive words with other characters or directly remove them to avoid leakage of confidential information. It aims to ensure that the files output by the printer can not only guarantee normal printing functions without authorization, but also protect necessary confidential information from being printed out, thereby improving the security requirements of confidential units.
[0124] Moreover, the sensitive word recognition action in the embodiment of the present application is completed when the data is received inside the printer, and will not change the content of the source file. That is, when we apply this technology in the printer, we can ensure that the printed job removes sensitive words without considering the job sent by the external application.
[0125] Corresponding to the above embodiments, the present application also provides an image forming device.
[0126] See also Figure 6 , is a schematic diagram of the structure of an image forming device provided in an embodiment of the present application. Figure 6As shown, the image forming device 600 includes: an acquisition unit 601, used to acquire an OFD document, wherein the OFD document includes at least one text page; a parsing unit 602, used to parse the text page of the OFD document; a detection unit 603, used to perform sensitive word detection on the text objects and / or image objects contained in the OFD document when the OFD document contains text objects and / or image objects; an output unit 604, used to output a prompt screen when sensitive words are detected in the text objects and / or image objects contained in the OFD document; and an execution unit 605, used to execute corresponding image formation control operations on the OFD document in response to an image formation control instruction triggered on the prompt screen.
[0127] Furthermore, the execution unit 605 may further include a first execution unit and a second execution unit; the first execution unit is used to delete or replace the sensitive words detected in the OFD document and construct a desensitized OFD document when the image formation control instruction instructs to continue the image formation operation. Specifically, if the user chooses to continue the job on the prompt screen, the sensitive words detected in the OFD document are deleted or replaced, the desensitized OFD document is constructed, the desensitized OFD document is printed, and the job information of the OFD document is recorded in the log; the second execution unit is used to terminate the current image formation process and delete the job information of the OFD document when the image formation control instruction instructs to abandon the image formation operation. Specifically, if the user chooses to abandon the job, printing is terminated and the job information of the OFD document is deleted.
[0128] The specific contents of the embodiments of the present application can be found in the description of the above method embodiments, which will not be repeated here for the sake of brevity.
[0129] Corresponding to the above embodiments, the present application also provides an electronic device.
[0130] See also Figure 7 , is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application, and the electronic device 700 may include: a processor 710, a memory 720, and a communication unit 730. These components communicate through one or more buses. Those skilled in the art can understand that the structure of the electronic device shown in the figure does not constitute a limitation on the embodiment of the present application. It can be a bus structure or a star structure, and can also include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently.
[0131] The communication unit 730 is used to establish a communication channel so that the electronic device can communicate with other devices, receive user data sent by other devices or send user data to other devices.
[0132] The processor 710 is the control center of the electronic device. It uses various interfaces and lines to connect various parts of the entire electronic device. It runs or executes software programs, instructions, and / or modules stored in the memory 720, and calls data stored in the memory to perform various functions of the electronic device and / or process data. The processor can be composed of an integrated circuit (IC), for example, it can be composed of a single packaged IC, or it can be composed of multiple packaged ICs with the same or different functions. For example, the processor 710 can include only a central processing unit (CPU). In the embodiment of the present application, the CPU can be a single computing core or multiple computing cores.
[0133] The memory 720 is used to store execution instructions of the processor 710. The memory 720 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk.
[0134] When the execution instructions in the memory 720 are executed by the processor 710, the electronic device 700 can execute Figure 2 Some or all of the steps in the illustrated embodiments.
[0135] In a specific implementation, the embodiment of the present application further provides a computer storage medium, wherein the computer storage medium may store a program, and when the program is executed, the program may include some or all of the steps in each embodiment of the OFD document printing control method provided in the embodiment of the present application. The storage medium may be a disk, an optical disk, a read-only memory (ROM) or a random access memory (RAM), etc.
[0136] In a specific implementation, an embodiment of the present application also provides a computer program product, wherein the computer program product includes executable instructions, and when the executable instructions are executed on a computer, the computer executes part or all of the steps in each embodiment of the OFD document printing control method provided in the embodiment of the present application.
[0137] Those skilled in the art can clearly understand that the technology in the embodiments of the present application can be implemented by means of software plus a necessary general hardware platform. Based on this understanding, the technical solution in the embodiments of the present application is essentially or the part that contributes to the prior art can be embodied in the form of a software product, which can be stored in a storage medium such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment of the present application or some parts of the embodiments.
[0138] In this specification, the same or similar parts between the various embodiments can be referred to each other. In particular, for the device embodiment and the terminal embodiment, since they are basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the description in the method embodiment.
Claims
1. An OFD document printing control method, applied to an image forming device, characterized in that: include: Acquire an OFD document, wherein the OFD document includes at least one text page; Parsing the text page of the OFD document, and when the OFD document contains text objects and / or image objects, performing sensitive word detection on the text objects and / or image objects contained in the OFD document; When sensitive words are detected in the text objects and / or image objects contained in the OFD document, a prompt screen is output: In response to the image formation control instruction triggered on the prompt screen, a corresponding image formation control operation is performed on the OFD document.
2. The printing control method according to claim 1, characterized in that: The performing corresponding image formation control operation on the OFD document comprises: When the image formation control instruction is used to instruct to continue to perform the image formation operation, the sensitive words detected in the OFD document are deleted or replaced to construct a desensitized OFD document; Printing the desensitized OFD document and recording the job information of the OFD document; Alternatively, when the image forming control instruction is used to instruct to abandon the image forming operation, the current image forming process is terminated, and the job information of the OFD document is deleted.
3. The printing control method according to claim 1, characterized in that: The sensitive word detection on the text object and / or image object contained in the OFD document includes: A mapping relationship between user roles and sensitive word detection methods is preset, and a corresponding sensitive word detection method is determined according to the user roles; Performing sensitive word detection on the text objects and / or image objects included in the OFD document according to the sensitive word detection method; The user roles include administrators and general users, the administrator includes at least one role definition, and the general user includes at least one role definition.
4. The printing control method according to claim 3, characterized in that: The administrator is used to assign user roles, access logs and update data through the network or direct settings, and the data update includes: at least one of sensitive word update, sensitive word detection strategy adjustment and definition of user roles.
5. The printing control method according to claim 4, characterized in that: The user role allocation or data update method includes: burning, networking batch configuration and / or mirroring of devices in the same network.
6. The printing control method according to claim 4, characterized in that: The sensitive word detection strategy adjustment includes: The sensitive word detection method corresponding to the user role is adjusted according to the user role definition, wherein the sensitive word detection method includes a first detection method, a second detection method and a third detection method, the first detection method is to perform sensitive word detection on text objects and image objects separately, the second detection method is to perform sensitive word detection on the intersection of text objects and image objects, and the third detection method is to perform sensitive word detection on the entire intersection of text objects and image objects.
7. The printing control method according to claim 2, characterized in that: The job information includes: job name, user information, printing time, number of print copies and / or detection results.
8. The printing control method according to claim 3, characterized in that: The performing sensitive word detection on the text object and / or image object included in the OFD document according to the sensitive word detection method includes: The text object is subjected to font encoding sensitive word detection according to the determined sensitive word detection method, and / or the text glyph is subjected to sensitive word detection after the text glyph is extracted from the image object.
9. The printing control method according to claim 8, characterized in that: The performing font encoding sensitive word detection on the text object, and / or, after performing text glyph extraction on the image object, performing sensitive word detection on the text glyph, comprises: Comparing the text object with a preset font encoding to obtain a first comparison result; and / or Extracting a character glyph in the image object, and comparing the character glyph with a preset glyph to obtain a second comparison result; Determine whether the text object and / or image object contains sensitive words according to the first comparison result and / or the second comparison result.
10. The printing control method according to claim 9, characterized in that: The preset font encoding is stored in a first database, which is a font encoding database of the sensitive words; the preset glyphs are stored in a second database, which is a glyph database of the sensitive words.
11. The printing control method according to claim 9, characterized in that: When the sensitive word detection method is the first detection method, determining whether the text object and / or the image object contains sensitive words according to the first comparison result and / or the second comparison result includes: Determine whether the text object contains sensitive words according to the first comparison result; and / or Determine whether the image object contains sensitive words according to the second comparison result.
12. The printing control method according to claim 9, characterized in that: When the sensitive word detection method is the second detection method, determining whether the text object and / or the image object contains sensitive words according to the first comparison result and / or the second comparison result includes: Performing combined analysis on the first comparison result and / or the second comparison result; Determine whether the text object and / or the image object contains sensitive words based on the combined analysis result.
13. The printing control method according to claim 9, characterized in that: When the sensitive word detection method is the third detection method, determining whether the text object and / or the image object contains sensitive words according to the first comparison result and / or the second comparison result includes: Adjusting the order of the first comparison result and / or the second comparison result according to the sensitive words; Determine whether the text object and / or the image object contains sensitive words according to the result of the text order adjustment.
14. The printing control method according to claim 9, characterized in that: The comparing the text object with a preset font encoding to obtain a first comparison result includes: Acquire a text string set of the OFD document based on the text object; Obtaining the font encoding of each text string in the text string set; The font encoding of each of the text strings is compared with the preset font encoding corresponding to each sensitive word to obtain a first comparison result.
15. The printing control method according to claim 14, characterized in that: The acquiring of the text string set of the OFD document based on the text object includes: Dividing the text objects according to the text pages to which they belong, to obtain a set of text objects corresponding to each text page in the OFD document; sorting the text objects contained in each of the text object sets respectively to obtain sorted text object sets; Based on the sorted text object sets, respectively obtain text string sets of each of the text object sets; The text character string set of the OFD document is acquired based on each of the text character string sets.
16. The printing control method according to claim 15, characterized in that: The step of respectively sorting the text objects contained in each of the text object sets comprises: The text objects included in each of the text object sets are sorted according to the order of the rows and columns in which the text objects are located in the text pages to which they belong.
17. The printing control method according to claim 16, characterized in that: The sorting of the text objects included in each of the text object sets according to the order of the rows and columns in which the text objects are located in the text page to which they belong comprises: Taking any one text object set as a target text object set, determining the row number and the starting column number of each text object in the target text object set in the corresponding text page; Grouping the text objects with the same row number into a group, and arranging each group of text objects in rows according to the row numbers from small to large; The column order of the text objects in each group is adjusted according to the size of the starting column sequence number of the text objects in each group.
18. The printing control method according to claim 14, characterized in that: After comparing the font encoding of each of the text strings with the preset font encoding corresponding to each sensitive word, the method further includes: When the font encoding of the text string at the end of the nth line is the same as the first half of the font encoding of the mth sensitive word, the font encoding of the text string at the beginning of the n+1th line is compared with the second half of the font encoding of the mth sensitive word; If the font encoding of the text string at the beginning of the n+1th line is the same as the second half of the font encoding of the mth sensitive word, it is confirmed that there is a font encoding of the text string that is consistent with the font encoding of the sensitive word.
19. The printing control method according to claim 14, characterized in that: After comparing the font encoding of each of the text strings with the preset font encoding corresponding to each sensitive word, the method further includes: When the font encoding of the text string at the end of the text page of page t is the same as the first half of the font encoding of the k-th sensitive word, the font encoding of the first text string of the text page of page t+1 is compared with the second half of the font encoding of the k-th sensitive word; If the font encoding of the first text string of the text page of the t+1th page is the same as the second half of the font encoding of the kth sensitive word, it is confirmed that there is a font encoding of the text string that is consistent with the font encoding of the sensitive word.
20. The printing control method according to claim 9, characterized in that: The step of comparing the character font with a preset font to obtain a second comparison result includes: Acquire a glyph string set of the OFD document based on the text glyph; Each character string in the character string set is compared with the character of each sensitive word to obtain a second comparison result.
21. The printing control method according to claim 20, characterized in that: The step of obtaining a glyph string set of the OFD document based on the text glyphs includes: Dividing the text glyphs according to the text pages to which the text glyphs belong, to obtain a set of text glyphs corresponding to each text page in the OFD document; Sorting the character glyphs contained in each of the character glyph sets respectively to obtain sorted character glyph sets; Based on the sorted character glyph sets, respectively obtain the glyph string sets of the character glyph sets; The glyph string set of the OFD document is obtained based on the glyph string set of each of the character glyph sets.
22. The printing control method according to claim 21, characterized in that: The step of respectively sorting the character glyphs contained in each of the character glyph sets comprises: The character glyphs included in each of the character glyph sets are sorted according to the image object to which each character glyph belongs.
23. The printing control method according to claim 22, characterized in that: The step of sorting the character glyphs included in each character glyph set according to the image object to which each character glyph belongs comprises: Grouping the text glyphs belonging to the same image object into a group; The text glyphs in each group are sorted according to the positions of the text glyphs in the corresponding image object.
24. An image forming device, characterized in that: include: An acquisition unit, configured to acquire an OFD document, wherein the OFD document includes at least one text page; A parsing unit, used for parsing the text page of the OFD document; a detection unit, configured to perform sensitive word detection on the text objects and / or image objects contained in the OFD document when the OFD document contains text objects and / or image objects; An output unit, configured to output a prompt screen when sensitive words are detected in the text objects and / or image objects contained in the OFD document; The execution unit is used to execute a corresponding image formation control operation on the OFD document in response to the image formation control instruction triggered on the prompt screen.
25. An electronic device, characterized in that: include: processor; Memory; A computer program is stored in the memory, and when the computer program is executed, the electronic device executes the method according to any one of claims 1 to 23.
26. A computer-readable storage medium, characterized in that: The computer-readable storage medium includes a stored program, wherein when the program is executed, the device where the computer-readable storage medium is located is controlled to execute the method according to any one of claims 1 to 23.
Citation Information
Patent Citations
Method and device for identifying sensitive content of printed file
CN111488603A
Printer security management method and device, equipment and storage medium
CN115617282A
OFD file sensitive word shielding method and device, equipment and medium
CN116776862A
Method and device for replacing sensitive words of OFD file
CN117574855A
Printing method and device of open format document, electronic equipment and storage medium
CN117971139A