CN114816214A - Electronic text signing method and device, storage medium and electronic equipment - Google Patents

Electronic text signing method and device, storage medium and electronic equipment Download PDF

Info

Publication number
CN114816214A
CN114816214A CN202210627429.8A CN202210627429A CN114816214A CN 114816214 A CN114816214 A CN 114816214A CN 202210627429 A CN202210627429 A CN 202210627429A CN 114816214 A CN114816214 A CN 114816214A
Authority
CN
China
Prior art keywords
signature
bitmap
signed
signing
electronic text
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202210627429.8A
Other languages
Chinese (zh)
Other versions
CN114816214B (en
Inventor
罗静
吴练
喻代明
陈科
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Sichuan Lvge Technology Co ltd
Original Assignee
Sichuan Lvge Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Sichuan Lvge Technology Co ltd filed Critical Sichuan Lvge Technology Co ltd
Priority to CN202210627429.8A priority Critical patent/CN114816214B/en
Publication of CN114816214A publication Critical patent/CN114816214A/en
Application granted granted Critical
Publication of CN114816214B publication Critical patent/CN114816214B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
    • G06F3/04883Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures for inputting data by handwriting, e.g. gesture or text
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T11/002D [Two Dimensional] image generation
    • G06T11/60Editing figures and text; Combining figures or text

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • Document Processing Apparatus (AREA)

Abstract

The application discloses an electronic text signing method, which relates to the technical field of artificial intelligence, and comprises the following steps: receiving a signature trigger operation of a user on a target position on a touch screen; acquiring a trigger coordinate of the target position and displaying a signature interface based on the signature trigger operation; receiving signature information input by a user on the signature interface, and generating a signature bitmap based on the signature information; determining the pasting position of the signing bitmap on the electronic text to be signed according to the trigger coordinate; and finishing the signature of the electronic text to be signed based on the signature bitmap and the chartlet position. The electronic text signing method disclosed by the application adopts the electronic text to replace the paper document, and the target position of the method can be any position on the electronic text to be signed, so that the problems that the paper signature document is difficult to store and the safety is low are solved, and the limitation of the electronic text signing method is reduced.

Description

Electronic text signing method and device, storage medium and electronic equipment
Technical Field
The application relates to the technical field of computers, in particular to an electronic text signing method, an electronic text signing device, a storage medium and electronic equipment.
Background
At present, paper documents are mostly used as media for recording communication contents between doctors and patients in hospitals, for example, printed informed consent forms are handed to patients or family members of patients, and the signed paper informed consent forms are stored after the patients or the family members of the patients complete signing on the informed consent forms. And as time goes on, the paper document is easily damaged or lost, which causes that the current paper document, which is a communication medium, is not easy to store and has lower safety.
Although a mode of using an electronic signature instead of a traditional paper document signature exists in office places such as finance, vehicle management and the like, the existing electronic signature method has great limitation.
Disclosure of Invention
The present application mainly aims to provide an electronic text signing method, an electronic text signing device, a storage medium, and an electronic device, and aims to solve the technical problem that the existing electronic signature method has a large limitation.
In order to achieve the above purpose, the embodiments of the present application adopt the following technical solutions:
in a first aspect, an embodiment of the present application provides an electronic text signing method, which is used for a user end device, where the user end device includes a touch screen; the method comprises the following steps:
receiving a signature trigger operation of a user on a target position on the touch screen, wherein the target position is any position on the electronic text to be signed;
acquiring a trigger coordinate of the target position and displaying a signature interface based on the signature trigger operation;
receiving signature information input by a user on the signature interface, and generating a signature bitmap based on the signature information;
determining the pasting position of the signing bitmap on the electronic text to be signed according to the trigger coordinate;
and finishing the signature of the electronic text to be signed based on the signature bitmap and the chartlet position.
In one possible implementation manner of the first aspect, the determining, according to the trigger coordinate, a mapping position of the signing bitmap on the electronic text to be signed includes: acquiring the text width and the text height of the electronic text to be signed, the bitmap width and the bitmap height of the signing bitmap, the display width and the display height of the display area of the electronic text to be signed on the touch screen, a first edge distance between a first side edge of the electronic text to be signed and a first side edge of the touch screen, and a second edge distance between a second side edge of the electronic text to be signed and a second side edge of the touch screen; wherein the first side and the second side are adjacent sides; and determining the chartlet position of the signing bitmap on the electronic text to be signed according to the trigger coordinate, the text width and the text height, the bitmap width and the bitmap height, the display width and the display height, the first margin and the second margin.
In a possible implementation manner of the first aspect, the determining, according to the trigger coordinate, the text width and text height, the bitmap width and bitmap height, the display width and display height, the first margin and the second margin, a chartlet position of the signing bitmap on the electronic text to be signed includes: determining the scaling of the signature bitmap according to the display width, the text width, the display height and the text height; obtaining the scaling width and the scaling height of the scaled and scaled signature bitmap; determining the chartlet position of the signing bitmap on the electronic text to be signed according to the trigger coordinate, the text width and the text height, the zoom width and the zoom height, the display width and the display height, the first margin and the second margin;
the signing of the electronic text to be signed is completed based on the signing bitmap and the pasting position, and the signing comprises the following steps: completing signing of the electronic text to be signed based on the scaled signing bitmap and the collage location.
In one possible implementation manner of the first aspect, before the determining the map location of the signature bitmap according to the trigger coordinate, the method further includes: and compressing the signature bitmap according to a preset proportion.
In a possible implementation manner of the first aspect, after the receiving the signing information input by the user at the signing interface and generating a signing bitmap based on the signing information, the method further includes: acquiring signature time generated by the signature bitmap; and sending the signature time to a storage system.
In one possible implementation manner of the first aspect, after completing signing of the electronic text to be signed based on the signing bitmap and the chartlet location, the method further comprises: acquiring fingerprint information of the user; and sending the fingerprint information to a storage system.
In one possible implementation manner of the first aspect, after the receiving of the user's signature on the target location on the touch screen triggers an operation, the target location is an arbitrary location on the electronic text to be signed, the method further includes: starting a recording and video recording device, recording and video recording the signing process of the electronic text to be signed, and acquiring recording and video recording data; and sending the sound recording and video recording data to a storage system.
In a second aspect, an embodiment of the present application provides an electronic text signing apparatus, comprising:
the trigger operation receiving module is used for receiving a signature trigger operation of a user on a target position on the touch screen, wherein the target position is any position on the electronic text to be signed;
the trigger coordinate acquisition module is used for acquiring the trigger coordinate of the target position and displaying a signature interface based on the signature trigger operation;
the signature bitmap generation module is used for receiving the signature information input by the user on the signature interface and generating a signature bitmap based on the signature information;
the chartlet position determining module is used for determining the chartlet position of the signature bitmap on the electronic text to be signed according to the trigger coordinate;
and the signature completion module is used for completing the signature of the electronic text to be signed based on the signature bitmap and the mapping position.
In a third aspect, an embodiment of the present application provides a computer-readable storage medium, which stores a computer program, and when the computer program is loaded and executed by a processor, the computer program implements the electronic text signing method provided in any one of the above first aspects.
In a fourth aspect, an embodiment of the present application provides an electronic device, including a processor and a memory, wherein,
the memory is used for storing a computer program;
the processor is adapted to load and execute the computer program to cause the electronic device to perform the method of electronic text signing as provided in any one of the above described first aspects.
Compared with the prior art, the beneficial effects of this application are:
the method comprises the steps of receiving a signing trigger operation of a user on a target position on a touch screen, wherein the target position is any position on an electronic text to be signed; acquiring a trigger coordinate of the target position and displaying a signature interface based on the signature trigger operation; receiving signature information input by a user on the signature interface, and generating a signature bitmap based on the signature information; determining the pasting position of the signing bitmap on the electronic text to be signed according to the trigger coordinate; and finishing the signature of the electronic text to be signed based on the signature bitmap and the chartlet position. According to the method, the electronic text is used for replacing the paper document, the signature of the electronic text to be signed is completed based on the signature bitmap and the chartlet position of the signature bitmap by determining the signature bitmap and the chartlet position of the signature bitmap of the user, and the target position in the method can be any position on the electronic text to be signed, so that the problems that the existing paper signature document is not easy to store and the safety is low are solved, and the limitation of the electronic text signature method is reduced.
Drawings
Fig. 1 is a schematic structural diagram of an electronic device in a hardware operating environment according to an embodiment of the present application;
fig. 2 is a schematic flow chart illustrating an electronic text signing method according to an embodiment of the present application;
fig. 3 is a schematic diagram illustrating an example of an informed consent form signing process provided by the present application;
FIG. 4 is a schematic flowchart illustrating a process of determining a location of a map according to an embodiment of the present disclosure;
FIG. 5 is a schematic diagram of another signing process of an informed consent form provided by an embodiment of the present application;
FIG. 6 is a schematic diagram of a signing interface provided by an embodiment of the present application;
fig. 7 is a schematic structural diagram of an electronic text signing apparatus according to an embodiment of the present application.
The labels in the figure are: 101-processor, 102-communication bus, 103-network interface, 104-user interface, 105-memory.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
The main solution of the embodiment of the application is as follows: the method comprises the steps of receiving signature triggering operation of a user on a target position on a touch screen, wherein the target position is any position on an electronic text to be signed; acquiring a trigger coordinate of the target position and displaying a signature interface based on the signature trigger operation; receiving signature information input by a user on the signature interface, and generating a signature bitmap based on the signature information; determining the pasting position of the signing bitmap on the electronic text to be signed according to the trigger coordinate; and finishing the signature of the electronic text to be signed based on the signature bitmap and the chartlet position.
At present, most hospitals adopt paper documents as media for recording communication contents between doctors and patients, for example, printed informed consent forms are handed to patients or family members of the patients, and after the patients or the family members of the patients complete signing on the informed consent forms, the signed paper informed consent forms are stored. And as time goes on, the paper document is easily damaged or lost, which causes that the current paper document, which is a communication medium, is not easy to store and has lower safety.
Although a mode of using an electronic signature instead of a traditional paper document signature exists in office places such as finance, vehicle management and the like, signature positions in the existing electronic signature methods are usually fixed, and therefore the limitation is large.
For this purpose, the application provides a solution, firstly receiving a signature trigger operation of a user on a target position on a touch screen, wherein the target position can be any position on an electronic text to be signed; acquiring a trigger coordinate of the target position and displaying a signature interface based on the signature trigger operation; receiving signature information input by a user on the signature interface, and generating a signature bitmap based on the signature information; determining the pasting position of the signing bitmap on the electronic text to be signed according to the trigger coordinate; and finishing the signature of the electronic text to be signed based on the signature bitmap and the chartlet position. The method adopts the electronic text to replace the paper document, and finishes signing the electronic text to be signed based on the signature bitmap and the chartlet position by determining the signature bitmap and the chartlet position of the signature bitmap of the user, and the target position of the method can be any position on the electronic text to be signed, thereby solving the problems that the paper signature document is difficult to store and the safety is low, and simultaneously reducing the limitation of the electronic text signing method.
Referring to fig. 1, fig. 1 is a schematic structural diagram of an electronic device in a hardware operating environment according to an embodiment of the present application, where the electronic device may include: a processor 101, such as a Central Processing Unit (CPU), a communication bus 102, a user interface 104, a network interface 103, and a memory 105. Wherein the communication bus 102 is used for enabling connection communication between these components. The user interface 104 may comprise a Display screen (Display), an input unit such as a Keyboard (Keyboard), the Display screen may specifically be a touch Display screen, and the selectable user interface 104 may also comprise a standard wired interface, a wireless interface. The network interface 103 may optionally include a standard wired interface, a WIreless interface (e.g., a WIreless-FIdelity (WI-FI) interface). The Memory 105 may be a storage device independent from the processor 101, and the Memory 105 may be a high-speed Random Access Memory (RAM) Memory or a Non-Volatile Memory (NVM), such as at least one disk Memory; the processor 101 may be a general-purpose processor including a central processing unit, a network processor, etc., and may also be a digital signal processor, an application specific integrated circuit, a field programmable gate array or other programmable logic device, discrete gate or transistor logic, discrete hardware components.
Those skilled in the art will appreciate that the configuration shown in fig. 1 does not constitute a limitation of the electronic device and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
As shown in fig. 1, the memory 105, which is a storage medium, may include therein an operating system, a network communication module, a user interface module, and an electronic text signing device.
In the electronic device shown in fig. 1, the network interface 103 is mainly used for data communication with a network server; the user interface 104 is mainly used for data interaction with a user; the processor 101 and the memory 105 of the electronic device of the present invention may be disposed in the electronic device, and the electronic device calls the electronic text signing apparatus stored in the memory 105 through the processor 101 and executes the electronic text signing method provided in the embodiment of the present application.
Referring to fig. 2, based on the hardware device of the foregoing embodiment, an embodiment of the present application provides an electronic text signing method for a user end device, where the user end device includes a touch screen; the method comprises the following steps:
s10: receiving a signature trigger operation of a user on a target position on the touch screen, wherein the target position is any position on the electronic text to be signed;
in a specific implementation process, the electronic text signing method is applied to customer premise equipment, and the customer premise equipment can be realized by computer equipment. The user side equipment can directly call the electronic text to be signed from the universal template library; or the electronic text to be signed can be generated by the relevant personnel through personalized editing on the universal template according to the user condition. The electronic text to be signed may be a text in pdf format or a text in word format, which is not specifically limited in this application. The signature trigger operation may be a long press operation or a click operation. Specifically, if the user presses the target position for a long time longer than a first preset time, the user-side device can receive signature triggering operation of the user; or, the user clicks twice in the target position continuously, and the time interval between two clicks is greater than the second preset time, so that the user end device can receive the signature trigger operation of the user. Wherein, the first preset time can be 1s or 1.5 s; the number of consecutive clicks may be two or three, and the second preset time may be 0.2s or 0.5s, which is not specifically limited in this application.
S20: acquiring a trigger coordinate of the target position and displaying a signature interface based on the signature trigger operation;
in a specific implementation, the signature trigger operation may be a long press operation or a click operation. When the user executes the signature triggering operation at the target position, the click event of the system is triggered, and then the triggering coordinate of the target position is returned.
S30: receiving signature information input by a user on the signature interface, and generating a signature bitmap based on the signature information;
in a specific implementation, a signature bitmap refers to a signature picture in bitmap format, wherein a bitmap, also called a bitmap or a raster map, is composed of individual points called pixels.
S40: determining the pasting position of the signing bitmap on the electronic text to be signed according to the trigger coordinate;
in a specific implementation process, the trigger coordinate is represented by a coordinate of a target position on the touch screen, and assuming that the coordinate where the trigger coordinate is located is a first coordinate system, the trigger coordinate is converted to obtain a coordinate representation of the target position in a second coordinate system, namely, a chartlet coordinate on the electronic text to be signed, and then determining a chartlet position of the chartlet bitmap on the electronic text to be signed according to the chartlet coordinate. Specifically, the first coordinate system is a coordinate system established by taking the lower left corner of the touch screen as an origin, the bottom edge of the display screen as an x-axis and the side edge of the touch screen as a y-axis; the second coordinate system is a coordinate system established by taking the lower left corner of the electronic text to be signed as an origin, the bottom edge of the electronic text to be signed as an x-axis and the side edge of the electronic text to be signed as a y-axis. In an alternative embodiment, the first coordinate system may also use the upper left corner of the touch screen as an origin; for the sake of calculation, the second coordinate system is now based on the upper left corner of the electronic text to be signed. When the electronic text to be signed is just overlapped with the touch screen, the trigger coordinate is overlapped with the chartlet coordinate, and at the moment, the chartlet position of the signature bitmap on the electronic text to be signed can be directly determined according to the trigger coordinate.
S50: and finishing the signature of the electronic text to be signed based on the signature bitmap and the chartlet position.
In a specific implementation process, the signature of the electronic text is completed by directly attaching the signature bitmap to the position of the image to be signed on the electronic text.
As in the above embodiment, the operation is triggered by receiving a signature of a user on a target location on the touch screen, where the target location is an arbitrary location on the electronic text to be signed; acquiring a trigger coordinate of the target position and displaying a signature interface based on the signature trigger operation; receiving signature information input by a user on the signature interface, and generating a signature bitmap based on the signature information; determining the pasting position of the signing bitmap on the electronic text to be signed according to the trigger coordinate; and finishing the signature of the electronic text to be signed based on the signature bitmap and the chartlet position. According to the electronic text signing method and device, the electronic text is adopted to replace a paper document, the signing bitmap of a user and the mapping position of the signing bitmap are determined, then signing of the electronic text to be signed is completed based on the signing bitmap and the mapping position, the target position can be any position on the electronic text to be signed, the problems that the paper signing document is not easy to store and the safety is low are solved, and meanwhile the limitation of the electronic text signing method is reduced.
Referring to fig. 3, fig. 3 is a schematic diagram of an informed consent form signing process provided by an embodiment of the present application.
In a specific implementation process, taking the signing process of the informed consent of the hospital as an example, a maintainer inputs a plurality of initial text templates into a server side; a doctor calls a corresponding initial text template from a server side according to the actual condition of a patient, edits the initial text template according to the actual condition of the patient, generates an electronic text to be signed, namely an informed consent to be signed, and uploads the informed consent to be signed to the server side; the patient calls an informed consent to be signed from the server side to the user side equipment, and executes signature triggering operation at the target position of a touch screen of the user side equipment; the method comprises the steps that user end equipment receives signature triggering operation of a user, namely a patient, on a touch screen for a target position, obtains triggering coordinates of the target position based on the signature triggering operation, and displays a signature interface; the patient inputs signature information on a signature interface; the user end equipment receives the signature information input by the patient on the signature interface, generates a signature bitmap based on the signature information, calculates the chartlet position of the signature bitmap on the informed consent to be signed according to the trigger coordinates, and completes the signature of the informed consent to be signed based on the signature bitmap and the chartlet position. After the signature is finished, the signed informed consent is uploaded to the server side, and the server side stores the signed informed consent of the patient.
Referring to fig. 4, fig. 4 is a schematic flowchart of a process for determining a location of a map according to an embodiment of the present application.
In one embodiment, step S40: determining the pasting position of the signing bitmap on the electronic text to be signed according to the trigger coordinate, and the method comprises the following steps:
s401: acquiring the text width and the text height of the electronic text to be signed, the bitmap width and the bitmap height of the signing bitmap, the display width and the display height of the display area of the electronic text to be signed on the touch screen, a first edge distance between a first side edge of the electronic text to be signed and a first side edge of the touch screen, and a second edge distance between a second side edge of the electronic text to be signed and a second side edge of the touch screen; wherein the first side and the second side are adjacent sides;
in a specific implementation process, the text width and the text height of the electronic text to be signed are configured by the server, the electronic text to be signed is usually a pixel array of 595 x 842, that is, the text width is 595 pixel points, and the text height is 842 pixel points, taking the signing of the informed consent of a hospital as an example, different hospitals can also configure the size of the informed consent to be signed into different numerical values; the trigger coordinate is a coordinate representation of a trigger position on the touch screen, and the coordinate system of the trigger position is a first coordinate system. If the first coordinate system is a coordinate system established by taking the lower left corner of the touch screen as an origin, the bottom edge of the touch screen as an x axis and the side edge of the touch screen as a y axis, the first side is the left side and the second side is the bottom side; if the first coordinate system is a coordinate system established by taking the upper left corner of the touch screen as an origin, the top edge of the touch screen as an x-axis and the side edge of the touch screen as a y-axis, calculation is facilitated, the first side is the left side, and the second side is the top side.
S402: and determining the chartlet position of the signing bitmap on the electronic text to be signed according to the trigger coordinate, the text width and the text height, the bitmap width and the bitmap height, the display width and the display height, the first margin and the second margin.
In a specific implementation process, a first coordinate system is taken as an origin point of a lower left corner of the touch screen, a bottom edge of the touch screen is taken as an x-axis, a side edge of the touch screen is taken as a coordinate system established by a y-axis, a second coordinate system is taken as an origin point of a lower left corner of the electronic text to be signed, a bottom edge of the electronic text to be signed is taken as an x-axis, and a coordinate system established by a side edge of the electronic text to be signed as a y-axis is taken as an example: the position of the map on the electronic document to be signed can be determined from pX- (PW/VW) — Math.abs (c1) + x) -w/2 and pY- (PH/VH) — Math.abs (c2) + y) -h/2; and (pX, pY) is a chartlet coordinate in the second coordinate system, the chartlet position can be determined according to the chartlet coordinate, PW is a text width, PH is a text height, VW is a display width, VH is a display height, w is a bitmap width, h is a bitmap height, math.abs is an absolute value taking function, c1 is a first margin, c2 is a second margin, and (x, y) is a trigger coordinate in the first coordinate system.
In one embodiment, step S402: determining the chartlet position of the signing bitmap on the electronic text to be signed according to the trigger coordinate, the text width and the text height, the bitmap width and the bitmap height, the display width and the display height, the first margin and the second margin, and including: determining the scaling of the signature bitmap according to the display width, the text width, the display height and the text height; obtaining the scaling width and the scaling height of the scaled and scaled signature bitmap; determining the chartlet position of the signing bitmap on the electronic text to be signed according to the trigger coordinate, the text width and the text height, the zoom width and the zoom height, the display width and the display height, the first margin and the second margin; step S60: finishing the signature of the electronic text to be signed based on the signature bitmap and the chartlet position, comprising: completing signing of the electronic text to be signed based on the scaled signing bitmap and the collage location.
In a specific implementation process, the scaling of the signature bitmap may be determined according to B1 ═ PW/VW and B2 ═ PH/VH, where B1 and B2 are the scaling of the signature bitmap respectively, width and height, PW is the text width, PH is the text height, VW is the display width, and VH is the display height; and calculating the scaled scaling width and the scaled height according to w1 ═ w × B1 and h1 ═ h × B2, wherein w1 is the scaled width and h1 is the scaled height. When the size of the content signed by the user is not proper, the edited signature bitmap can be scaled by calculating the scaling, and the scaled signature bitmap can be obtained. Determining the position of the map on the electronic text to be signed according to pX (PW/VW) (Math.abs (c1) + x) -w1/2 and pY (PH- (PH/VH)) (Math.abs (c2) + y) -h 1/2; wherein, (pX, pY) is a chartlet coordinate in the second coordinate system, the chartlet position can be determined according to the chartlet coordinate, PW is a text width, PH is a text height, VW is a display width, VH is a display height, w1 is a zoom width, h1 is a zoom height, math.abs is an absolute value taking function, c1 is a first edge distance, c2 is a second edge distance, and (x, y) is a trigger coordinate in the first coordinate system; because the size of the zoomed signing bitmap is more matched with the size of the electronic text to be signed, the zoomed signing bitmap is pasted at the pasting position determined according to the zooming width and the zooming height, and the obtained electronic text with signed effect is more attractive.
In one embodiment, at step S40: before determining the map position of the signature bitmap according to the trigger coordinate, the method further comprises: and compressing the signature bitmap according to a preset proportion.
In a specific implementation process, the preset ratio refers to a ratio of width to height of the compressed signature bitmap, and the preset ratio may be 5:4, or 5:3, or other reasonable values, which is not specifically limited in this application. Taking the pixel array with the signature bitmap of 100 × 80 edited by the user in the signature interface as an example, the preset proportion is 5: and 4, before compressing the signature bitmap, setting the resolution of the signature bitmap according to the display resolution of the touch screen. The signature bitmap is compressed according to a preset proportion, occupied space of the signature bitmap can be reduced, the resolution ratio of the compressed signature bitmap is consistent with the display resolution ratio of the touch screen in the compression process, and therefore occupied space of the signature bitmap is reduced while the definition of the signature bitmap is guaranteed.
In one embodiment, at step S30: after receiving the signature information input by the user in the signature interface and generating a signature bitmap based on the signature information, the method further comprises the following steps: acquiring signature time generated by the signature bitmap; and sending the signature time to a storage system.
In a specific implementation, the signature time generated by the signature bitmap may be obtained by calling a timestamp function. By sending the signing time to the storage system, the signing time and the signed electronic text are stored together, thereby providing guarantee for the legal effectiveness of the signed electronic text.
In one embodiment, at step S50: after completing the signing of the electronic text to be signed based on the signing bitmap and the chartlet location, the method further comprises: acquiring fingerprint information of the user; and sending the fingerprint information to a storage system.
In a specific implementation process, an instruction for taking a fingerprint and a designated fingerprint acquisition area can be sent to a user through the user end device to prompt the user to finish fingerprint acquisition in the fingerprint acquisition area, so that the user end device can acquire fingerprint information of the user and send the fingerprint information to the storage system to be stored as signature evidence of the electronic text.
In one embodiment, at step S10: receiving a signature trigger operation of a user on a target position on the touch screen, wherein the target position is any position on the electronic text to be signed, and the method further comprises the following steps: starting a recording and video recording device, recording and video recording the signing process of the electronic text to be signed, and acquiring recording and video recording data; and sending the sound recording and video recording data to a storage system.
In a specific implementation process, the sound recording and video recording device can be realized by a microphone and a camera of the user end equipment, sound recording and video recording are carried out in the signing process of the electronic text to be signed, and the sound recording and video recording data are sent to the storage system and are stored as the signing evidence of the electronic text.
Referring to fig. 5, fig. 5 is a schematic diagram of an informed consent form signing process provided in an embodiment of the present application. Taking the signing process of the informed consent of the hospital as an example, the maintenance personnel inputs a plurality of initial text templates into the server side; a doctor calls a corresponding initial text template from a server side according to the actual condition of a patient, edits the initial text template according to the actual condition of the patient, generates an electronic text to be signed, namely an informed consent to be signed, and uploads the informed consent to be signed to the server side; the patient calls an informed consent to be signed from the server side to the user side equipment, and executes signature triggering operation at the target position of a touch screen of the user side equipment; the user end equipment receives a signature triggering operation of a user, namely a patient, on a touch screen on a target position, acquires a triggering coordinate of the target position based on the signature triggering operation and displays a signature interface; the patient inputs signature information on a signature interface; the user end equipment receives the signature information input by the patient on the signature interface, generates a signature bitmap based on the signature information, calculates the chartlet position of the signature bitmap on the informed consent to be signed according to the trigger coordinates, and completes the signature of the informed consent to be signed based on the signature bitmap and the chartlet position. After the signature bitmap is generated, the user side equipment calls a timestamp function to obtain the signature time when the signature bitmap is generated, and sends the signature time to the server side. After the signature is completed, the user end equipment prompts the user to complete fingerprint acquisition in the fingerprint acquisition area, so that the fingerprint information of the user is acquired, and the fingerprint information is sent to the server end. After receiving a signature triggering operation of a user on a target position on a touch screen, the user side equipment starts the sound recording and video recording equipment, carries out sound recording and video recording on a signature process of an informed consent to be signed and acquires sound recording and video recording data; and sending the audio and video recording data to a server. And storing the generation time of the signed informed consent bookmark character bitmap, the fingerprint information of the user and the audio and video data in the signing process by a storage system of the server.
Referring to fig. 6, fig. 6 is a schematic diagram of a signing interface provided by an embodiment of the present application. As shown in fig. 6, the electronic text to be signed can have a plurality of signature areas, for example, signature area 1 and signature area 2, and the signature areas can be any position on the electronic text to be signed.
Referring to fig. 7, based on the same inventive concept as the previous embodiment, an embodiment of the present application further provides an electronic text signing apparatus, comprising:
the trigger operation receiving module is used for receiving a signature trigger operation of a user on a target position on the touch screen, wherein the target position is any position on the electronic text to be signed;
the trigger coordinate acquisition module is used for acquiring the trigger coordinate of the target position and displaying a signature interface based on the signature trigger operation;
the signature bitmap generation module is used for receiving the signature information input by the user on the signature interface and generating a signature bitmap based on the signature information;
the chartlet position determining module is used for determining the chartlet position of the signature bitmap on the electronic text to be signed according to the trigger coordinate;
and the signature completion module is used for completing the signature of the electronic text to be signed based on the signature bitmap and the mapping position.
It should be understood by those skilled in the art that the division of each module in the embodiment is only a division of a logic function, and all or part of the modules may be integrated onto one or more actual carriers in actual application, and all of the modules may be implemented in a form called by a processing unit through software, may also be implemented in a form of hardware, or implemented in a form of combination of software and hardware, it should be noted that each module in the electronic text signing apparatus in the embodiment corresponds to each step in the electronic text signing method in the foregoing embodiment one to one, therefore, the specific implementation manner of the embodiment may refer to the implementation manner of the foregoing electronic text signing method, and is not described herein again.
Based on the same inventive concept as in the foregoing embodiments, embodiments of the present application further provide a computer readable storage medium, which stores a computer program, and when the computer program is loaded and executed by a processor, the electronic text signing method provided in the embodiments of the present application is implemented.
Based on the same inventive concept as the foregoing embodiments, embodiments of the present application further provide an electronic device, including a processor and a memory, wherein,
the memory is used for storing a computer program;
the processor is configured to load and execute the computer program to cause the electronic device to perform the electronic text signing method as provided by the embodiments of the present application.
Furthermore, based on the same inventive concept as in the previous embodiments, embodiments of the present application also provide a computer program product comprising a computer program for performing the electronic text signing method as provided by embodiments of the present application, when the computer program is executed.
In some embodiments, the computer-readable storage medium may be memory such as FRAM, ROM, PROM, EPROM, EEPROM, flash, magnetic surface memory, optical disk, or CD-ROM; or may be various devices including one or any combination of the above memories. The computer may be a variety of computing devices including intelligent terminals and servers.
In some embodiments, executable instructions may be written in any form of programming language (including compiled or interpreted languages), in the form of programs, software modules, scripts or code, and may be deployed in any form, including as a stand-alone program or as a module, component, subroutine, or other unit suitable for use in a computing environment.
By way of example, executable instructions may correspond, but do not necessarily have to correspond, to files in a file system, and may be stored in a portion of a file that holds other programs or data, such as in one or more scripts in a hypertext Markup Language (HTML) document, in a single file dedicated to the program in question, or in multiple coordinated files (e.g., files that store one or more modules, sub-programs, or portions of code).
By way of example, executable instructions may be deployed to be executed on one computing device or on multiple computing devices at one site or distributed across multiple sites and interconnected by a communication network.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or system. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or system that comprises the element.
The above-mentioned serial numbers of the embodiments of the present application are merely for description and do not represent the merits of the embodiments.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present application may be embodied in the form of a software product, which is stored in a storage medium (e.g., a rom/ram, a magnetic disk, an optical disk) and includes instructions for enabling a multimedia terminal (e.g., a mobile phone, a computer, a television receiver, or a network device) to execute the method according to the embodiments of the present application.
In summary, the present application provides a method, an apparatus, a storage medium, and an electronic device for signing an electronic text, where the method triggers an operation by receiving a signature of a user on a target location on a touch screen, where the target location is an arbitrary location on the electronic text to be signed; acquiring a trigger coordinate of the target position and displaying a signature interface based on the signature trigger operation; receiving signature information input by a user on the signature interface, and generating a signature bitmap based on the signature information; determining the pasting position of the signing bitmap on the electronic text to be signed according to the trigger coordinate; and finishing the signature of the electronic text to be signed based on the signature bitmap and the chartlet position.
The above description is only exemplary of the present application and should not be taken as limiting the present application, as any modification, equivalent replacement, or improvement made within the spirit and principle of the present application should be included in the protection scope of the present application.

