CN112559938A - Electronic seal file generation method and device, computer equipment and storage medium - Google Patents

Electronic seal file generation method and device, computer equipment and storage medium Download PDF

Info

Publication number
CN112559938A
CN112559938A CN202011518662.XA CN202011518662A CN112559938A CN 112559938 A CN112559938 A CN 112559938A CN 202011518662 A CN202011518662 A CN 202011518662A CN 112559938 A CN112559938 A CN 112559938A
Authority
CN
China
Prior art keywords
electronic
file
electronic file
seal
electronic seal
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.)
Pending
Application number
CN202011518662.XA
Other languages
Chinese (zh)
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.)
Shenzhen Yunzhijia Network Co ltd
Original Assignee
Shenzhen Yunzhijia Network 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 Shenzhen Yunzhijia Network Co ltd filed Critical Shenzhen Yunzhijia Network Co ltd
Priority to CN202011518662.XA priority Critical patent/CN112559938A/en
Publication of CN112559938A publication Critical patent/CN112559938A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/958Organisation or management of web site content, e.g. publishing, maintaining pages or automatic linking
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/64Protecting data integrity, e.g. using checksums, certificates or signatures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/12Use of codes for handling textual entities
    • G06F40/14Tree-structured documents
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/20Natural language analysis
    • G06F40/205Parsing
    • G06F40/226Validation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q10/00Administration; Management
    • G06Q10/10Office automation; Time management
    • G06Q10/103Workflow collaboration or project management

Abstract

The application relates to an electronic seal file generation method and device, computer equipment and a storage medium. The method comprises the following steps: and acquiring the electronic seal and the electronic file to be sealed. And analyzing the electronic file based on the webpage front-end code to obtain source data of the electronic file, and rendering the electronic file on the webpage according to the source data. And acquiring the relative position information of the electronic seal and the electronic file on the webpage. And sending the electronic seal, the electronic file and the relative position information to a server so as to instruct the server to synthesize the electronic seal and the electronic file into an electronic seal file based on the relative position information. By adopting the method, the platform compatibility can be improved.

Description

