CN116384356B - Method, device, equipment and medium for creating form row of OFD file - Google Patents

Method, device, equipment and medium for creating form row of OFD file Download PDF

Info

Publication number
CN116384356B
CN116384356B CN202310647376.0A CN202310647376A CN116384356B CN 116384356 B CN116384356 B CN 116384356B CN 202310647376 A CN202310647376 A CN 202310647376A CN 116384356 B CN116384356 B CN 116384356B
Authority
CN
China
Prior art keywords
text field
target
table row
row
width
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
CN202310647376.0A
Other languages
Chinese (zh)
Other versions
CN116384356A (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.)
Fuxin Kunpeng Beijing Information Technology Co ltd
Original Assignee
Fuxin Kunpeng Beijing Information Technology 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 Fuxin Kunpeng Beijing Information Technology Co ltd filed Critical Fuxin Kunpeng Beijing Information Technology Co ltd
Priority to CN202310647376.0A priority Critical patent/CN116384356B/en
Publication of CN116384356A publication Critical patent/CN116384356A/en
Application granted granted Critical
Publication of CN116384356B publication Critical patent/CN116384356B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/166Editing, e.g. inserting or deleting
    • G06F40/177Editing, e.g. inserting or deleting of tables; using ruled lines
    • G06F40/18Editing, e.g. inserting or deleting of tables; using ruled lines of spreadsheets
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/30Computing systems specially adapted for manufacturing

Landscapes

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

Abstract

The application provides a table row creation method, a device, equipment and a medium of an OFD file, which relate to the technical field of document processing and acquire attribute information of a target table row based on target operation when the target operation for the OFD file is detected; the target operation is used for indicating to create a target table row in the OFD file; determining the number of text field controls corresponding to the target form row and the width of each text field control based on the attribute information of the target form row and the parameter information of the pre-acquired text field controls; the text field control is used for editing the contents of the target form row; and based on the number of the text field controls and the width of each text field control, creating the target table row in the OFD file, thereby improving the efficiency of creating the table in the OFD file.

Description

Method, device, equipment and medium for creating form row of OFD file
Technical Field
The present application relates to the field of document processing technologies, and in particular, to a method, an apparatus, a device, and a medium for creating a table row of an OFD file.
Background
An Open-layout Document (OFD) format file is an electronic Document format, which is released by the national standard office of the people's republic, and is intended to replace other electronic Document formats, such as a portable file format (Portable Document Format, PDF). An OFD file is typically composed of a plurality of document pages, and as document elements, a table is one of the most common presentation contents in an OFD.
In the prior art, documents are generated through PDF drawing tables or other editors, and then are converted into OFD tables through a conversion tool, or the effects of the tables are drawn through drawing lines and characters, so that the creation efficiency of the OFD document tables is low.
Disclosure of Invention
The application provides a method, a device, equipment and a medium for creating a form row of an OFD file, which are used for solving the defect of low creation efficiency of an OFD document form in the prior art and realizing quick and dynamic creation of an editable form based on the OFD document.
The application provides a table row creation method of an OFD file, which comprises the following steps:
when detecting a target operation aiming at an OFD file, acquiring attribute information of a target table row based on the target operation;
the target operation is used for indicating the creation of the target table row in the OFD file;
determining the number of the text field controls corresponding to the target form row and the width of each text field control based on the attribute information of the target form row and the parameter information of the pre-acquired text field controls;
the text field control is used for editing the content of the target table row;
and creating the target table row in the OFD file based on the number of the text field controls and the width of each text field control.
According to the table row creation method of the OFD file, the attribute information of the target table row comprises the following steps: position, line width, line height, and at least one fill data set.
According to the method for creating the table row of the OFD file provided by the application, the number of the text field controls corresponding to the target table row and the width of each text field control are determined based on the attribute information of the target table row and the parameter information of the pre-acquired text field control, and the method comprises the following steps:
determining the number of the text field controls based on the number of the filling data sets;
determining the width of the text field control based on the line width of the target table line and the number of the text field controls;
according to the method for creating the table row of the OFD file provided by the application, the method for creating the target table row in the OFD file based on the number of the text field controls and the width of each text field control comprises the following steps:
step 1, creating the text field controls one by one based on the number of the text field controls and the width of the text field controls;
step 2, adding the content of the text field control based on the filling data set of the target table row;
repeating the step 1 and the step 2 until the creation of the target table row is completed.
According to the table row creation method of the OFD file, the parameter information of the text field control comprises at least one of line width, content font, content word size, text color, filling color of the text field control and frame line color of the text field control.
According to the table row creation method of the OFD file, the number of the text field controls is the same as the number of the filling data sets.
The application also provides a table row creation device of the OFD file, which comprises:
the acquisition module is used for acquiring attribute information of a target table row based on target operation when the target operation aiming at the OFD file is detected;
the target operation is used for indicating the creation of the target table row in the OFD file;
the determining module is used for determining the number of the text field controls corresponding to the target form row and the width of each text field control based on the attribute information of the target form row and the parameter information of the pre-acquired text field controls;
the text field control is used for editing the content of the target table row;
the creating module is used for creating the target table row in the OFD file based on the number of the text field controls and the width of each text field control.
The application also provides electronic equipment, which comprises a memory, a processor and a computer program stored on the memory and capable of running on the processor, wherein the processor realizes the method for creating the table row of the OFD file according to any one of the above when executing the program.
The present application also provides a non-transitory computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements a table row creation method of an OFD file as described in any one of the above.
According to the table row creation method, device, equipment and medium of the OFD file, when the target operation for the OFD file is detected, the attribute information of the target table row is acquired based on the indication in the target operation, wherein the target operation is used for indicating the creation of the target table row in the OFD file; based on the acquired attribute information of the target table row and the acquired parameter information of the text field control in advance, the number of the text field controls to be created in the target table row and the width of each text field control are calculated, the text field control can edit the content in the target table row, then the corresponding target table row is created in the OFD file based on the number and the width of the text field control, and due to the flexibility and the rapidity of the text field control, the method and the device realize the dynamic and rapid creation of the target table row in the OFD file through the text field control, and improve the efficiency of creating the table in the OFD file.
Drawings
In order to more clearly illustrate the application or the technical solutions of the prior art, the following description will briefly explain the drawings used in the embodiments or the description of the prior art, and it is obvious that the drawings in the following description are some embodiments of the application, and other drawings can be obtained according to the drawings without inventive effort for a person skilled in the art.
Fig. 1 is a schematic flow chart of a table row creating method of an OFD file provided by the present application;
FIG. 2 is a second flow chart of a method for creating a table row of an OFD file according to the present application;
FIG. 3 is a third flow chart of a method for creating a table row of an OFD file according to the present application;
fig. 4 is a schematic diagram of the result of the method for creating a table row of an OFD file provided by the present application;
fig. 5 is one of schematic structural diagrams of a table row creating apparatus of an OFD file provided by the present application;
FIG. 6 is a second schematic diagram of a table row creating device for an OFD file according to the present application;
fig. 7 is a schematic structural diagram of an electronic device provided by the present application.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the present application more apparent, the technical solutions of the present application will be clearly and completely described below with reference to the accompanying drawings, and it is apparent that the described embodiments are some embodiments of the present application, not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the application without making any inventive effort, are intended to be within the scope of the application.
In order to facilitate a clearer understanding of various embodiments of the present application, some relevant background knowledge is first presented as follows.
An Open-layout Document (OFD) is a national format Document format standard in China— "GB/T33190-2016 electronic file storage and exchange format-format Document". The layout file is not affected by the equipment, and the layout is fixed. The method is completely consistent with the paper file in aspects of format, layout, fonts, font sizes and the like. The characteristics of format document format make it an ideal document format for serious electronic document publishing, digital information dissemination and archiving.
Generating a document containing a required form through a PDF drawing form or through other editors, and converting the document into a corresponding file in an OFD format through a conversion tool; or the table is represented by drawing lines in the OFD format file, so that the method has the defects of high modification cost and low creation efficiency.
In summary, in order to improve efficiency and convenience of table row creation in an OFD format file, a user may directly perform dynamic creation and editing of a table based on the OFD format file, so as to improve user experience, and the embodiments of the present application provide a method, an apparatus, an electronic device, and a storage medium for table row creation of an OFD file.
The method for creating the form row of the OFD file can be applied to the technical field of document processing, for example, the field of document format processing. Optionally, the method for creating the form line of the OFD file is implemented in an OFD document viewer or an OFD document editor, and the OFD document viewer or the OFD document editor comprises a function of adding a text field control and creating the form line. And executing the table row creation method of the OFD file to create the target table row. The execution subject of the application can be any electronic device capable of realizing the form line creation method of the OFD file, for example, any one of a smart phone, a smart watch, a desktop computer, a portable computer and the like.
The method, the device, the electronic equipment and the storage medium for creating the table row of the OFD file provided by the application are specifically described below with reference to fig. 1 to 5.
Fig. 1 is one of flow diagrams of a table row creating method of an OFD file provided by the present application, and referring to fig. 1, the method includes S1-S3, where:
s1, when a target operation aiming at an OFD file is detected, acquiring attribute information of a target table row based on the target operation;
the target operation is used for indicating to create a target table row in the OFD file;
in this step, the target operation is issued by a user using an OFD viewer or an OFD editor, typically by an instruction such as "create a table", without limitation. The target operation is for indicating the creation of a target table row in the OFD file. When a target operation for an OFD file is detected, attribute information of a target table row included in the target operation is acquired.
In a specific implementation, the target operation may be a single target operation that does not include the target table row parameter, and at this time, the table row is created according to attribute information of the target table row set by default; when the user sets the attribute information of the target table row, the target operation includes the attribute information of the target table row set by the user. That is, the attribute information of the target table rows can be flexibly preset, before each target table row is created, the attribute information of the target table row can be changed according to the actual needs of the user, if the attribute information of each target table row is not required to be changed, the attribute information of each finally created table row is the same.
S2, determining the number of text field controls corresponding to the target form row and the width of each text field control based on the attribute information of the target form row and the parameter information of the pre-acquired text field controls;
the text field control is used for editing the contents of the target form row;
in this step, the parameter information of the text field control is acquired while the attribute information of the target table row is acquired. In a specific implementation, the text field control in the embodiment is a control capable of editing input content, and the visual representation of the text field control in the OFD file can understand a text box in a common document. Based on the attribute information of the target table row and the parameter information of the text field controls, the number of the text field controls contained in the target table row and the width of each text field control can be determined, and the widths of all the text field controls in one table row are the same. The method of determining the number of text field controls corresponding to the target table row and the width of each text field control based on the attribute information of the target table row and the parameter information of the pre-acquired text field control is illustrated in the following embodiments.
S3, creating a target form row in the OFD file based on the number of the text field controls and the width of each text field control;
in this step, the text field controls are created one by one in the OFD file based on the number of the text field controls and the width of each text field control obtained in S2 described above. After the creation of the corresponding number of text field controls is completed, the creation of the target table row is completed.
According to the table row creating method of the OFD file, when the target operation for the OFD file is detected, the attribute information of the target table row is acquired based on the indication in the target operation, the number of the text field controls required to be created in the target table row and the width of each text field control are calculated based on the acquired attribute information of the target table row and the parameter information of the text field controls acquired in advance, then the corresponding target table row is created in the OFD file based on the number and the width of the text field controls, the table row creating method of the OFD file can be realized in a mode of adding the text field controls in an OFD file viewer or an OFD file editor, due to the editability of the text field controls, after the user completes creation of the target table row, editing and changing of contents in the target table row are allowed, flexibility of the creating method is further improved, dynamic quick creation of the target table row in the OFD file is realized through the text field controls, efficiency of creating the target table row is improved, the error rate of the OFD file is reduced through flexible editing of the target table row is also improved.
Based on the above embodiment, further, the attribute information of the target table row in S1 according to the present application provides a table row creation method of an OFD file, where the attribute information of the target table row includes: position, line width, line height, and at least one fill data set.
In the embodiment of the application, the user can preset the attribute of the target table row, and if the user has no special requirement on the attribute of the table row, the target table row is created according to the default set attribute. The attribute information of the target table row includes the creation position of the target table row, the row width and row height of the target table row, and the filling data set of the target table row.
Because the embodiment of the application realizes the creation of the table row through the text field control, the text field control is a control which can edit the content of the target table row, and thus, the filling data set of the target table row can be acquired simultaneously when the table row is created. In this embodiment, for example, a setting of attribute information of a target table row, the position of the target table row is set to [50,50], and the position of the target table row actually refers to the coordinates of the upper left corner of the target table row in the OFD file in china. Setting the row width of the target table row as 100, setting the row height of the target table row as 20, and setting the units of the row width and the row height of the target table row as OFD document units. The default padding data set is set to { "ID", "NAME", "SIZE", "component" }, i.e., the default padding data set contains four types of data.
According to the table row creating method of the OFD file, the attribute information of the target table row can be defaulted by using the device, or can be preset in advance by a user, so that the flexibility of creating the target table row is improved to a certain extent, and the use experience of the user is optimized.
Based on the above embodiment, further, the step S2 specifically includes the following steps, and fig. 2 is a second flow chart of a table row creating method of an OFD file provided by the present application, as shown in fig. 2, where the step S2 specifically includes:
s21, determining the number of text field controls based on the number of the filling data sets;
in this step, after the number of the padding data sets is obtained, since one type of data is filled in each text field control, the number of the text field controls and the number of the padding data sets are the same, and as exemplified in the above embodiment, the default padding data sets are { "ID" "" NAME "" "SIZE" "" command "}, that is, the number of the text field controls determined based on the padding data sets should be also 4.
S22, determining the width of the text field control based on the line width of the target form line and the number of the text field controls;
in this step, based on the above embodiment, the line width of the target table line is obtained to be 100, the number of the text field controls is the same as the number of the data types in the default filling data set and is 4, and since the format of each text field control in the table line is the same, the average calculation is performed, and the width of each text field control is 100/4, namely 25, where the width unit of the text field control is also the OFD document unit.
Based on the above embodiment, the creation format of the text field control is obtained, 4 text field controls need to be created in the target table row, the width of each text field control is 25, the height of the text field control is the row height of the target table row and is 20, and the units of the width and the height of the text field control are OFD document units.
According to the table row creating method of the OFD file, the width of the text field control is determined based on the row width of the target table row and the number of the text field controls, and the number of the text field controls to be created is determined based on the attribute of the target table row of the user, so that the efficiency of creating the table row in the OFD file is remarkably improved.
Based on the above embodiment, further, the step S3 specifically includes the following steps, fig. 3 is a third flow chart of a table row creating method of an OFD file provided by the present application, and as shown in fig. 3, the step S3 specifically includes:
step 1, creating text field controls one by one based on the number of the text field controls and the width of the text field controls;
in this step, the number of text field controls, and the width and height of each text field control are obtained based on the above embodiment, and the text field controls are created one by one.
Step 2, adding the content of the text field control based on the filling data set of the target table row;
in this step, after the creation of one text field control is completed, the contents in the filling dataset of the target table row are filled into the corresponding text field control, based on the above embodiment, in this step, the creation position of the first text field control in the target table row is [50,50], the width of the text field control is 25, the height of the text field control is 50, the first text field control in the target table row is created, and then the first type data in the default filling dataset { "ID", "NAME", "SIZE", "command" } of the target table row, that is, the contents in "ID" are filled into the first text field control in the target table row.
Repeating the step 1 and the step 2 until the creation of the target table row is completed.
Based on the above embodiment, the remaining 3 text field controls are created one by one, and the corresponding contents in the default filling data set are filled into the created text field controls, so as to finally form a target table row containing the contents of the default filling data set.
Fig. 4 is a schematic diagram of a result of a table row creating method of an OFD file provided by the present application, where, as shown in fig. 4, a target table row includes 4 text field controls with the same format, and each text field control is filled with contents in a corresponding default filling data set.
In particular implementations, since the text field control may be used to edit the contents of the target table row, after the target table row is created, the user is allowed to make subsequent edits and modifications to the contents in the created target table row.
According to the table row creation method of the OFD file, the text field controls are created one by one based on the number of the text field controls and the width of the text field controls, so that the table row is dynamically created in the OFD file, a user can create target table rows in different modes by modifying attribute information, default data sets and the like of the target table rows, and flexibility of creating the target table rows in the OFD file is improved.
Based on the above embodiment, further, the parameter information of the text field control includes at least one of a line width, a content font, a content word size, a text color, a text field control fill color, and a text field control box line color of the text field control.
In the embodiment of the application, the preset parameter information of the text field control is specifically that the line width of the text field control is 0.254, the font of the content of the text field control is Song Ti, the font size of the content of the text field control is 10, the text color of the text field control is black, the filling color of the text field control is 255,200,200,255, and the color of the text field control frame line is 255,0,255,0.
Based on the above embodiment, the number of the text field controls is the same as the number of the filling data sets.
The table row creating device of the OFD file provided by the present application is described below, and the table row creating device of the OFD file described below and the table row creating method of the OFD file described above can be referred to correspondingly to each other. Fig. 5 is one of schematic structural diagrams of a table row creating apparatus of an OFD file provided by the present application, and as shown in fig. 5, the table row creating apparatus of an OFD file includes:
an acquisition module 51 for acquiring attribute information of a target table row based on a target operation for an OFD file when the target operation is detected;
the target operation is used for indicating the creation of the target table row in the OFD file;
the determining module 52 is configured to determine, based on attribute information of the target table row and parameter information of the text field controls acquired in advance, the number of the text field controls corresponding to the target table row and the width of each text field control;
the text field control is used for editing the contents of the target form row;
the creating module 53 is configured to create a target table row in the OFD file based on the number of text field controls and the width of each text field control.
The table row creating device of the OFD file provided by the embodiment realizes the dynamic and rapid creation of the table row in the OFD file through the mutual coordination of the modules. When the acquisition module detects target operation aiming at the OFD file, the attribute information of a target table row is acquired based on the indication in the target operation, the determination module calculates the number of text field controls to be created in the target table row and the width of each text field control based on the acquired attribute information of the target table row and the parameter information of the pre-acquired text field control, and the creation module creates a corresponding target table row in the OFD file based on the number and the width of the text field controls.
The table row creating device of the OFD file can be realized by adding the text field control in the OFD file viewer or the OFD file editor, and due to the editability of the text field control, a user is allowed to edit and change the content in the target table row after the creation of the target table row is completed, so that the flexibility of the creating method is further improved, the table row creating method of the OFD file provided by the embodiment realizes the dynamic and rapid creation of the target table row in the OFD file through the text field control, the efficiency and the editing efficiency of creating the table in the OFD file are improved, and the creating error rate of the target table row is also reduced through flexible presetting.
Based on the above embodiment, further, the above determining module 52 specifically includes the following units, fig. 6 is a second schematic diagram of the structure of the table row creating device of the OFD file provided by the present application, and as shown in fig. 6, the above determining module 52 specifically includes:
a first determining unit 521, configured to determine the number of text field controls based on the number of the filling data sets;
in the first determining unit, after the number of padding data sets is acquired, since one type of data is padded in each text field control, the number of text field controls and the number of padding data sets are the same, and as exemplified in the above embodiment, the default padding data sets are { "ID" "" NAME "" "SIZE" "" command "}, that is, the number of text field controls determined based on the padding data sets should also be 4.
A second determining unit 522, configured to determine a width of the text field control based on a line width of the target table line and the number of text field controls;
in the second determining unit, based on the above embodiment, the line width of the target table line is 100, the number of the text field controls is the same as the number of the data types in the default filling data set, and is 4, and since the format of each text field control in the table line is the same, the average calculation is performed, the width of each text field control is 100/4, that is, 25, and the width unit of the text field control is also the OFD document unit.
Based on the above embodiment, the creation format of the text field control is obtained, 4 text field controls need to be created in the target table row, the width of each text field control is 25, the height of the text field control is the row height of the target table row and is 20, and the units of the width and the height of the text field control are OFD document units.
Fig. 7 illustrates a physical schematic diagram of an electronic device, as shown in fig. 7, which may include: processor 710, communication interface (Communications Interface) 720, memory 730, and communication bus 740, wherein processor 710, communication interface 720, memory 730 communicate with each other via communication bus 740. Processor 710 may invoke logic instructions in memory 730 to perform a table row creation method for an OFD file, the method comprising: when detecting a target operation aiming at an OFD file, acquiring attribute information of a target table row based on the target operation; wherein the target operation is used for indicating to create the target table row in the OFD file; determining the number of the text field controls corresponding to the target form row and the width of each text field control based on the attribute information of the target form row and the parameter information of the pre-acquired text field controls; the text field control is used for editing the content of the target table row; and creating the target table row in the OFD file based on the number of the text field controls and the width of each text field control.
Further, the logic instructions in the memory 730 described above may be implemented in the form of software functional units and may be stored in a computer readable storage medium when sold or used as a stand alone product. Based on this understanding, the technical solution of the present application may be embodied essentially or in a part contributing to the prior art or in a part of the technical solution, in the form of a software product stored in a storage medium, comprising several instructions for causing a computer device (which may be a personal computer, a server, a network device, etc.) to perform all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
In another aspect, the present application also provides a computer program product, the computer program product including a computer program, the computer program being storable on a non-transitory computer readable storage medium, the computer program, when executed by a processor, being capable of executing a table row creation method of an OFD file provided by the above methods, the method comprising: when detecting a target operation aiming at an OFD file, acquiring attribute information of a target table row based on the target operation; wherein the target operation is used for indicating to create the target table row in the OFD file; determining the number of the text field controls corresponding to the target form row and the width of each text field control based on the attribute information of the target form row and the parameter information of the pre-acquired text field controls; the text field control is used for editing the content of the target table row; and creating the target table row in the OFD file based on the number of the text field controls and the width of each text field control.
In still another aspect, the present application also provides a non-transitory computer-readable storage medium having stored thereon a computer program which, when executed by a processor, is implemented to perform a table row creation method of an OFD file provided by the above methods, the method comprising: when detecting a target operation aiming at an OFD file, acquiring attribute information of a target table row based on the target operation; wherein the target operation is used for indicating to create the target table row in the OFD file; determining the number of the text field controls corresponding to the target form row and the width of each text field control based on the attribute information of the target form row and the parameter information of the pre-acquired text field controls; the text field control is used for editing the content of the target table row; and creating the target table row in the OFD file based on the number of the text field controls and the width of each text field control.
The apparatus embodiments described above are merely illustrative, wherein the elements illustrated as separate elements may or may not be physically separate, and the elements shown as elements may or may not be physical elements, may be located in one place, or may be distributed over a plurality of network elements. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment. Those of ordinary skill in the art will understand and implement the present application without undue burden.
From the above description of the embodiments, it will be apparent to those skilled in the art that the embodiments may be implemented by means of software plus necessary general hardware platforms, or of course may be implemented by means of hardware. Based on this understanding, the foregoing technical solution may be embodied essentially or in a part contributing to the prior art in the form of a software product, which may be stored in a computer readable storage medium, such as ROM/RAM, a magnetic disk, an optical disk, etc., including several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the method described in the respective embodiments or some parts of the embodiments.
Finally, it should be noted that: the above embodiments are only for illustrating the technical solution of the present application, and are not limiting; although the application has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the present application.

Claims (7)

1. A method for creating a form row of an open layout document OFD file, comprising:
acquiring attribute information of a target table row based on a target operation when the target operation for an OFD file is detected, wherein the target operation is used for indicating the creation of the target table row in the OFD file;
determining the number of text field controls corresponding to the target form row and the width of each text field control based on the attribute information of the target form row and the parameter information of the pre-acquired text field controls, wherein the text field controls are used for editing the content of the target form row;
creating the target table row in the OFD file based on the number of the text field controls and the width of each text field control;
the attribute information of the target table row includes: position, line width, line height, and at least one fill dataset;
the determining the number of the text field controls corresponding to the target form row and the width of each text field control based on the attribute information of the target form row and the parameter information of the pre-acquired text field controls comprises the following steps:
determining the number of the text field controls based on the number of the filling data sets;
and determining the width of the text field control based on the line width of the target table line and the number of the text field controls.
2. The method for creating a table row of an OFD file according to claim 1, wherein the creating the target table row in the OFD file based on the number of the text field controls and the width of each of the text field controls comprises:
step 1, creating the text field controls one by one based on the number of the text field controls and the width of the text field controls;
step 2, adding the content of the text field control based on the filling data set of the target table row;
repeating the step 1 and the step 2 until the creation of the target table row is completed.
3. The method for creating the table row of the OFD file according to claim 1, wherein the parameter information of the text field control includes at least one of a line width, a content font size, a text color, a text field control fill color, and a text field control box line color of the text field control.
4. The method for creating a table row of an OFD file according to claim 1, wherein the number of the text field controls is the same as the number of the filling data sets.
5. A form line creation apparatus of an OFD file, comprising:
the acquisition module is used for acquiring attribute information of a target table row based on target operation when the target operation aiming at the OFD file is detected;
the target operation is used for indicating the creation of the target table row in the OFD file;
the determining module is used for determining the number of the text field controls corresponding to the target form row and the width of each text field control based on the attribute information of the target form row and the parameter information of the pre-acquired text field controls;
the text field control is used for editing the content of the target table row;
the creating module is used for creating the target table row in the OFD file based on the number of the text field controls and the width of each text field control;
the attribute information of the target table row includes: position, line width, line height, and at least one fill dataset;
the determining the number of the text field controls corresponding to the target form row and the width of each text field control based on the attribute information of the target form row and the parameter information of the pre-acquired text field controls comprises the following steps:
determining the number of the text field controls based on the number of the filling data sets;
and determining the width of the text field control based on the line width of the target table line and the number of the text field controls.
6. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the processor implements the method for creating a table row of an OFD file according to any one of claims 1 to 4 when executing the program.
7. A non-transitory computer-readable storage medium having stored thereon a computer program, characterized in that the computer program, when executed by a processor, implements the table row creation method of the OFD file according to any one of claims 1 to 4.
CN202310647376.0A 2023-06-02 2023-06-02 Method, device, equipment and medium for creating form row of OFD file Active CN116384356B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310647376.0A CN116384356B (en) 2023-06-02 2023-06-02 Method, device, equipment and medium for creating form row of OFD file

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310647376.0A CN116384356B (en) 2023-06-02 2023-06-02 Method, device, equipment and medium for creating form row of OFD file

Publications (2)

Publication Number Publication Date
CN116384356A CN116384356A (en) 2023-07-04
CN116384356B true CN116384356B (en) 2023-08-22

Family

ID=86979099

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310647376.0A Active CN116384356B (en) 2023-06-02 2023-06-02 Method, device, equipment and medium for creating form row of OFD file

Country Status (1)

Country Link
CN (1) CN116384356B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109492211A (en) * 2018-11-13 2019-03-19 江西金格科技股份有限公司 A kind of table extracting method based on OFD document
CN111753500A (en) * 2020-07-07 2020-10-09 江苏中威科技软件系统有限公司 Method for merging and displaying formatted electronic form and OFD (office file format) and generating catalog
CN111767698A (en) * 2020-07-07 2020-10-13 江苏中威科技软件系统有限公司 Electronic form system based on OFD format file technology
CN114970487A (en) * 2022-07-27 2022-08-30 中建电子商务有限责任公司 Method for generating OFD electronic contract based on rich text
CN115757272A (en) * 2022-10-17 2023-03-07 福昕鲲鹏(北京)信息科技有限公司 Method and system for converting HTML file into OFD file

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9465801B2 (en) * 2013-01-29 2016-10-11 Transbit Technologies Software Private Limited Method and system for automatic processing and management of technical digital documents and drawings
CN104346322B (en) * 2013-08-08 2018-07-10 北大方正集团有限公司 Document format processing unit and document format processing method

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109492211A (en) * 2018-11-13 2019-03-19 江西金格科技股份有限公司 A kind of table extracting method based on OFD document
CN111753500A (en) * 2020-07-07 2020-10-09 江苏中威科技软件系统有限公司 Method for merging and displaying formatted electronic form and OFD (office file format) and generating catalog
CN111767698A (en) * 2020-07-07 2020-10-13 江苏中威科技软件系统有限公司 Electronic form system based on OFD format file technology
CN114970487A (en) * 2022-07-27 2022-08-30 中建电子商务有限责任公司 Method for generating OFD electronic contract based on rich text
CN115757272A (en) * 2022-10-17 2023-03-07 福昕鲲鹏(北京)信息科技有限公司 Method and system for converting HTML file into OFD file

Also Published As

Publication number Publication date
CN116384356A (en) 2023-07-04

Similar Documents

Publication Publication Date Title
US20150046797A1 (en) Document format processing apparatus and document format processing method
CN100356372C (en) Generating method of computer format document and opening method
CN110705237B (en) Automatic document generation method, data processing device and storage medium
CN103455475B (en) Composition method, equipment and system
CN109857670B (en) Test report automatic generation method based on universal template
JPWO2008066142A1 (en) Form creation system, network system using the same, and form creation method.
CN110516186A (en) Page skeleton automatic generating method, equipment, storage medium and device
CN104820589A (en) Method and device for dynamically adapting webpage
CN111476006B (en) PDF file online annotation method, device, equipment and readable storage medium
JP2005044279A (en) Method, program and apparatus for business form processing
CN106933887A (en) A kind of data visualization method and device
CN107766011B (en) Printing control method, device and system
US20080282148A1 (en) Processing method for increasing speed of opening a word processing document
CN109783782B (en) Method, equipment, storage medium and device for generating electronic contract template
CN105512096B (en) A kind of optimization method and device based on font embedded in document
CN116384356B (en) Method, device, equipment and medium for creating form row of OFD file
CN111273903B (en) Webpage making method and device, computer equipment and computer storage medium
CN115935917A (en) Data processing method, device and equipment for visual chart and storage medium
CN116110065A (en) Method, device, computer equipment and storage medium for generating question card data
CN111191470A (en) Document translation method and device
CN111444452B (en) Webpage conversion method and device and storage medium
CN111126007B (en) HTM L-based medical record document paging algorithm
CN106598934A (en) Electronic book data display method and device, and terminal equipment
CN111914226A (en) Background picture generation method and device
CN117540704B (en) Data reverse perspective conversion method, device, equipment and medium of data table

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