Claims (10)

1. An electronic text signing method is characterized by being used for customer premise equipment, wherein the customer premise equipment comprises a touch screen; the method comprises the following steps:
receiving a signature trigger operation of a user on a target position on the touch screen, wherein the target position is any position on the electronic text to be signed;
acquiring a trigger coordinate of the target position and displaying a signature interface based on the signature trigger operation;
receiving signature information input by a user on the signature interface, and generating a signature bitmap based on the signature information;
determining the pasting position of the signing bitmap on the electronic text to be signed according to the trigger coordinate;
and finishing the signature of the electronic text to be signed based on the signature bitmap and the chartlet position.
2. The method of claim 1, wherein said determining a mapping location of said signing bitmap on said electronic text to be signed based on said trigger coordinates comprises:
acquiring the text width and the text height of the electronic text to be signed, the bitmap width and the bitmap height of the signing bitmap, the display width and the display height of the display area of the electronic text to be signed on the touch screen, a first edge distance between a first side edge of the electronic text to be signed and a first side edge of the touch screen, and a second edge distance between a second side edge of the electronic text to be signed and a second side edge of the touch screen; wherein the first side and the second side are adjacent sides;
and determining the chartlet position of the signing bitmap on the electronic text to be signed according to the trigger coordinate, the text width and the text height, the bitmap width and the bitmap height, the display width and the display height, the first margin and the second margin.
3. The method of claim 2, wherein determining the chartlet location of the signing bitmap on the electronic text to be signed based on the trigger coordinates, the text width and text height, the bitmap width and bitmap height, the display width and display height, the first margin, and the second margin comprises:
determining the scaling of the signature bitmap according to the display width, the text width, the display height and the text height;
obtaining the scaling width and the scaling height of the scaled and scaled signature bitmap;
determining the chartlet position of the signing bitmap on the electronic text to be signed according to the trigger coordinate, the text width and the text height, the zoom width and the zoom height, the display width and the display height, the first margin and the second margin;
the signing of the electronic text to be signed is completed based on the signing bitmap and the pasting position, and the signing comprises the following steps: completing signing of the electronic text to be signed based on the scaled signing bitmap and the collage location.
4. A method as claimed in any one of claims 1 to 3, wherein prior to said determining a map location of said signature bitmap from said trigger coordinates, said method further comprises:
and compressing the signature bitmap according to a preset proportion.
5. The method as recited in claim 4, wherein after said receiving signed information entered by a user at said signing interface and generating a signature bitmap based on said signed information, said method further comprises:
acquiring signature time generated by the signature bitmap;
and sending the signature time to a storage system.
6. The method as recited in claim 4, wherein after said completing signing of the electronic text to be signed based on the signing bitmap and the chartlet location, the method further comprises:
acquiring fingerprint information of the user;
and sending the fingerprint information to a storage system.
7. The method of claim 4, wherein after said receiving a user's signature on a target location on the touch screen triggers an operation, the target location being any location on the electronic text to be signed, the method further comprises:
starting a recording and video recording device, recording and video recording the signing process of the electronic text to be signed, and acquiring recording and video recording data;
and sending the sound recording and video recording data to a storage system.
8. An electronic text signing device, said device comprising:
the trigger operation receiving module is used for receiving a signature trigger operation of a user on a target position on the touch screen, wherein the target position is any position on the electronic text to be signed;
the trigger coordinate acquisition module is used for acquiring the trigger coordinate of the target position and displaying a signature interface based on the signature trigger operation;
the signature bitmap generation module is used for receiving signature information input by a user on the signature interface and generating a signature bitmap based on the signature information;
the chartlet position determining module is used for determining the chartlet position of the signature bitmap on the electronic text to be signed according to the trigger coordinate;
and the signature completion module is used for completing the signature of the electronic text to be signed based on the signature bitmap and the mapping position.
9. A computer-readable storage medium, storing a computer program, wherein the computer program, when loaded and executed by a processor, implements the electronic text signing method of any one of claims 1-7.
10. An electronic device comprising a processor and a memory, wherein,
the memory is used for storing a computer program;
the processor is adapted to load and execute the computer program to cause the electronic device to perform the electronic text signing method of any one of claims 1-7.
CN202210627429.8A 2022-06-06 2022-06-06 Electronic text signing method and device, storage medium and electronic equipment Active CN114816214B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210627429.8A CN114816214B (en) 2022-06-06 2022-06-06 Electronic text signing method and device, storage medium and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210627429.8A CN114816214B (en) 2022-06-06 2022-06-06 Electronic text signing method and device, storage medium and electronic equipment