Electronic seal file generation method and device, computer equipment and storage medium
Technical Field
The present application relates to the field of computer technologies, and in particular, to a method and an apparatus for generating an electronic seal file, a computer device, and a storage medium.
Background
With the development of computer technology, an electronic seal technology appears, the electronic seal technology simulates a traditional physical seal by advanced digital technology, the management and use modes of the electronic seal technology accord with the habit and experience of the physical seal, and the electronic document stamped by the electronic seal technology has the same appearance, the same effectiveness and the similar use mode as the paper document stamped by the physical seal. The electronic seal technology is widely applied to an office approval system, and the office approval system generally comprises functions of on-line office document approval, on-line contract signing and the like. At present, the generation of electronic seal files in an office approval system generally comprises two modes: the first way is to implement electronic sealing through local electronic document software (e.g., office | wps) and plug-ins; the second way is to realize electronic seal by integrating a third-party electronic signature system.
However, in the current office approval system, third-party software and plug-ins need to be installed, or a third-party electronic signature system needs to be integrated, so that the system cannot be used on a plurality of platforms, and the platform compatibility is poor.
Disclosure of Invention
Accordingly, it is necessary to provide an electronic seal file generation method, an electronic seal file generation device, a computer device, and a storage medium, which can improve platform compatibility, in order to solve the above technical problems.
A method for generating an electronic seal file comprises the following steps:
acquiring an electronic seal and an electronic file to be sealed;
analyzing the electronic file based on a webpage front-end code to obtain source data of the electronic file, and rendering the electronic file on a webpage according to the source data;
acquiring relative position information of the electronic seal and the electronic file on a webpage;
and sending the electronic seal, the electronic file and the relative position information to a server so as to instruct the server to synthesize the electronic seal and the electronic file into an electronic seal file based on the relative position information.
In one embodiment, the parsing the electronic file to obtain source data of the electronic file includes:
determining a target format of the electronic file;
selecting a target analysis tool corresponding to the target format from preset candidate analysis tools;
and analyzing the electronic file according to the target analysis tool to obtain the source data of the electronic file.
In one embodiment, the rendering the electronic file on the web page according to the source data includes:
for each page of electronic file, adding source data of the electronic file to a rendering queue;
in response to the selection operation aiming at the target page, searching the source data of the electronic file corresponding to the target page from the rendering queue;
and rendering the electronic file corresponding to the target page on the webpage according to the searched source data of the electronic file corresponding to the target page.
In one embodiment, the acquiring the relative position information of the electronic seal and the electronic file on the web page includes:
responding to dragging operation aiming at the electronic seal triggered by the rendered electronic file corresponding to the target page, and displaying a virtual electronic seal file;
and responding to the confirmation operation aiming at the virtual electronic seal file, and acquiring the relative position information of the electronic seal and the electronic file.
In one embodiment, the method further comprises:
when the electronic seal passes the validity check, receiving an electronic seal file sent by a server; the legality check is carried out by the server based on a digital certificate of the electronic seal;
and when the electronic seal fails to pass the validity check, receiving alarm information sent by a server.
In one embodiment, the method further comprises:
acquiring reference size information of the electronic file;
comparing the reference size information with the actual size information of the electronic file rendered on the webpage to obtain the scaling of the electronic file;
and scaling the electronic seal in an equal ratio according to the scaling ratio.
In one embodiment, the electronic file is a PDF file, a word file, or an excel file.
An electronic seal file generating apparatus, the apparatus comprising:
the acquisition module is used for acquiring the electronic seal and the electronic file to be sealed;
the analysis module is used for analyzing the electronic file based on the webpage front-end code to obtain source data of the electronic file and rendering the electronic file on a webpage according to the source data;
the acquisition module is also used for acquiring the relative position information of the electronic seal and the electronic file on a webpage;
and the sending module is used for sending the electronic seal, the electronic file and the relative position information to a server so as to instruct the server to synthesize the electronic seal and the electronic file into an electronic seal file based on the relative position information.
A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the following steps when executing the computer program:
acquiring an electronic seal and an electronic file to be sealed;
analyzing the electronic file based on a webpage front-end code to obtain source data of the electronic file, and rendering the electronic file on a webpage according to the source data;
acquiring relative position information of the electronic seal and the electronic file on a webpage;
and sending the electronic seal, the electronic file and the relative position information to a server so as to instruct the server to synthesize the electronic seal and the electronic file into an electronic seal file based on the relative position information.
A computer-readable storage medium, on which a computer program is stored which, when executed by a processor, carries out the steps of:
acquiring an electronic seal and an electronic file to be sealed;
analyzing the electronic file based on a webpage front-end code to obtain source data of the electronic file, and rendering the electronic file on a webpage according to the source data;
acquiring relative position information of the electronic seal and the electronic file on a webpage;
and sending the electronic seal, the electronic file and the relative position information to a server so as to instruct the server to synthesize the electronic seal and the electronic file into an electronic seal file based on the relative position information.
The electronic seal file generation method, the electronic seal file generation device, the computer equipment and the storage medium acquire the electronic seal and the electronic file to be sealed. And analyzing the electronic file based on the webpage front-end code to obtain source data of the electronic file, and rendering the electronic file on the webpage according to the source data. The method comprises the steps of obtaining relative position information of an electronic seal and an electronic file on a webpage, and sending the electronic seal, the electronic file and the relative position information to a server to instruct the server to synthesize the electronic seal and the electronic file into an electronic seal file based on the relative position information. Therefore, the electronic file is analyzed through the webpage front-end code so as to render the electronic file on the webpage, and the relative position information of the electronic seal and the electronic file on the webpage is acquired so as to finish the sealing of the electronic file, so that the installation of third-party software and plug-in is avoided, or a third-party electronic signature system is integrated, and therefore, the electronic file sealing system can be used on a plurality of platforms, and the platform compatibility is improved.
Drawings
FIG. 1 is a diagram illustrating an exemplary embodiment of a method for generating an electronic seal file;
FIG. 2 is a schematic flow chart illustrating a method for generating an electronic seal file according to an embodiment;
FIG. 3 is a schematic flow chart illustrating a method for generating an electronic seal file according to another embodiment of the present application;
FIG. 4 is a schematic flowchart illustrating a conventional method for generating an electronic seal file according to an embodiment;
FIG. 5 is a block diagram showing the structure of an electronic seal file generating apparatus according to an embodiment;
FIG. 6 is a block diagram showing the structure of an electronic stamp file generating apparatus according to another embodiment;
FIG. 7 is a diagram illustrating an internal structure of a computer device according to an embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. 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 electronic seal file generation method provided by the application can be applied to the application environment shown in fig. 1. The application environment includes a terminal 102 and a server 104. The terminal 102 and the server 104 communicate via a network. The terminal 102 may specifically include a desktop terminal or a mobile terminal. The mobile terminal may specifically include at least one of a mobile phone, a tablet computer, a notebook computer, and the like. The server 104 may be implemented as a stand-alone server or as a server cluster comprised of multiple servers. Those skilled in the art will understand that the application environment shown in fig. 1 is only a part of the scenario related to the present application, and does not constitute a limitation to the application environment of the present application.
The terminal 102 acquires an electronic seal and an electronic file to be sealed. The terminal 102 analyzes the electronic file based on the front-end code of the webpage to obtain source data of the electronic file, and renders the electronic file on the webpage according to the source data. The terminal 102 acquires relative position information of the electronic seal and the electronic file on the webpage, and sends the electronic seal, the electronic file and the relative position information to the server 104 to instruct the server 104 to synthesize the electronic seal and the electronic file into an electronic seal file based on the relative position information.
In an embodiment, as shown in fig. 2, a method for generating an electronic seal file is provided, which is described by taking the method as an example applied to the terminal 102 in fig. 1, and includes the following steps:
s202, acquiring the electronic seal and the electronic file to be sealed.
Specifically, the terminal may generate an electronic seal through the electronic seal generator and acquire the generated electronic seal. The user can import the electronic file to be stamped into the terminal, and the terminal can acquire the electronic file to be stamped, which is imported by the user.
In an embodiment, the electronic file may specifically be a PDF (Portable Document Format) file, a word file, an excel file, or the like.
S204, analyzing the electronic file based on the front-end code of the webpage to obtain source data of the electronic file, and rendering the electronic file on the webpage according to the source data.
The webpage front-end code is a webpage code realized based on a browser technology, and the source data is content data in an electronic file.
Specifically, the electronic file includes source data therein. The terminal can obtain the webpage front-end code and analyze the electronic file based on the webpage front-end code to obtain the source data of the electronic file. The terminal can render the electronic file on the webpage according to the source data obtained by analyzing based on the webpage front-end code.
In one embodiment, the web page front-end code may specifically include at least one of HTML code, JavaScript code, jQuery code, CSS code, and the like.
In one embodiment, the terminal may render the electronic file on the web page through Canvas rendering techniques of Source H5.
S206, acquiring the relative position information of the electronic seal and the electronic file on the webpage.
Specifically, a user can stamp an electronic seal on an electronic file based on a webpage, and drag the electronic seal to adjust the relative position of the electronic seal and the electronic file, and the terminal can respond to the dragging operation of the user to acquire the relative position information of the electronic seal and the electronic file on the webpage.
S208, the electronic seal, the electronic file and the relative position information are sent to a server to instruct the server to synthesize the electronic seal and the electronic file into an electronic seal file based on the relative position information.
The electronic seal file is a file including an electronic seal and an electronic file.
Specifically, the terminal may send the electronic seal, the electronic file, and the relative position information to the server. The server can receive the electronic seal, the electronic file and the relative position information sent by the terminal and store the electronic seal, the electronic file and the relative position information locally. Further, the server may synthesize the electronic seal and the electronic file into an electronic seal file based on the relative position information.
In the electronic seal file generation method, the electronic seal and the electronic file to be sealed are obtained. And analyzing the electronic file based on the webpage front-end code to obtain source data of the electronic file, and rendering the electronic file on the webpage according to the source data. The method comprises the steps of obtaining relative position information of an electronic seal and an electronic file on a webpage, and sending the electronic seal, the electronic file and the relative position information to a server to instruct the server to synthesize the electronic seal and the electronic file into an electronic seal file based on the relative position information. Therefore, the electronic file is analyzed through the webpage front-end code so as to render the electronic file on the webpage, and the relative position information of the electronic seal and the electronic file on the webpage is acquired so as to finish the sealing of the electronic file, so that the installation of third-party software and plug-in is avoided, or a third-party electronic signature system is integrated, and therefore, the electronic file sealing system can be used on a plurality of platforms, and the platform compatibility is improved.
In an embodiment, the step of analyzing the electronic file in step S202 to obtain source data of the electronic file specifically includes: determining a target format of the electronic file; selecting a target analysis tool corresponding to a target format from preset candidate analysis tools; and analyzing the electronic file according to the target analysis tool to obtain the source data of the electronic file.
Specifically, the electronic files have corresponding formats, and the electronic files with different formats have different corresponding parsing tools. The terminal can determine the target format of the acquired electronic file and select a target analysis tool corresponding to the target format from preset candidate analysis tools. The terminal can analyze the electronic file according to the target analysis tool corresponding to the target format to obtain the source data of the electronic file.
For example, when the electronic file is a PDF file, the target format is a PDF format. The terminal can select a PDF analysis tool corresponding to the PDF format from preset candidate analysis tools. Furthermore, the terminal can analyze the PDF file according to the PDF analysis tool corresponding to the PDF format to obtain the source data of the PDF file.
In the above embodiment, the electronic file is analyzed by the target analysis tool corresponding to the target format, so that the electronic file can be correctly analyzed into the source data, and the electronic file is successfully rendered on the webpage.
In an embodiment, the step of rendering the electronic file on the webpage according to the source data in step S202 specifically includes: adding source data of the electronic file into a rendering queue aiming at each page of the electronic file; in response to the selection operation aiming at the target page, searching the source data of the electronic file corresponding to the target page from the rendering queue; and rendering the electronic file corresponding to the target page on the webpage according to the searched source data of the electronic file corresponding to the target page.
Specifically, the number of pages of the electronic file may be a plurality of pages, and for each page of the electronic file, the terminal may add the source data of the electronic file to the rendering queue. The user can select the target page based on the webpage, and the terminal can respond to the selection operation of the target page and search the source data of the electronic file corresponding to the target page from the rendering queue. The terminal can render the electronic file corresponding to the target page on the webpage according to the searched source data of the electronic file corresponding to the target page.
For example, the number of pages of the electronic file is 50, the user performs a selection operation based on the web page, selects the 20 th page as a target page, and then the terminal may render the electronic file of the 20 pages selected by the user on the web page.
In the above embodiment, the source data of the electronic file corresponding to the target page is searched from the rendering queue, and the electronic file corresponding to the target page is rendered on the webpage according to the searched source data of the electronic file corresponding to the target page, so that each page of the electronic file can be independently rendered.
In one embodiment, the step of obtaining the relative position information between the electronic seal and the electronic file on the web page specifically includes: displaying a virtual electronic seal file in response to dragging operation aiming at the electronic seal triggered by an electronic file corresponding to a rendered target page; and responding to the confirmation operation aiming at the virtual electronic seal file, and acquiring the relative position information of the electronic seal and the electronic file.
The virtual electronic seal file is a file which is displayed in a previewing mode on a webpage according to the relative position information of the electronic seal and the electronic file and is to be synthesized.
Specifically, the user may trigger a dragging operation for the electronic seal based on an electronic file corresponding to a target page rendered on a browser webpage of the terminal, and the terminal may display the virtual electronic seal file in response to the dragging operation for the electronic seal triggered based on the electronic file corresponding to the rendered target page. The user can trigger the confirmation operation aiming at the virtual electronic seal file, and the terminal can respond to the confirmation operation aiming at the virtual electronic seal file to obtain the relative position information of the electronic seal and the electronic file.
In one embodiment, the terminal may respond to a user's drag operation on the electronic seal through the originating H5 technology.
In the embodiment, the electronic seal can be more flexibly stamped by dragging the electronic seal. By displaying the virtual electronic seal file, real-time preview is realized, the electronic seal file satisfied by a user is convenient to generate, and the generation efficiency of the electronic seal file is improved.
In one embodiment, the method for generating an electronic seal file specifically further includes: when the electronic seal passes the validity check, receiving an electronic seal file sent by a server; the legality check is carried out by the server based on a digital certificate of the electronic seal; and when the electronic seal fails to pass the validity check, receiving the alarm information sent by the server.
The digital certificate of the electronic seal is digital authentication for identifying the electronic seal and is used for verifying the legality of the electronic seal.
Specifically, the server can obtain the digital certificate of the electronic seal and carry out validity check on the electronic seal based on the digital certificate of the electronic seal. And when the electronic seal passes the validity check, the server synthesizes the electronic seal and the electronic file into an electronic seal file based on the relative position information and sends the electronic seal file to the terminal. The terminal can receive the electronic seal file sent by the server. When the electronic seal fails to pass the validity check, the server generates alarm information and sends the alarm information to the terminal, and the terminal can receive the alarm information sent by the server.
In the above embodiment, the electronic seal is verified by the server based on the digital certificate of the electronic seal, and the electronic seal file is generated only when the electronic seal passes the validity verification, so as to ensure the validity of the electronic seal in the generated electronic seal file.
In one embodiment, the method for generating an electronic seal file specifically further includes: acquiring reference size information of the electronic file; comparing the reference size information with the actual size information of the electronic file rendered on the webpage to obtain the scaling of the electronic file; and scaling the electronic seal in an equal ratio according to the scaling ratio.
The reference size information is size information of a preset electronic file.
Specifically, the terminal may acquire reference size information of the electronic file, and acquire actual size information of the electronic file rendered on the web page. The terminal can compare the reference size information with the actual size information of the electronic file rendered on the webpage to obtain the scaling of the electronic file. The terminal can zoom the electronic seal in an equal ratio according to the zooming ratio of the electronic file.
In the embodiment, the electronic seal is scaled proportionally according to the scaling of the electronic file, so that the normalization of the generated electronic seal file is ensured.
In an embodiment, as shown in fig. 3, in the electronic seal file generation method of the present application, the electronic file is a PDF file, and a user can open a file page through a browser webpage on a terminal. The terminal can analyze the PDF file by using a PDF analysis tool according to the front-end code of the webpage to obtain the source data of the PDF file. The terminal can perform paging rendering on the PDF file according to the source data of the PDF file. The terminal can respond to the selection operation of the user aiming at the target page and carry out single-page stamping on the PDF file. The user can drag the electronic seal, and the terminal can respond to the dragging operation of the user on the electronic seal and acquire the relative position information of the electronic seal and the electronic file on the webpage. The terminal can send the electronic seal, the electronic file and the relative position information to the server. The server can receive and store the electronic seal, the electronic file and the relative position information. The server can synthesize the electronic seal and the electronic file into an electronic seal file based on the relative position information, and send the electronic seal file to the terminal. The terminal can receive the electronic seal file sent by the server and refresh the local PDF file according to the electronic seal file.
In the conventional electronic seal file generation method, as shown in fig. 4, file software and a browser plug-in are installed on a terminal. And the terminal opens the electronic file through file software and stamps the electronic file through a browser plug-in. The generation of the electronic seal file has great dependence on file software and browser plug-ins, the terminal cannot open the electronic file or combine the electronic file and the electronic seal into the electronic seal file under the condition that the terminal is not provided with the file software and/or the browser plug-ins, and many browsers are incompatible with the installed file software and/or the browser plug-ins, so that the compatibility of the platform is poor.
Compared with the traditional electronic seal file generation method, the electronic seal file generation method avoids the installation of third-party software and browser plug-ins, and can be used on a plurality of platforms, such as a window system platform, a Mac OS system platform, a linux system platform and the like, so that the platform compatibility is improved.
It should be understood that although the various steps of fig. 2 are shown in order, the steps are not necessarily performed in order. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least a portion of the steps in fig. 2 may include multiple sub-steps or multiple stages, which are not necessarily performed at the same time, but may be performed at different times, and the order of performing the sub-steps or stages is not necessarily sequential, but may be performed alternately or alternately with other steps or at least a portion of the sub-steps or stages of other steps.
In one embodiment, as shown in fig. 5, there is provided an electronic seal file generating apparatus 500 including: an obtaining module 501, an analyzing module 502 and a sending module 503, wherein:
the obtaining module 501 is configured to obtain an electronic seal and an electronic file to be sealed.
The parsing module 502 is configured to parse the electronic file based on the webpage front-end code to obtain source data of the electronic file, and render the electronic file on the webpage according to the source data.
The obtaining module 501 is further configured to obtain relative position information between the electronic seal and the electronic file on the web page.
A sending module 503, configured to send the electronic seal, the electronic file, and the relative position information to a server, so as to instruct the server to synthesize the electronic seal and the electronic file into an electronic seal file based on the relative position information.
In one embodiment, the parsing module 502 is further configured to determine a target format of the electronic file; selecting a target analysis tool corresponding to a target format from preset candidate analysis tools; and analyzing the electronic file according to the target analysis tool to obtain the source data of the electronic file.
In one embodiment, the parsing module 502 is further configured to add, for each page of the electronic file, source data of the electronic file to a rendering queue; in response to the selection operation aiming at the target page, searching the source data of the electronic file corresponding to the target page from the rendering queue; and rendering the electronic file corresponding to the target page on the webpage according to the searched source data of the electronic file corresponding to the target page.
In one embodiment, the obtaining module 501 is further configured to display a virtual electronic seal file in response to a dragging operation for an electronic seal triggered by an electronic file corresponding to a rendered target page; and responding to the confirmation operation aiming at the virtual electronic seal file, and acquiring the relative position information of the electronic seal and the electronic file.
In one embodiment, the electronic file is a PDF file, a word file, or an excel file.
Referring to fig. 6, in one embodiment, the electronic seal file generating apparatus 500 further includes: a verification module 504 and a scaling module 505, wherein:
a verification module 504, configured to receive an electronic seal file sent by a server when the electronic seal passes validity verification; the legality check is carried out by the server based on a digital certificate of the electronic seal; and when the electronic seal fails to pass the validity check, receiving the alarm information sent by the server.
A scaling module 505, configured to obtain reference size information of the electronic file; comparing the reference size information with the actual size information of the electronic file rendered on the webpage to obtain the scaling of the electronic file; and scaling the electronic seal in an equal ratio according to the scaling ratio.
The electronic seal file generation device acquires the electronic seal and the electronic file to be sealed. And analyzing the electronic file based on the webpage front-end code to obtain source data of the electronic file, and rendering the electronic file on the webpage according to the source data. The method comprises the steps of obtaining relative position information of an electronic seal and an electronic file on a webpage, and sending the electronic seal, the electronic file and the relative position information to a server to instruct the server to synthesize the electronic seal and the electronic file into an electronic seal file based on the relative position information. Therefore, the electronic file is analyzed through the webpage front-end code so as to render the electronic file on the webpage, and the relative position information of the electronic seal and the electronic file on the webpage is acquired so as to finish the sealing of the electronic file, so that the installation of third-party software and plug-in is avoided, or a third-party electronic signature system is integrated, and therefore, the electronic file sealing system can be used on a plurality of platforms, and the platform compatibility is improved.
For the specific definition of the electronic seal file generation device, reference may be made to the above definition of the electronic seal file generation method, which is not described herein again. All or part of the modules in the electronic seal file generation device can be realized by software, hardware and a combination thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
In one embodiment, a computer device is provided, which may be the terminal 102 in fig. 1, and its internal structure diagram may be as shown in fig. 7. The computer device includes a processor, a memory, a network interface, a display screen, and an input device connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program is executed by a processor to realize an electronic seal file generation method. The display screen of the computer equipment can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer equipment can be a touch layer covered on the display screen, a key, a track ball or a touch pad arranged on the shell of the computer equipment, an external keyboard, a touch pad or a mouse and the like.
Those skilled in the art will appreciate that the architecture shown in fig. 7 is merely a block diagram of some of the structures associated with the disclosed aspects and is not intended to limit the computing devices to which the disclosed aspects apply, as particular computing devices may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
In one embodiment, a computer device is provided, comprising a memory and a processor, the memory having a computer program stored therein, the processor implementing the following steps when executing the computer program:
acquiring an electronic seal and an electronic file to be sealed;
analyzing the electronic file based on the webpage front-end code to obtain source data of the electronic file, and rendering the electronic file on the webpage according to the source data;
acquiring relative position information of the electronic seal and the electronic file on the webpage;
and sending the electronic seal, the electronic file and the relative position information to a server so as to instruct the server to synthesize the electronic seal and the electronic file into an electronic seal file based on the relative position information.
In one embodiment, the processor, when executing the computer program, further performs the steps of:
determining a target format of the electronic file;
selecting a target analysis tool corresponding to a target format from preset candidate analysis tools;
and analyzing the electronic file according to the target analysis tool to obtain the source data of the electronic file.
In one embodiment, the processor, when executing the computer program, further performs the steps of:
adding source data of the electronic file into a rendering queue aiming at each page of the electronic file;
in response to the selection operation aiming at the target page, searching the source data of the electronic file corresponding to the target page from the rendering queue;
and rendering the electronic file corresponding to the target page on the webpage according to the searched source data of the electronic file corresponding to the target page.
In one embodiment, the processor, when executing the computer program, further performs the steps of:
displaying a virtual electronic seal file in response to dragging operation aiming at the electronic seal triggered by an electronic file corresponding to a rendered target page;
and responding to the confirmation operation aiming at the virtual electronic seal file, and acquiring the relative position information of the electronic seal and the electronic file.
In one embodiment, the processor, when executing the computer program, further performs the steps of:
when the electronic seal passes the validity check, receiving an electronic seal file sent by a server; the legality check is carried out by the server based on a digital certificate of the electronic seal;
and when the electronic seal fails to pass the validity check, receiving the alarm information sent by the server.
In one embodiment, the processor, when executing the computer program, further performs the steps of:
acquiring reference size information of the electronic file;
comparing the reference size information with the actual size information of the electronic file rendered on the webpage to obtain the scaling of the electronic file;
and scaling the electronic seal in an equal ratio according to the scaling ratio.
In one embodiment, the electronic file is a PDF file, a word file, or an excel file.
In one embodiment, a computer-readable storage medium is provided, having a computer program stored thereon, which when executed by a processor, performs the steps of:
acquiring an electronic seal and an electronic file to be sealed;
analyzing the electronic file based on the webpage front-end code to obtain source data of the electronic file, and rendering the electronic file on the webpage according to the source data;
acquiring relative position information of the electronic seal and the electronic file on the webpage;
and sending the electronic seal, the electronic file and the relative position information to a server so as to instruct the server to synthesize the electronic seal and the electronic file into an electronic seal file based on the relative position information.
In one embodiment, the computer program when executed by the processor further performs the steps of:
determining a target format of the electronic file;
selecting a target analysis tool corresponding to a target format from preset candidate analysis tools;
and analyzing the electronic file according to the target analysis tool to obtain the source data of the electronic file.
In one embodiment, the computer program when executed by the processor further performs the steps of:
adding source data of the electronic file into a rendering queue aiming at each page of the electronic file;
in response to the selection operation aiming at the target page, searching the source data of the electronic file corresponding to the target page from the rendering queue;
and rendering the electronic file corresponding to the target page on the webpage according to the searched source data of the electronic file corresponding to the target page.
In one embodiment, the computer program when executed by the processor further performs the steps of:
displaying a virtual electronic seal file in response to dragging operation aiming at the electronic seal triggered by an electronic file corresponding to a rendered target page;
and responding to the confirmation operation aiming at the virtual electronic seal file, and acquiring the relative position information of the electronic seal and the electronic file.
In one embodiment, the computer program when executed by the processor further performs the steps of:
when the electronic seal passes the validity check, receiving an electronic seal file sent by a server; the legality check is carried out by the server based on a digital certificate of the electronic seal;
and when the electronic seal fails to pass the validity check, receiving the alarm information sent by the server.
In one embodiment, the computer program when executed by the processor further performs the steps of:
acquiring reference size information of the electronic file;
comparing the reference size information with the actual size information of the electronic file rendered on the webpage to obtain the scaling of the electronic file;
and scaling the electronic seal in an equal ratio according to the scaling ratio.
In one embodiment, the electronic file is a PDF file, a word file, or an excel file.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in the embodiments provided herein may include non-volatile and/or volatile memory, among others. Non-volatile memory can include read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDRSDRAM), Enhanced SDRAM (ESDRAM), Synchronous Link DRAM (SLDRAM), Rambus Direct RAM (RDRAM), direct bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (10)

