CN114564931A - Electronic certificate generating method and system based on tinymce - Google Patents

Electronic certificate generating method and system based on tinymce Download PDF

Info

Publication number
CN114564931A
CN114564931A CN202210223038.XA CN202210223038A CN114564931A CN 114564931 A CN114564931 A CN 114564931A CN 202210223038 A CN202210223038 A CN 202210223038A CN 114564931 A CN114564931 A CN 114564931A
Authority
CN
China
Prior art keywords
electronic
template
data
certification
file
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
CN202210223038.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.)
Inspur Software Co Ltd
Original Assignee
Inspur Software 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 Inspur Software Co Ltd filed Critical Inspur Software Co Ltd
Priority to CN202210223038.XA priority Critical patent/CN114564931A/en
Publication of CN114564931A publication Critical patent/CN114564931A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/166Editing, e.g. inserting or deleting
    • G06F40/186Templates
    • 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/151Transformation
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Health & Medical Sciences (AREA)
  • Artificial Intelligence (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Computational Linguistics (AREA)
  • General Health & Medical Sciences (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The invention discloses an electronic proof file generation method and system based on tinymce, belonging to the technical field of computers and aiming at solving the problems of slow response and unstable speed of the traditional plug-in NTKO (NTKO) generated electronic proof material, and adopting the technical scheme as follows: the method comprises the steps of utilizing the tinymce plug-in to newly create, edit and store each type of certification template, after the tinymce plug-in template is generated, when electronic certification data is input, matching and mapping the face-to-face data of the electronic certification of a service system to the face-to-face data of the tinymce plug-in template, and completing the synthesis of the electronic certification file. The system comprises a preprocessing module, a template establishing module, a synthesizing module, a converting module and a checking and downloading module.

Description

Tinymece-based electronic certificate generation method and system
Technical Field
The invention relates to the technical field of computers, in particular to an electronic certificate generating method and system based on tiny.
Background
The business systems of many departments and organizations often need to ask business handling personnel for certification materials, many certification materials exist in the forms of paper and electronic documents at present, and are repeatedly submitted for many times, so that resource waste is caused, in order to better serve the public, facilitate the public, improve the service efficiency of governments and social public organizations, and the certification material electronization is a problem which is urgently solved.
The electronization of the electronic proof material is beneficial to fundamentally solving the defects that people repeatedly go back and forth and repeatedly submit paper materials in the current social public service organization, reducing the time cost and resource waste of people in handling, lightening the burden of people and improving the handling efficiency.
At present, the generation mode of the electronic proof is mainly synthesized by means of NTKO plug-ins, and NTKO is used as a plug-in derived from Microsoft Office, has no open source, has higher technical difficulty of secondary development, and does not support running on a domestic system. The NTKO plug-in has stronger functionality, can be compatible with various forms of proof template creation, editing and the like, but has the following problems:
the template file created by NTKO is a doc-type file, the storage of which must be stored by means of other tools such as mongdb and the like, and there may be a problem of missing the electronic proof template.
Secondly, the method for generating the electronic certificate by using the NTKO plug-in still has the problem of browser compatibility, so that low-version Firefox, IE and 360 compatible mode browsers are supported at present, and after a lot of users install the plug-ins, the browser may not detect the installation of the NTKO plug-in, which causes the repeated installation of the users.
The NTKO plug-in also has the problems of slow loading speed in the browser, possible crash of the plug-in after successful loading and the like, and the problem is difficult to find due to high integration level of the plug-in.
Therefore, how to solve the technical problems of slow response and unstable speed of the traditional plug-in NTKO editing electronic proof material is an urgent need to be solved at present.
Disclosure of Invention
The invention aims to provide an electronic proof file generation method and system based on tinymce and aims to solve the problems of slow response and unstable speed of the traditional plug-in NTKO editing electronic proof material.
The technical task of the invention is realized according to the following mode, the method for generating the electronic certification file based on the tinymce is characterized in that each type of certification template is newly created, edited and stored by utilizing a tinymce plug-in, after the tinymce plug-in template is generated, when electronic certification data is input, the face-to-face data of the electronic certification of a service system is matched and mapped to the face-to-face data of the tinymce plug-in template, and the synthesis of the electronic certification file is completed.
Preferably, the method is specifically as follows:
s1, preprocessing: acquiring data needing to be converted into the electronic certification format file from a data source, and finishing primary processing of electronic certification material data based on relevant specifications and requirements of the electronic certification format file;
s2, establishing an electronic certificate template: based on the electronic certification data in the step S1, according to the specific electronic certification specification requirements, completing configuration of the electronic certification format file template, and constructing a new electronic certification template;
s3, synthesizing an electronic certificate HTML file: inputting electronic certification data, finishing the replacement of the illumination items through a tinymce template renderer, and synthesizing an electronic certification HTML file;
s4, converting the electronic certificate HTML file in the step S3 into an electronic certificate file in a PDF format by using a wkhtmltopdf plug-in, wherein the electronic certificate file is stored in a mongdb library in a PDF format;
s5, viewing and downloading the electronic certificate file in the PDF format in the service system: when the business system displays the electronic certification file, the business system takes out the electronic certification data from the mongdb library, and checks and downloads the electronic certification data in the business system plug-in.
More preferably, the preprocessing in step S1 is specifically as follows:
s101, obtaining an electronic certification material, and judging whether the type of the electronic certification material is a new electronic certification:
if the electronic proof material is new, executing step S102;
if the template is a designed template, jumping to the step S103;
s102, calling a tiny template design program to load a new template, and filling the template content and designing an illumination item of the electronic certificate according to a new electronic certificate material;
s103, directly reading HTML data of the template from the database, analyzing the HTML data by using a tiny template designer, displaying the HTML data in a corresponding template display area, and directly jumping to S3 for data synthesis.
Preferably, the data is divided into the data of the illumination item and the data of the fixed template according to whether the contents of the electronic proof are variable;
the types of the data of the illumination items are divided into a character string type, a date type, a two-dimensional code picture type and the like; the data of the interview item comprises a certification issuer, a certification user, a certification issuing date, a certification verification two-dimensional code and the like; the processing mode of the data of the illumination items is as follows: each illumination item has a unique illumination item English name in the corresponding electronic certification template, and after the configuration of the attribute of the corresponding illumination item is completed, the tiny template designer initializes the illumination item into different template data according to the type of the illumination item, and stores HTML language elements specially rendered by the tiny template designer;
preferably, the template fixing data comprises certification content and a certification mode; the template fixed data is initialized to be common HTML content by the tiny plug-in, the common HTML content exists in a fixed form after the electronic certificate template is synthesized and before the electronic certificate file is synthesized, the format of the template fixed data needs to be determined when the template is designed, and the format of the template fixed data is the final format of the synthesized certificate file.
More preferably, the synthesized electronic proof HTML file in step S3 is specified as follows:
s301, the electronic certification template data exists in a database in an HTML (hypertext markup language) form, after a service system receives certification data imported by an interface, manual input or excel, the service system stores the face-lighting information in a data source as structured data, and searches and replaces the data according to the English name defining the face-lighting item in the electronic certification template;
s302, the tinymce template designer completes the replacement of illumination items of characters, dates and pictures according to the specially rendered illumination items English name in the electronic proof template, replaces the illumination items in the template with actual proof data, combines fixed template data to synthesize a final electronic proof, previews electronic proof files in the tinymce template designer, and generates standard electronic proof data after the electronic proof data are determined to be accurate;
the converted electronic certification file comprises a certification object, content, a place and certification starting and ending time; some electronic certification documents need to be sealed, the sealed electronic certification documents have legal effectiveness, and the downloaded signature documents can be subjected to authenticity identification through the system.
Preferably, the parameter configuration of the wkhtmltopdf plug-in step S4 is specifically as follows:
setting a page lower margin;
starting an installed plug-in, such as a flash;
setting default character codes;
setting the size of paper: a4, Letter, etc.;
setting the page width.
A tinymce-based electronic certificate generating system comprises,
the preprocessing module is used for acquiring data needing to be converted into the electronic certification format file from a data source and finishing primary processing of the electronic certification material data based on relevant specifications and requirements of the electronic certification format file;
the template establishing module is used for completing the configuration of the electronic certification format file template according to the specific electronic certification standard requirement based on the electronic certification data and establishing a new electronic certification template;
the synthesis module is used for inputting electronic certification data, finishing the replacement of the illumination items through the tinymce template renderer and synthesizing an electronic certification HTML file;
the conversion module is used for converting the electronic certificate HTML file into an electronic certificate file in a PDF format by using a wkhtmltopdf plug-in, and the electronic certificate file is stored in the mongdb library in a PDF form;
and the viewing and downloading module is used for viewing and downloading the electronic certification file in the PDF format in the service system.
An electronic device, comprising: a memory and at least one processor;
wherein the memory has stored thereon a computer program;
the at least one processor executes the computer program stored by the memory such that the at least one processor performs the method for tinymce-based electronic document generation as described above.
A computer-readable storage medium having stored thereon a computer program executable by a processor to implement the method for generating an electronic proof document based on a tiny as described above.
The method and the system for generating the electronic certificate based on the tinymce have the following advantages that:
the method for generating the electronic certification data has the characteristics of convenient data storage, fast data reading and stable data storage, and supports the real-time updating of template data according to the practical application standard condition of the electronic certification, thereby achieving the relevant certification standard and being capable of stably storing and using a certain electronic certification which is fixed and unchangeable;
compared with the electronic certification template established by NTKO, the electronic certification template established by the invention is compatible with more browsers and is wider in application, and the electronic certification template established by the invention can be normally used in an IE browser, a Firefox, a Google and a 360 browser, thereby greatly facilitating the use of users; it can be seen that the use of the tinymce insert for processing electronically proven materials has the following advantages over the NTKO insert:
firstly, proving template data processed by the tiny plug-in can be directly stored in a database, and the system is easy to directly store, read and directly display the template data;
secondly, the storage stability of the template data established by the tiny plug-in is high, the data is not easy to lose as long as the database is normal, and the template content can be previewed approximately through the data;
the tinymce plug-in has strong compatibility with the browser, not only supports the windows own IE browser, but also enables the Firefox, Google and 360 browsers to be perfectly compatible;
tinymce is used as a development plug-in, secondary development is easy to carry out, a bottom file of tinymce mainly depends on a set of js and css files, and a developer can customize the style and the editability of template data according to a manual, so that the uniqueness of template and facial data is realized, and a foundation is laid for realizing the synthesis of a certification file;
the tinymce plugin has the characteristic of high loading speed, and can rapidly analyze the template data read from the database by the system and display the read data in the plugin for a user due to the powerful analytic force of the tinymce plugin on HTML (hypertext markup language), so that the template data can be directly edited;
sixthly, the tiny plug-in can quickly copy text contents from the word and can keep the format of the word; the tinymce plug-in keeps the function of NTKO compatible word format, can quickly convert the data edited by the user in the word into template data, and can ensure that the font format, line spacing and paragraph typesetting are kept unchanged, thereby greatly reducing the time cost for the user to make the proof template;
seventhly, the implementation that the tinyme plug-in is a bottom layer is based on data editing and storage of HTML (hypertext markup language), if the contents of the template are proved to be in a problem by an electronic certificate, the data can be directly checked, in addition, the data of the template can be directly stored in fields of a database, the program can be directly rendered by using the tinyme plug-in and displayed to a user after being read, and the loading speed and the response of the tinyme plug-in are higher;
thirdly, according to the requirements of a user template, the source code of the tiny plug-in is modified, and personalized customization of an electronic certification template is carried out by combining parameters of the wkhtmltopdf plug-in, so that real-time generation of a specific certification file is completed;
fourthly, the template established based on the tinymce technology has the characteristics of high loading speed and stable loading, an electronic proof template established by the traditional NTKO can fail to load files due to the loss of template data and the compatibility problem of a browser, the file loading speed of a large template is more than 2 seconds, and the strong analytic power of the tinymce plug-in to HTML language is benefited, the template loading speed established by the invention is basically less than 1 second, and the system experience of a user is greatly improved;
the invention uses the tinymce plug-in to be basically compatible with the word format, the tinymce plug-in can quickly copy the text content from the word, and can reserve the word format, can ensure that the font format, the line spacing and the paragraph typesetting are kept unchanged, and greatly reduces the time cost for a user to make the proving template;
the invention can generate the electronic certification file, finish the certification file from newly building to preserving all operations inquired, the whole process is easy to operate, easy to implement, on a very large scale, save time and manpower cost, raise the generating efficiency of the electronic certification;
seventhly, loading, editing and storing an electronic certification template are completed based on the tinymce technology, a face-lighting item is defined according to a unique pattern built in the tinymce, the content of the certification file is generated into an electronic certification template layout file, the file content is copied from a word in a format, template data is loaded quickly and stably, a universal browser is compatible, and a html file which is converted into a PDF file which is easy to store and read is converted based on wkhtltpf, so that the electronic certification file is completed;
the construction of the face-lighting item based on the tinymce built-in style is established, the face-lighting item based on the tinymce built-in CSS unique style is a key step for realizing the electronization of the certification document, and the unique styles are also the key points for finishing the replacement of the face-lighting data by the actual data;
the invention establishes the construction of the electronic certification template based on the tiny plug-in, and divides the electronic certification file into a camera part and fixed template data to construct a format file; after structured formal certification data is obtained, the special illumination items rendered by the tinymce technology are replaced with template illumination data, and the template illumination data and fixed template data jointly form a data file of electronic certification, and the template data is stored in a simple and understandable HTML language and is convenient to read and store;
the invention establishes the conversion from HTML to PDF files based on wkhtmltopd plug-in, and the HTML data is easy to be analyzed in a tiny analyzer, but the electronic certification data is not only required to be displayed in an electronic certification system, but also may be required to be displayed in a mobile phone, and may also have the requirement of printing, so the invention converts the electronic certification file into PDF by means of the plug-in wkhtmltopd, and meets various purposes used by users;
the invention establishes a set of complete electronic certification generating method based on the tinymce and the wkhtmltopdf plug-in, and the method can be realized in a system.
Drawings
The invention is further described below with reference to the accompanying drawings.
FIG. 1 is a flow chart diagram of a method for generating an electronic certificate based on tiny.
Detailed Description
The following detailed description of the method and system for generating an electronic certificate based on tiny will be made with reference to the drawings and specific embodiments.
Example 1:
as shown in the attached drawing 1, the method for generating the electronic certification file based on the tiny card of the invention is to newly create, edit and store each type of certification template by using the tiny card, after the tiny card template is generated, when the electronic certification data is input, the face-looking data of the electronic certification of the service system is matched and mapped to the face-looking data of the tiny card template, so as to complete the synthesis of the electronic certification file; the method comprises the following specific steps:
s1, preprocessing: acquiring data needing to be converted into the electronic certification format file from a data source, and finishing primary processing of electronic certification material data based on relevant specifications and requirements of the electronic certification format file;
s2, establishing an electronic certificate template: based on the electronic certification data in the step S1, according to the specific electronic certification specification requirements, completing configuration of the electronic certification format file template, and constructing a new electronic certification template;
according to the invention, the new electronic certificate content is analyzed, and the electronic certificate content is divided into reference data and template fixed data according to whether the content is variable or not. The variable electronic certification data is defined as the data of the illumination items, the actual name, the English name and the data type of the certification illumination items are defined according to the actual illumination item data, the character strings, the date types and the picture type data are required to be defined according to the actual certification data, the reasonable illumination item data design is a key step for generating the electronic certification file, and the complete accuracy of the configuration of the illumination item attributes must be ensured. In addition, the format of the fixed template data beyond the usual items, such as the font, the field and the data format, is required to be ensured to be in accordance with the requirements and specifications of the electronic certification, and the synthesized electronic certification data specification and standard are guaranteed.
S3, synthesizing an electronic certificate HTML file: inputting electronic certification data, finishing the replacement of the illumination items through a tinymce template renderer, and synthesizing an electronic certification HTML file;
s4, converting the electronic certificate HTML file in the step S3 into an electronic certificate file in a PDF format by using a wkhtmltopdf plug-in, wherein the electronic certificate file is stored in a mongdb library in a PDF format;
s5, checking and downloading the electronic certificate file in the PDF format in the service system: when the business system displays the electronic certification file, the business system takes out the electronic certification data from the mongdb library, and checks and downloads the electronic certification data in the business system plug-in.
The preprocessing in step S1 of this embodiment is specifically as follows:
s101, obtaining an electronic certification material, and judging whether the type of the electronic certification material is a new electronic certification:
firstly, if the electronic proof material is new, executing step S102;
if the template is a designed template, jumping to the step S103;
s102, calling a tiny template design program to load a new template, and filling template contents and designing an illumination item of an electronic certificate according to a new electronic certificate material;
s103, directly reading HTML data of the template from the database, analyzing the HTML data by using a tiny template designer, displaying the HTML data in a corresponding template display area, and directly jumping to S3 for data synthesis.
In this embodiment, the contents are classified into data of the item to be looked upon and data of the template fixed according to whether the contents of the electronic proof are variable;
the types of the data of the illumination items are divided into a character string type, a date type and a two-dimensional code picture type; the data of the interview item comprises a certification issuing person, a certification using person, a certification offering date and a certification verification two-dimensional code; the processing mode of the data of the illumination items is as follows: each illumination item has a unique illumination item English name in the corresponding electronic certification template, after the configuration of the attribute of the corresponding illumination item is completed, the tiny template designer initializes the illumination item into different template data according to the type of the illumination item, and HTML language elements specially rendered by the tiny template designer are stored;
the template fixing data in this embodiment includes certification content and a certification mode; the template fixed data is initialized to be common HTML content by the tiny plug-in, the common HTML content exists in a fixed form after the electronic certificate template is synthesized and before the electronic certificate file is synthesized, the format of the template fixed data needs to be determined when the template is designed, and the format of the template fixed data is the final format of the synthesized certificate file.
The method is a key step for converting the certification material into the electronic certification document, not only the basic conversion of the paper certification into the typesetting and curing electronic certification template material is realized, but also the certification information data such as time, place, object and certification content related to the electronic certification is required to be added into the format document of the electronic certification together, so that the attributes such as characters, graphs and paragraphs in the finally obtained format document are clearly embodied, and can be embodied in a completely consistent form when the certification is recorded.
The synthesized electronic certificate HTML file in step S3 of the present embodiment is specifically as follows:
s301, the electronic certification template data exists in a database in an HTML (hypertext markup language) form, after a service system receives certification data imported by an interface, manual input or excel, the service system stores the face-lighting information in a data source as structured data, and searches and replaces the data according to the English name defining the face-lighting item in the electronic certification template;
s302, the tinymce template designer completes the replacement of illumination items of characters, dates and pictures according to the specially rendered illumination items English name in the electronic proof template, replaces the illumination items in the template with actual proof data, synthesizes a final electronic proof by combining fixed template data, previews electronic proof files in the tinymce template designer, and generates standard electronic proof data after the electronic proof data are determined to be accurate;
the converted electronic certification file comprises a certification object, content, a place and certification starting and ending time; some electronic certification documents need to be sealed, the sealed electronic certification documents have legal effectiveness, and the downloaded signature documents can be subjected to authenticity identification through the system.
The parameter configuration of the wkhtmltopdf plug-in step S4 in this embodiment is as follows:
wkhtmltopdf[OPTIONS]...<input file>[More input files]<output file>
-margin-bottom set page margin
Enable plugins enabling installed plug-ins (e.g. Flash)
-encoding < encoding > sets the default literal encoding
Page-size < size > set sheet size a4, Letter, etc.
-page-width < unity > page width
More parameter configurations are seen in wkhtmltopdf plug-in official networks:
the wkhtmltopdf plug-in has the following advantages as an excellent conversion software:
1) the wkhtmltopdf plug-in is installed at the server side, does not need to be installed at the client side, and converts the file at the server side, so that the use burden of a user is reduced.
2) A large number of customizations are supported, including header footers, page numbers, directories, and the like.
3) Because of being based on WebKit, the rendering result is completely consistent with Chrome (including other Chrome-based browsers).
Example 2:
the tinymce-based electronic certificate generating system of the embodiment comprises,
the preprocessing module is used for acquiring data needing to be converted into the electronic certification format file from a data source and finishing primary processing of the electronic certification material data based on relevant specifications and requirements of the electronic certification format file;
the template establishing module is used for completing the configuration of the electronic certification format file template according to the specific electronic certification standard requirement based on the electronic certification data and establishing a new electronic certification template;
the synthesis module is used for inputting electronic certification data, finishing the replacement of the illumination items through the tinymce template renderer and synthesizing an electronic certification HTML file;
the conversion module is used for converting the electronic certificate HTML file into an electronic certificate file in a PDF format by utilizing a wkhtmltopdf plug-in, and the electronic certificate file is stored in the mongdb library in a PDF form;
and the viewing and downloading module is used for viewing and downloading the electronic certification file in the PDF format in the service system.
Example 3:
an embodiment of the present invention further provides an electronic device, including: a memory and at least one processor;
wherein the memory stores computer-executable instructions;
the at least one processor executes the computer-executable instructions stored by the memory to cause the at least one processor to perform the tinymce-based electronic proof document generation method in any embodiment of the invention.
Example 4:
the embodiment of the invention also provides a computer-readable storage medium, wherein a plurality of instructions are stored, and the instructions are loaded by the processor, so that the processor executes the tinymece-based electronic certificate generation method in any embodiment of the invention. Specifically, a system or an apparatus equipped with a storage medium on which software program codes that realize the functions of any of the above-described embodiments are stored may be provided, and a computer (or a CPU or MPU) of the system or the apparatus is caused to read out and execute the program codes stored in the storage medium.
In this case, the program code itself read from the storage medium can realize the functions of any of the above-described embodiments, and thus the program code and the storage medium storing the program code constitute a part of the present invention.
Examples of the storage medium for supplying the program code include a floppy disk, a hard disk, a magneto-optical disk, an optical disk (e.g., CD-ROM, CD-R, CD-RW, DVD-ROM, DVD-RYM, DVD-RW, DVD + RW), a magnetic tape, a nonvolatile memory card, and a ROM. Alternatively, the program code may be downloaded from a server computer via a communications network.
Further, it should be clear that the functions of any one of the above-described embodiments may be implemented not only by executing the program code read out by the computer, but also by causing an operating system or the like operating on the computer to perform a part or all of the actual operations based on instructions of the program code.
Further, it is to be understood that the program code read out from the storage medium is written to a memory provided in an expansion board inserted into the computer or to a memory provided in an expansion unit connected to the computer, and then causes a CPU or the like mounted on the expansion board or the expansion unit to perform part or all of the actual operations based on instructions of the program code, thereby realizing the functions of any of the above-described embodiments.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solution of the present invention, and not to limit the same; while the invention has been described in detail and with reference to the foregoing embodiments, it will be understood by those skilled in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some or all of the technical features may be equivalently replaced; and the modifications or the substitutions do not make the essence of the corresponding technical solutions depart from the scope of the technical solutions of the embodiments of the present invention.

Claims (10)

1. A tinymce-based electronic certification file generation method is characterized in that after a tinymce plug-in is used for creating, editing and storing each type of certification template, and after the tinymce plug-in template is generated, when electronic certification data is input, the face-lighting data of the electronic certification of a service system is matched and mapped to the face-lighting data of the tinymce plug-in template, so that the electronic certification file is synthesized.
2. The tinymce-based electronic certificate generation method as claimed in claim 1, which is specifically as follows:
s1, preprocessing: acquiring data needing to be converted into the electronic certification format file from a data source, and finishing primary processing of electronic certification material data based on relevant specifications and requirements of the electronic certification format file;
s2, establishing an electronic certificate template: based on the electronic certification data in the step S1, according to the specific electronic certification specification requirements, completing configuration of the electronic certification format file template, and constructing a new electronic certification template;
s3, synthesizing an electronic certificate HTML file: inputting electronic certification data, finishing the replacement of the illumination items through a tinymce template renderer, and synthesizing an electronic certification HTML file;
s4, converting the electronic certificate HTML file in the step S3 into an electronic certificate file in a PDF format by using a wkhtmltopdf plug-in, wherein the electronic certificate file is stored in a mongdb library in a PDF format;
s5, viewing and downloading the electronic certificate file in the PDF format in the service system: when the business system displays the electronic certification file, the business system takes out the electronic certification data from the mongdb library, and checks and downloads the electronic certification data in the business system plug-in.
3. The tinymce-based electronic certificate generation method as claimed in claim 2, wherein the preprocessing in step S1 is specifically as follows:
s101, obtaining an electronic certification material, and judging whether the type of the electronic certification material is a new electronic certification:
if the electronic proof material is new, executing step S102;
if the template is a designed template, jumping to the step S103;
s102, calling a tiny template design program to load a new template, and filling template contents and designing an illumination item of an electronic certificate according to a new electronic certificate material;
s103, directly reading HTML data of the template from the database, analyzing the HTML data by using a tiny template designer, displaying the HTML data in a corresponding template display area, and directly jumping to S3 for data synthesis.
4. The tinymce-based electronic certificate generation method as claimed in claim 2, wherein the electronic certificate is divided into reference data and template-fixed data according to whether the electronic certificate content is variable;
the types of the data of the illumination items are divided into a character string type, a date type and a two-dimensional code picture type; the data of the interview item comprises a certification issuing person, a certification using person, a certification offering date and a certification verification two-dimensional code; the processing mode of the data of the illumination items is as follows: each illumination item has a unique illumination item English name in the corresponding electronic certification template, after the configuration of the attribute of the corresponding illumination item is completed, the tiny template designer initializes the illumination item to different template data according to the type of the illumination item, and the HTML language elements specially rendered by the tiny template designer are stored.
5. The tinymce-based electronic proof document generation method as claimed in claim 4, wherein the template fixing data includes proof contents and a proof manner; the template fixed data is initialized to be common HTML content by the tiny plug-in, the common HTML content exists in a fixed form after the electronic certificate template is synthesized and before the electronic certificate file is synthesized, the format of the template fixed data needs to be determined when the template is designed, and the format of the template fixed data is the final format of the synthesized certificate file.
6. The method for generating an electronic certificate file based on tinymce as claimed in claim 2, wherein the synthesized electronic certificate HTML file in step S3 is as follows:
s301, the electronic certification template data exists in a database in an HTML (hypertext markup language) form, after a service system receives certification data imported by an interface, manual input or excel, the service system stores the face-lighting information in a data source as structured data, and searches and replaces the data according to the English name defining the face-lighting item in the electronic certification template;
s302, the tinymce template designer completes the replacement of illumination items of characters, dates and pictures according to the specially rendered illumination items English name in the electronic proof template, replaces the illumination items in the template with actual proof data, synthesizes a final electronic proof by combining fixed template data, previews electronic proof files in the tinymce template designer, and generates standard electronic proof data after the electronic proof data are determined to be accurate;
the converted electronic certification file comprises a certification object, content, a place and a certification starting and ending time.
7. The tinymce-based electronic certificate generation method as claimed in claim 2, wherein the parameter configuration of the wkhtmltopdf plug-in step S4 is as follows:
setting a page lower margin;
starting the installed plug-in;
setting default character codes;
setting the size of paper;
setting the page width.
8. A tinymce-based electronic certificate generation system is characterized by comprising,
the preprocessing module is used for acquiring data needing to be converted into the electronic certification format file from a data source and finishing primary processing of the electronic certification material data based on relevant specifications and requirements of the electronic certification format file;
the template establishing module is used for completing the configuration of the electronic certification format file template according to the specific electronic certification standard requirement based on the electronic certification data and establishing a new electronic certification template;
the synthesis module is used for inputting electronic certification data, finishing the replacement of the illumination items through the tinymce template renderer and synthesizing an electronic certification HTML file;
the conversion module is used for converting the electronic certificate HTML file into an electronic certificate file in a PDF format by utilizing a wkhtmltopdf plug-in, and the electronic certificate file is stored in the mongdb library in a PDF form;
and the viewing and downloading module is used for viewing and downloading the electronic certification file in the PDF format in the service system.
9. An electronic device, comprising: a memory and at least one processor;
wherein the memory has stored thereon a computer program;
the at least one processor executing the memory-stored computer program causes the at least one processor to perform the tinymce-based electronic proof document generation method of any of claims 1-7.
10. A computer-readable storage medium, in which a computer program is stored, the computer program being executable by a processor to implement the tinymece-based electronic certificate generation method as claimed in any one of claims 1 to 7.
CN202210223038.XA 2022-03-07 2022-03-07 Electronic certificate generating method and system based on tinymce Pending CN114564931A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210223038.XA CN114564931A (en) 2022-03-07 2022-03-07 Electronic certificate generating method and system based on tinymce

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210223038.XA CN114564931A (en) 2022-03-07 2022-03-07 Electronic certificate generating method and system based on tinymce

Publications (1)

Publication Number Publication Date
CN114564931A true CN114564931A (en) 2022-05-31

Family

ID=81717975

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210223038.XA Pending CN114564931A (en) 2022-03-07 2022-03-07 Electronic certificate generating method and system based on tinymce

Country Status (1)

Country Link
CN (1) CN114564931A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114818633A (en) * 2022-06-23 2022-07-29 远江盛邦(北京)网络安全科技股份有限公司 PDF report generation system, method, electronic equipment and storage medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114818633A (en) * 2022-06-23 2022-07-29 远江盛邦(北京)网络安全科技股份有限公司 PDF report generation system, method, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
US11210456B2 (en) Method relating to preparation of a report
US8549393B2 (en) Generation of electronic forms
US11010537B2 (en) Web-intrinsic interactive documents
US8756489B2 (en) Method and system for dynamic assembly of form fragments
US20050235202A1 (en) Automatic graphical layout printing system utilizing parsing and merging of data
US10178248B2 (en) Computing device for generating a document by combining content data with form data
CN106021394A (en) Website construction method and apparatus
CN101815146B (en) Image processing apparatus, information processing apparatus, and user interface configuration method
US20170364981A1 (en) Brand-Based Product Management
KR100798465B1 (en) Learning data formation system for the subject explanation
CN114564931A (en) Electronic certificate generating method and system based on tinymce
CN111078630A (en) Signature system and method
KR102013620B1 (en) Web based document editing server for changing template of web based document and operating method thereof
US8082496B1 (en) Producing a set of operations from an output description
KR102126342B1 (en) Electronic document braille translation system and a method therefor
JP5526991B2 (en) Information processing apparatus, information processing method, program, information processing system
KR101975111B1 (en) Mass webpage document transforming method, and system thereof
CN115841095A (en) Document establishing method, system, medium and equipment
CN113239670A (en) Method and device for uploading service template, computer equipment and storage medium
US20190012400A1 (en) Information processing apparatus and non-transitory computer readable medium
CN117056539B (en) Method and device for generating pptx format file in real time and electronic equipment
JP2004145736A (en) Character recognition device, character recognition data output method, program and recording medium
Ripley Lazy loading and packages in R 2.0. 0
CN118012304A (en) Digital file generation method and device, electronic equipment and storage medium
TWI249687B (en) On-line approval method of scalable vector graphics electronic document

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