An OFD file generation method, device, equipment and storage medium

By using a software development kit to parse and generate OFD file templates and structured data templates, the problem of lack of custom styles and structured data was solved, enabling efficient generation of OFD files and standardized data extraction, thus improving the efficiency of electronic voucher usage.

CN115994528BActive Publication Date: 2025-11-11ZHEJIANG AISINO CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202211581483.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-12-09
Publication Date
2025-11-11
Estimated Expiration
2042-12-09

AI Technical Summary

Technical Problem

Existing technologies cannot generate custom OFD layouts and lack structured data storage standards, making OFD file generation complex and difficult to meet the needs of fields such as electronic vouchers.

Method used

The software development kit (SDK) is used to acquire user terminal data, parse target template information to generate OFD layout and structured data templates, and write the data into the templates, merge and package them to generate OFD files. It supports custom styles and storage of structured data.

Benefits of technology

It reduces the complexity of OFD file generation, provides a unified structured data standard, and improves the efficiency and promotion of its use in areas such as electronic invoices and bank documents.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115994528B_ABST
    Figure CN115994528B_ABST
Patent Text Reader

Abstract

This application discloses an OFD file generation method, apparatus, device, and storage medium, relating to the field of OFD electronic document technology. Applied to a software development kit (SDK), the method includes: acquiring object data uploaded by a user terminal; determining target template information in the SSD and parsing the Extensible Markup Language (XML) file in the target template information to obtain a target OFD layout template and a target OFD structured data template; writing the object data into the target OFD layout template and the target OFD structured data template respectively, and merging and packaging the generated data to obtain an OFD file. The technical solution of this application reduces the complexity of the OFD file generation process, provides a structured data standard scheme for subsequent OFD file extraction, and effectively improves the use and promotion of OFD files in fields such as electronic invoices and bank documents.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of OFD electronic document technology, and in particular to an OFD file generation method, apparatus, device, and storage medium. Background Technology

[0002] OFD (Open Fixed-layout Document) is one of my country's electronic document standards, serving as the standard for electronic document exchange and storage. It can be used to represent fixed-layout documents with specific formatting requirements. For example, when issuing electronic tax invoices, the Ministry of Finance pilots enterprises using OFD files to generate corresponding electronic voucher files. These electronic vouchers can serve as the basis for enterprise reimbursement, accounting, and archiving, and are currently widely used in Zhejiang Province.

[0003] Current technology only supports the parsing and encapsulation of OFD files, and cannot generate custom OFD layout styles. Furthermore, existing technology lacks a standard for storing structured data, which is not conducive to the subsequent use of OFD files.

[0004] In summary, how to reduce the complex technical problems in the OFD file generation process and provide a standard solution for extracting structured data from OFD files is a problem that needs to be solved. Summary of the Invention

[0005] In view of this, the purpose of this invention is to provide an OFD file generation method, apparatus, device, and storage medium that can reduce the complex technical problems in the OFD file generation process and provide a standard solution for subsequent extraction of structured data from OFD files. The specific solution is as follows:

[0006] In a first aspect, this application discloses an OFD file generation method, applied to a software development kit, comprising:

[0007] Retrieve object data uploaded by the user terminal;

[0008] The target template information in the software development kit is determined, and the Extensible Markup Language (XML) file in the target template information is parsed to obtain the target OFD board template and the target OFD structured data template.

[0009] The object data is written into the target OFD board template and the target OFD structured data template respectively, so that the generated result data are merged and packaged to obtain an OFD file.

[0010] Optionally, writing the object data into the target OFD board template includes:

[0011] Determine whether the object data matches the target OFD template based on the font size of the object data;

[0012] If the object data matches the target OFD template, the object data is directly written into the target OFD template.

[0013] If the object data does not match the target OFD template, the object data is adjusted according to a preset adjustment rule, and then the adjusted object data is written into the target OFD template.

[0014] Optionally, adjusting the object data according to a preset adjustment rule includes:

[0015] The target font size of the object data is determined based on the spatial width of the target OFD board template, and it is determined whether the target font size is less than a preset font size threshold.

[0016] If the target font size is smaller than the preset font size threshold, the object data will be dynamically wrapped according to the preset dynamic line wrapping rules to convert it into multiple lines for display.