Publications (2)

Publication Number Publication Date
CN114816214A true CN114816214A (en) 2022-07-29
CN114816214B CN114816214B (en) 2024-06-14

Family

ID=82522223

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210627429.8A Active CN114816214B (en) 2022-06-06 2022-06-06 Electronic text signing method and device, storage medium and electronic equipment

Country Status (1)

Country Link
CN (1) CN114816214B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115879165A (en) * 2022-05-24 2023-03-31 北京中关村科金技术有限公司 Electronic signature method, device and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111464307A (en) * 2019-10-14 2020-07-28 高新兴科技集团股份有限公司 Method for acquiring electronic signature stamp, computer storage medium, and electronic device
CN112532397A (en) * 2020-12-03 2021-03-19 北京和兴宏图科技有限公司 Signature method and system for court trial record
CN112860153A (en) * 2021-02-08 2021-05-28 厦门市法度信息科技有限公司 Mirror image interactive electronic signature system and method

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111464307A (en) * 2019-10-14 2020-07-28 高新兴科技集团股份有限公司 Method for acquiring electronic signature stamp, computer storage medium, and electronic device
CN112532397A (en) * 2020-12-03 2021-03-19 北京和兴宏图科技有限公司 Signature method and system for court trial record
CN112860153A (en) * 2021-02-08 2021-05-28 厦门市法度信息科技有限公司 Mirror image interactive electronic signature system and method

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115879165A (en) * 2022-05-24 2023-03-31 北京中关村科金技术有限公司 Electronic signature method, device and storage medium

