Methods, devices, equipment and storage media for electronic signatures with anti-scraping features

CN116797692BActive Publication Date: 2026-09-01PING AN TECH (SHENZHEN) CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202310699390.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-06-13
Publication Date
2026-09-01
Estimated Expiration
2043-06-13

AI Technical Summary

Technical Problem

[0004]本申请实施例的目的在于提出一种防抠章图的电子签章方法、装置、设备及其存储介质,以解决现有技术在进行医疗报告电子文件传输时,还存在电子章图易被抠取的问题

Benefits of technology

[0049]本申请实施例所述防抠章图的电子签章方法,通过获取未加盖电子签章的PDF电子文档和已生成的电子签章,其中,所述电子签章包括电子签名、电子印章;采用电子签章合成技术,对所述未加盖电子签章的PDF电子文档和所述电子签章进行图层合成,获得加盖所述电子签章的PDF电子文档;对所述加盖所述电子签章的PDF电子文档进行图片化处理,获得PDF文档图片;对所述PDF文档图片进行切割处理,获得构成所述电子签章的图片切片;将所述构成所述电子签章的图片切片合成到所述未加盖电子签章的PDF电子文档中,获得防抠签章图的PDF电子文档。通过在获得最终的PDF电子文档前,先行进行一次电子章图和PDF电子文档合成,并对合成后获得的PDF电子文档进行转图片化处理,从PDF电子文档对应的图片中抠取出电子章图对应的图片切片,将电子章图对应的图片切片合成到未加盖电子签章的PDF电子文档中,生成最终进行发送的防抠签章图的PDF电子文档,提高电子章图被抠取的难度,降低了文件传输时电子章图被盗用的风险,使得传输过程更加安全可靠。

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116797692B_ABST
    Figure CN116797692B_ABST
Patent Text Reader

Abstract

This application belongs to the field of security protection and digital medical technology, and is applied to the field of electronic signatures for medical reports. It relates to a method, apparatus, device, and storage medium for preventing the extraction of electronic signature images. The method includes: acquiring a PDF electronic document without an electronic signature and a generated electronic signature; performing layer synthesis on the unsigned PDF electronic document and the electronic signature to obtain a PDF electronic document with an electronic signature; processing the PDF electronic document with the electronic signature into an image to obtain a PDF document image; cutting the PDF document image to obtain image slices constituting the electronic signature; and synthesizing the image slices constituting the electronic signature into the unsigned PDF electronic document to obtain a PDF electronic document with an anti-extraction signature image. This increases the difficulty of extracting electronic signature images from medical reports, reduces the risk of electronic signature image theft during file transmission, and makes the transmission process more secure and reliable.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the fields of security protection and digital medical technology, and is applied to the field of electronic signatures for medical reports. In particular, it relates to an electronic signature method, device, equipment and storage medium for preventing the tampering with of the signature image. Background Technology

[0002] With the government's promotion of paperless office practices and the widespread adoption of electronic document systems, more and more contracts and official documents are using PDFs for electronic signatures to ensure their immutability and confidentiality. Unlike the physical stamping of paper documents, electronic contracts and documents use a composite image of the stamp, where the created stamp image is layered and combined into a PDF file.

[0003] Current electronic signature technology can only guarantee the immutability and confidentiality of electronic documents, but it cannot prevent criminals from easily extracting electronic seal images from documents bearing such images to forge documents. With the development of PDF document software technology, most PDF software can now extract all images from PDF documents with a single click, including electronic seal images. With the development of the digital healthcare field, the risk of electronic signatures of doctors or hospital reviewers being stolen has greatly increased, which is detrimental to establishing a lifelong accountability system for doctors and hospitals. Therefore, existing technologies still have the problem of easily extracted electronic seal images when transmitting electronic medical reports. Summary of the Invention

[0004] The purpose of this application is to provide an electronic signature method, apparatus, device and storage medium for preventing the removal of electronic seal images, so as to solve the problem that electronic seal images are easily removed when transmitting electronic medical report documents in the prior art.

[0005] To address the aforementioned technical problems, this application provides a method for preventing the removal of stamp images from electronic signatures, employing the following technical solution:

[0006] An electronic signature method that prevents the use of stolen seal images includes the following steps:

[0007] Obtain PDF electronic documents without electronic signatures and those with generated electronic signatures, wherein the electronic signatures include electronic signatures and electronic seals;

[0008] Using electronic signature synthesis technology, the PDF electronic document without electronic signature and the electronic signature are layered and synthesized to obtain a PDF electronic document with the electronic signature.

[0009] The PDF document bearing the electronic signature is processed into an image to obtain a PDF document image.

[0010] The PDF document image is segmented to obtain image slices that constitute the electronic signature;

[0011] The image slices constituting the electronic signature are composited into the PDF electronic document without the electronic signature to obtain a PDF electronic document with an anti-scratching signature image.

[0012] Furthermore, before performing the step of using electronic signature synthesis technology to synthesize layers of the PDF electronic document without an electronic signature and the electronic signature to obtain a PDF electronic document with the electronic signature, the method further includes:

[0013] The target area for signing in the PDF electronic document without an electronic signature is marked in advance;

[0014] The step of using electronic signature synthesis technology to synthesize layers of the PDF electronic document without an electronic signature and the electronic signature to obtain a PDF electronic document with the electronic signature specifically includes:

[0015] The signature target area is identified based on the distinguishing markers;

[0016] In the PDF electronic document without an electronic signature, select any point as the origin, and set the center position coordinates of the signature target area according to the two-dimensional coordinate method;

[0017] Based on the center position coordinates, the electronic signature is placed on the layer above the signature target area, and the layers are merged.

[0018] Obtain the PDF document after the layers have been merged.

[0019] Furthermore, after performing the steps of placing the electronic signature on the layer above the signature target area based on the center position coordinates and merging the layers, the method further includes:

[0020] Obtain the private key corresponding to the provider of the electronic signature;

[0021] The target content in the unsigned PDF document is encrypted using the private key to obtain encrypted ciphertext.

[0022] Obtain the digital signature certificate corresponding to the provider of the electronic signature, wherein the digital signature certificate and the electronic signature have a unique association.

[0023] The signed digital certificate and the encrypted ciphertext are cached as data pairs in a preset cache area, and a data pair identifier is added.

[0024] Furthermore, the step of processing the PDF electronic document bearing the electronic signature into an image to obtain a PDF document image specifically includes:

[0025] A preset PDF document to image processing tool is used to convert the PDF electronic document bearing the electronic signature into a document image.

[0026] Furthermore, the step of segmenting the PDF document image to obtain image slices constituting the electronic signature specifically includes:

[0027] The PDF document image is segmented according to a preset image cropping tool and target size to obtain several image slices. OCR recognition technology is then used to identify and select the image slices that constitute the electronic signature from these image slices.

[0028] or,

[0029] Using the center coordinates of the target area of ​​the signature as the cutting center point, cut out image slices of the same size as the electronic signature, thus forming the image slices of the electronic signature.

[0030] Furthermore, the step of combining the image slices constituting the electronic signature into the PDF electronic document without the electronic signature to obtain a PDF electronic document with an anti-scratching signature image specifically includes:

[0031] Based on the center position coordinates, the image slices constituting the electronic signature are placed on the layer above the signature target area, and the layers are merged.

[0032] Obtain the PDF document after the layers have been merged.

[0033] Furthermore, after performing the step of combining the image slices constituting the electronic signature into the PDF electronic document without the electronic signature to obtain a PDF electronic document with an anti-scratching signature image, the method further includes:

[0034] Based on the data pair identifier, retrieve the corresponding data pair from the preset cache area;

[0035] By parsing the data pair, the signed digital certificate and encrypted ciphertext are obtained;

[0036] Send the PDF electronic documents containing the digital signature certificate, the encrypted ciphertext, and the anti-scratching signature image together to the corresponding document recipient.

[0037] To address the aforementioned technical problems, this application also provides an electronic signature device that prevents the removal of stamp images, employing the following technical solution:

[0038] An electronic signature device with anti-tampering features includes:

[0039] The material acquisition module is used to acquire PDF electronic documents without electronic signatures and those with generated electronic signatures, wherein the electronic signatures include electronic signatures and electronic seals;

[0040] The first synthesis module is used to use electronic signature synthesis technology to synthesize the PDF electronic document without electronic signature and the electronic signature into a layer to obtain a PDF electronic document with the electronic signature.

[0041] The image processing module is used to process the PDF electronic document bearing the electronic signature into an image to obtain a PDF document image.

[0042] The cutting processing module is used to cut the PDF document image to obtain image slices that constitute the electronic signature;

[0043] The second synthesis module is used to synthesize the image slices constituting the electronic signature into the PDF electronic document without the electronic signature, so as to obtain a PDF electronic document with an anti-scratching signature image.

[0044] To address the aforementioned technical problems, this application also provides a computer device that employs the following technical solution:

[0045] A computer device includes a memory and a processor, wherein the memory stores computer-readable instructions, and the processor executes the computer-readable instructions to implement the steps of the above-described method for electronic signature with anti-scraping seal image.

[0046] To address the aforementioned technical problems, this application also provides a computer-readable storage medium, employing the technical solution described below:

[0047] A computer-readable storage medium storing computer-readable instructions, which, when executed by a processor, implement the steps of the electronic signature method for preventing image tampering as described above.

[0048] Compared with the prior art, the embodiments of this application have the following main advantages:

[0049] The electronic signature method for preventing image tampering described in this application involves acquiring a PDF electronic document without an electronic signature and a generated electronic signature, wherein the electronic signature includes an electronic signature and an electronic seal; using electronic signature synthesis technology, layering the PDF electronic document without an electronic signature and the electronic signature to obtain a PDF electronic document with the electronic signature; processing the PDF electronic document with the electronic signature into an image to obtain a PDF document image; cutting the PDF document image to obtain image slices constituting the electronic signature; and merging the image slices constituting the electronic signature into the PDF electronic document without an electronic signature to obtain a PDF electronic document with an image tampering. Before obtaining the final PDF document, the electronic seal image and the PDF document are first synthesized. The resulting PDF document is then converted into an image. Image slices corresponding to the electronic seal image are extracted from the images in the PDF document. These image slices are then composited into the PDF document without the electronic seal, generating a final PDF document with an anti-seal image for transmission. This increases the difficulty of extracting the electronic seal image, reduces the risk of the electronic seal image being stolen during file transmission, and makes the transmission process more secure and reliable. Attached Figure Description

[0050] To more clearly illustrate the solutions in this application, the accompanying drawings used in the description of the embodiments of this application will be briefly introduced below. Obviously, the accompanying drawings described below are some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0051] Figure 1 This is an exemplary system architecture diagram to which this application can be applied;

[0052] Figure 2 A flowchart of an embodiment of the electronic signature method for anti-scraping stamp images according to this application;

[0053] Figure 3 yes Figure 2 A flowchart of a specific embodiment of step 202 shown;

[0054] Figure 4 A schematic diagram of the structure of an embodiment of the electronic signature device with anti-seal image according to this application;

[0055] Figure 5 A schematic diagram of the structure of an embodiment of the computer device according to this application. Detailed Implementation

[0056] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application pertains; the terminology used herein in the specification of the application is for the purpose of describing particular embodiments only and is not intended to be limiting of the application; the terms "comprising" and "having," and any variations thereof, in the specification, claims, and foregoing drawings of this application, are intended to cover non-exclusive inclusion. The terms "first," "second," etc., in the specification, claims, or foregoing drawings of this application are used to distinguish different objects, not to describe a particular order.

[0057] In this document, the term "embodiment" means that a particular feature, structure, or characteristic described in connection with an embodiment may be included in at least one embodiment of this application. The appearance of this phrase in various places throughout the specification does not necessarily refer to the same embodiment, nor is it a separate or alternative embodiment mutually exclusive with other embodiments. It will be explicitly and implicitly understood by those skilled in the art that the embodiments described herein can be combined with other embodiments.

[0058] To enable those skilled in the art to better understand the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings.

[0059] like Figure 1 As shown, system architecture 100 may include terminal devices 101, 102, and 103, a network 104, and a server 105. Network 104 serves as the medium for providing communication links between terminal devices 101, 102, and 103 and server 105. Network 104 may include various connection types, such as wired or wireless communication links, or fiber optic cables, etc.

[0060] Users can use terminal devices 101, 102, and 103 to interact with server 105 via network 104 to receive or send messages, etc. Various communication client applications can be installed on terminal devices 101, 102, and 103, such as web browser applications, shopping applications, search applications, instant messaging tools, email clients, social media platform software, etc.

[0061] Terminal devices 101, 102, and 103 can be various electronic devices with displays and support web browsing, including but not limited to smartphones, tablets, e-book readers, MP3 players (Moving Picture Experts Group Audio Layer III), MP4 players (Moving Picture Experts Group Audio Layer IV), laptops, and desktop computers, etc.

[0062] Server 105 can be a server that provides various services, such as a backend server that supports the pages displayed on terminal devices 101, 102, and 103.

[0063] It should be noted that the electronic signature method for anti-tampering seal images provided in the embodiments of this application is generally executed by a server / terminal device, and correspondingly, the electronic signature device for anti-tampering seal images is generally set in the server / terminal device.

[0064] It should be understood that Figure 1 The number of terminal devices, networks, and servers shown is merely illustrative. Depending on implementation needs, any number of terminal devices, networks, and servers can be included.

[0065] Continue to refer to Figure 2 The diagram illustrates a flowchart of an embodiment of the electronic signature method for using an anti-tampering seal image according to this application. The electronic signature method for using an anti-tampering seal image includes the following steps:

[0066] Step 201: Obtain the PDF electronic document without an electronic signature and the generated electronic signature, wherein the electronic signature includes an electronic signature and an electronic seal.

[0067] In this embodiment, the electronic signature not only refers to the electronic official seal, but also includes electronic private seals, anti-counterfeiting watermarks, electronic signatures and all other graphics that serve to identify and distinguish electronic documents.

[0068] In this embodiment, the PDF electronic documents without electronic signatures include personal health records, prescriptions, examination reports, etc. in PDF format.

[0069] Step 202: Using electronic signature synthesis technology, the PDF electronic document without electronic signature and the electronic signature are layered and synthesized to obtain a PDF electronic document with the electronic signature.

[0070] In this embodiment, before performing the step of using electronic signature synthesis technology to synthesize the PDF electronic document without electronic signature and the electronic signature into a PDF electronic document with the electronic signature, the method further includes: pre-marking the signature target area in the PDF electronic document without electronic signature.

[0071] In this embodiment, the vertex labeling method can be used to distinguish the target area of ​​the signature. Assuming there is a PDF electronic document without an electronic signature, the target area of ​​the signature is selected, and the coordinates of the upper left vertex and the lower right vertex of the area are obtained. The two vertex coordinates are used to construct the distinguishing mark.

[0072] Continue to refer to Figure 3 , Figure 3 yes Figure 2 A flowchart of a specific embodiment of step 202 shown includes:

[0073] Step 301: Identify the signature target area based on the distinguishing marker;

[0074] Step 302: Select any point in the PDF electronic document without electronic signature as the origin, and set the center position coordinates of the signature target area according to the two-dimensional coordinate method;

[0075] Step 303: Based on the center position coordinates, place the electronic signature on the layer above the signature target area and merge the layers;

[0076] In this embodiment, the layer merging can be achieved by calling a preset layer merging processing interface, such as the layer merging interface in Photoshop.

[0077] In this embodiment, after performing the steps of placing the electronic signature on the layer above the signature target area according to the center position coordinates and merging the layers, the method further includes: obtaining the private key corresponding to the provider of the electronic signature; encrypting the target content in the PDF electronic document without an electronic signature based on the private key to obtain encrypted ciphertext; obtaining the signature digital certificate corresponding to the provider of the electronic signature, wherein the signature digital certificate and the electronic signature have a unique association; caching the signature digital certificate and the encrypted ciphertext in the form of data pairs in a preset cache area and adding a data pair identifier.

[0078] By using digital certificates and private keys for encryption, the encrypted ciphertext is obtained when the electronic signature is initially merged into the PDF electronic document that has not been electronically signed. This ensures the verifiability and security of the document signing and reduces the risk of doctors' or hospitals' electronic seals being stolen.

[0079] Step 304: Obtain the PDF electronic document after the layers have been merged.

[0080] Step 203: Convert the PDF electronic document bearing the electronic signature into an image to obtain a PDF document image.

[0081] In this embodiment, the step of converting the PDF electronic document bearing the electronic signature into an image to obtain a PDF document image specifically includes: using a preset PDF format document to image processing tool to convert the PDF electronic document bearing the electronic signature into a document image.

[0082] Step 204: The PDF document image is segmented to obtain image slices that constitute the electronic signature.

[0083] In this embodiment, the step of cutting the PDF document image to obtain image slices constituting the electronic signature specifically includes: cutting the PDF document image according to a preset image cutting tool and target size to obtain several image slices after cutting; identifying and selecting the image slices constituting the electronic signature from the several image slices using OCR recognition technology; or, using the center coordinates of the signature target area as the cutting center point, cutting out image slices of the same size as the electronic signature, which constitute the image slices of the electronic signature.

[0084] In this embodiment, after performing the step of cutting the PDF document image according to a preset image cutting tool and target size to obtain several image slices after cutting, the method further includes: distinguishing and numbering the several image slices.

[0085] In this embodiment, the step of identifying and filtering the image slices constituting the electronic signature from the plurality of image slices using OCR recognition technology specifically includes: based on the color difference between the electronic signature and the text in the PDF electronic document without the electronic signature, using OCR recognition technology to identify the image slices constituting the electronic signature, and obtaining the difference number of the image slices constituting the electronic signature.

[0086] Generally speaking, text content in PDF electronic documents is often in black font, while electronic signatures are usually in red. Therefore, OCR recognition technology can be used to identify the electronic signature portion in PDF electronic documents.

[0087] Step 205: Combine the image slices constituting the electronic signature into the PDF electronic document without the electronic signature to obtain a PDF electronic document with an anti-scratching signature image.

[0088] In this embodiment, the step of combining the image slices constituting the electronic signature into the PDF electronic document without the electronic signature to obtain a PDF electronic document with an anti-scratching signature image specifically includes: placing the image slices constituting the electronic signature on the layer above the signature target area according to the center position coordinates, and merging the layers; obtaining the PDF electronic document after the layer merging is completed.

[0089] The final PDF document is created by combining an electronic signature image with a PDF document. The electronic signature is combined using an image format, avoiding the direct use of the PDF format, thus achieving an anti-image cutout effect.

[0090] In this embodiment, after performing the step of combining the image slices constituting the electronic signature into the PDF electronic document without the electronic signature to obtain a PDF electronic document with an anti-scratching signature image, the method further includes: obtaining the corresponding data pair from the preset cache area according to the data pair identifier; obtaining the signature digital certificate and encrypted ciphertext by parsing the data pair; and sending the signature digital certificate, the encrypted ciphertext, and the PDF electronic document with the anti-scratching signature image together to the corresponding document recipient.

[0091] In this embodiment, the document recipient refers to the recipient of personal health records, prescriptions, and examination reports, which can be the patient or the patient's family member.

[0092] By sending the signed digital certificate, the encrypted ciphertext, and the anti-tampering signature image together as a PDF electronic document to the corresponding document recipient, it is convenient to encrypt the transmission and also convenient for the recipient to verify the transmission based on the signed digital certificate.

[0093] This application obtains a PDF electronic document without an electronic signature and a generated electronic signature, wherein the electronic signature includes an electronic signature and an electronic seal; uses electronic signature synthesis technology to synthesize the layers of the PDF electronic document without an electronic signature and the electronic signature to obtain a PDF electronic document with the electronic signature; processes the PDF electronic document with the electronic signature into an image to obtain a PDF document image; segments the PDF document image to obtain image slices that constitute the electronic signature; and synthesizes the image slices that constitute the electronic signature into the PDF electronic document without an electronic signature to obtain a PDF electronic document with an anti-scratching signature image. Before obtaining the final PDF document, an electronic seal image and the PDF document are first synthesized. The resulting PDF document is then converted into an image. Image slices corresponding to the electronic seal image are extracted from the images in the PDF document. These image slices are then composited into the PDF document without the electronic seal, generating a final PDF document with an anti-seal image for transmission. This increases the difficulty of extracting the electronic seal image from medical reports, reduces the risk of the electronic seal image being stolen during file transmission, and makes the transmission process more secure and reliable.

[0094] The embodiments of this application can acquire and process relevant data based on artificial intelligence technology. Artificial intelligence (AI) refers to the theories, methods, technologies, and application systems that use digital computers or machines controlled by digital computers to simulate, extend, and expand human intelligence, perceive the environment, acquire knowledge, and use that knowledge to obtain optimal results.

[0095] Foundational technologies for artificial intelligence generally include sensors, dedicated AI chips, cloud computing, distributed storage, big data processing, operating / interactive systems, and mechatronics. AI software technologies mainly encompass computer vision, robotics, biometrics, speech processing, natural language processing, and machine learning / deep learning.

[0096] In this embodiment, before obtaining the final PDF electronic document, an electronic seal image and a PDF electronic document are first synthesized. The synthesized PDF electronic document is then converted into an image. Image slices corresponding to the electronic seal image are extracted from the images corresponding to the PDF electronic document. These image slices are then synthesized into the PDF electronic document without an electronic seal, generating the final PDF electronic document with an anti-seal image for transmission. This increases the difficulty of extracting the electronic seal image from medical reports, reduces the risk of the electronic seal image being stolen during file transmission, and makes the transmission process more secure and reliable.

[0097] Further reference Figure 4 As a response to the above Figure 2 The implementation of the method shown in this application provides an embodiment of an electronic signature device for preventing the removal of stamp images. This device embodiment is similar to... Figure 2 Corresponding to the method embodiments shown, this device can be specifically applied to various electronic devices.

[0098] like Figure 4 As shown, the electronic signature device 400 for preventing image tampering described in this embodiment includes: a material acquisition module 401, a first synthesis module 402, an image processing module 403, a cutting processing module 404, and a second synthesis module 405. Wherein:

[0099] The material acquisition module 401 is used to acquire PDF electronic documents without electronic signatures and generated electronic signatures, wherein the electronic signatures include electronic signatures and electronic seals;

[0100] The first synthesis module 402 is used to use electronic signature synthesis technology to synthesize the PDF electronic document without electronic signature and the electronic signature into a PDF electronic document with the electronic signature.

[0101] Image processing module 403 is used to process the PDF electronic document bearing the electronic signature into an image to obtain a PDF document image;

[0102] The cutting processing module 404 is used to cut the PDF document image to obtain image slices that constitute the electronic signature;

[0103] The second synthesis module 405 is used to synthesize the image slices constituting the electronic signature into the PDF electronic document without the electronic signature, so as to obtain a PDF electronic document with an anti-scratching signature image.

[0104] In some specific embodiments of this application, the electronic signature device 300 for preventing the spoofing of the signature image further includes a security verification module. The security verification module is used to obtain the private key corresponding to the provider of the electronic signature; to encrypt the target content in the PDF electronic document without an electronic signature based on the private key to obtain encrypted ciphertext; to obtain the signature digital certificate corresponding to the provider of the electronic signature, wherein the signature digital certificate and the electronic signature have a unique association; to cache the signature digital certificate and the encrypted ciphertext as data pairs in a preset cache area and add a data pair identifier; to retrieve the corresponding data pair from the preset cache area according to the data pair identifier; to obtain the signature digital certificate and the encrypted ciphertext by parsing the data pair; and to send the signature digital certificate, the encrypted ciphertext, and the PDF electronic document with the spoofing of the signature image together to the corresponding document recipient.

[0105] This application obtains a PDF electronic document without an electronic signature and a generated electronic signature, wherein the electronic signature includes an electronic signature and an electronic seal; uses electronic signature synthesis technology to synthesize the layers of the PDF electronic document without an electronic signature and the electronic signature to obtain a PDF electronic document with the electronic signature; processes the PDF electronic document with the electronic signature into an image to obtain a PDF document image; segments the PDF document image to obtain image slices that constitute the electronic signature; and synthesizes the image slices that constitute the electronic signature into the PDF electronic document without an electronic signature to obtain a PDF electronic document with an anti-scratching signature image. Before obtaining the final PDF document, an electronic seal image and the PDF document are first synthesized. The resulting PDF document is then converted into an image. Image slices corresponding to the electronic seal image are extracted from the images in the PDF document. These image slices are then composited into the PDF document without the electronic seal, generating a final PDF document with an anti-seal image for transmission. This increases the difficulty of extracting the electronic seal image from medical reports, reduces the risk of the electronic seal image being stolen during file transmission, and makes the transmission process more secure and reliable.

[0106] Those skilled in the art will understand that all or part of the processes in the methods of the above embodiments can be implemented by instructing related hardware through computer-readable instructions. These computer-readable instructions can be stored in a computer-readable storage medium. When the program is executed, it can include the processes of the embodiments of the methods described above. The aforementioned storage medium can be a non-volatile storage medium such as a magnetic disk, optical disk, or read-only memory (ROM), or random access memory (RAM).

[0107] It should be understood that although the steps in the flowcharts of the accompanying figures are shown sequentially as indicated by the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless explicitly stated herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least some steps in the flowcharts of the accompanying figures may include multiple sub-steps or multiple stages. These sub-steps or stages are not necessarily completed at the same time, but can be executed at different times, and their execution order is not necessarily sequential, but can be performed alternately or in turn with other steps or at least some of the sub-steps or stages of other steps.

[0108] To address the aforementioned technical problems, embodiments of this application also provide a computer device. Please refer to [link / reference needed]. Figure 5 , Figure 5This is a basic structural block diagram of the computer device in this embodiment.

[0109] The computer device 5 includes a memory 5a, a processor 5b, and a network interface 5c that are interconnected via a system bus. It should be noted that only the computer device 5 with components 5a-5c is shown in the figure; however, it should be understood that it is not required to implement all the shown components, and more or fewer components can be implemented alternatively. Those skilled in the art will understand that the computer device described here is a device capable of automatically performing numerical calculations and / or information processing according to pre-set or stored instructions, and its hardware includes, but is not limited to, microprocessors, application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), digital signal processors (DSPs), embedded devices, etc.

[0110] The computer device can be a desktop computer, laptop, handheld computer, or cloud server, etc. The computer device can interact with the user via a keyboard, mouse, remote control, touchpad, or voice control.

[0111] The memory 5a includes at least one type of readable storage medium, including flash memory, hard disk, multimedia card, card-type memory (e.g., SD or DX memory), random access memory (RAM), static random access memory (SRAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), programmable read-only memory (PROM), magnetic memory, magnetic disk, optical disk, etc. In some embodiments, the memory 5a may be an internal storage unit of the computer device 5, such as the hard disk or memory of the computer device 5. In other embodiments, the memory 5a may also be an external storage device of the computer device 5, such as a plug-in hard disk, smart media card (SMC), secure digital (SD) card, flash card, etc., equipped on the computer device 5. Of course, the memory 5a may include both the internal storage unit and its external storage device of the computer device 5. In this embodiment, the memory 5a is typically used to store the operating system and various application software installed on the computer device 5, such as computer-readable instructions for electronic signature methods that prevent the removal of stamp images. In addition, the memory 5a can also be used to temporarily store various types of data that have been output or will be output.

[0112] In some embodiments, the processor 5b may be a central processing unit (CPU), controller, microcontroller, microprocessor, or other data processing chip. The processor 5b is typically used to control the overall operation of the computer device 5. In this embodiment, the processor 5b is used to execute computer-readable instructions stored in the memory 5a or to process data, such as executing computer-readable instructions for the electronic signature method of the anti-scraping seal image.

[0113] The network interface 5c may include a wireless network interface or a wired network interface, which is typically used to establish communication connections between the computer device 5 and other electronic devices.

[0114] The computer device proposed in this embodiment belongs to the field of security protection and digital medical technology, and is applied in the field of electronic signatures for medical reports. This application obtains a PDF electronic document without an electronic signature and a generated electronic signature, wherein the electronic signature includes an electronic signature and an electronic seal; using electronic signature synthesis technology, the PDF electronic document without an electronic signature and the electronic signature are layered to obtain a PDF electronic document with the electronic signature; the PDF electronic document with the electronic signature is image-processed to obtain a PDF document image; the PDF document image is segmented to obtain image slices constituting the electronic signature; the image slices constituting the electronic signature are composited into the PDF electronic document without an electronic signature to obtain a PDF electronic document with an anti-scratching signature image. Before obtaining the final PDF document, an electronic seal image and the PDF document are first synthesized. The resulting PDF document is then converted into an image. Image slices corresponding to the electronic seal image are extracted from the images in the PDF document. These image slices are then composited into the PDF document without the electronic seal, generating a final PDF document with an anti-seal image for transmission. This increases the difficulty of extracting the electronic seal image from medical reports, reduces the risk of the electronic seal image being stolen during file transmission, and makes the transmission process more secure and reliable.

[0115] This application also provides another embodiment, namely, providing a computer-readable storage medium storing computer-readable instructions that can be executed by a processor to cause the processor to perform the steps of the above-described anti-scraping electronic signature method.

[0116] The computer-readable storage medium proposed in this embodiment belongs to the field of security protection and digital medical technology, and is applied in the field of electronic signatures for medical reports. This application obtains a PDF electronic document without an electronic signature and a generated electronic signature, wherein the electronic signature includes an electronic signature and an electronic seal; using electronic signature synthesis technology, the PDF electronic document without an electronic signature and the electronic signature are layered to obtain a PDF electronic document with the electronic signature; the PDF electronic document with the electronic signature is image-processed to obtain a PDF document image; the PDF document image is segmented to obtain image slices constituting the electronic signature; the image slices constituting the electronic signature are composited into the PDF electronic document without an electronic signature to obtain a PDF electronic document with an anti-scratching signature image. Before obtaining the final PDF document, an electronic seal image and the PDF document are first synthesized. The resulting PDF document is then converted into an image. Image slices corresponding to the electronic seal image are extracted from the images in the PDF document. These image slices are then composited into the PDF document without the electronic seal, generating a final PDF document with an anti-seal image for transmission. This increases the difficulty of extracting the electronic seal image from medical reports, reduces the risk of the electronic seal image being stolen during file transmission, and makes the transmission process more secure and reliable.

[0117] Through the above description of the embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus necessary general-purpose hardware platforms. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk), and includes several instructions to cause a terminal device (which may be a mobile phone, computer, server, air conditioner, or network device, etc.) to execute the methods described in the various embodiments of this application.

[0118] Obviously, the embodiments described above are only some embodiments of this application, not all embodiments. The accompanying drawings show preferred embodiments of this application, but do not limit the patent scope of this application. This application can be implemented in many different forms; rather, the purpose of providing these embodiments is to provide a more thorough and comprehensive understanding of the disclosure of this application. Although this application has been described in detail with reference to the foregoing embodiments, those skilled in the art can still modify the technical solutions described in the foregoing specific embodiments, or make equivalent substitutions for some of the technical features. Any equivalent structures made using the content of this application's specification and drawings, directly or indirectly applied to other related technical fields, are similarly within the scope of patent protection of this application.

Claims