[0017] If the target font size is not less than the preset font size threshold, the object data will be displayed based on the target font size.

[0018] Optionally, writing the object data into the target OFD structured data template includes:

[0019] Obtain the attachment directory obtained after parsing the Extensible Markup Language (XML) files in the target template information;

[0020] The object data is matched with the target OFD structured data template, and the resulting matching is used to create an attachment file in the attachment directory.

[0021] Optionally, writing the object data into the target OFD board template includes:

[0022] The target label in the target OFD board template is determined based on the object data.

[0023] The corresponding target field is determined based on the target label, and the object data is written into the target field.

[0024] Optionally, before obtaining the object data uploaded by the user terminal, the method further includes:

[0025] Draw corresponding OFD templates according to different business types, and add fields and labels to the OFD templates;

[0026] Based on the OFD template, a corresponding OFD structured data template is generated, and the OFD template and the OFD structured data template are imported into the software development kit.

[0027] Optionally, the OFD file generation method further includes:

[0028] Obtain the OFD file to be parsed using a Java interface;

[0029] The software development kit is used to parse the OFD file to be parsed, and the parsed data is matched with the OFD template and the OFD structured data template to extract the corresponding standard structured data from the OFD file to be parsed.

[0030] Secondly, this application discloses an OFD file generation apparatus for use in software development kits, comprising:

[0031] The object data acquisition module is used to acquire object data uploaded by the user terminal;

[0032] The template determination module is used to determine the target template information in the software development kit and parse the Extensible Markup Language (XML) file in the target template information to obtain the target OFD board template and the target OFD structured data template.

[0033] The OFD file generation module is used to write the object data into the target OFD board template and the target OFD structured data template respectively, so as to merge and package the generated result data to obtain an OFD file.

[0034] Thirdly, this application discloses an electronic device including a processor and a memory; wherein the memory is used to store a computer program, which is loaded and executed by the processor to implement the OFD file generation method as described above.

[0035] Fourthly, this application discloses a computer-readable storage medium for storing a computer program; wherein the computer program, when executed by a processor, implements the OFD file generation method as described above.

[0036] This application provides a method for generating OFD files, applied to a software development kit (SDK). First, object data uploaded by a user terminal is acquired. Then, target template information within the SSD is determined, and the Extensible Markup Language (XML) file in the target template information is parsed to obtain a target OFD layout template and a target OFD structured data template. Finally, the object data is written into the target OFD layout template and the target OFD structured data template respectively, and the generated results are merged and packaged to obtain the OFD file. Therefore, for SSD users, after determining the target template information in the SSD, they only need to write the object data uploaded by the user terminal into the OFD layout template and the OFD standard data structure template obtained after parsing the XML file to complete the entire OFD file generation. This technical solution reduces the complexity of the OFD file generation process, provides a unified structured data standard, and enables data extraction without relying on other devices, effectively improving the use and promotion of OFD files in fields such as electronic invoices and bank documents. In addition, OFD files can be parsed based on the template information in the software development kit, providing a solution for extracting standard structured data from OFD files.

[0037] In addition, the OFD file generation apparatus, device and storage medium provided in this application correspond to the above-mentioned OFD file generation method and have the same effect. Attached Figure Description

[0038] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on the provided drawings without creative effort.

[0039] Figure 1 This is a flowchart of an OFD file generation method disclosed in this application;

[0040] Figure 2 This application discloses a specific OFD file generation method flowchart;

[0041] Figure 3 This application discloses a specific OFD file generation method flowchart;

[0042] Figure 4 This is a schematic diagram of an OFD file generation method disclosed in this application;

[0043] Figure 5This is a schematic diagram of an OFD file generation device disclosed in this application;

[0044] Figure 6 This is a structural diagram of an electronic device disclosed in this application. Detailed Implementation

[0045] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.

[0046] Current technology only supports the parsing and encapsulation of OFD files, and cannot generate custom OFD layout styles. Furthermore, existing technology lacks a standard for storing structured data, which is not conducive to the subsequent use of OFD files.

[0047] To this end, this application provides an OFD file generation scheme that can reduce the complex technical problems in the OFD file generation process and provide a standard scheme for subsequent extraction of structured data from OFD files.

[0048] This invention discloses a method for generating OFD files, see [link to documentation]. Figure 1 As shown, applied to a software development kit, the method includes:

[0049] Step S11: Obtain object data uploaded by the user terminal.

[0050] In this embodiment of the application, during the process of generating the OFD file, the object data uploaded by the user terminal is first obtained. This object data is metadata, which is the metadata input by the user terminal when generating the OFD file for the current service.

[0051] Step S12: Determine the target template information in the software development kit, and parse the Extensible Markup Language (XML) file in the target template information to obtain the target OFD board template and the target OFD structured data template.

[0052] In this embodiment, it is applied to a Software Development Kit (SDK). An SDK is a software development kit written in the Java programming language that generates OFD files and structured data. It requires a Java container to run; generally, technical personnel need to set up a Java project and then import the SDK into the tool for secondary development.

[0053] It should be noted that the software development kit (SDK) includes pre-built templates for various types of electronic documents, such as electronic invoices, bank statements, and flight itineraries, along with corresponding standard structured data templates. Before using the SSD, different OFD template files are designed and drawn according to different business types, and then imported into the SSD. Corresponding OFD structured data template files are then generated and imported into the SSD. Specifically, corresponding OFD templates are drawn according to different business types, and fields and labels are added to these templates. Based on these OFD templates, corresponding OFD structured data templates are generated, and both the OFD templates and the OFD structured data templates are imported into the SSD.

[0054] In this embodiment, since different templates may be used when processing related business, the target template information in the software development kit (SDK) is determined. For example, when issuing invoices, different invoice types often correspond to different OFD templates. If a VAT electronic invoice is to be generated, the corresponding OFD template is a VAT electronic invoice template. Therefore, the corresponding template file information is initialized first; the template file information is initialized according to the required template type to determine the target template information. It should be noted that when initializing the corresponding template information, only the template format information needs to be initialized; the structured data template can be directly called.

[0055] Furthermore, by parsing the Extensible Markup Language (XML) file in the target template information, the target OFD board template and the target OFD structured data template are obtained.

[0056] Step S13: Write the object data into the target OFD board template and the target OFD structured data template respectively, so as to merge and package the generated result data to obtain an OFD file.

[0057] It is understood that the object data is provided by the customer. The object data provided by the customer is matched with the target OFD board template and the target OFD structured data template using the software development kit provided in this application. That is, the data is written into the board template and the structured data template respectively. In this way, the generated board data result is merged and packaged with the standardized structured data and assembled into the required OFD file.

[0058] In this embodiment, because fields and field labels were added to the OFD template when it was drawn before using the software development kit (SDK), each template has different fields, and labels are added to each field. <tag>Attributes allow for customization of the layout style based on fields and tags. Specifically, the target tags in the target OFD layout template are determined based on the object data, and the corresponding target fields are determined based on the target tags, so that the object data is written into the target fields. That is, the node fields in the layout template that correspond to the content to be filled are used.<ofd:TextObject> Added on <tag>The attribute can find the target tag, which can then match the data to the location where it needs to be written, and then write the data to the corresponding target field.

[0059] In one specific implementation, a method for writing object data into a target OFD board template is disclosed, see [link to relevant documentation]. Figure 2 As shown, the method includes:

[0060] Step S21: Determine whether the object data matches the target OFD template based on the font size of the object data.

[0061] Step S22: If the object data matches the target OFD template, then the object data is directly written into the target OFD template.

[0062] Step S23: If the object data does not match the target OFD template, the object data is adjusted according to the preset adjustment rules, and then the adjusted object data is written into the target OFD template.

[0063] In this embodiment, when writing object data into the target OFD template, an electronic document layout preview is achieved. During this process, there may be scenarios where the written data is too long, resulting in a poor preview effect. Therefore, the font size of the object data is used to determine whether it matches the space size of the node position in the template. That is, the width occupied by different font sizes is calculated to match the width of the template space, thus calculating a suitable font size for optimal display. It can be understood that if the current font size matches the template, it can be directly displayed using the current font size, and the object data can be directly written into the OFD template. If the current font size does not match the template, the object data is further adjusted using preset adjustment rules to ensure a reasonable display.