Also Published As

Publication number Publication date
CN114816214B (en) 2024-06-14

Similar Documents

Publication Publication Date Title
US8952985B2 (en) Digital comic editor, method and non-transitory computer-readable medium
EP3832459A1 (en) Graphic drawing method and apparatus, device, and storage medium
US20170322680A1 (en) Method and apparatus for setting background of ui control, and terminal
CN105630939A (en) General canvas input interface design method and device
CN113095995A (en) Webpage watermark adding method and device, electronic equipment and storage medium
CN110955477A (en) Image self-defining method, device, equipment and storage medium
CN114816214B (en) Electronic text signing method and device, storage medium and electronic equipment
CN111651966A (en) Data report file generation method and device and electronic equipment
CN110443772B (en) Picture processing method and device, computer equipment and storage medium
CN111986601A (en) Screen display method and device, terminal equipment and storage medium
CN111223155B (en) Image data processing method, device, computer equipment and storage medium
CN113918070B (en) Synchronous display method and device, readable storage medium and electronic equipment
CN107391148B (en) View element saving method and device, electronic equipment and computer storage medium
CN114356479A (en) Page rendering method and device
CN112819924A (en) Picture editing method and device, electronic equipment and storage medium
CN114860146B (en) Method and device for informed consent of bookmark word, storage medium and electronic equipment
CN110737417A (en) demonstration equipment and display control method and device of marking line thereof
CN115454365A (en) Picture processing method and device, electronic equipment and medium
CN112734876B (en) Graph drawing method and device, electronic equipment and storage medium
CN110968236A (en) Screenshot method and device based on webpage
CN111859213A (en) Dynamic graph generation method and device, computer equipment and storage medium
KR20100031784A (en) Method for printing a captured screen of web pages
CN111523288B (en) Display method and device for aerial view of PDF document
CN117591484B (en) Real-time storage method, equipment and medium for whiteboard content data
WO2024000111A1 (en) Desktop display method, electronic device, display apparatus and computer-readable storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant