CN114298006B - Electronic bill generation method, system and storage device - Google Patents

Electronic bill generation method, system and storage device Download PDF

Info

Publication number
CN114298006B
CN114298006B CN202111644399.3A CN202111644399A CN114298006B CN 114298006 B CN114298006 B CN 114298006B CN 202111644399 A CN202111644399 A CN 202111644399A CN 114298006 B CN114298006 B CN 114298006B
Authority
CN
China
Prior art keywords
format file
electronic bill
file
format
information
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.)
Active
Application number
CN202111644399.3A
Other languages
Chinese (zh)
Other versions
CN114298006A (en
Inventor
肖辉龙
武宜婧
赵刚
刘志鹏
章邴瀚
张洁
周丽红
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Fujian Boss Software Co ltd
Original Assignee
Fujian Boss 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 Fujian Boss Software Co ltd filed Critical Fujian Boss Software Co ltd
Priority to CN202111644399.3A priority Critical patent/CN114298006B/en
Publication of CN114298006A publication Critical patent/CN114298006A/en
Application granted granted Critical
Publication of CN114298006B publication Critical patent/CN114298006B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Document Processing Apparatus (AREA)
  • Storage Device Security (AREA)

Abstract

The present disclosure relates to the field of electronic bill technologies, and in particular, to a method, a system, and a storage device for generating an electronic bill. The method for generating the electronic bill comprises the following steps: obtaining corresponding format file templates and style rule information according to the electronic bill information and the format file format; filling the electronic bill information into the format file template according to the style rule information to generate a first format file; embedding the electronic bill information into the first format file in an accessory mode; and carrying out encryption operation on the first format file to generate a second format file. By the method, the templates of different file types can be subjected to unified rule description, the generation of the format file is unified, and the electronic bill data accessories are directly embedded in the format file, so that a machine can extract bill information in a mode of analyzing the accessories in the circulation process, and the method is efficient and error-free.

Description

Electronic bill generation method, system and storage device
Technical Field
The present disclosure relates to the field of electronic bill technologies, and in particular, to a method, a system, and a storage device for generating an electronic bill.
Background
With the advent of electronic bills, paper bills are more and more widely replaced, the electronic bills are the same as paper bills, bill codes and bill numbers are used for marking uniqueness of the bills, financial departments, tax departments and the like uniformly code-endow the bills to form and issue the bills, and the bills are tamper-proof by adopting uniform data specifications and electronic signatures.
Along with popularization of electronic bills, the scenes of circulation by adopting the electronic bills are more and more, however, as the electronic bill format file styles of different bill types are different, and a plurality of format templates such as PDF, OFD, PNG and the like coexist, no unified element style description rule exists. Therefore, the template is complex to manufacture and the problem that the display style of the same ticket is inconsistent under different file formats easily occurs. And the circulation is processed by adopting modes such as manual reading and then inputting or ocr identification and extraction data, and the like, so that the problems of human errors or low identification accuracy exist.
Disclosure of Invention
In view of the above, the present application provides an electronic bill generating method, which is used to solve the technical problems that the differences of the format file patterns of the existing electronic bills of different bill types, and the processing of manually reading and then inputting or ocr identifying and extracting data are adopted during circulation, and the like, so that human errors or low identifying precision exist. The specific technical scheme is as follows:
an electronic bill generating method, comprising the steps of:
obtaining corresponding format file templates and style rule information according to the electronic bill information and the format file format;
filling the electronic bill information into the format file template according to the style rule information to generate a first format file;
embedding the electronic bill information into the first format file in an accessory mode;
generating a format abstract and signing, filling the signature value into the first format file, and generating a second format file.
Further, the step of filling the electronic bill information into the format file template according to the style rule information to generate the first format file specifically further includes the steps of:
the style rule information includes: an information description list of layout display elements;
traversing the layout display elements, acquiring corresponding contents from the electronic bill information, and filling the contents into the layout file module according to preset rules;
the layout display element comprises one or more of the following: text element, two-dimensional code element, status element, and seal element.
Further, the method further comprises the steps of:
the sending end randomly generates a symmetric encryption key, symmetrically encrypts the second format file and generates a third format file;
reading a public key which is preset in a public key library and is bound in advance by a sending end and a receiving end;
performing an asymmetric encryption operation on the symmetric encryption key using the public key;
the generated key string is stored.
Further, the method further comprises the steps of:
the receiving end selects a private key corresponding to a public key pre-bound between the sending end and the receiving end of the public key library to perform decryption operation, so as to obtain a symmetric encryption key;
and decrypting the encrypted third layout file by using the symmetric encryption key to obtain a second layout file.
Further, the method further comprises the steps of:
reading the second format file and judging whether the second format file is safe according to the signature, and if so, reading the first format file and judging the type of the format file;
calling a preset method for reading the accessories according to the format file type, and reading the corresponding accessories from the first format file;
and analyzing and applying the read accessory according to the data specification of the electronic bill.
In order to solve the technical problems, the invention also provides an electronic bill generating system, which has the following specific technical scheme:
an electronic ticket generating system comprising: a transmitting end and a receiving end;
the transmitting end is used for: obtaining corresponding format file templates and style rule information according to the electronic bill information and the format file format;
filling the electronic bill information into the format file template according to the style rule information to generate a first format file;
embedding the electronic bill information into the first format file in an accessory mode;
generating a format abstract and signing, filling the signature value into the first format file, and generating a second format file.
Further, the transmitting end is further configured to: randomly generating a symmetric encryption key, and symmetrically encrypting the second format file to generate a third format file;
reading a public key which is preset in a public key library and is bound in advance by a sending end and a receiving end;
performing an asymmetric encryption operation on the symmetric encryption key using the public key;
the generated key string is stored.
Further, the receiving end is further configured to: selecting a private key corresponding to a public key pre-bound between a sending end and a receiving end of a public key library to perform decryption operation, so as to obtain a symmetric encryption key;
and decrypting the encrypted third layout file by using the symmetric encryption key to obtain a second layout file.
Further, the receiving end is further configured to: reading the second format file and judging whether the second format file is safe according to the signature, and if so, reading the first format file and judging the type of the format file;
calling a preset method for reading the accessories according to the format file type, and reading the corresponding accessories from the first format file;
and analyzing and applying the read accessory according to the data specification of the electronic bill.
In order to solve the technical problems, the invention also provides a storage device, which comprises the following specific technical scheme:
a storage device having stored therein a set of instructions for performing an electronic ticket generating method of the kind referred to above.
The beneficial effects of the invention are as follows: an electronic bill generating method, comprising the steps of: obtaining corresponding format file templates and style rule information according to the electronic bill information and the format file format; filling the electronic bill information into the format file template according to the style rule information to generate a first format file; embedding the electronic bill information into the first format file in an accessory mode; and carrying out encryption operation on the first format file to generate a second format file. By the method, the templates of different file types can be subjected to unified rule description, the generation of the format file is unified, and the electronic bill data accessories are directly embedded in the format file, so that a machine can extract bill information in a mode of analyzing the accessories in the circulation process, and the method is efficient and error-free.
The foregoing summary is merely an overview of the present application, and is provided to enable one of ordinary skill in the art to make more clear the present application and to be practiced according to the teachings of the present application and to make more readily understood the above-described and other objects, features and advantages of the present application, as well as by reference to the following detailed description and accompanying drawings.
Drawings
The drawings are only for purposes of illustrating the principles, implementations, applications, features, and effects of the present application and are not to be construed as limiting the application.
In the drawings of the specification:
FIG. 1 is a flowchart of a method for generating an electronic bill according to an embodiment;
FIG. 2 is a second flowchart of a method for generating an electronic bill according to an embodiment;
FIG. 3 is a flowchart III of a method for generating an electronic bill according to an embodiment;
FIG. 4 is a flowchart fourth of a method for generating an electronic bill according to an embodiment;
FIG. 5 is a schematic diagram of a method for generating an electronic bill according to an embodiment;
FIG. 6 is a schematic block diagram of an electronic ticket generating system according to an embodiment;
fig. 7 is a schematic block diagram of a memory device according to an embodiment.
Reference numerals referred to in the above drawings are explained as follows:
600. an electronic bill generating system is disclosed, which comprises a bill generating module,
601. the transmitting end of the wireless communication system is provided with a transmitting end,
602. the receiving end of the receiving device is provided with a receiving end,
700. a storage device.
Detailed Description
In order to describe the possible application scenarios, technical principles, practical embodiments, and the like of the present application in detail, the following description is made with reference to the specific embodiments and the accompanying drawings. The embodiments described herein are only used to more clearly illustrate the technical solutions of the present application, and are therefore only used as examples and are not intended to limit the scope of protection of the present application.
Reference herein to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment may be included in at least one embodiment of the present application. The appearances of the phrase "in various places in the specification are not necessarily all referring to the same embodiment, nor are they particularly limited to independence or relevance from other embodiments. In principle, in the present application, as long as there is no technical contradiction or conflict, the technical features mentioned in the embodiments may be combined in any manner to form a corresponding implementable technical solution.
Unless defined otherwise, technical terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which the present application pertains; the use of related terms herein is for the description of specific embodiments only and is not intended to limit the present application.
In the description of the present application, the term "and/or" is a representation for describing a logical relationship between objects, which means that there may be three relationships, e.g., a and/or B, representing: there are three cases, a, B, and both a and B. In addition, the character "/" herein generally indicates that the front-to-back associated object is an "or" logical relationship.
In this application, terms such as "first" and "second" are used merely to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any actual number, order, or sequence of such entities or operations.
Without further limitation, the use of the terms "comprising," "including," "having," or other like terms in this application is intended to cover a non-exclusive inclusion, such that a process, method, or article of manufacture that comprises a list of elements does not include additional elements but may include other elements not expressly listed or inherent to such process, method, or article of manufacture.
As in the understanding of the "examination guideline," the expressions "greater than", "less than", "exceeding", and the like are understood to exclude the present number in this application; the expressions "above", "below", "within" and the like are understood to include this number. Furthermore, in the description of the embodiments of the present application, the meaning of "a plurality of" is two or more (including two), and similarly, the expression "a plurality of" is also to be understood as such, for example, "a plurality of groups", "a plurality of" and the like, unless specifically defined otherwise.
The prior art mentioned in the background art above has the problems that the template is complex to manufacture and the display style of the same ticket under different file formats is easy to be inconsistent. And the circulation is processed by adopting modes such as manual reading and then inputting or ocr identification and extraction data, and the like, so that the problems of human errors or low identification accuracy exist. Therefore, in this embodiment, unified electronic bill style description rules are formulated to describe the format generation rules of different file types, and the rule engine analyzes the format generation rules and embeds bill information into the format file in an attachment mode. The following will develop the description:
the following describes a specific embodiment of a method for generating an electronic ticket in conjunction with fig. 1 to 5:
in this embodiment, an electronic ticket generating method may be applied to an electronic ticket generating system, which includes: the system comprises a sending end and a receiving end, wherein the sending end refers to a party for uniformly generating the format file for the electronic bill, and the receiving end refers to a party for receiving the corresponding generated format file.
As shown in fig. 1, a method for generating an electronic ticket includes the steps of:
step S101: and acquiring corresponding format file templates and style rule information according to the electronic bill information and the format file format. The method specifically may be to obtain a corresponding format file template from a database according to a template field in the electronic bill data, for example: OFD, PDF, PNG, in this embodiment, taking the OFD format as an example, an OFD format file template is obtained, and corresponding style rule information is obtained, where the style rule information includes: the information description list of the layout display elements (such as a style information description list of the position, font size, length, corresponding electronic bill data fields and the like of the layout display elements) is mainly used for describing which information needs to be filled into the layout file template, and in what format the data information needs to be filled into the layout file template. Wherein the template field comprises: ticket codes, template numbers, etc.
After step S101, step S102 is executed: and filling the electronic bill information into the format file template according to the style rule information to generate a first format file. The method comprises the following steps: traversing the layout display elements, acquiring corresponding contents from the electronic bill information, and filling the contents into the layout file module according to preset rules; the layout display element comprises one or more of the following: text element, two-dimensional code element, status element, and seal element.
The specific filling flow chart is shown in fig. 5, if the text information is the text information, the text information is converted according to the style information, the format file is filled, if the text information is not the text information, the two-dimensional code element is judged, if the two-dimensional code element is the two-dimensional code element, the two-dimensional code is generated according to the configuration and the data field is extracted and arranged, the format file is filled, if the two-dimensional code element is not the state element, the state image is acquired according to the bill state, the format file is filled, if the state element is not the state element, the stamp element is judged, if the stamp element is the stamp element, the stamp image is acquired according to the bill unit information and the supervision information, the format file is filled, and finally the first format file is generated.
Step S103: embedding the electronic bill information into the first format file in an accessory mode. Because not all electronic bill information is filled into the format file, all electronic bill information is embedded into the format file in an accessory mode, but because the embedding mode is preset by a transmitting end and a receiving end, the non-receiving end cannot read the whole content of the electronic bill information, and the electronic bill information has certain safety.
Step S104: generating a format abstract and signing, filling the signature value into the first format file, and generating a second format file. The method comprises the following steps: and extracting the abstract from the generated first format file, calling signature equipment to sign, filling the signature value into a signature area of the first format file, and generating a second format file. When the corresponding file is received by the subsequent receiving end through the signature, the signature can be verified to judge whether the corresponding file content is tampered by a person, so that the accuracy and the error-free performance of the file information content are ensured.
The overall flow diagram is shown in fig. 5.
In this embodiment, preferably, as shown in fig. 2, to ensure the security in the process of transporting the electronic bill, the method further includes the steps of:
step S201: and the sending end randomly generates a symmetric encryption key, symmetrically encrypts the second format file and generates a third format file.
Step S202: and reading the pre-bound public key of the sending end and the receiving end which are preset in the public key library.
Step S203: and performing asymmetric encryption operation on the symmetric encryption key by using the public key.
Step S204: the generated key string is stored. The encrypted file can only be referred and operated by the sender and the proxy by using the private key corresponding to the public key.
For the third layout file, when the receiving end receives the third layout file, as shown in fig. 3, the method includes the steps of:
step S301: the receiving end selects a private key corresponding to a public key pre-bound between the sending end and the receiving end of the public key library to perform decryption operation, and a symmetric encryption key is obtained.
Step S302: and decrypting the encrypted third layout file by using the symmetric encryption key to obtain a second layout file.
After the second layout file is obtained, please refer to fig. 4, which specifically further includes the steps of:
step S401: reading the second format file and judging whether the second format file is safe according to the signature, and if so, reading the first format file and judging the type of the format file;
step S402: calling a preset method for reading the accessories according to the format file type, and reading the corresponding accessories from the first format file;
step S403: and analyzing and applying the read accessory according to the data specification of the electronic bill. Wherein the fields may include: bill codes, bill numbers, payor information, billing unit information, bill item information, bill amount, and the like.
An electronic bill generating method, comprising the steps of: obtaining corresponding format file templates and style rule information according to the electronic bill information and the format file format; filling the electronic bill information into the format file template according to the style rule information to generate a first format file; embedding the electronic bill information into the first format file in an accessory mode; and carrying out encryption operation on the first format file to generate a second format file. By the method, the templates of different file types can be subjected to unified rule description, the generation of the format file is unified, and the electronic bill data accessories are directly embedded in the format file, so that a machine can extract bill information in a mode of analyzing the accessories in the circulation process, and the method is efficient and error-free.
An embodiment of an electronic ticket generating system 600 is described below in conjunction with fig. 6:
an electronic ticket generating system 600 comprising: a transmitting end 601 and a receiving end 602;
the transmitting end 601 is configured to: and acquiring corresponding format file templates and style rule information according to the electronic bill information and the format file format. The method specifically may be to obtain a corresponding format file template from a database according to a template field in the electronic bill data, for example: OFD, PDF, PNG, in this embodiment, taking the OFD format as an example, an OFD format file template is obtained, and corresponding style rule information is obtained, where the style rule information includes: the information description list of the layout display elements (such as a style information description list of the position, font size, length, corresponding electronic bill data fields and the like of the layout display elements) is mainly used for describing which information needs to be filled into the layout file template, and in what format the data information needs to be filled into the layout file template. Wherein the template field comprises: ticket codes, template numbers, etc.
And filling the electronic bill information into the format file template according to the style rule information to generate a first format file. The method comprises the following steps: traversing the layout display elements, acquiring corresponding contents from the electronic bill information, and filling the contents into the layout file module according to preset rules; the layout display element comprises one or more of the following: text element, two-dimensional code element, status element, and seal element.
The specific filling can be as follows:
judging whether the text information is the text information, if the text information is the text information, converting according to style information according to the data field, filling the format file, if the text information is not the text information, judging whether the text information is the two-dimensional code element, if the text information is the two-dimensional code element, generating a two-dimensional code according to configuration extraction and arrangement of the data field, filling the format file, if the text information is not the two-dimensional code element, judging whether the text information is the state element, acquiring a state picture according to a bill state, filling the format file, if the text information is not the state element, judging whether the text information is the seal element, if the text information is the seal element, acquiring the seal picture according to bill unit information and supervision information, filling the format file, and finally generating the first format file.
Embedding the electronic bill information into the first format file in an accessory mode. Because not all electronic bill information is filled into the layout file, all electronic bill information is embedded into the layout file in an accessory mode, but the embedding mode is preset by the transmitting end 601 and the receiving end 602, so that the non-receiving end 602 cannot read the whole content of the electronic bill information, and the electronic bill information has certain safety.
Generating a format abstract and signing, filling the signature value into the first format file, and generating a second format file. The method comprises the following steps: and extracting the abstract from the generated first format file, calling signature equipment to sign, filling the signature value into a signature area of the first format file, and generating a second format file. When the corresponding file is received by the subsequent receiving end 602 through the signature, the signature can be verified to judge whether the corresponding file content is tampered by a person, so that the accuracy and the error-free performance of the file information content are ensured.
In this embodiment, preferably, to ensure security in the process of transmitting the electronic ticket, the sending end 601 is further configured to: randomly generating a symmetric encryption key, and symmetrically encrypting the second format file to generate a third format file;
reading a public key which is pre-bound by a sending end 601 and a receiving end 602 which are pre-set in a public key library;
performing an asymmetric encryption operation on the symmetric encryption key using the public key;
the generated key string is stored. The encrypted file is guaranteed to be capable of being referred to and operated by the sender 601 and the proxy only by the decryptor using the private key corresponding to the public key.
For the third layout file, when the receiving end 602 receives the third layout file, the receiving end 602 is further configured to: a private key corresponding to a public key pre-bound by a sending end 601 and a receiving end 602 pre-arranged in a public key library is selected for decryption operation, so that a symmetric encryption key is obtained;
and decrypting the encrypted third layout file by using the symmetric encryption key to obtain a second layout file.
After obtaining the second layout file, the receiving end 602 is further configured to: reading the second format file and judging whether the second format file is safe according to the signature, and if so, reading the first format file and judging the type of the format file;
calling a preset method for reading the accessories according to the format file type, and reading the corresponding accessories from the first format file;
and analyzing and applying the read accessory according to the data specification of the electronic bill. Wherein the fields may include: bill codes, bill numbers, payor information, billing unit information, bill item information, bill amount, and the like.
An electronic ticket generating system 600 comprising: a transmitting end 601 and a receiving end 602; the transmitting end 601 is configured to: obtaining corresponding format file templates and style rule information according to the electronic bill information and the format file format; filling the electronic bill information into the format file template according to the style rule information to generate a first format file; embedding the electronic bill information into the first format file in an accessory mode; generating a format abstract and signing, filling the signature value into the first format file, and generating a second format file. Through the system, the unified rule description can be carried out on different file type templates, the generation of the format file is unified, and the electronic bill data accessory is directly embedded in the format file, so that the bill information can be extracted by a machine in the circulation process in a mode of analyzing the accessory, and the system is efficient and error-free.
A specific embodiment of a storage device 700 is described below in conjunction with fig. 7:
the storage device 700 includes, but is not limited to: personal computers, servers, general purpose computers, special purpose computers, network devices, embedded devices, programmable devices, intelligent mobile terminals, etc., the specific embodiments may be as follows:
a storage device 700 having stored therein a set of instructions for performing:
and acquiring corresponding format file templates and style rule information according to the electronic bill information and the format file format. The method specifically may be to obtain a corresponding format file template from a database according to a template field in the electronic bill data, for example: OFD, PDF, PNG, in this embodiment, taking the OFD format as an example, an OFD format file template is obtained, and corresponding style rule information is obtained, where the style rule information includes: the information description list of the layout display elements (such as a style information description list of the position, font size, length, corresponding electronic bill data fields and the like of the layout display elements) is mainly used for describing which information needs to be filled into the layout file template, and in what format the data information needs to be filled into the layout file template. Wherein the template field comprises: ticket codes, template numbers, etc.
And filling the electronic bill information into the format file template according to the style rule information to generate a first format file. The method comprises the following steps: traversing the layout display elements, acquiring corresponding contents from the electronic bill information, and filling the contents into the layout file module according to preset rules; the layout display element comprises one or more of the following: text element, two-dimensional code element, status element, and seal element.
The specific filling can be as follows:
judging whether the text information is the text information, if the text information is the text information, converting according to style information according to the data field, filling the format file, if the text information is not the text information, judging whether the text information is the two-dimensional code element, if the text information is the two-dimensional code element, generating a two-dimensional code according to configuration extraction and arrangement of the data field, filling the format file, if the text information is not the two-dimensional code element, judging whether the text information is the state element, acquiring a state picture according to a bill state, filling the format file, if the text information is not the state element, judging whether the text information is the seal element, if the text information is the seal element, acquiring the seal picture according to bill unit information and supervision information, filling the format file, and finally generating the first format file.
Embedding the electronic bill information into the first format file in an accessory mode. Because not all electronic bill information is filled into the format file, all electronic bill information is embedded into the format file in an accessory mode, but because the embedding mode is preset by a transmitting end and a receiving end, the non-receiving end cannot read the whole content of the electronic bill information, and the electronic bill information has certain safety.
Generating a format abstract and signing, filling the signature value into the first format file, and generating a second format file. The method comprises the following steps: and extracting the abstract from the generated first format file, calling signature equipment to sign, filling the signature value into a signature area of the first format file, and generating a second format file. When the corresponding file is received by the subsequent receiving end through the signature, the signature can be verified to judge whether the corresponding file content is tampered by a person, so that the accuracy and the error-free performance of the file information content are ensured.
In this embodiment, preferably, to ensure security during the transmission of the electronic ticket, the instruction set further executes:
and randomly generating a symmetric encryption key, and symmetrically encrypting the second layout file to generate a third layout file.
And reading the pre-bound public key of the sending end and the receiving end which are preset in the public key library.
And performing asymmetric encryption operation on the symmetric encryption key by using the public key.
The generated key string is stored. The encrypted file can only be referred and operated by the sender and the proxy by using the private key corresponding to the public key.
The storage device 700 can perform unified rule description on different file type templates, unifies generation of format files, and directly embeds electronic bill data accessories in the format files, so that a machine can extract bill information in a mode of analyzing the accessories in a circulation process, and the method is efficient and error-free.
Finally, it should be noted that, although the foregoing embodiments have been described in the text and the accompanying drawings of the present application, the scope of the patent protection of the present application is not limited thereby. All technical schemes generated by replacing or modifying equivalent structures or equivalent flows based on the essential idea of the application and by utilizing the contents recorded in the text and the drawings of the application, and the technical schemes of the embodiments are directly or indirectly implemented in other related technical fields, and the like, are included in the patent protection scope of the application.

Claims (6)

1. The electronic bill generating method is characterized by comprising the following steps:
obtaining corresponding format file templates and style rule information according to the electronic bill information and the format file format;
filling the electronic bill information into the format file template according to the style rule information to generate a first format file;
embedding all electronic bill information into the first format file in an accessory mode;
generating a format abstract and signing, filling a signature value into the first format file, and generating a second format file;
the step of acquiring the corresponding format file template and style rule information according to the electronic bill information and the format file format includes: obtaining a corresponding format file template from a database according to template fields in the electronic bill data, wherein the format file template comprises one or more of the following: OFD, PDF, PNG, the style rule information includes: an information description list of layout display elements;
the step of filling the electronic bill information into the format file template according to the style rule information to generate a first format file, and specifically further comprises the steps of:
traversing the layout display elements, acquiring corresponding contents from the electronic bill information, and filling the contents into the layout file template according to preset rules;
the layout display element comprises one or more of the following: text element, two-dimensional code element, state element and seal element;
reading the second format file and judging whether the second format file is safe according to the signature, and if so, reading the first format file and judging the type of the format file;
calling a preset method for reading the accessories according to the format file type, and reading the corresponding accessories from the first format file;
and analyzing and applying the read accessory according to the data specification of the electronic bill.
2. The electronic ticket generating method as recited in claim 1, further comprising the step of:
the sending end randomly generates a symmetric encryption key, symmetrically encrypts the second format file and generates a third format file;
reading a public key which is preset in a public key library and is bound in advance by a sending end and a receiving end;
performing an asymmetric encryption operation on the symmetric encryption key using the public key;
the generated key string is stored.
3. The electronic ticket generating method as claimed in claim 2, further comprising the steps of:
the receiving end selects a private key corresponding to a public key pre-bound between the sending end and the receiving end of the public key library to perform decryption operation, and a symmetric encryption key is obtained;
and decrypting the encrypted third layout file by using the symmetric encryption key to obtain a second layout file.
4. An electronic ticket generating system, comprising: a transmitting end and a receiving end;
the transmitting end is used for: obtaining corresponding format file templates and style rule information according to the electronic bill information and the format file format;
filling the electronic bill information into the format file template according to the style rule information to generate a first format file;
embedding all electronic bill information into the first format file in an accessory mode;
generating a format abstract and signing, filling a signature value into the first format file, and generating a second format file;
the transmitting end is further configured to: obtaining a corresponding format file template from a database according to template fields in the electronic bill data, wherein the format file template comprises one or more of the following: OFD, PDF, PNG, the style rule information includes: an information description list of layout display elements;
the transmitting end is further configured to: traversing the layout display elements, acquiring corresponding contents from the electronic bill information, and filling the contents into the layout file template according to preset rules;
the layout display element comprises one or more of the following: text element, two-dimensional code element, state element and seal element;
the receiving end is used for: reading the second format file and judging whether the second format file is safe according to the signature, and if so, reading the first format file and judging the type of the format file;
calling a preset method for reading the accessories according to the format file type, and reading the corresponding accessories from the first format file;
and analyzing and applying the read accessory according to the data specification of the electronic bill.
5. The electronic ticket generating system of claim 4, wherein said receiving end is further configured to: selecting a private key corresponding to a public key pre-bound between a sending end and a receiving end of a public key library to perform decryption operation to obtain a symmetric encryption key;
and decrypting the encrypted third layout file by using the symmetric encryption key to obtain a second layout file.
6. A storage device having stored therein a set of instructions for performing: a method of electronic ticket generation as claimed in any one of claims 1 to 3.
CN202111644399.3A 2021-12-30 2021-12-30 Electronic bill generation method, system and storage device Active CN114298006B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111644399.3A CN114298006B (en) 2021-12-30 2021-12-30 Electronic bill generation method, system and storage device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111644399.3A CN114298006B (en) 2021-12-30 2021-12-30 Electronic bill generation method, system and storage device

Publications (2)

Publication Number Publication Date
CN114298006A CN114298006A (en) 2022-04-08
CN114298006B true CN114298006B (en) 2023-05-09

Family

ID=80972497

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111644399.3A Active CN114298006B (en) 2021-12-30 2021-12-30 Electronic bill generation method, system and storage device

Country Status (1)

Country Link
CN (1) CN114298006B (en)

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109919014A (en) * 2019-01-28 2019-06-21 平安科技(深圳)有限公司 OCR recognition methods and its electronic equipment

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9639830B2 (en) * 2014-03-10 2017-05-02 Aliaswire, Inc. Methods, systems, and devices to dynamically customize electronic bill presentment and payment workflows
CN106485556A (en) * 2016-10-21 2017-03-08 百望股份有限公司 A kind of electronic invoice generates system
CN110909383A (en) * 2019-11-15 2020-03-24 深圳市网心科技有限公司 Electronic invoice management method and device, electronic equipment and storage medium
CN111898982A (en) * 2020-07-23 2020-11-06 百望股份有限公司 Electronic invoice generation method

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109919014A (en) * 2019-01-28 2019-06-21 平安科技(深圳)有限公司 OCR recognition methods and its electronic equipment

Also Published As

Publication number Publication date
CN114298006A (en) 2022-04-08

Similar Documents

Publication Publication Date Title
CN105719120B (en) A method of encryption express delivery list privacy information
US20030028774A1 (en) Ensuring the integrity of an electronic document
EP2301177B1 (en) A nfc device and method for selectively securing records in a near field communication data exchange format message
CN100565546C (en) A kind of method of checking contents of paper file whether to be distorted
CN108512830B (en) Information encryption processing method and device, computer equipment and storage medium
US20090031135A1 (en) Tamper Proof Seal For An Electronic Document
CN112597455A (en) Document anti-counterfeiting method and device
CN101834726A (en) Safe encryption method based on bi-dimensional codes
CN110532808A (en) A kind of electronic signature method based on electronic document image object
US20130013647A1 (en) Method and device for importing backup data for a mobile terminal
CN110210270A (en) Two-dimensional barcode information safety encryption and system and image in 2 D code analytic method and system
CN111242259B (en) Intelligent anti-counterfeiting code encoding and decoding method and system
CN104361293A (en) Methods and devices for generating and distinguishing anti-counterfeiting paper document
CN113064562A (en) Man-machine interaction printing method and system based on block chain
US20070133792A1 (en) Image processing apparatus, control method therefor, computer program, and computer-readable storage medium
CN115795538A (en) Desensitization document anti-desensitization method, apparatus, computer device and storage medium
CN114298006B (en) Electronic bill generation method, system and storage device
WO2012142061A1 (en) Authentic barcodes using digital signatures
CN101281665A (en) Method for preventing false bills
CN115859370B (en) Transaction data processing method, device, computer equipment and storage medium
CN109214488B (en) Method and system for information transmission based on graphic coded data
KR102138077B1 (en) System and method for preventing forgery and alteration of documents
CN108629530A (en) Information processing method and device
KR102570688B1 (en) Data security apparatus
KR20220051510A (en) Device, method and computer program for protecting image including personal information

Legal Events

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