[0064] Specifically, the target font size of the object data is determined based on the space width of the target OFD template, and it is determined whether the target font size is less than a preset font size threshold. If the target font size is less than the preset font size threshold, the object data is dynamically wrapped according to a preset dynamic line wrapping rule to convert it into multiple lines for display. If the target font size is not less than the preset font size threshold, the object data is displayed based on the target font size. It is evident that this embodiment of the application can achieve adaptive font size and dynamic line wrapping. When the field space can be displayed in multiple lines, it will automatically convert it into multiple lines for display in conjunction with dynamic line wrapping rules, improving the user experience.

[0065] It should be noted that in cases of insufficient template space, this embodiment prioritizes reducing font size. For example, if the current template allows 50 characters to be displayed per line, but the current object data contains 55 characters, and reducing the font size allows for 60 characters of the current font size to be displayed per line, then the object data will be displayed in the reduced font size format. It is understandable that when there are too many characters in the object data, the font size cannot be reduced indefinitely, as this would also affect the visual experience. Therefore, setting a preset font size threshold allows the object data to be displayed normally. When the font size cannot be matched with the template even after reduction, a new line is displayed.

[0066] In another specific implementation, a method for writing object data into a target OFD structured data template is disclosed, see [link to relevant documentation]. Figure 3 As shown, the method includes:

[0067] Step S31: Obtain the attachment directory obtained after parsing the Extensible Markup Language file in the target template information.

[0068] Step S32: Match the object data with the target OFD structured data template, and use the matching results to create an attachment file in the attachment directory.

[0069] In this embodiment, structured data is written by locating the Attach directory through the Extensible Markup Language (OFL) file within the target template information. It is understood that the template itself is an OFD file, but it is empty and contains no data. After the object data is written to the OFD structured data template, an attachment file named "File Type_Related Time_Identifier Field.xml" will be created in this directory. This attachment file stores the structured data content. The generated structured data content is automatically generated by matching the OFD structured data template with the object data passed in by the user of the software development kit (SDK). The generated result data is then written to the attachment XML file for storage.

[0070] In this embodiment, after writing the object data into the target OFD layout template and the target OFD structured data template, the results of the two steps are merged and written back to the corresponding OFD directory. The generated data is then repackaged to generate a new OFD file containing layout content and standard structured data. In other words, the object data is converted using the standard structured template and stored as an attachment in the OFD file. Thus, for software development kit users, simply initializing the template, assembling the data, and calling the generation method are sufficient to complete the generation of the entire OFD file.

[0071] like Figure 4 The diagram shows the overall process for generating OFD files. First, the OFD template and the generated structured data template are packaged into the SDK package. Then, when using the SDK tool, the user inputs object data, and the tool writes the template's XML format file into the template and structured data respectively. The results from the two steps are then combined to assemble the data and obtain the OFD file.

[0072] Furthermore, the software development kit (SDK) in this embodiment can also parse the corresponding OFD files and extract standard structured data from them. Specifically, it obtains the OFD file to be parsed based on a JAVA interface; it parses the OFD file using the SSD, and matches the parsed data with the OFD template and the OFD structured data template to extract the corresponding standard structured data from the OFD file. In this way, by using the SSD tool in this embodiment, enterprises can generate corresponding electronic voucher files, and customers can extract standardized data for use, achieving unified standardization in the data flow process.

[0073] This application provides a method for generating OFD files, applied to a software development kit (SDK). First, object data uploaded by a user terminal is acquired. Then, target template information within the SSD is determined, and the Extensible Markup Language (XML) file in the target template information is parsed to obtain a target OFD layout template and a target OFD structured data template. Finally, the object data is written into the target OFD layout template and the target OFD structured data template respectively, and the generated results are merged and packaged to obtain the OFD file. Therefore, for SSD users, after determining the target template information in the SSD, they only need to write the object data uploaded by the user terminal into the OFD layout template and the OFD standard data structure template obtained after parsing the XML file to complete the entire OFD file generation. This technical solution reduces the complexity of the OFD file generation process, provides a unified structured data standard, and enables data extraction without relying on other devices, effectively improving the use and promotion of OFD files in fields such as electronic invoices and bank documents. In addition, OFD files can be parsed based on the template information in the software development kit, providing a solution for extracting standard structured data from OFD files.

[0074] Accordingly, this application also discloses an OFD file generation device, applied to a software development kit, see [link to relevant documentation]. Figure 5 As shown, the device includes:

[0075] Object data acquisition module 11 is used to acquire object data uploaded by the user terminal;

[0076] The template determination module 12 is used to determine the target template information in the software development kit and parse the Extensible Markup Language file in the target template information to obtain the target OFD board template and the target OFD structured data template.

[0077] OFD file generation module 13 is used to write the object data into the target OFD board template and the target OFD structured data template respectively, so as to merge and package the generated result data to obtain an OFD file.

[0078] For more detailed information on the working process of each of the above modules, please refer to the relevant content disclosed in the foregoing embodiments, which will not be repeated here.

[0079] Therefore, the above-described solution in this embodiment, applied to a software development kit (SDK), firstly acquires object data uploaded by the user terminal; then, determines the target template information in the SSD and parses the Extensible Markup Language (XML) file in the target template information to obtain a target OFD layout template and a target OFD structured data template; finally, writes the object data into the target OFD layout template and the target OFD structured data template respectively, merging and packaging the generated data to obtain an OFD file. Thus, for users of the SSD, after determining the target template information in the SSD, they only need to write the object data uploaded by the user terminal into the OFD layout template and the OFD standard data structure template obtained after parsing the XML file to complete the generation of the entire OFD file. The technical solution of this application reduces the complexity of the OFD file generation process, provides a unified structured data standard, and enables data extraction without relying on other devices, effectively improving the use and promotion of OFD files in fields such as electronic invoices and bank documents. In addition, OFD files can be parsed based on the template information in the software development kit, providing a solution for extracting standard structured data from OFD files.

[0080] Furthermore, embodiments of this application also disclose an electronic device, Figure 6 This is a structural diagram of an electronic device 20 according to an exemplary embodiment. The content of the diagram should not be construed as limiting the scope of this application.

[0081] Figure 6 This is a schematic diagram of the structure of an electronic device 20 provided in an embodiment of this application. Specifically, the electronic device 20 may include: at least one processor 21, at least one memory 22, a power supply 23, a communication interface 24, an input / output interface 25, and a communication bus 26. The memory 22 stores a computer program, which is loaded and executed by the processor 21 to implement the relevant steps in the OFD file generation method disclosed in any of the foregoing embodiments. Alternatively, the electronic device 20 in this embodiment may specifically be a computer.

[0082] In this embodiment, the power supply 23 is used to provide operating voltage for each hardware device on the electronic device 20; the communication interface 24 can create a data transmission channel between the electronic device 20 and external devices, and the communication protocol it follows can be any communication protocol applicable to the technical solution of this application, and is not specifically limited here; the input / output interface 25 is used to acquire external input data or output data to the outside world, and its specific interface type can be selected according to specific application needs, and is not specifically limited here.

[0083] In addition, the memory 22, as a carrier for resource storage, can be a read-only memory, random access memory, disk, or optical disk, etc. The resources stored on it can include an operating system 221, computer programs 222, and data 223, etc. The data 223 can include various types of data. The storage method can be temporary storage or permanent storage.

[0084] The operating system 221 is used to manage and control the various hardware devices on the electronic device 20 and the computer program 222, which may be Windows Server, Netware, Unix, Linux, etc. In addition to including a computer program capable of performing the OFD file generation method executed by the electronic device 20 as disclosed in any of the foregoing embodiments, the computer program 222 may further include computer programs capable of performing other specific tasks.

[0085] Furthermore, this application also discloses a computer-readable storage medium, which includes random access memory (RAM), main memory, read-only memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disks, magnetic disks, optical disks, or any other form of storage medium known in the art. The computer program, when executed by a processor, implements the aforementioned OFD file generation method. Specific steps of this method can be found in the corresponding content disclosed in the foregoing embodiments, and will not be repeated here.

[0086] The various embodiments in this specification are described in a progressive manner, with each embodiment focusing on its differences from other embodiments. Similar or identical parts between embodiments can be referred to interchangeably. For the apparatus disclosed in the embodiments, since it corresponds to the method disclosed in the embodiments, the description is relatively simple; relevant parts can be referred to in the method section.

[0087] The steps of OFD file generation or algorithms described in conjunction with the embodiments disclosed herein can be implemented directly by hardware, a software module executed by a processor, or a combination of both. The software module can be located in random access memory (RAM), main memory, read-only memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, removable disk, CD-ROM, or any other form of storage medium known in the art.

[0088] Finally, it should be noted that in this document, relational terms such as "first" and "second" are used only to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes said element.

[0089] The present invention provides a detailed description of an OFD file generation method, apparatus, device, and storage medium. Specific examples have been used to illustrate the principles and implementation methods of the present invention. The descriptions of the above embodiments are only for the purpose of helping to understand the method and core ideas of the present invention. At the same time, those skilled in the art will recognize that, based on the ideas of the present invention, there will be changes in the specific implementation methods and application scope. Therefore, the content of this specification should not be construed as a limitation of the present invention.< / tag> < / tag>

Claims

1. A method for generating OFD files, characterized in that, Applied to software development kits, including: Retrieve object data uploaded by the user terminal; The target template information in the software development kit is determined, and the Extensible Markup Language (XML) file in the target template information is parsed to obtain the target OFD board template and the target OFD structured data template. The object data is written into the target OFD board template and the target OFD structured data template respectively, so that the generated result data are merged and packaged to obtain an OFD file; Writing the object data into the target OFD structured data template includes: Obtain the attachment directory obtained after parsing the Extensible Markup Language (XML) file in the target template information; The object data is matched with the target OFD structured data template, and the matching results are used to create an attachment file in the attachment directory; Writing the object data into the target OFD board template includes: Determine the target label in the target OFD template based on the object data; The corresponding target field is determined based on the target label, and the object data is written into the target field; Before obtaining the object data uploaded by the user terminal, the process also includes: Draw corresponding OFD templates according to different business types, and add fields and labels to the OFD templates; Based on the OFD template, a corresponding OFD structured data template is generated, and the OFD template and the OFD structured data template are imported into the software development kit.

2. The OFD file generation method according to claim 1, characterized in that, Writing the object data into the target OFD board template includes: Determine whether the object data matches the target OFD template based on the font size of the object data; If the object data matches the target OFD template, the object data is directly written into the target OFD template. If the object data does not match the target OFD template, the object data is adjusted according to a preset adjustment rule, and then the adjusted object data is written into the target OFD template.

3. The OFD file generation method according to claim 2, characterized in that, The step of adjusting the object data according to the preset adjustment rules includes: The target font size of the object data is determined based on the spatial width of the target OFD board template, and it is determined whether the target font size is less than a preset font size threshold. If the target font size is smaller than the preset font size threshold, the object data will be dynamically wrapped according to the preset dynamic line wrapping rules to convert it into multiple lines for display. If the target font size is not less than the preset font size threshold, the object data will be displayed based on the target font size.

4. The OFD file generation method according to claim 1, characterized in that, Also includes: Obtain the OFD file to be parsed using a Java interface; The software development kit is used to parse the OFD file to be parsed, and the parsed data is matched with the OFD template and the OFD structured data template to extract the corresponding standard structured data from the OFD file to be parsed.

5. An OFD file generation device, characterized in that, Applied to software development kits, including: The object data acquisition module is used to acquire object data uploaded by the user terminal; The template determination module is used to determine the target template information in the software development kit and parse the Extensible Markup Language (XML) file in the target template information to obtain the target OFD board template and the target OFD structured data template. The OFD file generation module is used to write the object data into the target OFD board template and the target OFD structured data template respectively, so as to merge and package the generated result data to obtain an OFD file. The OFD file generation module is specifically used for: Obtain the attachment directory obtained after parsing the Extensible Markup Language (XML) files in the target template information; The object data is matched with the target OFD structured data template, and the matching results are used to create an attachment file in the attachment directory; Determine the target label in the target OFD template based on the object data; The corresponding target field is determined based on the target label, and the object data is written into the target field; The OFD file generation device is also used for: Draw corresponding OFD templates according to different business types, and add fields and labels to the OFD templates; Based on the OFD template, a corresponding OFD structured data template is generated, and the OFD template and the OFD structured data template are imported into the software development kit.

6. An electronic device, characterized in that, The electronic device includes a processor and a memory; wherein the memory is used to store a computer program, which is loaded and executed by the processor to implement the OFD file generation method as described in any one of claims 1 to 4.

7. A computer-readable storage medium, characterized in that, Used to store computer programs; wherein the computer programs, when executed by a processor, implement the OFD file generation method as described in any one of claims 1 to 4.