Method for converting file of preset format into OFD format
A preset format and file conversion technology, which is applied in special data processing applications, instruments, electrical digital data processing, etc., can solve the problems of inability to directly convert OFD format, etc., and achieve convenient and unified management and operation, unified layout format, and visual good sex effect
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0026] like figure 1 , because there are many types of preset formats, this implementation example uses the xml format as an example to illustrate the method of converting an xml format document into OFD, including the following steps:
[0027] S1, inputting an xml template document and converting it into an OFD document;
[0028] S2. Locate the data of the xml template document in S1, and divide the content of the xml template document into content to be replaced and fixed content. Delete the content to be replaced and keep the fixed content to form a slot. And thus generate the OFD template file;
[0029] S3, input the xml document to be converted;
[0030] S4, extract the data of the xml document described in S3, and fill in the slot of the OFD template file described in S2;
[0031] S5, generating an output document in OFD format.
[0032] Specifically, in S1, xml refers to an extensible markup language that can be used to transmit and store data. Since xml structure...
Embodiment 2
[0045] Due to the large number of data sources, this implementation example uses sql as an example to illustrate the method of converting data in the database into OFD, including the following steps:
[0046] S1, extracting sql data with a preset format;
[0047] S2, extracting the sql data of the required fields in S1 to form the fixed content of the ODF template file, that is, the slot. And reserve the slot for the content to be replaced. Thus, an OFD template file is generated;
[0048] S3, extracting the sql data to be converted;
[0049] S4, filling the sql data described in S3 into the slot of the OFD template file described in S2;
[0050] S5, generating an output document in OFD format.
[0051] Specifically, in S1, sql data refers to data that can be obtained by querying the database with sql statements.
[0052] Specifically, the process of extracting data and filling slots in step S4 includes:
[0053] S401, judging the slot to which the sql data described in ...
Embodiment 3
[0056] Since there are many types of preset formats, this implementation example uses the csv format as an example to illustrate the method of converting a csv format document into OFD, including the following steps:
[0057] S1, input a csv template document and convert it into an OFD document;
[0058]S2, extracting the data of the required fields of the csv template document in S1, and dividing the content of the csv template document into content to be replaced and fixed content. Delete the content to be replaced and keep the fixed content to form a slot. And thus generate the OFD template file;
[0059] S3, input the csv file to be converted;
[0060] S4, extracting the data to be replaced in the csv document described in S3, and filling it into the slot of the OFD template file described in S2;
[0061] S5, generating an output document in OFD format.
[0062] Specifically, in S1, a csv document refers to tabular data stored in plain text.
[0063] Specifically, the...
PUM

Abstract
Description
Claims
Application Information

- Generate Ideas
- Intellectual Property
- Life Sciences
- Materials
- Tech Scout
- Unparalleled Data Quality
- Higher Quality Content
- 60% Fewer Hallucinations
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2025 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com