1. A method for generating an electronic seal file is characterized by comprising the following steps:
acquiring an electronic seal and an electronic file to be sealed;
analyzing the electronic file based on a webpage front-end code to obtain source data of the electronic file, and rendering the electronic file on a webpage according to the source data;
acquiring relative position information of the electronic seal and the electronic file on a webpage;
and sending the electronic seal, the electronic file and the relative position information to a server so as to instruct the server to synthesize the electronic seal and the electronic file into an electronic seal file based on the relative position information.
2. The method according to claim 1, wherein the parsing the electronic file to obtain source data of the electronic file comprises:
determining a target format of the electronic file;
selecting a target analysis tool corresponding to the target format from preset candidate analysis tools;
and analyzing the electronic file according to the target analysis tool to obtain the source data of the electronic file.
3. The method of claim 1, wherein the rendering the electronic file on the web page according to the source data comprises:
for each page of electronic file, adding source data of the electronic file to a rendering queue;
in response to the selection operation aiming at the target page, searching the source data of the electronic file corresponding to the target page from the rendering queue;
and rendering the electronic file corresponding to the target page on the webpage according to the searched source data of the electronic file corresponding to the target page.
4. The method according to claim 3, wherein said obtaining the relative position information of the electronic seal and the electronic document on the web page comprises:
responding to dragging operation aiming at the electronic seal triggered by the rendered electronic file corresponding to the target page, and displaying a virtual electronic seal file;
and responding to the confirmation operation aiming at the virtual electronic seal file, and acquiring the relative position information of the electronic seal and the electronic file.
5. The method of claim 1, further comprising:
when the electronic seal passes the validity check, receiving an electronic seal file sent by a server; the legality check is carried out by the server based on a digital certificate of the electronic seal;
and when the electronic seal fails to pass the validity check, receiving alarm information sent by a server.
6. The method of claim 1, further comprising:
acquiring reference size information of the electronic file;
comparing the reference size information with the actual size information of the electronic file rendered on the webpage to obtain the scaling of the electronic file;
and scaling the electronic seal in an equal ratio according to the scaling ratio.
7. The method according to any one of claims 1 to 6, wherein the electronic file is a PDF file, a word file, or an excel file.
8. An electronic seal file generating apparatus, characterized in that the apparatus comprises:
the acquisition module is used for acquiring the electronic seal and the electronic file to be sealed;
the analysis module is used for analyzing the electronic file based on the webpage front-end code to obtain source data of the electronic file and rendering the electronic file on a webpage according to the source data;
the acquisition module is also used for acquiring the relative position information of the electronic seal and the electronic file on a webpage;
and the sending module is used for sending the electronic seal, the electronic file and the relative position information to a server so as to instruct the server to synthesize the electronic seal and the electronic file into an electronic seal file based on the relative position information.
9. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the steps of the method of any of claims 1 to 7 are implemented by the processor when executing the computer program.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 7.
CN202011518662.XA 2020-12-21 2020-12-21 Electronic seal file generation method and device, computer equipment and storage medium Pending CN112559938A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011518662.XA CN112559938A (en) 2020-12-21 2020-12-21 Electronic seal file generation method and device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011518662.XA CN112559938A (en) 2020-12-21 2020-12-21 Electronic seal file generation method and device, computer equipment and storage medium

Publications (1)

Publication Number Publication Date
CN112559938A true CN112559938A (en) 2021-03-26

Family

ID=75030882

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011518662.XA Pending CN112559938A (en) 2020-12-21 2020-12-21 Electronic seal file generation method and device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN112559938A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113902079A (en) * 2021-10-13 2022-01-07 武汉矽感科技有限公司 Cross-platform electronic seal based on two-dimensional code pattern and authentication method and system
CN113989123A (en) * 2021-12-23 2022-01-28 广州市新文溯科技有限公司 Electronic seal stamping method and system, electronic equipment and readable medium

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100082994A1 (en) * 2007-05-25 2010-04-01 Donglin Wang Method and apparatus for implementing electronic seal
CN106127072A (en) * 2016-06-21 2016-11-16 成都百润百成科技股份有限公司 E-seal stamped signature apparatus and method
CN108038388A (en) * 2018-01-18 2018-05-15 北京书生电子技术有限公司 The implementation method and client of Web page seal, server
CN109446760A (en) * 2018-09-17 2019-03-08 江苏敏行信息技术有限公司 Electronic Signature localization method in a kind of webpage PDF
CN109472165A (en) * 2018-09-17 2019-03-15 深圳市佰仟金融服务有限公司 A kind of electronic signature method and relevant device
CN110119235A (en) * 2018-02-07 2019-08-13 阿里巴巴集团控股有限公司 Realize the method, apparatus, signature terminal and signature server of Electronic Signature
CN111078630A (en) * 2019-12-20 2020-04-28 方正国际软件(北京)有限公司 Signature system and method
CN111191263A (en) * 2019-12-30 2020-05-22 北京天威诚信电子商务服务有限公司 Pdf electronic signature method and system

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100082994A1 (en) * 2007-05-25 2010-04-01 Donglin Wang Method and apparatus for implementing electronic seal
CN106127072A (en) * 2016-06-21 2016-11-16 成都百润百成科技股份有限公司 E-seal stamped signature apparatus and method
CN108038388A (en) * 2018-01-18 2018-05-15 北京书生电子技术有限公司 The implementation method and client of Web page seal, server
CN110119235A (en) * 2018-02-07 2019-08-13 阿里巴巴集团控股有限公司 Realize the method, apparatus, signature terminal and signature server of Electronic Signature
CN109446760A (en) * 2018-09-17 2019-03-08 江苏敏行信息技术有限公司 Electronic Signature localization method in a kind of webpage PDF
CN109472165A (en) * 2018-09-17 2019-03-15 深圳市佰仟金融服务有限公司 A kind of electronic signature method and relevant device
CN111078630A (en) * 2019-12-20 2020-04-28 方正国际软件(北京)有限公司 Signature system and method
CN111191263A (en) * 2019-12-30 2020-05-22 北京天威诚信电子商务服务有限公司 Pdf electronic signature method and system

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113902079A (en) * 2021-10-13 2022-01-07 武汉矽感科技有限公司 Cross-platform electronic seal based on two-dimensional code pattern and authentication method and system
CN113989123A (en) * 2021-12-23 2022-01-28 广州市新文溯科技有限公司 Electronic seal stamping method and system, electronic equipment and readable medium

