Interactive Form Processing Method, Device, Electronic Device, and Storage Medium

By obtaining and rearranging the structural information of the interactive form, generating forms that are suitable for the screen size of the mobile terminal, solving the difficulties of users when operating interactive forms on the mobile terminal, and improving the filling efficiency and user experience.

CN114004200BActive Publication Date: 2025-06-17ZHUHAI KINGSOFT OFFICE SOFTWARE +2
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202111223617.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-10-20
Publication Date
2025-06-17
Estimated Expiration
2041-10-20

AI Technical Summary

Technical Problem

In the prior art, when an interactive form is operated on a mobile terminal, it is difficult for the user to accurately click on the control after the form is reduced, the drop-down list is difficult to slide and select, and the filling process is cumbersome, which wastes user time.

Method used

By obtaining the table structure information and form field attribute information of the interactive form, rearranging the list structure, generating a second interactive form that is suitable for the screen size of the mobile terminal, and backfilling the filled-in data into the original form.

Benefits of technology

It improves the efficiency of users filling in mobile terminals, improves user experience, and makes form operations more intuitive and concise.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114004200B_ABST
    Figure CN114004200B_ABST
Patent Text Reader

Abstract

The present invention provides an interactive form processing method, apparatus, electronic device, and storage medium. The method includes: obtaining attribute information of each form field in a first interactive form and table structure information of the first interactive form, generating a second interactive form according to the obtained table structure information, attribute information of each form field, and rearrangement information, and then backfilling data filled in each form field in the second interactive form into the corresponding form field in the first interactive form to obtain a target file. By using the interactive form processing method provided by the present invention, the table structure of the first interactive form can be rearranged to obtain a second interactive form, and at the same time, the data filled in the second interactive form is backfilled into the first interactive form to obtain a target file. The generated second interactive form can adapt to the screen size of the terminal, improving the filling efficiency of users and enhancing the user experience.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of form operations, and in particular, to an interactive form processing method, apparatus, electronic device, and storage medium. Background Art

[0002] With the continuous application of interactive form data in people's daily lives, people's requirements for its operation methods are also getting higher and higher.

[0003] In the prior art, when operating interactive form data on a mobile terminal, if the form is reduced to fit the screen size, it is difficult for users to click, select, and fill in the controls due to the too small form size. For example, in the case where the interactive form is reduced, it is difficult for users to accurately click on the radio fields and checkbox fields in the interactive form, and it is extremely difficult to slide and select options in the dropdown list field in the interactive form. If the form is enlarged to a partial page, it is necessary to frequently reduce the form during the filling process to view the overall effect, and then enlarge the form to fill in the partial information, and the operation process is very cumbersome, wasting the user's time. It can be seen that the form structure of the current interactive form data has problems such as difficult form filling, poor filling efficiency, and poor user experience. Summary of the Invention

[0004] Based on the problems existing in the prior art, the present invention proposes an interactive form processing method, apparatus, electronic device, and storage medium. The interactive form processing method provided by the present invention can rearrange the form structure, and backfill the data into the source file, so that the generated target file can adapt to the screen size of the mobile terminal, and has the advantages of improving the user filling efficiency and enhancing the user experience.

[0005] In a first aspect, the present invention provides an interactive form processing method, including:

[0006] Obtaining the form structure information of the first interactive form and the attribute information of each form field in the first interactive form from a source file containing the first interactive form;

[0007] Generating a second interactive form according to the attribute information, rearrangement information, and form structure information of each form field in the first interactive form; wherein, the rearrangement information includes grouping information and rule information:

[0008] Backfilling the data filled in each form field in the second interactive form into the corresponding form field in the first interactive form to obtain a target file.

[0009] Among them, the form fields in the second interactive form are arranged in the second interactive form in a manner that adapts to the size of the first display screen, and there is a data binding relationship between the form fields in the second interactive form and the corresponding form fields in the first interactive form.

[0010] Furthermore, according to the interactive form processing method provided by the present invention, generating the second interactive form according to the attribute information, rearrangement information of each form field in the first interactive form, and the table structure information of the first interactive form includes:

[0011] Determining the type information and title information of each form field according to the attribute information of each form field in the first interactive form;

[0012] Determining grouping information or rule information for each form field in the first interactive form according to the type information of the form field;

[0013] Generating the second interactive form according to the table structure information of the first interactive form, the type information, title information, grouping information, and rule information of each form field in the first interactive form.

[0014] Furthermore, according to the interactive form processing method provided by the present invention, determining the type information of each form field according to the attribute information of each form field in the first interactive form includes:

[0015] Obtaining first attribute information from the attribute information of each form field in the first interactive form;

[0016] Determining the type information of each form field according to the first attribute information.

[0017] Furthermore, according to the interactive form processing method provided by the present invention, the type information of the form field includes any one or more of the following types: text form field, radio button form field, checkbox form field, combobox form field, listbox form field, and signature form field;

[0018] Correspondingly, determining the title information of each form field according to the attribute information of each form field in the first interactive form includes:

[0019] Obtaining second attribute information and third attribute information from the attribute information of each form field in the first interactive form;

[0020] In the case where the type information of the form field is a text form field, a combobox form field, or a listbox form field, using the information obtained from the second attribute information as the title information of the form field; in the case where the second attribute information is missing, using the information obtained from the third attribute information as the title information of the form field;

[0021] When the type information of the form field is a radio button form field or a checkbox form field, the information obtained from the third attribute information is used as the title information of the form field; when the third attribute information is missing, the information obtained from the second attribute information is used as the title information of the form field.

[0022] Further, according to the interactive form processing method provided by the present invention, the determining grouping information for each form field in the first interactive form according to the type information of the form field includes:

[0023] When the type information of the form field is a checkbox form field, obtain the coordinate information of each checkbox form field in the first interactive form;

[0024] Calculate the coordinate differences between the checkbox form fields and the adjacent checkbox form fields according to the coordinate information, and obtain the horizontal coordinate differences and vertical coordinate differences of each checkbox form field;

[0025] Compare the absolute values of the horizontal coordinate differences and the absolute values of the vertical coordinate differences of each checkbox form field with a preset threshold respectively, and determine the grouping information of the checkbox form fields according to the comparison results.

[0026] Further, according to the interactive form processing method provided by the present invention, the comparing the absolute values of the horizontal coordinate differences and the absolute values of the vertical coordinate differences of each checkbox form field with a preset threshold respectively, and determining the grouping information of the checkbox form fields according to the comparison results includes:

[0027] Calculate the horizontal coordinate difference and the vertical coordinate difference between the first checkbox form field and the second checkbox form field; wherein, the first checkbox form field and the second checkbox form field are any two adjacent checkbox form fields in the first interactive form;

[0028] According to the horizontal coordinate difference and the vertical coordinate difference between the first checkbox form field and the second checkbox form field and the preset threshold, divide each checkbox form field in the first interactive form into: one or more horizontal groups, and / or one or more vertical groups, and / or ungrouped checkbox form fields;

[0029] When there are ungrouped checkbox form fields, according to the position coordinates of the ungrouped checkbox form fields and the position coordinates of the checkbox form fields in the existing horizontal groups or vertical groups, classify the ungrouped checkbox form fields into the existing horizontal groups or existing vertical groups. When the ungrouped checkbox form fields are not successfully classified into the existing horizontal groups or existing vertical groups, set them as single groups;

[0030] Set titles for all the obtained horizontal groups, and / or all the vertical groups, and / or all the single groups, and combine the combinations with the same title into the same group.

[0031] Furthermore, according to the interactive form processing method provided by the present invention, each checkbox form field in the first interactive form is divided into: one or more horizontal groups, and / or one or more vertical groups, and / or ungrouped checkbox form fields according to the abscissa difference and ordinate difference between the first checkbox form field and the second checkbox form field and a preset threshold, including:

[0032] When the absolute value of the abscissa difference between the first checkbox form field and the second checkbox form field is less than or equal to the first threshold, and the absolute value of the ordinate difference between the first checkbox form field and the second checkbox form field is less than or equal to the second threshold, it is determined that the first checkbox form field and the second checkbox form field are in the same vertical group; wherein, the first threshold is a value used to describe the allowable error on the abscissa, and the second threshold is the maximum vertical spacing value;

[0033] When the absolute value of the ordinate difference between the first checkbox form field and the second checkbox form field is less than or equal to the fourth threshold, and the absolute value of the abscissa difference between the first checkbox form field and the second checkbox form field is less than or equal to the third threshold, it is determined that the first checkbox form field and the second checkbox form field are in the same horizontal group; wherein, the third threshold is the maximum horizontal spacing value; the fourth threshold is a value used to describe the allowable error on the ordinate.

[0034] Furthermore, according to the interactive form processing method provided by the present invention, in the case where there are ungrouped checkbox form fields, according to the position coordinates of the ungrouped checkbox form fields and the position coordinates of the checkbox form fields in the existing horizontal group or vertical group, the ungrouped checkbox form fields are classified into the existing horizontal group or the existing vertical group. In the case where the ungrouped checkbox form fields are not successfully classified into the existing horizontal group or the existing vertical group, they are set as single groups, including:

[0035] Calculate the abscissa difference and ordinate difference between the ungrouped checkbox form field and the third checkbox form field. When the absolute value of the abscissa difference is less than or equal to the first threshold, and the absolute value of the ordinate difference is less than or equal to the second threshold, classify the ungrouped checkbox form field into the group where the third checkbox form field is located; wherein, the third checkbox form field is the first checkbox form field in the first preset direction in any existing horizontal group; the first threshold is a value used to describe the allowable error on the abscissa, and the second threshold is the maximum vertical spacing value;

[0036] In the case where the ungrouped checkbox form field cannot be grouped into an existing horizontal group, calculate the horizontal coordinate difference and the vertical coordinate difference between the ungrouped checkbox form field and the fourth checkbox form field. When the absolute value of the horizontal coordinate difference is less than or equal to the first threshold and the absolute value of the vertical coordinate difference is less than or equal to the second threshold, group the ungrouped checkbox form field into the group where the fourth checkbox form field is located; wherein, the fourth checkbox form field is the last checkbox form field in a second preset direction in any existing vertical group.

[0037] In the case where the ungrouped checkbox form field cannot be grouped into an existing horizontal group and an existing vertical group, set the ungrouped checkbox form field as a single group.

[0038] Further, according to the interactive form processing method provided by the present invention, setting titles for all the obtained horizontal groups, and / or all the vertical groups, and / or all the single groups, and merging the groups with the same title into the same group includes:

[0039] Obtain the coordinate information and text information of all the text boxes in the first interactive form;

[0040] Obtain the coordinate information of the group according to the coordinate information of all the checkbox form fields in the group; wherein, the group is any one of the horizontal group, the vertical group and the single group;

[0041] Determine a corresponding text box for the group according to the coordinate information of the group and the coordinate information of the text box, and set the text information of the corresponding text box as the title of the group;

[0042] Merge the groups with the same title into the same group.

[0043] Further, according to the interactive form processing method provided by the present invention, the type information of the form field includes any one of the following types: text form field, radio button form field, checkbox form field, combo box form field, list box form field, and signature form field;

[0044] Correspondingly, determining rule information for each form field in the first interactive form according to the type information and text information of the form field includes:

[0045] When the type information of the form field is a text form field or a signature form field, set a text processing rule for the text form field;

[0046] When the type information of the form field is a combo box form field or a list box form field, obtain option list data and set a selection rule for whether multiple selections are allowed.

[0047] Further, according to the interactive form processing method provided by the present invention, generating a second interactive form according to the table structure information of the first interactive form, the type information, title information, grouping information, and rule information of each form field in the first interactive form includes:

[0048] Sorting each form field in the first interactive form according to the table structure information of the first interactive form;

[0049] Based on the type information, title information, grouping information, and rule information of each form field in the first interactive form, adjusting the display mode of each form field, and sorting the form fields with adjusted display modes according to the sorting result;

[0050] Replacing the controls of each sorted form field with the controls in the mobile operating system to generate a second interactive form.

[0051] Binding the form fields in the second interactive form to the corresponding form fields in the first interactive form.

[0052] Further, according to the interactive form processing method provided by the present invention, the adjusting the display mode of each form field based on the type information, title information, grouping information, and rule information of each form field in the first interactive form includes:

[0053] When the type information of the form field is a text form field, displaying the title information of the text form field above and the part to be filled in the text form field below.

[0054] Further, according to the interactive form processing method provided by the present invention, the adjusting the display mode of each form field based on the type information, title information, grouping information, and rule information of each form field in the first interactive form includes:

[0055] When the type information of the form field is a radio button form field or a checkbox form field, displaying the radio button form field or checkbox form field within the same group according to the grouping information; wherein, displaying the radio button form fields within the same group includes:

[0056] Displaying the title information of the radio button form field group above, and displaying the title information of the radio button form fields within the radio button form field group and the radio button form fields below;

[0057] Displaying the checkbox form fields within the same group includes:

[0058] Display the title information of the checkbox form field group above, and display the title information of the checkbox form fields within the checkbox form field group and the checkbox form fields below.

[0059] Furthermore, according to the interactive form processing method provided by the present invention, adjusting the display manner of each form field based on the type information, title information, grouping information, and rule information of each form field in the first interactive form includes:

[0060] When the type information of the form field is a combo box form field or a list box form field, generate a pop-up window corresponding to the combo box form field or the list box form field; wherein, each option in the combo box form field or the list box form field is arranged in the pop-up window in order from top to bottom.

[0061] Furthermore, according to the interactive form processing method provided by the present invention, adjusting the display manner of each form field based on the type information, title information, grouping information, and / or rule information of each form field in the first interactive form includes:

[0062] When the type information of the form field is a signature form field, generate a filling area for signature.

[0063] Furthermore, according to the interactive form processing method provided by the present invention, filling the data filled in each form field in the second interactive form back into the corresponding form field in the first interactive form to obtain a target file includes:

[0064] Bind the mobile native controls corresponding to each form field in the second interactive form to each form field in the first interactive form item by item to obtain a binding relationship;

[0065] According to the serial queue filling method and the obtained binding relationship, fill the data filled in each form field in the second interactive form back into the corresponding form field in the first interactive form to obtain a target file.

[0066] In a second aspect, the present invention also provides an interactive form processing device, including:

[0067] An acquisition module, configured to acquire the table structure information of the first interactive form and the attribute information of each form field in the first interactive form from a source file containing the first interactive form;

[0068] A rearrangement module, configured to generate a second interactive form according to the attribute information of each form field in the first interactive form, rearrangement information, and the table structure information of the first interactive form; wherein, the rearrangement information includes grouping information and rule information;

[0069] A backfill module, configured to backfill the data filled in each form field in the second interactive form into the corresponding form field in the first interactive form to obtain a target file;

[0070] Wherein, the form fields in the second interactive form are arranged in the second interactive form in a manner adapted to the size of the first display screen, and there is a data binding relationship between the form fields in the second interactive form and the corresponding form fields in the first interactive form.

[0071] In a third aspect, the present invention further provides an electronic device, including: a processor, a memory, and a bus, wherein,

[0072] The processor and the memory communicate with each other through the bus;

[0073] The memory stores program instructions executable by the processor, and the processor can execute the steps of the interactive form processing method as described in any one of the above by invoking the program instructions.

[0074] In a fourth aspect, the present invention further provides a non-transitory computer-readable storage medium, which stores computer instructions, and the computer instructions cause the computer to execute the steps of the interactive form processing method as described in any one of the above.

[0075] The interactive form processing method, apparatus, electronic device, and storage medium provided by the embodiments of the present invention obtain the attribute information of each form field in the first interactive form and the table structure information of the first interactive form, generate a second interactive form according to the obtained table structure information, the attribute information of each form field, and the rearrangement information, and then backfill the data filled in each form field in the second interactive form into the corresponding form field in the first interactive form to obtain a target file. Using the interactive form processing method provided by the present invention, the table structure of the first interactive form can be rearranged to obtain a second interactive form, and at the same time, the data filled in the second interactive form can be backfilled into the first interactive form to obtain a target file. The generated second interactive form can adapt to the screen size of the terminal, improve the user's filling efficiency, and enhance the user experience. BRIEF DESCRIPTION OF THE DRAWINGS

[0076] In order to more clearly illustrate the technical solutions in the present invention or the prior art, the following will briefly introduce the drawings required for the description of the embodiments or the prior art. Obviously, the drawings in the following description are some embodiments of the present invention. For those of ordinary skill in the art, without creative efforts, other drawings can also be obtained based on these drawings.

[0077] Figure 1 It is a schematic flowchart of the interactive form processing method provided by the present invention;

[0078] Figure 2 It is a schematic flowchart of the signature form field processing method provided by the present invention;

[0079] Figure 3 It is a schematic flowchart of the checkbox form field grouping provided by the present invention;

[0080] Figure 4 It is a schematic diagram of determining the grouping information of the checkbox form field provided by the present invention;

[0081] Figure 5 It is a schematic diagram of determining the title information of the checkbox form field provided by the present invention;

[0082] Figure 6 It is an exemplary diagram of the display rule of the list box form field provided by the present invention;

[0083] Figure 7 It is an exemplary diagram of the display mode of the text form field provided by the present invention;

[0084] Figure 8 It is an exemplary diagram of the display mode of the radio button form field group provided by the present invention;

[0085] Figure 9 It is an exemplary diagram of the display mode of the checkbox form field group provided by the present invention;

[0086] Figure 10 It is an exemplary diagram of the pop-up display mode of the list box form field provided by the present invention;

[0087] Figure 11 It is an exemplary diagram of the pop-up display of the combo box form field provided by the present invention;

[0088] Figure 12 It is a schematic overall flowchart of the interactive form processing method provided by the present invention;

[0089] Figure 13 It is a schematic structural diagram of the interactive form processing device provided by the present invention;

[0090] Figure 14 It is a schematic structural diagram of the electronic device provided by the present invention. Detailed implementation manners

[0091] To make the objectives, technical solutions and advantages of the present invention clearer, the technical solutions in the present invention will be clearly and completely described below with reference to the accompanying drawings in the present invention. Apparently, the described embodiments are some but not all of the embodiments of the present invention. All other embodiments obtained by those of ordinary skill in the art based on the embodiments in the present invention without creative efforts shall fall within the protection scope of the present invention.

[0092] Figure 1 As shown in the flowchart of the interactive form processing method provided for the embodiments of the present invention, Figure 1 as shown, the interactive form processing method provided by the present invention includes the following steps:

[0093] Step 101: Obtain the table structure information of the first interactive form and the attribute information of each form field in the first interactive form from a source file containing the first interactive form.

[0094] Specifically, an interactive form refers to a form file with fillable fields, and a user fills the form by clicking on the fillable fields in the form. In this embodiment, the interactive form is specifically a PDF interactive form.

[0095] In this embodiment, the execution subject is an interactive form processing device, which obtains the table structure information and attribute information of the first interactive form from a source file containing the first interactive form. Among them, the table structure information is the data structure information of the full-text form fields obtained by traversing the source file, that is, the position information of each form field on the PDF page.

[0096] In this embodiment, the attribute information and content information of each form field in the first interactive form are defined by an interactive form dictionary, and this dictionary should be referenced from the Acro Form entry in the document directory. Referring to "PDF reference 1.7", the definition content of the attribute information of the form fields described in Table 1 below is obtained.

[0097] Table 1 Definition content of attribute information

[0098]

[0099]

[0100] According to the defined content of the above attribute information, a series of custom rules are used to extract the attribute values of each form field in the first interactive form item by item. According to the obtained attribute value information, the type information of each form field can be determined. It should be noted that the types of form fields include various forms such as text, radio buttons, check boxes, signature form fields, etc., which are not specifically limited here.

[0101] Step 102: Generate a second interactive form according to the attribute information, rearrangement information of each form field in the first interactive form, and the table structure information of the first interactive form; wherein, the rearrangement information includes grouping information and rule information.

[0102] In this embodiment, the table structure of the first interactive form of the source file obtained in the above step is not suitable for the user to fill in or check the source file. In this embodiment, the table structure of the first interactive form is rearranged according to the obtained table structure information, attribute information of each form field, and rearrangement rules to obtain a second interactive form. The obtained second interactive form can adapt to the user's filling habits and the size of the display screen.

[0103] For example, if the width of the user's mobile terminal is 20 cm, the width of the generated second interactive form is 20 cm, which is exactly equal, so that the second interactive form covers the entire width of the mobile phone screen. The user can fill in the corresponding form field data by swiping up and down without zooming in or out.

[0104] It should be noted that the form fields in the second interactive form are arranged in the second interactive form in a way that adapts to the size of the first display screen, and there is a data binding relationship between the form fields in the second interactive form and the corresponding form fields in the first interactive form; and the size of the first display screen is less than the preset value. In this embodiment, the form fields in the second interactive form will be arranged in the second interactive form in a way that adapts to the size of the first display screen. Adaptation means that the arrangement method of the form fields will change with the change of the display screen size of the mobile terminal used by the user.

[0105] In this embodiment, the first display screen can be the display screen of a mobile terminal, such as a tablet, a mobile phone, etc.

[0106] It should be noted that the preset value in this embodiment can refer to the minimum size of a computer screen. That is to say, the first display screen can essentially be a mobile terminal. In other embodiments, the preset value can also be the minimum size of other mobile terminal screens, which can be specifically set according to actual needs and are not specifically limited here.

[0107] Step 103: Backfill the data filled in each form field of the second interactive form into the corresponding form field in the first interactive form to obtain a target file.

[0108] In this embodiment, there is a data binding relationship between each form field in the generated second interactive form and the corresponding form field in the first interactive form. After obtaining the second interactive form through rearrangement processing, the table structure information of the second interactive form is different from that of the first interactive form. However, the data content of the form fields in the second interactive form should be the same as that of the corresponding form fields in the first interactive form. For example, form field A in the second interactive form is used to fill in the user's name, and form field a in the corresponding first interactive form is also used to fill in the user's name. When the user fills in the name "Zhang San" in form field A of the second interactive form, according to the data binding relationship between form field A and form field a, the data corresponding to form field a in the first interactive form is filled in as "Zhang San" through data backfilling.

[0109] In this embodiment, taking the signature form field as an example, the method of backfilling processing is introduced in detail. As Figure 2 shown, a form field with the title "Signature" is added to the second interactive form, and data binding processing is performed between this signature form field and the corresponding signature form field in the first interactive form. When the user needs to sign, the signature information of the user is obtained and filled into the form field of the second interactive form. Since the data of the signature form field in the first interactive form is bound to the data in the form field of the second interactive form, the signature information is simultaneously synchronized to the first interactive form to achieve data backfilling processing.

[0110] After the source file containing the first interactive form undergoes the data backfilling operation in this step, the data stored in the file will change. In this embodiment, the file with changed data is called the target file.

[0111] According to the interactive form processing method provided by the present invention, obtain the attribute information of each form field in the first interactive form and the form structure information of the first interactive form, generate a second interactive form according to the obtained form structure information, the attribute information of each form field, and the rearrangement information, and then backfill the data filled in each form field of the second interactive form into the corresponding form field in the first interactive form to obtain a target file. Using the interactive form processing method provided by the present invention can rearrange the form structure of the first interactive form to obtain a second interactive form, and at the same time backfill the data filled in the second interactive form into the first interactive form to obtain a target file. The generated second interactive form can adapt to the screen size of the terminal, improve the filling efficiency of users, and enhance the user experience.

[0112] Based on any of the above embodiments, in this embodiment, generating a second interactive form according to the attribute information of each form field, the rearrangement information, and the form structure information of the first interactive form includes:

[0113] Determine the type information and title information of each form field according to the attribute information of each form field in the first interactive form; determine the grouping information or rule information for each form field in the first interactive form according to the type information of the form field; generate a second interactive form according to the form structure information of the first interactive form, the type information, title information, grouping information, and rule information of each form field in the first interactive form.

[0114] From the definition content of the attribute information shown in Table 1 above, it can be seen that the FT attribute is used to determine the type of each form field, and the TU / T attribute is used to determine the title of each form field.

[0115] Therefore, in this embodiment, the type information of the form field can be confirmed by extracting the FT attribute values of each form field item by item, and the title information of the form field can be confirmed by extracting the TU attribute values or T attribute values of each form field item by item. For example, a form field with an FT attribute value of Sig is a signature form field. The specific confirmation method is not specifically limited herein.

[0116] In this embodiment, the types of form fields may include: text form fields, radio button form fields, checkbox form fields, list box form fields, combo box form fields, and signature form fields, etc. Among them, for radio button form fields or checkbox form fields, grouping information needs to be set for them, and for other types of form fields, corresponding rule information needs to be determined according to the type information.

[0117] It should be noted that the rule information in this embodiment refers to the information required when the form fields are rearranged and displayed. The grouping information refers to the information required when grouping form fields of the same type in a certain grouping manner. In this embodiment, for radio button form fields or checkbox form fields, grouping can be performed based on the grouping information, and the specific grouping method can be set according to actual needs and is not specifically limited here.

[0118] In this embodiment, a second interactive form is generated based on the table structure information of the first interactive form, the type information of each form field in the first interactive form, the title information, and the grouping information and rule information. The obtained second interactive form can adapt to the screen size of the user's mobile terminal.

[0119] According to the interactive form processing method provided by the embodiment of the present invention, by determining the type information and title information of each form field based on the obtained table structure information and attribute information of the first interactive form, then re-determining the grouping information or rule information of each form field according to the type information, generating a second interactive form based on the above information, and filling back the data filled in each form field in the second interactive form into the first interactive form to obtain a target file. The interactive form processing method provided by the present invention enables the generated second interactive form to adapt to various screen sizes of the terminal, improves the filling efficiency of users, and enhances the user experience.

[0120] Based on any of the above embodiments, in this embodiment, determining the type information of each form field according to the attribute information of each form field in the first interactive form includes:

[0121] Obtaining first attribute information from the attribute information of each form field in the first interactive form; determining the type information of each form field according to the first attribute information.

[0122] In this embodiment, as described in Table 1 above, the first attribute information may be FT attribute information, and the meaning of the FT attribute is "leaf node field is required; inheritable, the field type described by this dictionary". In this embodiment, the FT attribute information of each form field in the first interactive form is extracted item by item, and then the type of the corresponding form field is determined according to the FT attribute information.

[0123] For example, if the FT attribute information of a form field is btn, it means that the type of this form field is a radio button form field; if the FT attribute information is tx, it means that the type of the form field is a text form field; if the FT attribute information is ch, it means that the type of the form field is a selection list box form field; if the FT attribute information is Sig, it means that the type of the form field is a signature form field, etc.

[0124] Among them, the types of form fields are shown in Table 2 below, roughly divided into the following 10 types, such as text form fields, radio button form fields, checkbox form fields, combo box form fields, list box form fields, signature form fields, etc. Different types of form fields correspond to different FT attribute information. It should be noted that the type information of the form fields in this embodiment is as shown in Table 2 below. In other embodiments, other form field types may also be included, which are not specifically limited herein.

[0125] Table 2 Type Information of Form Fields

[0126] Text Field Radio Button Checkbox ComboBox List Box Image Field Date Field Signature Field Barcode Button

[0127] In the embodiment of the present invention, by extracting the FT attribute information of each form field in the first interactive form item by item, the type information of each form field is determined according to the obtained FT attributes, providing support for subsequently determining new grouping information or rule information according to the type information of each form field.

[0128] Based on any of the above embodiments, in this embodiment, the type information of the form fields includes any one or more of the following types: text form fields, radio button form fields, checkbox form fields, combo box form fields, list box form fields, and signature form fields;

[0129] Correspondingly, according to the attribute information of each form field in the first interactive form, the title information of each form field is determined, including:

[0130] Obtain the second attribute information and the third attribute information from the attribute information of each form field in the first interactive form; in the case where the type information of the form field is a text form field, a combo box form field, or a list box form field, the information obtained from the second attribute information is used as the title information of the form field; in the case where the second attribute information is missing, the information obtained from the third attribute information is used as the title information of the form field; in the case where the type information of the form field is a radio button form field or a checkbox form field, the information obtained from the third attribute information is used as the title information of the form field; in the case where the third attribute information is missing, the information obtained from the second attribute information is used as the title information of the form field.

[0131] In this embodiment, the second attribute information may be TU attribute information, and the third attribute information may refer to T attribute information. The specific meanings of the TU attribute and the T attribute are as described in Table 1 above. The TU attribute is used to represent the "alternate field name", and when referring to the error or status message of this field, the alternate field name is used to replace the actual field name; the T attribute represents the "partial field name". This embodiment focuses on introducing the methods for determining the titles of five types of form fields, namely text form fields, radio button form fields, checkbox form fields, combo box form fields, and list box form fields. Specifically, the TU attribute information and the T attribute information are obtained from the attribute information of each form field in the first interactive form, and then the title information of each form field is determined based on the TU attribute information and the T attribute information.

[0132] In this embodiment, when the type information of the form fields to be rearranged is text form fields, combo box form fields, or list box form fields, first extract the TU attribute values of each form field as the title of the rearranged page for this type of form field. If the TU attribute information is missing, then use the information obtained from the T attribute information as the title information of the form field.

[0133] Among them, when the type information of the form fields to be rearranged is radio button form fields or checkbox form fields, first extract the T attribute values of each form field in this type, and use the T attribute values of each form field as the title information of the rearranged page for the form field. If the T attribute information is missing, then use the information obtained from the TU attribute information of each form field as the title information of the form field. It should be noted that in this embodiment, when the type information of the form fields to be rearranged is radio button form fields or checkbox form fields, first use the information obtained from the T attribute information as the title information. If the T attribute information is missing, then use the information obtained from the TU attribute information as the title information. In other embodiments, the above method for determining the title may not be adopted.

[0134] In addition, there is no title information for the signature form field, so there is no need to extract the title information for the signature form field.

[0135] In the embodiment of the present invention, by determining the title information of the rearranged page when each type of form field is rearranged according to the attribute information of each type of form field, the determined title information is more accurate, making the generated rearranged page more intuitive and concise. At the same time, it provides support for generating the second interactive form and the target file subsequently.

[0136] Based on any of the above embodiments, in this embodiment, grouping information is determined for each form field in the first interactive form, as Figure 3 shown, including the following steps:

[0137] Step 301: When the type information of the form field is a checkbox form field, obtain the coordinate information of each checkbox form field in the first interactive form;

[0138] Step 302: Calculate the coordinate differences between the checkbox form fields and their adjacent checkbox form fields according to the coordinate information, and obtain the horizontal coordinate differences and vertical coordinate differences of each checkbox form field;

[0139] Step 303: Compare the absolute values of the horizontal coordinate differences and the absolute values of the vertical coordinate differences of each checkbox form field with a preset threshold respectively, and determine the grouping information of the checkbox form fields according to the comparison results.

[0140] In this embodiment, when the form field type is a checkbox form field, the corresponding grouping information is determined for it. First, obtain the coordinate information of each checkbox form field in the first interactive form, then calculate the horizontal coordinate differences and vertical coordinate differences between adjacent checkbox form fields according to the obtained coordinate information, and compare the absolute values of the horizontal coordinate differences and the absolute values of the vertical coordinate differences of each checkbox form field with a preset threshold respectively, and determine the grouping information of the checkbox form fields according to the comparison results. It should be noted that there can be multiple preset thresholds, which can be specifically set according to actual needs and are not specifically limited here.

[0141] For example, if there are two preset threshold values, namely the first threshold and the second threshold, where the first threshold is 10 and the second threshold is 5. When the coordinate information of checkbox form field 1 is obtained as (9, 8), and the coordinate information of the adjacent checkbox form field 2 is (17, 9), by calculation, the horizontal coordinate difference between the two checkbox form fields is -8, and the vertical coordinate difference is -1. It can be seen that the absolute value of the horizontal coordinate difference is less than the first threshold, and the absolute value of the vertical coordinate difference is less than the second threshold. According to the comparison results, checkbox form field 1 and checkbox form field 2 are determined to be in the same group.

[0142] It should be noted that in this embodiment, the grouping rule is set for the form field with the type information of checkbox form field. If the form field type is a radio button form field, it can be grouped according to the existing grouping attribute information in the first interactive form, or the mutual exclusion effect existing between radio button form fields can be used for grouping settings. The grouping information of radio button form fields is not limited in this embodiment. For example, when the user selects gender, there is a mutual exclusion effect between the radio button form field "male" and the radio button form field "female", and only one of them can be selected. Therefore, these two radio button form fields belong to the same group.

[0143] In the interactive form processing method provided by the present invention, when the type information of a form field is a checkbox form field, according to the obtained coordinate information of each checkbox form field, the horizontal coordinate difference and the vertical coordinate difference between adjacent checkbox form fields are calculated, and the absolute value of the obtained horizontal coordinate difference and the absolute value of the vertical coordinate difference are compared with a preset threshold. According to the comparison result, the grouping information of adjacent checkbox form fields is determined, so that the interactive form display obtained according to the grouping information is more accurate and regular, indirectly improving the efficiency of user form filling and enhancing the user experience.

[0144] Based on any of the above embodiments, in this embodiment, the absolute value of the horizontal coordinate difference and the absolute value of the vertical coordinate difference of each checkbox form field are respectively compared with a preset threshold, and the grouping information of the checkbox form field is determined according to the comparison result, including:

[0145] Calculate the horizontal coordinate difference and the vertical coordinate difference between the first checkbox form field and the second checkbox form field; wherein, the first checkbox form field and the second checkbox form field are any two adjacent checkbox form fields in the first interactive form; according to the horizontal coordinate difference and the vertical coordinate difference between the first checkbox form field and the second checkbox form field and the preset threshold, divide each checkbox form field in the first interactive form into: one or more horizontal groups, and / or one or more vertical groups, and / or ungrouped checkbox form fields; in the case where there are ungrouped checkbox form fields, according to the position coordinates of the ungrouped checkbox form fields and the position coordinates of the checkbox form fields in the existing horizontal or vertical groups, classify the ungrouped checkbox form fields into the existing horizontal group or the existing vertical group. In the case where the ungrouped checkbox form fields are not successfully classified into the existing horizontal group or the existing vertical group, set them as single groups; set titles for all the obtained horizontal groups, and / or all vertical groups, and / or all single groups, and merge the combinations with the same title into the same group.

[0146] In this embodiment, as Figure 4As shown, first, obtain the coordinate information of all checkbox form fields on the current page. According to the obtained coordinate information of each checkbox form field, calculate the horizontal coordinate difference and vertical coordinate difference between any adjacent checkbox form fields. Then, compare each horizontal coordinate difference and vertical coordinate difference with a preset threshold to determine the grouping information of each adjacent checkbox form field. Finally, divide each checkbox form field existing in the first interactive form into: one or more horizontal groups, and / or one or more vertical groups, and / or ungrouped checkbox form fields. It should be noted that the ungrouped checkbox form fields need to be grouped again, and different groups can also be optimized according to the determined title information. When there are checkbox form fields that are not successfully grouped, calculate and process them in turn according to the coordinate information of the checkbox form field and the coordinate information of the checkbox form fields in the horizontal or vertical groups to determine that the checkbox form field that is not successfully grouped is a horizontal group, or a vertical group, or a single group. Finally, determine the corresponding title for each obtained group and merge the combinations with the same title into the same group.

[0147] For example, when it is determined that checkbox form field 1, checkbox form field 2, and checkbox form field 3 are horizontal group A with the title: Confirm proficient language types; checkbox form field 4, checkbox form field 5, and checkbox form field 6 are confirmed as horizontal group B with the title information: Confirm proficient language types. It can be seen that the two horizontal groups A and B have the same title, and the two groups are merged to obtain a form group with multiple rows and a single column.

[0148] It should be noted that after grouping all checkbox form fields, for the obtained multiple horizontal groups, multiple vertical groups, and multiple single groups, according to the real PDF interactive form structure, some groups merged by checkbox form fields may be arranged in 2 rows and 4 columns, or multiple single-row horizontal groups may be grouped into one group, or multiple single-column vertical groups may be grouped into one group, and each merged group has the same title.

[0149] In the embodiment of the present invention, by grouping each checkbox form field in the first interactive form, the subsequent generation of the second interactive form according to the grouping information is simple to operate when filling, improving the filling efficiency of users.

[0150] Based on any of the above embodiments, in this embodiment, according to the horizontal coordinate difference and vertical coordinate difference between the first checkbox form field and the second checkbox form field and a preset threshold, each checkbox form field in the first interactive form is divided into: one or more horizontal groups, and / or one or more vertical groups, and / or ungrouped checkbox form fields, including:

[0151] When the absolute value of the horizontal coordinate difference between the first checkbox form field and the second checkbox form field is less than or equal to the first threshold, and the absolute value of the vertical coordinate difference between the first checkbox form field and the second checkbox form field is less than or equal to the second threshold, it is determined that the first checkbox form field and the second checkbox form field are within the same vertical group; wherein, the first threshold is a value used to describe the allowable error on the horizontal coordinate, and the second threshold is the maximum vertical spacing value; when the absolute value of the vertical coordinate difference between the first checkbox form field and the second checkbox form field is less than or equal to the fourth threshold, and the absolute value of the horizontal coordinate difference between the first checkbox form field and the second checkbox form field is less than or equal to the third threshold, it is determined that the first checkbox form field and the second checkbox form field are within the same horizontal group; wherein, the third threshold is the maximum horizontal spacing value; the fourth threshold is a value used to describe the allowable error on the vertical coordinate.

[0152] In this embodiment, when the absolute value of the horizontal coordinate difference between adjacent first checkbox form field and second checkbox form field is less than or equal to the first threshold, and the absolute value of the vertical coordinate difference between the first checkbox form field and the second checkbox form field is less than or equal to the second threshold, the first checkbox form field and the second checkbox form field are determined to be within the same vertical group. It should be noted that the first threshold is a value used to describe the maximum allowable error on the horizontal coordinate, and the second threshold is the preset maximum vertical spacing value, which refers to the maximum allowable spacing between vertical coordinates.

[0153] For example, when the first threshold is 1 and the second threshold is 5. The coordinate information of checkbox form field 7 is obtained as (9, 8), and the coordinate information of the adjacent checkbox form field 8 is (9.3, 10). By calculation, the horizontal coordinate difference between the two checkbox form fields is -0.3, and the vertical coordinate difference is -2. It can be seen that the absolute value of the horizontal coordinate difference is less than the first threshold, and the absolute value of the vertical coordinate difference is less than the second threshold. According to the comparison result, checkbox form field 7 and checkbox form field 8 are determined to be in the same vertical group; if the coordinate information of checkbox form field 8 is (11, 14), according to the relationship between the absolute values of the calculated horizontal and vertical coordinate differences and the preset thresholds, the absolute value of the horizontal coordinate difference is equal to the first threshold, and the absolute value of the vertical coordinate difference is greater than the second threshold, so checkbox form field 7 and checkbox form field 8 cannot be grouped into the same vertical group.

[0154] In this embodiment, when the absolute value of the vertical coordinate difference between the first checkbox form field and the second checkbox form field is less than or equal to the fourth threshold, and the absolute value of the horizontal coordinate difference between the first checkbox form field and the second checkbox form field is less than or equal to the third threshold, the first checkbox form field and the second checkbox form field are determined as a group in the same horizontal direction. It should be noted that the third threshold is the maximum horizontal spacing value, which refers to the maximum allowable spacing value for the horizontal coordinate, and the fourth threshold is the value used to describe the maximum allowable error on the vertical coordinate. Since the operating principle is the same as that in the above-mentioned vertical group grouping, no example is given here.

[0155] In the embodiment of the present invention, by judging the relationship between the absolute value of the horizontal coordinate difference and the absolute value of the vertical coordinate difference between the first checkbox form field and the second checkbox form field and the preset threshold, it is obtained that the two belong to the same horizontal group or the same vertical group, realizing the grouping setting for each checkbox form field, so that the second interactive form generated according to the grouping information can adapt to screens of different sizes, facilitating users to fill in and improving the efficiency of user filling.

[0156] Based on any of the above embodiments, in this embodiment, in the case where there are ungrouped checkbox form fields, according to the position coordinates of the ungrouped checkbox form fields and the position coordinates of the checkbox form fields in the existing horizontal group or vertical group, the ungrouped checkbox form fields are classified into the existing horizontal group or the existing vertical group. In the case where the ungrouped checkbox form fields are not successfully classified into the existing horizontal group or the existing vertical group, they are set as single groups, including:

[0157] Calculate the horizontal coordinate difference and the vertical coordinate difference between the ungrouped checkbox form field and the third checkbox form field. When the absolute value of the horizontal coordinate difference is less than or equal to the first threshold and the absolute value of the vertical coordinate difference is less than or equal to the second threshold, the ungrouped checkbox form field is classified into the group where the third checkbox form field is located; wherein, the third checkbox form field is the first checkbox form field in the first preset direction in any existing horizontal group; the first threshold is the value used to describe the maximum allowable error on the horizontal coordinate, and the second threshold is the maximum vertical spacing value; in the case where the ungrouped checkbox form field cannot be classified into the existing horizontal group, calculate the horizontal coordinate difference and the vertical coordinate difference between the ungrouped checkbox form field and the fourth checkbox form field. When the absolute value of the horizontal coordinate difference is less than or equal to the first threshold and the absolute value of the vertical coordinate difference is less than or equal to the second threshold, the ungrouped checkbox form field is classified into the group where the fourth checkbox form field is located; wherein, the fourth checkbox form field is the last checkbox form field in the second preset direction in any existing vertical group; in the case where the ungrouped checkbox form field cannot be classified into the existing horizontal group and the existing vertical group, the ungrouped checkbox form field is set as a single group.

[0158] In this embodiment, when there are checkbox form fields that have not been successfully grouped, first calculate the horizontal coordinate difference and the vertical coordinate difference between the ungrouped checkbox form fields and the third checkbox form field. When the absolute value of the horizontal coordinate difference is less than or equal to a preset first threshold and the absolute value of the vertical coordinate difference is less than or equal to a preset second threshold, the ungrouped checkbox form fields are grouped into the horizontal group where the third checkbox form field is located.

[0159] It should be noted that the third checkbox form field is the first checkbox form field in a preset first direction in any existing horizontal group. The first preset direction refers to the direction from left to right or from right to left; in the direction from left to right, the third checkbox form field is the leftmost checkbox form field, and in the direction from right to left, the third checkbox form field is the rightmost checkbox form field, which is not specifically limited here.

[0160] Among them, if the ungrouped checkbox form fields cannot be successfully grouped into the horizontal group, recalculate the horizontal coordinate difference and the vertical coordinate difference between the ungrouped checkbox form fields and the fourth checkbox form field. When the absolute value of the obtained horizontal coordinate difference is less than or equal to the first threshold and the absolute value of the vertical coordinate difference is less than or equal to the second threshold, the ungrouped checkbox form fields are grouped into the vertical group where the fourth checkbox form field is located. It should be noted that the second preset direction refers to the direction from top to bottom or from bottom to top. In the direction from top to bottom, the fourth checkbox form field is the bottommost checkbox form field, and in the direction from bottom to top, the fourth checkbox form field is the topmost checkbox form field, which is not specifically limited here.

[0161] It should be noted that the above calculation and comparison processing are carried out sequentially. When the ungrouped checkbox form fields do not belong to the vertical grouping, continue to determine whether they belong to the horizontal grouping. If they do not belong to the horizontal group either, in this embodiment, the ungrouped checkbox form fields are determined as a single group.

[0162] In the embodiment of the present invention, when the type information is a checkbox form field, calculate and judge the ungrouped checkbox form fields with the checkbox form fields in the obtained vertical group. If they belong to the vertical grouping, stop the judgment. If not, calculate, compare, and confirm with the checkbox form fields in the horizontal grouping. Finally, the ungrouped checkbox form fields are successfully grouped into the vertical group, the horizontal group, or the single group, making the grouping of the checkbox form fields have certain rules, simple and convenient to operate, and indirectly improving the user's filling efficiency.

[0163] Based on any of the above embodiments, in this embodiment, set titles for all the obtained horizontal groups, and / or all the vertical groups, and / or all the single groups, and merge the combinations with the same title into the same group, including:

[0164] Obtain the coordinate information and text information of all text boxes in the first interactive form; obtain the coordinate information of the group according to the coordinate information of all checkbox form fields within the group; where the group is any one of the horizontal group, the vertical group, and the single group; determine the corresponding text box for the group according to the coordinate information of the group and the coordinate information of the text box, and set the text information of the corresponding text box as the title of the group; merge the combinations with the same title into the same group.

[0165] In the embodiment of the present invention, as Figure 5 shown, it is also necessary to obtain the coordinate information of all text boxes in the first interactive form, as well as the text information corresponding to each text box, and then determine the coordinate information of the group according to the grouping information of the checkbox form fields obtained in the above embodiment and the coordinate information of the checkbox form fields within each group. According to the correspondence between the coordinate information of the group and the coordinate information of the text box, determine the text box corresponding to each group, and then find the optimal text box information according to a certain search rule, and set the text information in the optimal text box as the title of the group. At the same time, merge the combinations with the same title into the same group.

[0166] It should be noted that the title of each group can be determined according to the maximum distance between the text box and the target group. For example, if the maximum distance is set to 10 cm, first search within the 10 cm range of the left area in the horizontal group. If no suitable one is found, then search within the 10 cm range of the upper area. Determine the title of the horizontal group according to the found text box; first search within the 10 cm range of the upper area in the vertical group. If no suitable text box is found, then search within the 10 cm range of the left area. Finally, determine the title of the vertical group according to the text information of the found text box.

[0167] In this embodiment, use the coordinate information of the first checkbox form field in the preset direction as the group coordinate information of the group where it is located. At the same time, determine the title of the group according to the group coordinate information and the coordinate information of the text box, and merge the groups with the same title.

[0168] For example, the coordinate information of the first checkbox form field in the preset direction within each group is determined as the coordinate information of the group. For example, the coordinate information of a group A is obtained as (11, 2). According to the coordinate information of multiple text boxes, a text box a corresponding to group A is determined, and then the text information in the text box a is determined as the title of group A. Similarly, the coordinate information of another group B is obtained as (12, 14), and the text information of the text box b with the same coordinate information is determined as the title of group B. By analyzing and comparing, it is determined that the text information of text box a is the same as that of text box b, that is, the titles of group A and group B are the same. In this embodiment, group A and group B with the same title are merged, and a merged group is obtained.

[0169] In the embodiment of the present invention, by determining the title of the group according to the coordinate information of the group and the coordinate information of the text box, and merging the groups with the same title to obtain a merged group, the entire operation makes the second interactive form structure generated according to the title information simple and clear, and indirectly improves the filling efficiency of users.

[0170] Based on any of the above embodiments, in this embodiment, the type information of the form field includes any one of the following types: text form field, radio button form field, checkbox form field, combo box form field, list box form field, and signature form field;

[0171] Correspondingly, according to the type information and text information of the form field, rule information is determined for each form field in the first interactive form, including:

[0172] In the case where the type information of the form field is a text form field or a signature form field, a text processing rule is set for the text form field; in the case where the type information of the form field is a combo box form field or a list box form field, option list data is obtained, and a selection rule for allowing multiple selections or not is set.

[0173] In this embodiment, when the type information of each form field is a text form field, a corresponding text processing rule is set for each text form field, such as the maximum input length of the text field, whether it is a password, whether it is a file selection, etc.; when the type information of each form field is a combo box form field or a list box form field, option list data is obtained, such as Figure 6 shown, favorite colors, "black, brown, red, orange", and its selection rule for allowing multiple selections is set, multiple favorite colors can be selected, or a selection rule for single selection can be set to only select one of them.

[0174] In the embodiment of the present invention, by setting corresponding processing rules for text form fields, signature form fields, combo boxes or list box form fields, the operation page obtained by rearrangement is made more concise, the operation is simple and the processing efficiency is high.

[0175] Based on any of the above embodiments, in this embodiment, a second interactive form is generated according to the table structure information of the first interactive form, the type information, title information, grouping information, and / or rule information of each form field in the first interactive form, including:

[0176] Sort each form field in the first interactive form according to the table structure information of the first interactive form; based on the type information, title information, grouping information, and rule information of each form field in the first interactive form, adjust the display mode of each form field, and sort the form fields with the adjusted display mode according to the sorting result; replace the controls of each sorted form field with the controls in the mobile operating system to generate a second interactive form; bind the form fields in the second interactive form to the corresponding form fields in the first interactive form for data.

[0177] Specifically, the mobile operating system is a general operating system installed in a mobile device. Among them, a control refers to the encapsulation of data and methods.

[0178] In this embodiment, when rearranging each form field in the first interactive form, it is necessary to adjust the display mode of each form field according to the type information, title information, grouping information, and rule information of each form field in the first interactive form, then sort the form fields with the adjusted display mode according to the sorting method, replace the controls of each sorted form field with the controls in the mobile operating system to obtain a second interactive form, and finally bind the form fields in the second interactive form to the corresponding form fields in the first interactive form for data.

[0179] In the embodiment of the present invention, when rearranging each form field in the first interactive form, a second interactive form is generated according to the relevant information of each form field and the adjusted display mode of each form field, and the form fields in the second interactive form are bound to the corresponding form fields in the first interactive form for data, so that the finally obtained second interactive form can adapt to screens of various sizes, facilitate users to fill in, improve the filling efficiency of users, and enhance the user experience.

[0180] Based on any of the above embodiments, in this embodiment, based on the type information, title information, grouping information, and rule information of each form field in the first interactive form, the adjustment of the display mode of each form field includes:

[0181] In the case where the type information of the form field is a text form field, display the title information of the text form field above and display the part to be filled in the text form field below.

[0182] In the embodiments of the present invention, the text form fields that are horizontally displayed in the source file are adjusted to a vertical display mode where the title information is displayed above and the part to be filled is displayed below. For example, Figure 7 As shown, the title information is "Name", which is displayed above the display page, and the content of the part to be filled is "Kelvin Xu", which is displayed below.

[0183] The display mode provided in this embodiment can well adapt to screens of various sizes, without the need to scale the viewing ratio of the interactive form, and improves the filling efficiency of users.

[0184] Based on any of the above embodiments, in this embodiment, based on the type information, title information, grouping information, and rule information of each form field in the first interactive form, the display mode of each form field is adjusted, including:

[0185] When the type information of the form field is a radio button form field or a checkbox form field, according to the grouping information, the radio button form fields or checkbox form fields within the same group are displayed; among them, displaying the radio button form fields within the same group includes: displaying the title information of the radio button form field group above, and displaying the title information and radio button form fields of the radio button form fields within the radio button form field group below; displaying the checkbox form fields within the same group includes: displaying the title information of the checkbox form field group above, and displaying the title information and checkbox form fields of the checkbox form fields within the checkbox form field group below.

[0186] In this embodiment, for the radio button form fields or checkbox form fields within the same group, the title information of the group is displayed above, and the title information and form fields of each form field within the group are displayed below. For example, Figure 8 As shown in the display mode of the radio button form field, the title information of the group "Document Type" is displayed above. Since each radio button form field within the group has its own corresponding title information, such as ID card, Chinese passport, civilian certificate, police officer certificate, the corresponding title information is displayed while displaying each radio button form field below.

[0187] In addition, for example, Figure 9 As shown, in the checkbox form field group, the title information of the group "I speak and understand (tick all that apply)" is displayed above, while each checkbox form field and the title information of each checkbox form field are displayed below.

[0188] In the embodiments of the present invention, by setting corresponding display modes for the radio button form field group and the checkbox form field group, the generated interactive form can well adapt to screens of various sizes, without the need to scale the viewing ratio of the interactive form, and improves the filling efficiency of users.

[0189] Based on any of the above embodiments, in this embodiment, based on the type information, title information, grouping information, and rule information of each form field in the first interactive form, the display method of each form field is adjusted, including:

[0190] When the type information of the form field is a combo box form field or a list box form field, a pop-up window corresponding to the combo box form field or the list box form field is generated; wherein, each option in the combo box form field or the list box form field is arranged in the pop-up window in order from top to bottom.

[0191] In this embodiment, when the type information of the form field is a combo box form field or a list box form field, the corresponding content is displayed in the form of a pop-up window. As Figure 10 shown, the downward triangle represents the drop-down flag. When the form field is a list box form field, the options corresponding to the favorite colors are displayed in a pop-up manner, so that the size of the displayed content adapts to the screen and no special magnification processing is required, and the user can more clearly select the favorite colors. As Figure 11 shown, for the combo box form field, the pop-up window display method is also adopted, and the content to be displayed is magnified, and the user can directly select the option to be selected.

[0192] The pop-up display method provided in this embodiment is simple to operate and clear in display, improving the user experience.

[0193] Based on any of the above embodiments, in this embodiment, based on the type information, title information, grouping information, and rule information of each form field in the first interactive form, the display method of each form field is adjusted, including:

[0194] When the type information of the form field is a signature form field, a filling area for signature is generated.

[0195] In this embodiment, when the type information of the form field is a signature form field, a filling area for signature is generated at the corresponding position of the form field, so that the obtained filling area can help the user fill in their own name and meet the signature requirements. At the same time, it provides support for generating the signature form field corresponding to the second interactive form.

[0196] Based on any of the above embodiments, in this embodiment, the data filled in each form field in the second interactive form is filled back into the corresponding form field in the first interactive form to obtain a target file, including:

[0197] Bind the mobile native controls corresponding to each form field in the second interactive form to each form field in the first interactive form item by item to obtain the binding relationship; according to the method of backfilling in the serial queue and the obtained binding relationship, backfill the data filled in each form field in the second interactive form into the corresponding form field in the first interactive form to obtain the target file.

[0198] In this embodiment, after re-layout, it is also necessary to perform item-by-item binding processing on the mobile native controls corresponding to each form field in the obtained second interactive form and each form field in the first interactive form, so that after entering the corresponding data in the re-layouted control, according to the binding relationship, the data is synchronously backfilled into the corresponding form field in the first interactive form. After the data backfilling process is completed, the obtained file is the target file. It should be noted that in this embodiment, the method of backfilling in the serial queue is used to backfill the data filled in each form field in the second interactive form into the corresponding form field in the first interactive form.

[0199] In this embodiment, different functions are called for each type of form field mentioned above to implement data backfilling. For example, text form fields, radio button form fields, checkbox form fields, combobox form fields, listbox form fields, and signature form fields can all achieve data synchronization.

[0200] According to the interactive form processing method provided by the present invention, by binding the mobile native controls of each form field in the obtained second interactive form to the form fields of the first interactive form in the source file to obtain the binding relationship, and then according to the method of backfilling in the serial queue and the obtained binding relationship, backfill the data filled in each form field in the second interactive form into the corresponding form field in the first interactive form to obtain the target file. The whole process is simple to operate, and the generated second interactive form can improve the user filling efficiency. The target file is obtained by using the data backfilling method, which improves the user experience.

[0201] Based on any of the above embodiments, in this embodiment, as Figure 12As shown, after the button for restarting the rearrangement of the first interactive form is activated, a list of form field data structures existing throughout the first interactive form is obtained, table structure information is obtained from the said list, and meanwhile, the attribute information of the form fields is obtained. According to the attribute information, the type information and title information of each form field are determined item by item. In this embodiment, when the form field type information is a text / signature form field, the rule attributes such as the maximum number of input characters for the text, whether it is a password, and whether it is a file selection are obtained; when the form field type information is a button form field, the button grouping is calculated and the group title information is obtained; when the form field type information is a selector form field, the option list data and the rule attribute information such as whether the selector can be multi-selected are obtained. Then, according to the relevant rule information obtained from the form field type, the structure of the first interactive form in the source file is rearranged to obtain the structure information of the second interactive form. According to the binding relationship between each form field in the second interactive form and the corresponding form field in the first interactive form, data filling processing is performed on each form field existing in the second interactive form to obtain the target file, and the form rearrangement operation is ended.

[0202] Figure 13 An interactive form processing device provided by the present invention, as Figure 10 shown, the interactive form processing device provided by the present invention includes:

[0203] An acquisition module 1301, configured to obtain the table structure information of the first interactive form and the attribute information of each form field in the first interactive form from a source file containing the first interactive form; a rearrangement module 1302, configured to generate a second interactive form according to the attribute information, rearrangement information, and table structure information of each form field in the first interactive form; wherein, the rearrangement information includes grouping information and rule information; a backfill module 1303: configured to backfill the data filled in each form field in the second interactive form into the corresponding form field in the first interactive form to obtain a target file; wherein, the form fields in the second interactive form are arranged in the second interactive form in a manner that adapts to the size of the first display screen, and there is a data binding relationship between the form fields in the second interactive form and the corresponding form fields in the first interactive form; the size of the first display screen is smaller than a preset value.

[0204] The interactive form processing device provided by the embodiment of the present invention rearranges the form structure of the first interactive form according to the rearrangement information, so that the generated second interactive form can adapt to the screen size of the mobile terminal, improving the user's filling efficiency and enhancing the user experience.

[0205] Furthermore, the rearrangement module 1302 includes a first determination unit, a second determination unit, and a generation unit, wherein,

[0206] A first determination unit is configured to determine the type information and title information of each form field according to the attribute information of each form field in the first interactive form; a second determination unit is configured to determine grouping information or rule information for each form field in the first interactive form according to the type information of the form field; a generation unit is configured to generate a second interactive form according to the table structure information of the first interactive form, the type information, title information, grouping information, and rule information of each form field in the first interactive form.

[0207] The interactive form processing device provided by the embodiments of the present invention enables the generated second interactive form to adapt to the screen size of the mobile terminal according to the obtained attribute information, table structure information, type information, title information, grouping information, and rule information of the first interactive form, improves the filling efficiency of users, and enhances the user experience.

[0208] Furthermore, the first determination unit is further configured to:

[0209] Obtain first attribute information from the attribute information of each form field in the first interactive form; determine the type information of each form field according to the first attribute information.

[0210] In the embodiments of the present invention, by extracting the first attribute information of each form field in the first interactive form item by item, and determining the type information of each form field according to the obtained first attribute, it provides support for subsequently determining new grouping information and / or rule information according to the type information of each form field.

[0211] Furthermore, the first determination unit is further configured to:

[0212] Obtain second attribute information and third attribute information from the attribute information of each form field in the first interactive form; in the case where the type information of the form field is a text form field, a combo box form field, or a list box form field, use the information obtained from the second attribute information as the title information of the form field; in the case where the second attribute information is missing, use the information obtained from the third attribute information as the title information of the form field; in the case where the type information of the form field is a radio button form field or a checkbox form field, use the information obtained from the third attribute information as the title information of the form field; in the case where the third attribute information is missing, use the information obtained from the second attribute information as the title information of the form field.

[0213] In the embodiments of the present invention, by determining the title information of the rearrangement page when each form field is rearranged according to the attribute information of each type of form field, the determined title information is more accurate, making the generated rearrangement page more intuitive and concise. At the same time, it provides support for subsequently generating the second interactive form.

[0214] Furthermore, the second determination unit is further configured to:

[0215] When the type information of the form field is a checkbox form field, obtain the coordinate information of each checkbox form field in the first interactive form; calculate the coordinate differences between the checkbox form fields and adjacent checkbox form fields according to the coordinate information to obtain the horizontal coordinate differences and vertical coordinate differences of each checkbox form field; compare the absolute values of the horizontal coordinate differences and the absolute values of the vertical coordinate differences of each checkbox form field with a preset threshold respectively, and determine the grouping information of the checkbox form fields according to the comparison results.

[0216] For the interactive form processing method provided by the present invention, when the type information of the form field is a checkbox form field, according to the obtained coordinate information of each checkbox form field, calculate the horizontal coordinate difference and the vertical coordinate difference between adjacent checkbox form fields, and compare the absolute values of the obtained horizontal coordinate difference and the vertical coordinate difference with a preset threshold, and determine the grouping information of adjacent checkbox form fields according to the comparison results, so that the interactive form display obtained according to the grouping information is more accurate and regular, indirectly improving the efficiency of user form filling and enhancing the user experience.

[0217] Furthermore, the second determination unit is further configured to:

[0218] Calculate the horizontal coordinate difference and the vertical coordinate difference between a first checkbox form field and a second checkbox form field; wherein, the first checkbox form field and the second checkbox form field are any two adjacent checkbox form fields in the first interactive form; divide each checkbox form field in the first interactive form into: one or more horizontal groups, and / or one or more vertical groups, and / or ungrouped checkbox form fields according to the horizontal coordinate difference and the vertical coordinate difference between the first checkbox form field and the second checkbox form field and a preset threshold; in the case where there are ungrouped checkbox form fields, classify the ungrouped checkbox form fields into the existing horizontal groups or existing vertical groups according to the position coordinates of the ungrouped checkbox form fields and the position coordinates of the checkbox form fields in the existing horizontal groups or vertical groups, and set them as single groups in the case where the ungrouped checkbox form fields are not successfully classified into the existing horizontal groups or existing vertical groups; set titles for all the obtained horizontal groups, and / or all the obtained vertical groups, and / or all the single groups, and merge the combinations with the same title into the same group.

[0219] In the embodiment of the present invention, by grouping each checkbox form field in the first interactive form, the subsequent second interactive form generated according to the grouping information is simple to operate when filling, improving the filling efficiency of the user.

[0220] Furthermore, the second determination unit is further configured to:

[0221] When the absolute value of the horizontal coordinate difference between the first checkbox form field and the second checkbox form field is less than or equal to the first threshold, and the absolute value of the vertical coordinate difference between the first checkbox form field and the second checkbox form field is less than or equal to the second threshold, it is determined that the first checkbox form field and the second checkbox form field are within the same vertically oriented group; wherein, the first threshold is a value used to describe the allowable error on the horizontal coordinate, and the second threshold is the maximum vertical spacing value;

[0222] When the absolute value of the vertical coordinate difference between the first checkbox form field and the second checkbox form field is less than or equal to the fourth threshold, and the absolute value of the horizontal coordinate difference between the first checkbox form field and the second checkbox form field is less than or equal to the third threshold, it is determined that the first checkbox form field and the second checkbox form field are within the same horizontally oriented group; wherein, the third threshold is the maximum horizontal spacing value; the fourth threshold is a value used to describe the allowable error on the vertical coordinate.

[0223] In an embodiment of the present invention, by judging the relationship between the absolute value of the horizontal coordinate difference and the absolute value of the vertical coordinate difference between the first checkbox form field and the second checkbox form field and a preset threshold, it is obtained that the two belong to the same horizontally oriented group or the same vertically oriented group, realizing a grouped setting for each checkbox form field, enabling the second interactive form generated according to this grouping information to adapt to screens of different sizes, facilitating user filling, and improving the efficiency of user filling.

[0224] Further, the second determination unit is further configured to:

[0225] Calculate the horizontal coordinate difference and the vertical coordinate difference between the ungrouped checkbox form field and the third checkbox form field. When the absolute value of the horizontal coordinate difference is less than or equal to the first threshold and the absolute value of the vertical coordinate difference is less than or equal to the second threshold, classify the ungrouped checkbox form field into the group where the third checkbox form field is located; wherein, the third checkbox form field is the first checkbox form field in a first preset direction in any existing horizontally oriented group; the first threshold is a value used to describe the allowable error on the horizontal coordinate, and the second threshold is the maximum vertical spacing value; in the case where the ungrouped checkbox form field cannot be classified into an existing horizontally oriented group, calculate the horizontal coordinate difference and the vertical coordinate difference between the ungrouped checkbox form field and the fourth checkbox form field. When the absolute value of the horizontal coordinate difference is less than or equal to the first threshold and the absolute value of the vertical coordinate difference is less than or equal to the second threshold, classify the ungrouped checkbox form field into the group where the fourth checkbox form field is located; wherein, the fourth checkbox form field is the last checkbox form field in a second preset direction in any existing vertically oriented group; in the case where the ungrouped checkbox form field cannot be classified into an existing horizontally oriented group and an existing vertically oriented group, set the ungrouped checkbox form field as a single group.

[0226] In an embodiment of the present invention, when the type information is a checkbox form field, the checkbox form fields that have not been successfully grouped are calculated and judged with the checkbox form fields within the vertically obtained group. If they belong to the vertical grouping, the judgment stops; if not, they are calculated, compared, and confirmed with the checkbox form fields in the horizontal grouping. Finally, the ungrouped checkbox form fields are successfully grouped into a vertical group, a horizontal group, or a single group, making the grouping of the checkbox form fields have certain rules, simple and convenient to operate, and indirectly improving the user's filling efficiency.

[0227] Further, the second determination unit is further configured to:

[0228] Obtain the coordinate information and text information of all text boxes in the first interactive form; obtain the coordinate information of the group based on the coordinate information of all checkbox form fields within the group; where the group is any one of the horizontal group, vertical group, and single group; determine the corresponding text box for the group according to the coordinate information of the group and the coordinate information of the text box, and set the text information of the corresponding text box as the title of the group; merge the groups with the same title into the same group.

[0229] In an embodiment of the present invention, by determining the title of the group according to the coordinate information of the group and the coordinate information of the text box, and performing a merging process on the groups with the same title to obtain a grouping, the entire operation makes the structure of the second interactive form generated according to the title information simple and clear, and indirectly improves the user's filling efficiency.

[0230] Further, the second determination unit is further configured to:

[0231] In the case where the type information of the form field is a text form field or a signature form field, set a text processing rule for the text form field; in the case where the type information of the form field is a combobox form field or a listbox form field, obtain option list data and set a selection rule for whether multiple selections are allowed.

[0232] In an embodiment of the present invention, by setting corresponding processing rules for the text form field, signature form field, combobox, or listbox form field, the operation page obtained by rearrangement is made more concise, the operation is simple, and the processing efficiency is high.

[0233] Further, the generation unit is further configured to:

[0234] Sort each form field in the first interactive form according to the form structure information of the first interactive form; adjust the display mode of each form field based on the type information, title information, grouping information, and / or rule information of each form field in the first interactive form, and sort the form fields with adjusted display modes according to the sorting result; replace the controls of each sorted form field with the controls in the mobile operating system to generate a second interactive form; perform data binding on the form fields in the second interactive form and the corresponding form fields in the first interactive form.

[0235] In the embodiments of the present invention, when rearranging each form field in the first interactive form, a second interactive form is generated according to the relevant information of each form field and the adjusted display mode of each form field, and the corresponding data in the first interactive form is backfilled to obtain a target file, so that the finally obtained interactive form can adapt to screens of various sizes, facilitate users to fill in, improve the filling efficiency of users, and enhance the user experience.

[0236] Further, the generating unit is further configured to:

[0237] In the case where the type information of the form field is a text form field, display the title information of the text form field above and the part to be filled in the text form field below.

[0238] The display mode provided in this embodiment can well adapt to screens of various sizes, without the need to scale the viewing ratio of the second interactive form, and improves the filling efficiency of users.

[0239] Further, the generating unit is further configured to:

[0240] In the case where the type information of the form field is a radio button form field or a checkbox form field, display the radio button form field or checkbox form field within the same group according to the grouping information; wherein, displaying the radio button form fields within the same group includes:

[0241] Display the title information of the radio button form field group above, and display the title information of the radio button form fields within the radio button form field group and the radio button form fields below; displaying the checkbox form fields within the same group includes: display the title information of the checkbox form field group above, and display the title information of the checkbox form fields within the checkbox form field group and the checkbox form fields below.

[0242] In the embodiments of the present invention, by setting corresponding display modes for the radio button form field group and the checkbox form field group, the generated interactive form can well adapt to screens of various sizes, without the need to scale the viewing ratio of the interactive form, and improves the filling efficiency of users.

[0243] Further, the generating unit is further configured to:

[0244] When the type information of the form field is a combo box form field or a list box form field, generate a pop-up window corresponding to the combo box form field or the list box form field; wherein, each option in the combo box form field or the list box form field is arranged in sequence from top to bottom within the pop-up window.

[0245] The pop-up display method provided in this embodiment is simple to operate and clear to display, improving the user experience.

[0246] Further, the generating unit is further configured to:

[0247] When the type information of the form field is a signature form field, generate a filling area for signature.

[0248] When the type information provided in this embodiment is a signature form field, generating a filling area for signature can meet the user's need for signature and improve the user experience.

[0249] Further, the backfilling module 1303 is further configured to:

[0250] Bind the mobile native controls corresponding to each form field in the second interactive form to each form field in the first interactive form item by item to obtain a binding relationship; according to the serial queue backfilling method and the obtained binding relationship, backfill the data filled in each form field in the second interactive form into the corresponding form field in the first interactive form to obtain a target file.

[0251] According to the interactive form processing method provided by the present invention, by binding the mobile native controls of each form field in the obtained second interactive form to the form fields of the first interactive form in the source file to obtain a binding relationship, and then according to the serial queue backfilling method and the obtained binding relationship, backfill the data filled in each form field in the second interactive form into the corresponding form field in the first interactive form to obtain a target file. The whole process is simple to operate, and the generated second interactive form can improve the user filling efficiency. Using the data backfilling method to obtain the target file improves the user experience.

[0252] Since the principle of the device described in the embodiment of the present invention is the same as that of the method described in the above embodiment, the more detailed explanation content will not be elaborated here.

[0253] Figure 14 It is a schematic diagram of the entity structure of the electronic device provided in the embodiment of the present invention. As Figure 14 shown, the present invention provides an electronic device, including: a processor 1401, a memory 1402, and a bus 1403;

[0254] Among them, the processor 1401 and the memory 1402 communicate with each other through the bus 1403;

[0255] The processor 1401 is used to call program instructions in the memory 1402 to execute the methods provided in the above method embodiments. For example, it includes: obtaining the table structure information of the first interactive form and the attribute information of each form field in the first interactive form from the source file containing the first interactive form, and generating a second interactive form according to the attribute information of each form field in the first interactive form, the rearrangement information, and the table structure information of the first interactive form. The rearrangement information includes grouping information and rule information; filling the data in each form field filled in the second interactive form back into the corresponding form field in the first interactive form to obtain a target file; wherein, the form fields in the second interactive form are arranged in the second interactive form in a manner adapted to the size of the first display screen, and there is a data binding relationship between the form fields in the second interactive form and the corresponding form fields in the first interactive form.

[0256] An embodiment of the present invention provides a non-transitory computer-readable storage medium. The non-transitory computer-readable storage medium stores computer instructions, and the computer instructions cause the computer to execute the methods provided in the above method embodiments. For example, it includes: obtaining the table structure information of the first interactive form and the attribute information of each form field in the first interactive form from the source file containing the first interactive form, and generating a second interactive form according to the attribute information of each form field in the first interactive form, the rearrangement information, and the table structure information of the first interactive form. The rearrangement information includes grouping information and rule information; filling the data in each form field filled in the second interactive form back into the corresponding form field in the first interactive form to obtain a target file; wherein, the form fields in the second interactive form are arranged in the second interactive form in a manner adapted to the size of the first display screen, and there is a data binding relationship between the form fields in the second interactive form and the corresponding form fields in the first interactive form.

[0257] The present invention also provides a computer program product, which includes a computer program stored on a non-transitory computer-readable storage medium. The computer program includes program instructions. When the program instructions are executed by a computer, the computer can execute the methods provided by the above-mentioned various methods. The method includes: obtaining the table structure information of the first interactive form and the attribute information of each form field in the first interactive form from a source file containing the first interactive form; generating a second interactive form according to the attribute information of each form field in the first interactive form, the rearrangement information, and the table structure information of the first interactive form, where the rearrangement information includes grouping information and rule information; backfilling the data filled in each form field in the second interactive form into the corresponding form field in the first interactive form to obtain a target file; where the form fields in the second interactive form are arranged in the second interactive form in a manner adapted to the size of the first display screen, and there is a data binding relationship between the form fields in the second interactive form and the corresponding form fields in the first interactive form.

[0258] Those of ordinary skill in the art can understand that all or part of the steps of implementing the above method embodiments can be completed by hardware related to program instructions. The foregoing program can be stored in a computer-readable storage medium. When the program is executed, it executes the steps including the above method embodiments; and the foregoing storage medium includes various media such as ROM, RAM, magnetic disk, or optical disc that can store program codes.

[0259] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention and are not intended to limit them. Although the present invention has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that they can still modify the technical solutions described in the foregoing embodiments or equivalently replace some of the technical features. These modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

1. An interactive form processing method, characterized in that, Including: Obtain the table structure information of the first interactive form and the attribute information of each form field in the first interactive form from a source file containing the first interactive form; wherein, the table structure information is the data structure information of the full-text form fields obtained by traversing the source file; Generate a second interactive form according to the attribute information of each form field in the first interactive form, the rearrangement information, and the table structure information of the first interactive form; wherein, the rearrangement information includes grouping information and rule information: Backfill the data filled in each form field of the second interactive form into the corresponding form field in the first interactive form to obtain a target file; Wherein, the form fields in the second interactive form are arranged in the second interactive form in a manner that adapts to the size of the first display screen, and there is a data binding relationship between the form fields in the second interactive form and the corresponding form fields in the first interactive form.

2. The interactive form processing method according to claim 1, characterized in that, The generating a second interactive form according to the attribute information of each form field in the first interactive form, the rearrangement information, and the table structure information of the first interactive form includes: Determine the type information and title information of each form field according to the attribute information of each form field in the first interactive form; Determine grouping information or rule information for each form field in the first interactive form according to the type information of the form field; Generate a second interactive form according to the table structure information of the first interactive form, the type information of each form field in the first interactive form, the title information, and the grouping information and rule information.

3. The interactive form processing method according to claim 2, characterized in that, The determining the type information of each form field according to the attribute information of each form field in the first interactive form includes: Obtain first attribute information from the attribute information of each form field in the first interactive form; Determine the type information of each form field according to the first attribute information.

4. The interactive form processing method according to claim 2, characterized in that, The type information of the form field includes any one or more of the following types: text form field, radio button form field, checkbox form field, combobox form field, listbox form field, and signature form field; Correspondingly, the determining the title information of each form field according to the attribute information of each form field in the first interactive form includes: Obtain second attribute information and third attribute information from the attribute information of each form field in the first interactive form; When the type information of the form field is a text form field, a combobox form field, or a listbox form field, use the information obtained from the second attribute information as the title information of the form field; when the second attribute information is missing, use the information obtained from the third attribute information as the title information of the form field; When the type information of the form field is a radio button form field or a checkbox form field, use the information obtained from the third attribute information as the title information of the form field; when the third attribute information is missing, use the information obtained from the second attribute information as the title information of the form field.

5. The interactive form processing method according to claim 2, characterized in that, Determining grouping information for each form field in the first interactive form according to the type information of the form field includes: When the type information of the form field is a checkbox form field, obtaining the coordinate information of each checkbox form field in the first interactive form; Calculating the coordinate differences between the checkbox form fields and adjacent checkbox form fields according to the coordinate information to obtain the horizontal coordinate differences and vertical coordinate differences of each checkbox form field; Comparing the absolute values of the horizontal coordinate differences and the absolute values of the vertical coordinate differences of each checkbox form field with a preset threshold respectively, and determining the grouping information of the checkbox form fields according to the comparison results.

6. The interactive form processing method according to claim 5, characterized in that, The comparing the absolute values of the horizontal coordinate differences and the absolute values of the vertical coordinate differences of each checkbox form field with a preset threshold respectively, and determining the grouping information of the checkbox form fields according to the comparison results includes: Calculating the horizontal coordinate difference and the vertical coordinate difference between a first checkbox form field and a second checkbox form field; wherein, the first checkbox form field and the second checkbox form field are any two adjacent checkbox form fields in the first interactive form; Dividing each checkbox form field in the first interactive form into: one or more horizontal groups, and / or one or more vertical groups, and / or ungrouped checkbox form fields according to the horizontal coordinate difference and the vertical coordinate difference between the first checkbox form field and the second checkbox form field and a preset threshold; When there are ungrouped checkbox form fields, according to the position coordinates of the ungrouped checkbox form fields and the position coordinates of the checkbox form fields in the existing horizontal groups or vertical groups, incorporating the ungrouped checkbox form fields into the existing horizontal groups or existing vertical groups. When the ungrouped checkbox form fields cannot be successfully incorporated into the existing horizontal groups or existing vertical groups, setting them as single groups; Setting titles for all the obtained horizontal groups, and / or all the obtained vertical groups, and / or all the single groups, and merging the combinations with the same title into the same group.

7. The interactive form processing method according to claim 6, characterized in that, The dividing each checkbox form field in the first interactive form into: one or more horizontal groups, and / or one or more vertical groups, and / or ungrouped checkbox form fields according to the horizontal coordinate difference and the vertical coordinate difference between the first checkbox form field and the second checkbox form field and a preset threshold includes: When the absolute value of the horizontal coordinate difference between the first checkbox form field and the second checkbox form field is less than or equal to a first threshold, and the absolute value of the vertical coordinate difference between the first checkbox form field and the second checkbox form field is less than or equal to a second threshold, determining that the first checkbox form field and the second checkbox form field are in the same vertical group; Wherein, the first threshold is a value used to describe the allowable error on the horizontal coordinate, and the second threshold is the maximum vertical spacing value; When the absolute value of the vertical coordinate difference between the first checkbox form field and the second checkbox form field is less than or equal to the fourth threshold, and the absolute value of the horizontal coordinate difference between the first checkbox form field and the second checkbox form field is less than or equal to the third threshold, it is determined that the first checkbox form field and the second checkbox form field are within the same horizontal group; wherein, the third threshold is the maximum horizontal spacing value; the fourth threshold is the value used to describe the allowable error on the vertical coordinate.

8. The interactive form processing method according to claim 6, wherein In the case where there are ungrouped checkbox form fields, according to the position coordinates of the ungrouped checkbox form fields and the position coordinates of the checkbox form fields in the existing horizontal group or vertical group, the ungrouped checkbox form fields are classified into the existing horizontal group or the existing vertical group. In the case where the ungrouped checkbox form fields are not successfully classified into the existing horizontal group or the existing vertical group, they are set as a single group, including: Calculating the horizontal coordinate difference and the vertical coordinate difference between the ungrouped checkbox form field and the third checkbox form field. When the absolute value of the horizontal coordinate difference is less than or equal to the first threshold and the absolute value of the vertical coordinate difference is less than or equal to the second threshold, the ungrouped checkbox form field is classified into the group where the third checkbox form field is located; wherein, the third checkbox form field is the first checkbox form field in the first preset direction in any existing horizontal group; the first threshold is the value used to describe the allowable error on the horizontal coordinate, and the second threshold is the maximum vertical spacing value; In the case where the ungrouped checkbox form field cannot be classified into the existing horizontal group, calculating the horizontal coordinate difference and the vertical coordinate difference between the ungrouped checkbox form field and the fourth checkbox form field. When the absolute value of the horizontal coordinate difference is less than or equal to the first threshold and the absolute value of the vertical coordinate difference is less than or equal to the second threshold, the ungrouped checkbox form field is classified into the group where the fourth checkbox form field is located; wherein, the fourth checkbox form field is the last checkbox form field in the second preset direction in any existing vertical group; In the case where the ungrouped checkbox form field cannot be classified into the existing horizontal group and the existing vertical group, the ungrouped checkbox form field is set as a single group.

9. The interactive form processing method according to claim 6, wherein Setting titles for all the obtained horizontal groups, and / or all the vertical groups, and / or all the single groups, and merging the combinations with the same title into the same group, including: Obtaining the coordinate information and text information of all the text boxes in the first interactive form; Obtaining the coordinate information of the group based on the coordinate information of all the checkbox form fields in the group; wherein, the group is any one of the horizontal group, the vertical group and the single group; Determining the corresponding text box for the group according to the coordinate information of the group and the coordinate information of the text box, and setting the text information of the corresponding text box as the title of the group; Merging the combinations with the same title into the same group.

10. The interactive form processing method according to claim 2, wherein The type information of the form field includes any one or more of the following types: text form field, radio button form field, checkbox form field, combo box form field, list box form field, and signature form field; Correspondingly, determining rule information for each form field in the first interactive form according to the type information and text information of the form field includes: When the type information of the form field is a text form field or a signature form field, setting a text processing rule for the text form field; When the type information of the form field is a combo box form field or a list box form field, obtaining option list data and setting a selection rule for whether multiple selections are allowed.

11. The interactive form processing method according to claim 2, wherein Generating a second interactive form according to the table structure information of the first interactive form, the type information, title information, grouping information, and rule information of each form field in the first interactive form includes: Sorting each form field in the first interactive form according to the table structure information of the first interactive form; Based on the type information, title information, grouping information, and rule information of each form field in the first interactive form, adjusting the display mode of each form field, and sorting the form fields with adjusted display modes according to the sorting result; Replacing the controls of each sorted form field with the controls in the mobile operating system to generate a second interactive form; Binding the form fields in the second interactive form to the corresponding form fields in the first interactive form.

12. The interactive form processing method according to claim 11, wherein The adjusting the display mode of each form field based on the type information, title information, grouping information, and rule information of each form field in the first interactive form includes: When the type information of the form field is a text form field, displaying the title information of the text form field above and the part to be filled in the text form field below.

13. The interactive form processing method according to claim 11, wherein The adjusting the display mode of each form field based on the type information, title information, grouping information, and rule information of each form field in the first interactive form includes: When the type information of the form field is a radio button form field or a checkbox form field, displaying the radio button form fields or checkbox form fields within the same group according to the grouping information; Among them, displaying the radio button form fields within the same group includes: Displaying the title information of the radio button form field group above, and displaying the title information and radio button form fields of the radio button form fields within the radio button form field group below; Displaying the checkbox form fields within the same group includes: Displaying the title information of the checkbox form field group above, and displaying the title information and checkbox form fields of the checkbox form fields within the checkbox form field group below.

14. The interactive form processing method according to claim 11, wherein The adjusting the display mode of each form field based on the type information, title information, grouping information, and rule information of each form field in the first interactive form includes: When the type information of the form field is a combo box form field or a list box form field, a pop-up window corresponding to the combo box form field or the list box form field is generated; wherein, each option in the combo box form field or the list box form field is arranged in the pop-up window in order from top to bottom.

15. The interactive form processing method according to claim 11, wherein The adjusting the display mode of each form field based on the type information, title information, grouping information, and rule information of each form field in the first interactive form includes: When the type information of the form field is a signature form field, a filling area for signature is generated.

16. The interactive form processing method according to claim 1, wherein The filling the data filled in each form field in the second interactive form back into the corresponding form field in the first interactive form to obtain a target file includes: Binding the mobile native controls corresponding to each form field in the second interactive form to each form field in the first interactive form item by item to obtain a binding relationship; According to the way of backfilling in a serial queue and the obtained binding relationship, the data filled in each form field in the second interactive form is backfilled into the corresponding form field in the first interactive form to obtain a target file.

17. An interactive form processing apparatus, wherein Includes: An acquisition module, configured to acquire the table structure information of the first interactive form and the attribute information of each form field in the first interactive form from a source file containing the first interactive form; wherein, the table structure information is the data structure information of the full-text form field obtained by traversing the source file; A rearrangement module, configured to generate a second interactive form according to the attribute information, rearrangement information, and table structure information of each form field in the first interactive form; wherein, the rearrangement information includes grouping information and rule information; A backfilling module, configured to fill the data filled in each form field in the second interactive form back into the corresponding form field in the first interactive form to obtain a target file; Wherein, the form fields in the second interactive form are arranged in the second interactive form in a manner adapted to the size of the first display screen, and there is a data binding relationship between the form fields in the second interactive form and the corresponding form fields in the first interactive form.

18. An electronic device, wherein Includes: A processor, a memory, and a bus, wherein, The processor and the memory communicate with each other through the bus; The memory stores program instructions executable by the processor, and the processor can execute the steps of the interactive form processing method according to any one of claims 1 to 16 by calling the program instructions.

19. A non-transitory computer-readable storage medium, wherein The non-transitory computer-readable storage medium stores computer instructions, and the computer instructions cause the computer to execute the steps of the interactive form processing method according to any one of claims 1 to 16.

Citation Information

Patent Citations

  • Method and system for converting page into layout data stream file

    CN105302550A