Certificate template generation method, device and equipment
Receive basemap and metadata item content domain information through the browser/server architecture model to generate certificate templates, which solves the problems of complex and low-efficiency electronic certificate template design in the existing technology, and realizes efficient multi-page template design and generation.
Patent Information
- Application Number
- CN202010461204.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-05-27
- Publication Date
- 2024-10-11
- Estimated Expiration
- 2040-05-27
AI Technical Summary
The existing electronic license template design method is complicated and the production efficiency is low. Especially when making a multi-page template, it needs to be produced page by page and combined through an imposition program, resulting in poor user experience.
It adopts the browser/server architecture model and generates license templates by receiving information from the base map and metadata item content fields. Users do not need to install local application software and can design and generate multi-page templates directly in the browser, simplifying the process.
It improves the efficiency and user experience of license template design. It can design multi-page templates at the same time without the need for page-by-page design and imposition, simplifying the process.
Smart Images

Figure CN113743068B_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present application relate to the field of image processing technology, and in particular to a method, device and equipment for generating a certificate template. Background Art
[0002] Electronic certificates are used to replace the original paper certificates. The production process of electronic certificates is complicated. In order to improve the production efficiency of electronic certificates, electronic certificates are usually produced based on pre-set electronic certificate templates.
[0003] The existing design method of electronic certificate templates is a client / server (C / S) model, which requires users to install client application software locally, create electronic certificate templates on the installed client software, and generate layout files corresponding to each page of the template, and then upload the template files to the server of the electronic certificate system for the electronic certificate system to generate electronic certificate entities.
[0004] When a multi-page template needs to be produced, the existing technology is to first produce the layout files corresponding to each page of the template page by page through the client software, then combine them through the package program to form a multi-page certificate template, and then upload the combined certificate template to the server, resulting in a complicated production process of the electronic certificate template and low production efficiency. Summary of the invention
[0005] The present application provides a method, device and equipment for generating certificate templates, which can simplify the certificate template generation process, improve production efficiency and enhance user experience.
[0006] In a first aspect, the present application provides a method for generating a certificate template, comprising: receiving a first instruction, the first instruction including at least one base map; based on a browser / server architecture, generating a page corresponding to each base map in at least one base map, and loading the corresponding base map in each page to generate a document object corresponding to each base map; receiving a second instruction, the second instruction including information of a metadata item content domain; sending the information of the metadata item content domain and the document object to a server, the information of the metadata item content domain and the document object being used to instruct the server to generate a certificate template.
[0007] Optionally, before loading the corresponding base map in each page, the method also includes: receiving a third instruction, the third instruction including setting information of the base map, the setting information including at least one of setting information of the base map size, setting information of the base map placement direction or setting information of the base map typesetting order; loading the corresponding base map in each page includes: loading the corresponding base map in each page according to the setting information of the base map.
[0008] The diversity of certificate templates can be improved by different designs of the user's setting information of the base map size, the setting information of the base map placement direction or the setting information of the base map typesetting order.
[0009] Optionally, the information of the content domain of the metadata item includes at least one of the following information: the identifier of the content domain, the location information of the content domain, the width of the content domain, the height of the content domain, the style of the font in the content domain, the size of the font in the content domain, the color of the font in the content domain, or the alignment of the font in the content domain.
[0010] In the second aspect, the present application provides a method for generating a certificate template, including: receiving information and a document object in a metadata item content domain sent by a terminal device, the document object generating a page corresponding to each base map in at least one base map for the terminal device, and loading the corresponding base map in each page; generating a certificate template based on the information and the document object in the metadata item content domain.
[0011] Optionally, generating a certificate template according to the information in the metadata item content domain and the document object includes: generating a certificate template according to the information in the metadata item content domain, the document object and the OFD format file specification.
[0012] Optionally, the information of the content domain of the metadata item includes: the identifier of the content domain and the position information of the content domain corresponding to the identifier of any content domain, the width of the content domain, the height of the content domain, the style of the font in the content domain, the size of the font in the content domain, the color of the font in the content domain, and the alignment of the font in the content domain.
[0013] In a third aspect, the present application provides a certificate template generation device, comprising:
[0014] The receiving module is used to receive a first instruction, wherein the first instruction includes at least one base map.
[0015] The generation module is used to generate a page corresponding to each base map in at least one base map based on a browser / server architecture, and load the corresponding base map in each page to generate a document object corresponding to each base map.
[0016] The receiving module is further used to receive a second instruction, wherein the second instruction includes information of a metadata item content domain.
[0017] The sending module is used to send the information of the metadata item content domain and the document object to the server, and the information of the metadata item content domain and the document object are used to instruct the server to generate a certificate template.
[0018] Optionally, the receiving module is further used to receive a third instruction, which includes setting information of the base map, and the setting information includes at least one of setting information of the base map size, setting information of the base map placement direction, or setting information of the base map typesetting order.
[0019] The generation module is specifically used to load the corresponding base map in each page, including: loading the corresponding base map in each page according to the setting information of the base map.
[0020] Optionally, the information of the content domain of the metadata item includes at least one of the following information: the identifier of the content domain, the location information of the content domain, the width of the content domain, the height of the content domain, the style of the font in the content domain, the size of the font in the content domain, the color of the font in the content domain, or the alignment of the font in the content domain.
[0021] In a fourth aspect, the present application provides a certificate template generation device, comprising:
[0022] The receiving module is used to receive the information of the metadata item content domain and the document object sent by the terminal device. The document object generates a page corresponding to each base map in at least one base map for the terminal device and is generated after loading the corresponding base map in each page.
[0023] The processing module is used to generate a certificate template according to the information of the metadata item content domain and the document object.
[0024] Optionally, the processing module is specifically used to generate a certificate template based on the information of the metadata item content domain, the document object and the OFD format file specification.
[0025] Optionally, the information of the content domain of the metadata item includes: the identifier of the content domain and the position information of the content domain corresponding to the identifier of any content domain, the width of the content domain, the height of the content domain, the style of the font in the content domain, the size of the font in the content domain, the color of the font in the content domain, and the alignment of the font in the content domain.
[0026] In a fifth aspect, the present application provides an electronic device comprising: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute a method such as the first aspect or an optional method of the first aspect.
[0027] In a sixth aspect, the present application provides an electronic device comprising: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute a method such as the second aspect or an optional method of the second aspect.
[0028] In a seventh aspect, the present application provides a computer-readable storage medium, in which computer execution instructions are stored. When the computer execution instructions are executed by a processor, they are used to implement the first aspect or the optional method of the first aspect or the second aspect or the method of the second aspect.
[0029] The certificate template generation method, device and equipment provided by the present application receive a first instruction including at least one base map; generate a page corresponding to each base map in at least one base map, and load the corresponding base map in each page to generate a document object corresponding to each base map; receive a second instruction including information of a metadata item content domain; send the information of the metadata item content domain and the document object to a server, so that the server generates a certificate template according to the information of the metadata item content domain and the document object. The certificate template generation method provided by the present application does not require the installation of a dedicated application software, and can be completed through a browser to receive a first instruction including at least one base map; generate a page corresponding to each base map in at least one base map, and load the corresponding base map in each page to generate a document object corresponding to each base map. The user can design the metadata item content domain on the page corresponding to each base map, and send the information of the metadata item content domain and the document object to the server, so that the server generates a certificate template according to the information of the metadata item content domain and the document object. Therefore, for a certificate template including multiple pages, the design can be completed at the same time, without the need to complete the design of each page of the certificate template, and then combine it into a certificate template including multiple pages through a platemaking program, which simplifies the process of certificate template generation, thereby improving the efficiency of template design. BRIEF DESCRIPTION OF THE DRAWINGS
[0030] Figure 1 A schematic diagram of the system architecture of a method for generating a certificate template provided in this application;
[0031] Figure 2 A flowchart of a method for generating a certificate template provided for this application;
[0032] Figure 3 A schematic diagram of an interface for generating a certificate template provided for this application;
[0033] Figure 4 A schematic diagram of another interface for generating a certificate template provided for this application;
[0034] Figure 5 A flowchart of another method for generating a certificate template provided for this application;
[0035] Figure 6 A schematic diagram of another interface for generating a certificate template provided by this application;
[0036] Figure 7A flowchart of another method for generating a certificate template provided by this application;
[0037] Figure 8 An architectural diagram of an OFD format file provided for this application;
[0038] Fig. 9 A flowchart of a method for generating a certificate entity provided for this application;
[0039] Fig.10 A signaling diagram of a certificate template generation method provided in this application;
[0040] Fig.11 A schematic diagram of the structure of a certificate template generation device provided in this application;
[0041] Fig.12 A schematic diagram of the structure of another certificate template generation device provided in this application;
[0042] Fig.13 A schematic diagram of the structure of the electronic device provided in this application.
[0043] The above drawings show clear embodiments of the present disclosure, which will be described in more detail below. These drawings and text descriptions are not intended to limit the scope of the present disclosure in any way, but to illustrate the concepts of the present disclosure to those skilled in the art by referring to specific embodiments. DETAILED DESCRIPTION
[0044] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present disclosure. Instead, they are merely examples of devices and methods consistent with some aspects of the present disclosure as detailed in the appended claims.
[0045] Electronic certificates are the use of electronic certificates to replace the original paper certificates. The process of making electronic certificates is complicated. In order to improve the efficiency of making electronic certificates, electronic certificates are usually made based on pre-set electronic certificate templates. The existing design method of electronic certificate templates is a C / S model, which requires users to install client application software locally, make electronic certificate templates on the installed client software, and generate layout files corresponding to each page of the template, and then upload the template files to the server of the electronic certificate system for the electronic certificate system to generate electronic certificate entities. When it is necessary to make multi-page templates, the existing technology is to first use the client software to make the layout files corresponding to each page of the template page by page, and then use the package program to combine them to form a multi-page certificate template, and then upload the combined certificate template to the server. The production process is complicated, the efficiency is low, and the user experience is poor.
[0046] The main idea of the present application is to use the browser / server (B / S) architecture model without the need for customers to install any local application software. By receiving a first instruction including at least one base map, a page corresponding to each base map in at least one base map is generated on the browser, and the corresponding base map is loaded in each page to generate a document object corresponding to each base map; through each page of the browser that loads the base map, a second instruction including information of a metadata item content field is received, and the information of the metadata item content field and the document object are sent to the server to instruct the server to generate a certificate template. Therefore, for a certificate template including multiple pages, the design can be completed at the same time, without the need to complete the design of each page of the certificate template and then piece them together into a certificate template including multiple pages through a platemaking program, thereby improving the efficiency of template design.
[0047] The following specific embodiments may be combined with each other, and the same or similar concepts or processes may not be described in detail in some embodiments. The embodiments of the present invention will be described below in conjunction with the accompanying drawings.
[0048] Figure 1 A schematic diagram of the system architecture of a method for generating a certificate template provided in this application, such as Figure 1 As shown, the system includes a first terminal device 11 and a server 12. The server 12 is connected to the first terminal device 11.
[0049] The first terminal device 11 is used to design the certificate template interface information and send the certificate template interface information to the server 12. The certificate template interface information includes certificate base map information, metadata item content domain information, etc. The first terminal device 11 can be a mobile phone, computer or other terminal device.
[0050] The server 12 is used to receive the certificate template interface information sent by the first terminal device 11, generate a certificate template according to the certificate template interface information, and save the certificate template, for example, generate a certificate template file in the format of the national standard GB / T33190-2016 electronic file storage and exchange format (Fixed-layout Document Format, referred to as OFD).
[0051] Optionally, the first terminal device 11 is further used to obtain an electronic certificate template stored in the server 12 and generate an electronic certificate entity.
[0052] For example, when the industrial and commercial department prepares a business license, the user can access the first terminal device 11 to obtain the electronic certificate template of the business license saved by the server 12, and then fill in the corresponding content in the electronic certificate template of the business license, such as the name of the merchant, the type of merchant, the legal agent and other information, to generate an electronic certificate entity and issue it to the merchant.
[0053] Optionally, the system further includes a second terminal device 13, and the second terminal device 13 is connected to the server 12. The second terminal device 13 can be a terminal device such as a computer or a mobile phone.
[0054] The second terminal device 13 is used to obtain the electronic certificate template stored in the server 12 and generate an electronic certificate entity.
[0055] Specifically, the server 12 is connected to the first terminal device 11 and the second terminal device 13 respectively; the first terminal device 11 is used to design the certificate template interface information and send the certificate template interface information to the server 12; the server 12 is used to receive the certificate template interface information sent by the first terminal device 11, generate a certificate template according to the certificate template interface information, and save the certificate template; the second terminal device 13 is used to obtain the electronic certificate template saved by the server 12 and generate an electronic certificate entity.
[0056] For example, when the industrial and commercial department prepares a business license, the user can obtain the electronic certificate template of the business license saved by the server 12 by accessing the second terminal device 13, and then fill in the corresponding content in the electronic certificate template of the business license, such as the name of the merchant, the type of merchant, the legal agent and other information, to generate an electronic certificate entity and issue it to the merchant. The electronic certificate template of the business license is a certificate template of the business license generated and saved by the server 12 according to the certificate template interface information received in advance by the first terminal device 11.
[0057] Figure 2A flowchart of a method for generating a certificate template provided by the present application is provided. The execution subject of the method may be a certificate template generating device, and the certificate template generating device may be part or all of a terminal device, such as Figure 2 As shown, the method includes:
[0058] S201: Receive a first instruction, where the first instruction includes at least one base map.
[0059] The base map can be a local base map, a picture type, a word document, a portable document format (PDF), an OFD document, etc. One or more base maps can be selected for the same template, but they must be files of the same type.
[0060] For example, if the same template includes three base maps, then the three base maps must all be files of the same type, such as all OFD document types, or all PDF document types, or all picture types.
[0061] Specifically, when making a single-page template, the first instruction may include one base map; when making a multi-page template, the first instruction may include multiple base maps.
[0062] In addition, the first instruction may be operation information triggered by a user through a terminal device.
[0063] For example, Figure 3 A schematic diagram of an interface for generating a certificate template provided for this application, such as Figure 3 As shown, the user can trigger the first instruction by clicking the base map import control 31 on the terminal device, and the user can click the import base map control multiple times in succession to import multiple base maps page by page. Of course, it is also possible to click the import base map control once and then import multiple base maps at a time by setting the number of imported base maps.
[0064] Furthermore, the user may also trigger the first instruction in other ways, for example, the user triggers the first instruction by pressing a physical button, such as a button on a keyboard; or the user triggers the first instruction by pressing a preset voice.
[0065] S202. Based on the B / S architecture, generate a page corresponding to each base map in at least one base map, and load the corresponding base map in each page to generate a document object corresponding to each base map.
[0066] In this step, if the first instruction includes multiple base maps, when generating pages corresponding to each base map in the multiple base maps, pages corresponding to each base map in the multiple base maps can be generated at one time, so that the user can select any page according to his or her needs to set the base map on the page; or pages corresponding to each base map in the multiple base maps can be generated in sequence according to the order in which each base map in the multiple base maps is received, that is, after the user has set the page corresponding to the base map received earlier, a page corresponding to the new base map is generated, so that the user can set each base map in the multiple base maps in a certain order to prevent omissions or repeated settings.
[0067] In addition, the document object corresponding to each base map includes the base map and the paper size specification, normal placement direction, layout order, etc. of the base map. Among them, the paper size specification, normal placement direction, and layout order of the base map can be the default settings of the terminal device, which can simplify the certificate template generation process and improve the efficiency of template design; it can also be set by the user through the terminal device, which can improve the diversity of certificate templates. If the paper size specification, normal placement direction, and layout order of the base map are set by the user through the terminal device, then the user can set it through the terminal device before generating a page corresponding to each base map in at least one base map.
[0068] S203: Receive a second instruction, where the second instruction includes information about a metadata item content field.
[0069] The second instruction may be operation information of the user on the terminal device.
[0070] Instance, Figure 4 This is another interface diagram for generating a certificate template provided for this application. Figure 4 The page shown is the page corresponding to the base map business license copy. The user can use the mouse to drag the text control 411 in the form field 41 to the right side of the name in the base map to form the layer metadata item content field 42; the user can set the information of the metadata item content field 42 by filling in the corresponding content of the attribute list 43, such as the content field name, width, height, position, color, font and other visual content, and can also adjust the width, height and position of the metadata item content field 42 by dragging the mouse.
[0071] For another example, the user can use the mouse to drag the image control 412 in the form field 41 to the lower right corner area of the base map to form a layer metadata item content field 45; the user can set the information of the metadata item content field 45 by filling in the corresponding content of the attribute list 43, such as the content field name, width, height, position, color, font and other visual content, and can also adjust the width, height and position of the metadata item content field 45 by dragging the mouse.
[0072] The user can first set multiple metadata items, and then set the information of the content field of the metadata items one by one. When the user does not set the information of the content field of the metadata item, the information of the metadata content field can be a default setting, such as a default height, width, etc.
[0073] The user enters the page corresponding to the original business license of the base map by clicking the original business license 461 in the page selection area 46, and sets the corresponding metadata item content field on the page. Of course, the user can switch pages at any time, interspersed with setting the content field of the metadata item of each page; or after setting a page and clicking Save, set other pages.
[0074] S204: Send the information of the metadata item content domain and the document object to the server. The information of the metadata item content domain and the document object are used to instruct the server to generate a certificate template.
[0075] The information of the metadata item content domain and the document object can be sent to the server at the same time or in different time periods. The metadata item content domain information corresponding to each page of the base map can be sent to the server page by page or together.
[0076] For example, see Figure 4 After the user has set the corresponding metadata item attribute information on the page corresponding to the base map business license copy, he clicks the save control 47, and the terminal device sends the metadata item attribute information of the page to the server.
[0077] The present application receives a first instruction including at least one base map; based on a B / S architecture, generates a page corresponding to each base map in the at least one base map, and loads the corresponding base map in each page to generate a document object corresponding to each base map; receives a second instruction including information of a metadata item content domain; sends the information of the metadata item content domain and the document object to a server, so that the server generates a certificate template according to the information of the metadata item content domain and the document object, thereby simplifying the process of generating certificate templates, being able to design multiple templates, and improving the efficiency of template design.
[0078] Figure 5 A flowchart of another method for generating a certificate template provided by the present application is provided. The execution subject of the method may be a certificate template generating device, which may be part or all of a terminal device, such as a mobile phone or a computer. Figure 5 As shown, the method includes:
[0079] S501. Receive a third instruction, where the third instruction includes setting information of a base map, and the setting information includes at least one of setting information of a base map size, setting information of a base map placement direction, or setting information of a base map typesetting order.
[0080] The third instruction may be operation information of the user on the terminal device. For example, the user may trigger the third instruction by clicking a control on the screen of the terminal device or a physical button.
[0081] For example, Figure 6 A schematic diagram of another interface for generating a certificate template provided by this application, such as Figure 6 As shown, the file list 61 shows that the user has imported two base maps in picture format, namely the original business license and the copy of the business license. The user can check the base map that he wants to set in the file list 61, for example, check the original business license, and then change the layout order of the original business license by clicking up or down in the layout setting area 62; the user can also set the size of the original business license by clicking the size setting area 63, for example, by checking the original image, the size of the imported original business license image can be used as the size of the map.
[0082] When the third instruction includes setting information of multiple base maps, the content of the setting information of each base map may be the same or different. For example, the setting information of the base map size of two base maps may be the same or different.
[0083] The diversity of certificate templates can be improved by different designs of the user's setting information of the base map size, the setting information of the base map placement direction or the setting information of the base map typesetting order.
[0084] S502: Receive a first instruction, where the first instruction includes at least one base map.
[0085] The implementation method of S502 is similar to that of S201 and will not be described in detail here.
[0086] S503. Based on the B / S architecture, a page corresponding to each base map in at least one base map is generated, and according to the setting information of the base map, the corresponding base map is loaded in each page to generate a document object corresponding to each base map.
[0087] Loading the corresponding base map in each page includes: loading the base map in each page according to the setting information of the corresponding base map. Specifically, the base map is loaded in each page according to one or more of the setting information of the base map size, the setting information of the base map placement direction, and the setting information of the base map typesetting order. For example, if the size of the base map is preset, the base map is loaded in the page corresponding to the base map according to the preset size; if the size and placement direction of the base map are preset, the base map is loaded in the page corresponding to the base map according to the preset size and placement direction.
[0088] S504: Receive a second instruction, where the second instruction includes information about a metadata item content field.
[0089] Among them, the information of the content domain of the metadata item may include at least one of the following information: the identification of the content domain, the location information of the content domain, the width of the content domain, the height of the content domain, the style of the font in the content domain, the size of the font in the content domain, the color of the font in the content domain, and the alignment of the font in the content domain.
[0090] The identification of the content domain can be automatically generated by the terminal device, so as to avoid duplication of the identification of the content domain; or it can be set by the user according to certain rules, so as to make the identification of the content domain more readable. The identification of the content domain can include numbers, letters, Chinese characters, etc., and this application does not limit this.
[0091] In addition, the position information of the content domain can be the X- and Y-axis coordinates of the center point of the content domain at the global position of the screen; it can also be the X- and Y-axis coordinates of a specific point in the content domain selected by the user at the global position of the screen; it can also be the distance between the center point of the content domain and the edge of the base map, etc., which is not limited in this application.
[0092] The width and height of the content field can be set by the user dragging the mouse to set them, or by the user filling in relevant items of the content field. For details, see S203.
[0093] The font style in the content domain can be any style such as Songti, Kaiti, or artistic font; the font size can be any size such as size 12pt, size 4, etc.; the font color can be any color such as black, red, etc.; the font alignment can be center alignment, left alignment, etc., and this application does not impose any restrictions on this.
[0094] S505: Send the information of the metadata item content domain and the document object to the server. The information of the metadata item content domain and the document object are used to instruct the server to generate a certificate template.
[0095] The document object includes a base map and the setting information of the base map.
[0096] The implementation method of S502 is similar to that of S204 and will not be described in detail here.
[0097] The present application receives a third instruction including at least one of the setting information of the base map size, the setting information of the base map placement direction or the setting information of the base map typesetting order; receives a first instruction including at least one base map, and based on the B / S architecture, generates a page corresponding to each base map in the at least one base map, and loads the corresponding base map in each page according to the setting information of the base map to generate a document object corresponding to each base map; receives a second instruction including information of the metadata item content field; sends the information of the metadata item content field and the document object to the server, so that the server generates a certificate template according to the information of the metadata item content field and the document object, which can simplify the process of generating certificate templates, can design multiple templates, and improve the efficiency of template design.
[0098] Figure 7 A flowchart of another method for generating a certificate template provided by the present application, the execution subject of the method may be a server, such as Figure 7 As shown, the method includes:
[0099] S701. Receive information on the content domain of a metadata item and a document object sent by a terminal device, wherein the document object is generated for the terminal device after generating a page corresponding to each base map in at least one base map and loading the corresponding base map in each page.
[0100] The information of the content domain of the metadata item may include the identifier of the content domain and the position information of the content domain corresponding to any content domain identifier, the width of the content domain, the height of the content domain, the style of the font in the content domain, the size of the font in the content domain, the color of the font in the content domain, and the alignment of the font in the content domain. It may be the information set by the user by clicking the relevant controls in the page corresponding to each base map on the terminal device, such as the visual content such as the content domain name, width, height, position, color, font, etc., or the user may adjust the width, height and position of the metadata item content domain by dragging the mouse.
[0101] The document object corresponding to each base map includes the base map and the paper size specification, normal placement direction, layout order, etc. of the base map. Among them, the paper size specification, normal placement direction, and layout order of the base map can be the default settings of the terminal device, which can simplify the certificate template generation process and improve the efficiency of template design; it can also be set by the user through the terminal device, which can improve the diversity of certificate templates. If the paper size specification, normal placement direction, and layout order of the base map are set by the user through the terminal device, then the user can set it through the terminal device before generating a page corresponding to each base map in at least one base map.
[0102] The information of the metadata item content domain and the document object can be sent to the server at the same time or in different time periods. The metadata item content domain information corresponding to each page of the base map can be sent to the server page by page or together.
[0103] S702: Generate a certificate template based on the information in the metadata item content domain and the document object.
[0104] In a possible implementation, a certificate template may be generated based on information in the metadata item content domain, document objects, and OFD format file specifications.
[0105] For example, Figure 8 This is an architecture diagram of an OFD format file provided by this application. When the server receives the information of the metadata item content domain and the document object, the selected image is stored in Figure 8 In the Res folder shown, the DocumentRes.xml file is written; the information of the metadata item content field is written into the TPLS / TPL_n / Form.xml file. If the template has multiple pages, multiple Page_n folders are created under the Pages folder, where n is the current page number - 1, and the file structure of each page under Page_n is the same. At the same time, a corresponding TPL_n folder is also created under TPLS to record information such as the location and style of the form fields of each page template. After the server integrates the xml text content to form a series of valid files, it compresses the text and image information, updates the file suffix to .ofd, and generates a certificate template in the OFD format. In addition, Figure 8 The structure of the OFD format file shown belongs to the prior art and will not be described in detail here.
[0106] The metadata item content domain information may include: content domain identifiers and content domain location information corresponding to any content domain identifier, content domain width, content domain height, font style in the content domain, font size in the content domain, font color in the content domain, and font alignment in the content domain. For details, see S604.
[0107] Optionally, the certificate template generation method also includes storing the certificate template.
[0108] When an existing certificate template needs to be modified, the existing template can be copied and a version number can be added to it to form a new version. The version number can be added sequentially after the version number of the existing template. Then the new version is modified to generate a new certificate template. The new electronic certificate generated by this method can use the latest version of the template and can also support old versions of certificates.
[0109] The present application generates a certificate template based on the information of the metadata item content domain and the document object sent by the terminal device. The document object generates a page corresponding to each base map in at least one base map for the terminal device, and loads the corresponding base map in each page. The certificate template can be generated by generating any number of pages.
[0110] Fig. 9 A flowchart of a method for generating a certificate entity provided by the present application, the execution subject of the method may be part or all of a terminal device, such as Fig. 9 As shown, the method includes:
[0111] S901. Send a request message to the server.
[0112] S902: Receive a response message sent by the server, where the response message includes a certificate template.
[0113] S903. Obtain the face information of the certificate according to the certificate template.
[0114] S904: Generate a certificate entity according to the certificate information.
[0115] Specifically, when it is necessary to generate an electronic certificate entity, the user clicks on a control on the terminal device, such as an electronic certificate directory index, to send a request message to the server to obtain the corresponding certificate template. After receiving the certificate template sent by the server, the terminal device obtains the corresponding certificate face information based on the metadata type attribute information, such as generating a collection page to display to the user, and the user fills in the certificate face information according to the collection items. The terminal device then generates a certificate entity based on the collected face information. For example, the terminal device integrates scattered data items into regular content domain information defined by the electronic certificate template. The integrated content domain information and the certificate template are sent to the OFD conversion program, and the conversion program will parse a series of xml content domain names in the pre-customized OFD compression package and match them with the content domain information; finally, they are filled into the certificate template to form an electronic certificate entity.
[0116] Optionally, the certificate entity generation method further includes:
[0117] S905: Receive a fourth instruction, where the fourth instruction includes seal information.
[0118] S906. Add the seal information to the certificate template.
[0119] Specifically, the user opens the terminal device and accesses the signature page of the electronic certificate. After CA authentication, the user selects the seal to be added in the control and can adjust the electronic seal to the appropriate position by dragging the seal. After successful signing, the terminal device transmits the signed electronic certificate back to the server.
[0120] The electronic certificate signature can also be completed through the server. The specific server calls the electronic seal output by the seal server and inputs the seal into the designated location of the electronic certificate.
[0121] Optionally, it also includes: the terminal device integrates the seal into the electronic certificate file, and generates a QR code containing basic information and the electronic certificate code, and adds it to the designated location of the electronic certificate file. The system saves the final electronic certificate file to the valid certificate library, and the issuance of an electronic certificate entity is completed.
[0122] The present application can complete the production of an electronic certificate entity by sending a request message to a server; receiving a response message sent by the server, the response message including a certificate template; obtaining certificate face information based on the certificate template; and generating a certificate entity based on the certificate face information.
[0123] Fig.10 A signaling diagram of a certificate template generation method provided in this application, such as Fig.10 As shown, the method includes:
[0124] S1001. A terminal device receives a first instruction, where the first instruction includes at least one base map.
[0125] S1002. The terminal device generates a page corresponding to each base map in at least one base map based on the B / S architecture, and loads the corresponding base map in each page to generate a document object corresponding to each base map.
[0126] S1003: The terminal device receives a second instruction, where the second instruction includes information about a metadata item content field.
[0127] S1004. The terminal device sends the information of the metadata item content domain and the document object to the server.
[0128] S1005. The server receives the information of the metadata item content domain and the document object sent by the terminal device.
[0129] S1006. The server generates a certificate template according to the information in the metadata item content domain and the document object.
[0130] The content and effects of the certificate template generation method provided in the embodiment of the present application can be referred to the other method embodiments mentioned above, and will not be described in detail.
[0131] Fig.11 A schematic diagram of the structure of a certificate template generation device provided in this application, such as Fig.11 As shown, the device comprises:
[0132] The receiving module 111 is used to receive a first instruction, where the first instruction includes at least one base map.
[0133] The generation module 112 is used to generate a page corresponding to each base map in at least one base map based on the B / S architecture, and load the corresponding base map in each page to generate a document object corresponding to each base map.
[0134] The receiving module 111 is further configured to receive a second instruction, wherein the second instruction includes information of a content domain of a metadata item.
[0135] The sending module 113 is used to send the information of the metadata item content domain and the document object to the server, and the information of the metadata item content domain and the document object are used to instruct the server to generate a certificate template.
[0136] Optionally, the receiving module 111 is further used to receive a third instruction, which includes setting information of the base map, and the setting information includes at least one of setting information of the base map size, setting information of the base map placement direction, or setting information of the base map typesetting order.
[0137] The generation module 112 is specifically used to load the corresponding base map in each page, including: loading the corresponding base map in each page according to the setting information of the base map.
[0138] Optionally, the information of the content domain of the metadata item includes at least one of the following information: the identifier of the content domain, the location information of the content domain, the width of the content domain, the height of the content domain, the style of the font in the content domain, the size of the font in the content domain, the color of the font in the content domain, or the alignment of the font in the content domain.
[0139] Fig.12 A schematic diagram of the structure of another certificate template generation device provided in this application, such as Fig.12 As shown, the device comprises:
[0140] The receiving module 121 is used to receive information on the metadata item content domain and a document object sent by a terminal device. The document object generates a page corresponding to each base map in at least one base map for the terminal device and is generated after loading the corresponding base map in each page.
[0141] The processing module 122 is used to generate a certificate template according to the information of the metadata item content field and the document object.
[0142] Optionally, the processing module 122 is specifically configured to generate a certificate template according to the information of the metadata item content domain, the document object and the OFD format file specification.
[0143] Optionally, the information of the content domain of the metadata item includes: the identifier of the content domain and the position information of the content domain corresponding to the identifier of any content domain, the width of the content domain, the height of the content domain, the style of the font in the content domain, the size of the font in the content domain, the color of the font in the content domain, and the alignment of the font in the content domain.
[0144] Fig.13 A schematic diagram of the structure of the electronic device provided in this application, such as Fig.13 As shown, the electronic device of this embodiment includes: a processor 131 and a memory 132; the processor 131 is communicatively connected with the memory 132. The memory 132 is used to store computer programs. The processor 131 is used to call the computer program stored in the memory 132 to implement the method in the above method embodiment.
[0145] Optionally, the electronic device further includes: a transceiver 133, for communicating with other devices.
[0146] The electronic device can execute the above-mentioned certificate template generation method, and its content and effect can be referred to the method embodiment part, which will not be described in detail.
[0147] The present application also provides a computer-readable storage medium, in which computer-executable instructions are stored. When the computer-executable instructions are executed by a processor, they are used to implement the above-mentioned certificate template generation method.
[0148] The computer executable instructions stored in the computer readable storage medium can implement the above-mentioned certificate template generation method when executed by the processor. Its content and effects can be referred to the method embodiment part, which will not be repeated here.
[0149] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the invention disclosed herein. This application is intended to cover any modification, use or adaptation of the present disclosure, which follows the general principles of the present disclosure and includes common knowledge or customary technical means in the art that are not disclosed in the present disclosure. The specification and examples are considered to be exemplary only, and the true scope and spirit of the present disclosure are indicated by the following claims. It should be understood that the present disclosure is not limited to the precise structure described above and shown in the accompanying drawings, and various modifications and changes can be made without departing from its scope. The scope of the present disclosure is limited only by the appended claims.
Claims
1. A method for generating a certificate template, It is characterized in that include: receiving a first instruction, wherein the first instruction includes at least one base map; Based on the browser / server B / S architecture, a page corresponding to each base map in the at least one base map is generated, and the corresponding base map is loaded in each page to generate a document object corresponding to each base map; receiving a second instruction, wherein the second instruction includes information of a content field of a metadata item; Sending the information of the metadata item content domain and the document object to the server, wherein the information of the metadata item content domain and the document object are used to instruct the server to generate a first certificate template; The method also includes: the server copies the first certificate template, the version number of the first certificate template is a first version number, a version number is sequentially added after the first version number to obtain a second version number, and the certificate template corresponding to the second version number is modified to obtain the second certificate template.
2. The method according to claim 1, It is characterized in that Before loading the corresponding base map in each page, the method further includes: receiving a third instruction, wherein the third instruction includes setting information of a base map, wherein the setting information includes at least one of setting information of a base map size, setting information of a placement direction of the base map, or setting information of a typesetting order of the base map; The loading of the corresponding base map in each page includes: According to the setting information of the base map, the corresponding base map is loaded in each page.
3. The method according to claim 1 or 2, It is characterized in that The information of the content domain of the metadata item includes at least one of the following information: the identifier of the content domain, the position information of the content domain, the width of the content domain, the height of the content domain, the style of the font in the content domain, the size of the font in the content domain, the color of the font in the content domain, or the alignment of the font in the content domain.
4. A method for generating a certificate template, It is characterized in that include: Receiving information of a metadata item content domain and a document object sent by a terminal device, wherein the document object generates a page corresponding to each base map in at least one base map for the terminal device, and is generated after loading the corresponding base map in each page; Generate a first certificate template according to the information of the metadata item content domain and the document object; The method also includes: copying the first certificate template, the version number of the first certificate template is a first version number, adding a version number sequentially after the first version number to obtain a second version number, and modifying the certificate template corresponding to the second version number to obtain the second certificate template.
5. The method according to claim 4, It is characterized in that The step of generating a certificate template according to the information of the metadata item content domain and the document object includes: The certificate template is generated according to the information of the metadata item content domain, the document object and the OFD format file specification.
6. The method according to claim 4, It is characterized in that The information of the content domain of the metadata item includes: the identifier of the content domain and the position information of the content domain corresponding to any identifier of the content domain, the width of the content domain, the height of the content domain, the style of the font in the content domain, the size of the font in the content domain, the color of the font in the content domain, and the alignment of the font in the content domain.
7. A certificate template generating device, It is characterized in that include: A receiving module, configured to receive a first instruction, wherein the first instruction includes at least one base map; A processing module, for generating a page corresponding to each base map in the at least one base map based on a browser / server B / S architecture, and loading the corresponding base map in each page to generate a document object corresponding to each base map; The receiving module is further used to receive a second instruction, wherein the second instruction includes information of a metadata item content domain; A sending module, used to send the information of the metadata item content domain and the document object to a server, wherein the information of the metadata item content domain and the document object are used to instruct the server to generate a first certificate template; The server copies the first certificate template, the version number of the first certificate template is the first version number, a version number is sequentially added after the first version number to obtain a second version number, and the certificate template corresponding to the second version number is modified to obtain the second certificate template.
8. A certificate template generating device, It is characterized in that include: A receiving module, used for receiving information of a metadata item content domain and a document object sent by a terminal device, wherein the document object generates a page corresponding to each base map in at least one base map for the terminal device, and is generated after loading the corresponding base map in each page; A processing module, configured to generate a first certificate template according to the information of the metadata item content domain and the document object; The first certificate template is copied, the version number of the first certificate template is the first version number, a version number is sequentially added after the first version number to obtain a second version number, and the certificate template corresponding to the second version number is modified to obtain the second certificate template.
9. An electronic device, It is characterized in that include: at least one processor; as well as a memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the method according to any one of claims 1 to 6.
10. A computer-readable storage medium, It is characterized in that The computer-readable storage medium stores computer-executable instructions, which are used to implement the method according to any one of claims 1 to 6 when executed by a processor.