1. A method for electronic signature with anti-spoofing features, characterized in that, Includes the following steps: Obtain PDF electronic documents without electronic signatures and those with generated electronic signatures, wherein the electronic signatures include electronic signatures and electronic seals; The target area for signing in the PDF electronic document without an electronic signature is marked in advance; Using electronic signature compositing technology, the PDF electronic document without an electronic signature and the electronic signature are layered and composited to obtain a PDF electronic document with the electronic signature, specifically including: The signature target area is identified based on the distinguishing markers; In the PDF electronic document without an electronic signature, select any point as the origin, and set the center position coordinates of the signature target area according to the two-dimensional coordinate method; Based on the center position coordinates, the electronic signature is placed on the layer above the target area of ​​the signature, and the layers are merged. After performing the step of placing the electronic signature on the layer above the target area of ​​the signature based on the center position coordinates and merging the layers, the method further includes: obtaining the private key corresponding to the provider of the electronic signature; encrypting the target content in the PDF electronic document without an electronic signature based on the private key to obtain encrypted ciphertext; obtaining the signature digital certificate corresponding to the provider of the electronic signature, wherein the signature digital certificate and the electronic signature have a unique association; caching the signature digital certificate and the encrypted ciphertext in the form of data pairs in a preset cache area, and adding a data pair identifier; Obtain the PDF document after the layers have been merged; The PDF document bearing the electronic signature is processed into an image to obtain a PDF document image. The PDF document image is segmented to obtain image slices that constitute the electronic signature; The image slices constituting the electronic signature are composited into the PDF electronic document without the electronic signature to obtain a PDF electronic document with an anti-scratching signature image.

2. The electronic signature method for preventing the tampering with the seal image according to claim 1, characterized in that, The step of processing the PDF electronic document bearing the electronic signature into an image to obtain a PDF document image specifically includes: A preset PDF document to image processing tool is used to convert the PDF electronic document bearing the electronic signature into a document image.

3. The electronic signature method for preventing the tampering with the seal image according to claim 1, characterized in that, The step of slicing the PDF document image to obtain image slices constituting the electronic signature specifically includes: The PDF document image is segmented according to a preset image cropping tool and target size to obtain several image slices. OCR recognition technology is then used to identify and select the image slices that constitute the electronic signature from these image slices. or, Using the center coordinates of the target area of ​​the signature as the cutting center point, cut out image slices of the same size as the electronic signature, thus forming the image slices of the electronic signature.

4. The electronic signature method for preventing the tampering with the seal image according to claim 1, characterized in that, The step of combining the image slices constituting the electronic signature into the PDF electronic document without the electronic signature to obtain a PDF electronic document with an anti-scratching signature image specifically includes: Based on the center position coordinates, the image slices constituting the electronic signature are placed on the layer above the signature target area, and the layers are merged. Obtain the PDF document after the layers have been merged.

5. The electronic signature method for preventing the tampering with the seal image according to claim 1, characterized in that, After performing the step of combining the image slices constituting the electronic signature into the PDF electronic document without the electronic signature to obtain a PDF electronic document with an anti-scratching signature image, the method further includes: Based on the data pair identifier, retrieve the corresponding data pair from the preset cache area; By parsing the data pair, the signed digital certificate and encrypted ciphertext are obtained; Send the PDF electronic documents containing the digital signature certificate, the encrypted ciphertext, and the anti-scratching signature image together to the corresponding document recipient.

6. An electronic signature device for preventing the tampering with of stamp images, characterized in that, The electronic signature device for the anti-tampering seal image implements the steps of the electronic signature method for the anti-tampering seal image as described in any one of claims 1 to 5, wherein the electronic signature device for the anti-tampering seal image includes: The material acquisition module is used to acquire PDF electronic documents without electronic signatures and those with generated electronic signatures, wherein the electronic signatures include electronic signatures and electronic seals; The first synthesis module is used to use electronic signature synthesis technology to synthesize the PDF electronic document without electronic signature and the electronic signature into a layer to obtain a PDF electronic document with the electronic signature. The image processing module is used to process the PDF electronic document bearing the electronic signature into an image to obtain a PDF document image. The cutting processing module is used to cut the PDF document image to obtain image slices that constitute the electronic signature; The second synthesis module is used to synthesize the image slices constituting the electronic signature into the PDF electronic document without the electronic signature, so as to obtain a PDF electronic document with an anti-scratching signature image.

7. A computer device comprising a memory and a processor, the memory storing computer-readable instructions, wherein the processor, when executing the computer-readable instructions, implements the steps of the electronic signature method for preventing the tampering with the seal image as described in any one of claims 1 to 5.

8. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer-readable instructions, which, when executed by a processor, implement the steps of the electronic signature method for preventing the tampering with the seal image as described in any one of claims 1 to 5.

Citation Information

Patent Citations

  • Key access method, key processing device, equipment and computer storage medium

    CN113297613A

  • Electronic approval method and system and computer readable medium storing an electronic approval program

    KR1020140115764A