Similar Documents

Publication Publication Date Title
CN108446116B (en) Application program page generation method and device, computer equipment and storage medium
CN109901834B (en) Document page generation method, device, computer equipment and storage medium
CN109814854B (en) Project framework generation method, device, computer equipment and storage medium
CN109815471A (en) Contract text generation method, device, computer equipment and storage medium
CN109766072B (en) Information verification input method and device, computer equipment and storage medium
CN110659092B (en) Webpage screenshot method and device, computer equipment and storage medium
CN108959384B (en) Webpage data acquisition method and device, computer equipment and storage medium
CN112000903B (en) Data query method and device, computer equipment and storage medium
CN112559938A (en) Electronic seal file generation method and device, computer equipment and storage medium
CN110221871B (en) Webpage acquisition method and device, computer equipment and storage medium
CN110177039B (en) Message sharing method and device, computer equipment and storage medium
CN111898336B (en) Bullet screen display method and device, computer equipment and storage medium
CN111258466A (en) Data visualization method and device, computer equipment and storage medium
CN111431767B (en) Multi-browser resource synchronization method and device, computer equipment and storage medium
CN110597709A (en) Interactive debugging method and device for mixed-mode mobile application and computer equipment
CN109787974A (en) Message data stream generating method, device, computer equipment and storage medium
CN111309991B (en) Query statement generation method and device and data query method and system
CN111552903A (en) Page generation method and device based on HTML (Hypertext markup language) template and computer equipment
CN113296752A (en) Method, system, device and storage medium for generating API document
CN112905936A (en) Page recording animation generation method, page operation log query method and computer equipment
CN112084403A (en) Data query method and device, computer equipment and storage medium
CN111901383A (en) Data request processing method and device, computer equipment and storage medium
CN110647350A (en) Interface document generation method and device, computer equipment and storage medium
CN110865943A (en) Interface testing method and device, computer equipment and storage medium
CN115293873A (en) Page processing method and device for credit granting flow, computer equipment and 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