Method, device, electronic device and storage medium for processing document field information
By automatically obtaining the filling position of fields in the initial document in the layout file production of government affairs and determining the filling position based on the layout adjustment information, complex and error problems in the existing technology are solved, and efficient and accurate field filling is achieved.
Patent Information
- Application Number
- CN202210307694.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-03-25
- Publication Date
- 2025-08-08
- Estimated Expiration
- 2042-03-25
AI Technical Summary
In the prior art, the process of producing layout files for government affairs is complicated and error-prone, and inefficient, and requires manual binding of fields and fill areas.
By determining the pending fields of the target matter, obtaining their fill position in the initial document, and automatically determining the fill position of the field in the layout file based on the layout adjustment information during the layout process, reducing manual binding steps.
Improves the efficiency and accuracy of obtaining field fill positions in layout files, simplifies the production process, and avoids manual errors.
Smart Images

Figure CN114818621B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of digital services, and in particular to a method, device, electronic device, and storage medium for processing document field information. Background Art
[0002] Digital technology is an important means of promoting more efficient and convenient government services. Relying on digital platform technologies and relevant databases, when citizens apply for government affairs, the digital government service platform can automatically obtain relevant information and fill it into a layout document template to generate the application approval document, eliminating the need for the public to manually fill out the form.
[0003] In the related art, background configuration personnel are required to prepare layout files in advance and manually bind the field filling areas in the layout files to the fields. The process is complicated and has problems such as low efficiency and prone to errors. Summary of the Invention
[0004] The present application provides a method, apparatus, electronic device, and storage medium for processing document field information to address the problems existing in related technologies. The technical solutions are as follows:
[0005] In a first aspect, an embodiment of the present application provides a method for processing document field information, including:
[0006] Determine multiple fields to be processed corresponding to the target items;
[0007] Based on the multiple fields to be processed, an initial document and a filling position of each field in the multiple fields to be processed in the initial document are obtained;
[0008] Typeset based on the initial document to obtain the layout file corresponding to the target item;
[0009] The filling position of each field in the layout file is determined based on the filling position of each field in the initial document and the layout adjustment information during the typesetting process.
[0010] In a second aspect, an embodiment of the present application provides a device for processing document field information, including:
[0011] A field determination module is used to determine multiple fields to be processed corresponding to the target item;
[0012] A table creation module is used to obtain an initial document and a filling position of each field in the multiple fields to be processed in the initial document based on the multiple fields to be processed;
[0013] The document layout module is used to layout the initial document and obtain the layout file corresponding to the target item;
[0014] The position confirmation module is used to determine the filling position of each field in the layout file based on the filling position of each field in the initial document and the layout adjustment information in the typesetting process.
[0015] In a third aspect, an embodiment of the present application provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory, wherein the processor implements the method provided in any embodiment of the present application when executing the computer program.
[0016] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, in which a computer program is stored. When the computer program is executed by a processor, the method provided in any embodiment of the present application is implemented.
[0017] In a fifth aspect, an embodiment of the present application provides a computer program product, including a computer program, which implements the method provided in any embodiment of the present application when executed by a processor.
[0018] According to the technical solution of the embodiment of the present application, when preparing a layout document for the approval of government affairs, since the filling position of the field in the initial document is obtained before typesetting, the filling position of the field in the layout file can be obtained according to the layout adjustment information in the typesetting process. There is no need to manually bind the positions of each field and each filling area in the layout file, thereby improving the efficiency and accuracy of obtaining the filling position in the layout file.
[0019] The above summary is for illustrative purposes only and is not intended to be limiting in any way. In addition to the illustrative aspects, embodiments and features described above, further aspects, embodiments and features of the present application will be readily apparent by reference to the accompanying drawings and the following detailed description. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] In the accompanying drawings, unless otherwise specified, the same reference numerals throughout the multiple drawings represent the same or similar components or elements. These drawings are not necessarily drawn to scale. It should be understood that these drawings only depict some embodiments disclosed in this application and should not be construed as limiting the scope of this application.
[0021] Figure 1 It is a flowchart of the process of generating matter approval documents in the technology related to this application.
[0022] Figure 2 This is a schematic diagram of an exemplary scenario that can be used to implement the method for processing document field information of this application;
[0023] Figure 3 This is a flowchart of a method for processing document field information provided by an embodiment of the present application;
[0024] Figure 4 This is a flowchart of a method for processing document field information provided by another embodiment of the present application;
[0025] Figure 5 This is a flowchart of an application example of the method for processing field information of the application document;
[0026] Figure 6 This is a structural block diagram of a device for processing document field information provided by an embodiment of the present application;
[0027] Figure 7 This is a structural block diagram of a device for processing document field information provided by another embodiment of the present application;
[0028] Figure 8 It is a structural block diagram of an electronic device used to implement the method for processing document field information of this application. DETAILED DESCRIPTION
[0029] Hereinafter, only certain exemplary embodiments are briefly described. As will be appreciated by those skilled in the art, the described embodiments may be modified in various ways without departing from the spirit or scope of the present application. Therefore, the drawings and description are to be regarded as illustrative in nature and not restrictive.
[0030] To facilitate understanding of the technical solutions of the embodiments of the present application, the relevant technologies of the embodiments of the present application are described below. The following relevant technologies can be arbitrarily combined with the technical solutions of the embodiments of the present application as optional solutions, and they all fall within the protection scope of the embodiments of the present application.
[0031] Figure 1 The figure shows a flow chart of generating matter approval documents in related technology. Figure 1 As shown, for a certain government affairs matter, the back-end configuration personnel starts to create a layout file. The back-end configuration personnel can use text editing software (such as Word software) to create a static sample table. Specifically, the content layout can be defined based on the text editing, table editing and other functions in the text editing software. Then, the prepared static sample table is exported as a layout file and used as a template for the matter approval document. In the embodiment of the present application, the layout file can refer to an electronic document with a fixed layout presentation effect, such as a PDF (Portable Document Format) document, that is, the presentation effect of the layout file does not change due to changes in the hardware and software environment or the operator.
[0032] After exporting the layout file, the dynamic information fill-in areas are identified in the exported layout file manually or through automatic recognition tools. Back-end configuration personnel manually bind these fill-in areas to form fields and determine which form field information each fill-in area is used to fill.
[0033] For a user's request to handle government affairs, a renderer (such as a PDF renderer) can be used to fill the user's form field information into the layout file, and then render to generate the final matter approval document, which is, for example, a PDF file.
[0034] In the above process, not only does backend configuration staff need to spend time using text editing software to create a sample form as a template, but they also need to manually bind fields after creating the template. The overall process is complex, and manual editing and binding of fields is prone to errors due to human errors.
[0035] The method for processing document field information provided in the embodiments of the present application is mainly intended to solve at least one of the above technical problems.
[0036] In order to more clearly illustrate the method for processing document field information provided in the embodiments of the present application, an exemplary scenario that can be used to implement the method is first introduced. Figure 2 is a schematic diagram of this scenario. Figure 2 As shown, the government service platform client 100 is connected to the government service platform server 200 via a network. Users can use the government service platform client 100 to fill out forms and initiate service requests for government matters. In this embodiment of the application, users include the public who need to handle matters; forms are a collection of user information corresponding to various fields required to be filled in the matter, such as user name, occupation, and other information.
[0037] The server 200 is configured with a database 210, which stores user-filled forms. The server 200 includes a document field information processing device 220 for implementing the document field information processing method provided in the embodiment of the present application. The device 220 can read the fields and corresponding user information in the database. The device 220 reads the fields to generate a layout file used as a template for the matter approval document; by reading the user information corresponding to the fields, the layout file is filled in to obtain the matter approval document for the user to sign and confirm and submit to the government service platform for approval.
[0038] Figure 3 A flow chart of a method for processing document field information provided by an embodiment of the present application is shown. The method can optionally be applied to the above-mentioned device, but is not limited thereto. The method includes:
[0039] S310, determining multiple to-be-processed fields corresponding to the target item;
[0040] S320: Based on the multiple fields to be processed, obtain an initial document and a filling position of each field in the multiple fields to be processed in the initial document;
[0041] S330, performing typesetting based on the initial document to obtain a layout file corresponding to the target item;
[0042] S340: Determine the filling position of each field in the layout file based on the filling position of each field in the initial document and the layout adjustment information in the typesetting process.
[0043] For example, the target item can be a government item for which a template document for item approval is to be generated, such as a certificate issuance item, an information inquiry item, a service application item, etc. The fields corresponding to the target item can refer to the type or attributes of the information required to handle the item, such as name, occupation, contact information, etc. In actual applications, the multiple fields to be processed in step S310 above can be some or all of the fields corresponding to the target item.
[0044] Exemplarily, the initial document in the embodiment of the present application may include information filling areas for each field. For example, the initial document may include a table, and the information filling area may be a cell in the table for filling in information. In step S320, the initial document may be obtained by allocating information filling areas to multiple fields to be processed in the table. Here, the filling position of the field in the initial document is the position information of the information filling area corresponding to the field. In actual applications, the filling position may include position information such as the vertex coordinates, length, and width of the information filling area. For example, the filling position can be expressed as (x, y, w, h), where x is the horizontal coordinate of the upper left vertex of the information filling area, y is the vertical coordinate of the upper left vertex of the information filling area, w is the width of the information filling area, and h is the height of the information filling area.
[0045] For example, typesetting is performed based on the initial document, i.e., the layout of each area in the initial document is adjusted, such as enlarging, reducing, shifting left or right a certain information filling area, etc. After typesetting is completed, the adjusted table file can be output as a layout file, such as a PDF file, so that the layout is fixed and cannot be adjusted.
[0046] In the embodiment of the present application, the layout adjustment information in the typesetting process may refer to information such as the enlargement size, reduction size, left shift distance, and right shift distance of each area in the typesetting process.
[0047] According to the above description, when the initial document corresponding to the target item is obtained, the device / electronic device that executes the above method obtains the filling position of each field to be processed in the initial document, and then performs typeset. That is to say, before typeset, the device / electronic device has obtained the mapping relationship between each information filling area and the field to be processed in the table, and records the position information of the information filling area corresponding to each field. During the typeset process, the position information of each information filling area changes as the layout of each area is adjusted. Based on the original position information of each information filling area and the layout adjustment information, the device / electronic device obtains the position information of each information filling area in the above-mentioned layout file, that is, the filling position of each field in the layout file. It can be seen that in the embodiment of the present application, the mapping relationship between the information filling area and the field is first established and then typeset. Compared with the related art of first typeset a fixed layout and then binds the information filling area and the field, it has the characteristics of a simple process and does not require manual binding, which can improve the efficiency and accuracy of obtaining the filling position in the layout file.
[0048] In an exemplary embodiment, Figure 4 As shown, the above method may further include:
[0049] S410: In response to receiving a service request initiated by a first user for a target matter, reading corresponding information to be filled in from the first user's form information set based on each field;
[0050] S420: Based on the filling position of each field in the layout file, fill the information to be filled into the layout file to obtain the matter approval file of the first user.
[0051] For example, it can be combined with Figure 2 In the application scenario shown, each user's form information set is stored in the data of the government service platform server. Optionally, the user information included in the form information set can be input by the user when initiating a service request, or can be pre-obtained by the government service platform from other government systems.
[0052] For example, the information to be filled in is the user information required to fill in each field for handling the target matter. After reading the information to be filled in, based on the filling position of each field in the layout file, the information to be filled in can be accurately filled in the corresponding information filling area, thereby obtaining a layout file filled with the necessary information. As the first user's matter approval document, this file can be submitted to the government service platform for approval and processing by back-end approval personnel.
[0053] As an optional exemplary implementation, the above step S310, determining the multiple fields to be processed corresponding to the target item, may include:
[0054] Based on the situation to be processed, multiple fields related to the situation to be processed are filtered out from the field set corresponding to the target matter;
[0055] Based on multiple fields related to the situation to be processed, multiple fields to be processed are obtained.
[0056] The above-mentioned pending situations are the situations for which the current template file is to be generated. In actual applications, different situations may have different relevant fields for the same matter. For example, users of different professions may need to fill in different fields when applying for the same matter service.
[0057] In an embodiment of the present application, a set of fields corresponding to the target items can be shared from the database of the government service platform service end, and then based on the situation to be processed, multiple fields related to the situation to be processed can be filtered out from the field set, and the multiple fields obtained by filtering can be used as the above-mentioned fields to be processed, or some fields can be selected from the multiple fields obtained by filtering as the above-mentioned fields to be processed to generate a layout file. It can be seen that the embodiment of the present application supports automatic sharing and filtering of fields related to target items and situations from background data, without the need to manually fill in fields, thereby improving the efficiency of layout file production and eliminating the problem of repeatedly debugging layout files due to manual errors and the like.
[0058] As an optional exemplary embodiment, the above method further includes a step of determining a situation to be processed. Specifically, the above method further includes:
[0059] Determine user attributes related to the target issue;
[0060] Determine multiple scenarios of the target event based on multiple values of user attributes;
[0061] A case to be processed is determined among the plurality of cases.
[0062] For example, user attributes related to the target item can determine the type of field information required to handle the target item. For example, different occupations have different field information required to handle the target item, so occupation is a user attribute related to the target item.
[0063] In practical applications, there can be multiple user attributes related to the target item, and the multiple scenarios of the target item can be combinations of values of multiple user attributes. For example, the user attributes related to the target item include occupation and education level. Occupation and education level each have three values, which can be combined into nine scenarios. Therefore, the target item corresponds to nine scenarios.
[0064] For example, each situation can be traversed and the traversed situations can be used as situations to be processed, so that layout files can be obtained for various situations of the target matter, and all layout files corresponding to the target matter and the filling positions of each field therein can be obtained efficiently and accurately.
[0065] As an optional exemplary embodiment, in the above step S320, obtaining the initial document based on the multiple fields to be processed includes:
[0066] Based on the field type of each field, determine the filling requirement information of each field;
[0067] Based on the filling requirement information of each field in the pre-configuration file, a table area is allocated to each field to obtain an initial document.
[0068] For example, the fill requirement information may include the width and order of the fill area required for the field. Different field types correspond to different fill requirement information. For example, important fields require the fill area to be placed at the front, and address fields require a wider fill area.
[0069] For example, the preconfigured file can be a file with a preconfigured page background or a blank document. According to the above embodiment, in the preconfigured file, table areas are allocated to fields based on the field filling requirement information, thereby generating an initial document. This can ensure that the table areas in the initial table are allocated reasonably, which helps reduce the range and number of layout adjustments during the typesetting process, thereby improving efficiency.
[0070] As an optional exemplary embodiment, in step S330, typeset the initial document, including:
[0071] Display the initial document in the editor interface;
[0072] In response to detecting a layout adjustment operation of the initial document by the second user on the editor interface, the initial document is typeset based on the layout adjustment operation.
[0073] Exemplarily, an editor interface may be provided in the client of the government service platform for a second user, such as a back-end configuration staff, to typeset the initial document.
[0074] For example, the layout adjustment operations described above may include enlarging the information filling area, reducing the information filling area, moving the information filling area, changing the presentation order of the information filling area, etc. These operations can be performed by clicking, dragging, entering values, etc. Providing an online layout file creation method can speed up the layout file creation process and provide greater portability.
[0075] In order to more clearly present the technical concept of this application, a specific application example is provided below.
[0076] like Figure 5 As shown, this application example includes the following steps:
[0077] S510: different scenarios are obtained by combining and superimposing the fields in the form, and for the scenarios to be processed, the fields in the form after scenario filtering are shared;
[0078] S520, selecting a list of fields actually required from the filtered fields;
[0079] S530, online typesetting, generating a layout file used as an online template;
[0080] S540. Render the final PDF file as the matter approval document.
[0081] It can be seen that according to the method of the embodiment of the present application, when preparing a layout file for matter approval, since the filling position of the field in the initial document is obtained before typesetting, the filling position of the field in the layout file can be obtained according to the layout adjustment information in the typesetting process. There is no need to manually bind the positions of each field and each filling area in the layout file, thereby improving the efficiency and accuracy of obtaining the filling position in the layout file.
[0082] Corresponding to the application scenario and method of the method provided in the embodiment of the present application, the embodiment of the present application also provides a device 600 for processing document field information. Figure 6 , the apparatus 600 may include:
[0083] A field determination module 610 determines a plurality of to-be-processed fields corresponding to a target item;
[0084] A table creation module 620 is configured to obtain an initial document and a filling position of each of the multiple fields to be processed in the initial document based on the multiple fields to be processed;
[0085] The document layout module 630 is used to layout the initial document to obtain a layout file corresponding to the target item;
[0086] The position confirmation module 640 is used to determine the filling position of each field in the layout file based on the filling position of each field in the initial document and the layout adjustment information in the typesetting process.
[0087] For example, Figure 7 As shown, the above-mentioned device 600 further includes:
[0088] The information reading module 710 is configured to, in response to receiving a service request initiated by a first user for a target matter, read corresponding information to be filled in from the first user's form information set based on each field;
[0089] The information filling module 720 is used to fill the information to be filled into the layout file based on the filling position of each field in the layout file, so as to obtain the matter approval file of the first user.
[0090] For example, Figure 7 As shown, the above-mentioned document typesetting module 630 includes:
[0091] The table display unit 631 is used to display the initial document in the editor interface;
[0092] The layout adjusting unit 632 is configured to, in response to detecting a layout adjustment operation of the initial document by the second user on the editor interface, typeset the initial document based on the layout adjustment operation.
[0093] For example, Figure 7 As shown, the field determination module 610 includes:
[0094] A field filtering unit 611 is configured to filter out a plurality of fields related to the situation to be processed from a field set corresponding to the target matter based on the situation to be processed;
[0095] The field acquisition unit 612 is configured to obtain multiple fields to be processed based on multiple fields related to the situation to be processed.
[0096] Exemplarily, the apparatus 600 further includes:
[0097] An attribute determination module, used to determine user attributes related to the target item;
[0098] A situation determination module, used to determine multiple situations of the target matter based on multiple values of user attributes;
[0099] The situation filtering module is used to determine a situation to be processed among multiple situations.
[0100] For example, Figure 7 As shown, the table creation module 620 includes:
[0101] A requirement determination unit 621 is configured to determine filling requirement information of each field based on the field type of each field;
[0102] The area allocation unit 622 is configured to allocate a table area to each field based on the filling requirement information of each field in the pre-configuration file to obtain an initial document.
[0103] The functions of each module in each device in the embodiment of the present application can be referred to the corresponding description in the above method, and have corresponding beneficial effects, which will not be repeated here.
[0104] An embodiment of the present application also provides an electronic device for implementing the above method. Figure 8 FIG. 1 shows a structural block diagram of an electronic device according to an embodiment of the present application. Figure 8 As shown, the electronic device includes a memory 810 and a processor 820. The memory 810 stores a computer program that can be executed on the processor 820. When the processor 820 executes the computer program, the method for processing document field information in the above embodiment is implemented. The number of the memory 810 and the processor 820 can be one or more.
[0105] The electronic device also includes:
[0106] The communication interface 830 is used to communicate with external devices and perform data exchange transmission.
[0107] If the memory 810, the processor 820, and the communication interface 830 are implemented independently, the memory 810, the processor 820, and the communication interface 830 can be connected to each other via a bus and communicate with each other. The bus can be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, or an Extended Industry Standard Architecture (EISA) bus. The bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 8 Only one thick line is used in the diagram, but this does not mean that there is only one bus or one type of bus.
[0108] Optionally, in a specific implementation, if the memory 810, the processor 820 and the communication interface 830 are integrated on a chip, the memory 810, the processor 820 and the communication interface 830 can communicate with each other through an internal interface.
[0109] An embodiment of the present application also provides a computer-readable storage medium storing a computer program, which, when executed by a processor, implements the method provided in any embodiment of the present application.
[0110] An embodiment of the present application further provides a computer program product, which includes a computer program. When the computer program is executed by a processor, it implements the method provided in any embodiment of the present application.
[0111] An embodiment of the present application also provides a chip, which includes a processor for calling and executing instructions stored in the memory from the memory, so that a communication device equipped with the chip executes the method provided in the embodiment of the present application.
[0112] An embodiment of the present application also provides a chip, including: an input interface, an output interface, a processor and a memory. The input interface, the output interface, the processor and the memory are connected through an internal connection path. The processor is used to execute the code in the memory. When the code is executed, the processor is used to execute the method provided in the embodiment of the application.
[0113] It should be understood that the processor may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor may be a microprocessor or any conventional processor, etc. It is worth noting that the processor may be a processor that supports the Advanced RISC Machines (ARM) architecture.
[0114] Furthermore, optionally, the above-mentioned memory may include read-only memory and random access memory, and may also include non-volatile random access memory. The memory may be volatile memory or non-volatile memory, or may include both volatile and non-volatile memory. Among them, the non-volatile memory may include read-only memory (ROM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM) or flash memory. The volatile memory may include random access memory (RAM), which is used as an external cache. By way of example but not limitation, many forms of RAM are available. For example, static RAM (SRAM), dynamic random access memory (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDR SDRAM), enhanced SDRAM (ESDRAM), Sync Link DRAM (SLDRAM) and Direct Rambus RAM (DR RAM).
[0115] In the above embodiments, all or part of the embodiments may be implemented using software, hardware, firmware, or any combination thereof. When implemented using software, all or part of the embodiments may be implemented in the form of a computer program product. A computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the processes or functions according to the present application are generated in whole or in part. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions may be stored in a computer-readable storage medium or transferred from one computer-readable storage medium to another.
[0116] In the description of this specification, the reference terms "one embodiment," "some embodiments," "example," "specific example," or "some examples" mean that the specific features, structures, materials, or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present application. Moreover, the specific features, structures, materials, or characteristics described may be combined in any appropriate manner in any one or more embodiments or examples. In addition, those skilled in the art may combine and combine different embodiments or examples described in this specification, as well as features of different embodiments or examples, unless they are mutually inconsistent.
[0117] Furthermore, the terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of technical features being referred to. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one such feature. Throughout the description of this application, "plurality" means two or more, unless otherwise specifically defined.
[0118] Any process or method description in a flow chart or otherwise described herein can be understood to represent a module, segment or portion of code comprising one or more executable instructions for implementing the steps of a specific logical function or process. The scope of the preferred embodiments of the present application includes additional implementations in which the functions may be performed in a different order than shown or discussed, including in a substantially simultaneous manner or in a reverse order depending on the functions involved.
[0119] The logic and / or steps represented in the flowchart or otherwise described herein may be considered, for example, as an ordered list of executable instructions for implementing logical functions, and may be embodied in any computer-readable medium for use by, or in conjunction with, an instruction execution system, apparatus, or device (such as a computer-based system, a system including a processor, or other system that can fetch and execute instructions from an instruction execution system, apparatus, or device).
[0120] It should be understood that various parts of the present application can be implemented using hardware, software, firmware, or a combination thereof. In the above embodiments, multiple steps or methods can be implemented using software or firmware stored in a memory and executed by a suitable instruction execution system. All or part of the steps of the above embodiment method can be completed by instructing the relevant hardware through a program, which can be stored in a computer-readable storage medium. When the program is executed, it includes one or a combination of the steps of the method embodiment.
[0121] In addition, the functional units in the various embodiments of the present application may be integrated into a single processing module, or each unit may exist physically separately, or two or more units may be integrated into a single module. The aforementioned integrated modules may be implemented in the form of hardware or in the form of software functional modules. If the aforementioned integrated modules are implemented in the form of software functional modules and sold or used as independent products, they may also be stored in a computer-readable storage medium. The storage medium may be a read-only memory, a magnetic disk, or an optical disk, etc.
[0122] The above description is merely a specific embodiment of the present application, but the scope of protection of the present application is not limited thereto. Any person skilled in the art can easily conceive of various modifications or substitutions within the technical scope disclosed in this application, and such modifications or substitutions should be included within the scope of protection of the present application. Therefore, the scope of protection of the present application should be based on the scope of protection of the claims.
Claims
1. A method for processing document field information, comprising: Before typesetting, determine the multiple fields to be processed corresponding to the target items; Based on the multiple fields to be processed, obtaining an initial document and a filling position of each field in the multiple fields to be processed in the initial document; During the typesetting process, typesetting is performed based on the initial document to obtain a layout file corresponding to the target item so that the layout is fixed and cannot be adjusted; The filling position of each field in the layout file is determined based on the filling position of each field in the initial document and the layout adjustment information in the typesetting process.
2. The method according to claim 1, wherein The method further comprises: In response to receiving a service request initiated by a first user for the target matter, reading corresponding information to be filled in from the form information set of the first user based on each field; Based on the filling position of each field in the layout file, the information to be filled is filled into the layout file to obtain the matter approval file of the first user.
3. The method according to claim 1 or 2, wherein: The typesetting based on the initial document includes: Displaying the initial document in the editor interface; In response to detecting a layout adjustment operation of the initial document by a second user on the editor interface, the initial document is typeset based on the layout adjustment operation.
4. The method according to claim 1 or 2, wherein: The multiple fields to be processed corresponding to the target items are determined, including: Based on the situation to be processed, filtering out multiple fields related to the situation to be processed from the field set corresponding to the target matter; The multiple fields to be processed are obtained based on multiple fields related to the situation to be processed.
5. The method according to claim 4, wherein The method further comprises: Determining user attributes related to the target matter; Determining multiple scenarios of the target event based on multiple values of the user attribute; A case to be processed is determined among the plurality of cases.
6. The method according to claim 1 or 2, wherein: The obtaining of an initial document based on the multiple fields to be processed includes: Determining filling requirement information of each field based on the field type of each field; In the pre-configuration file, based on the filling requirement information of each field, a table area is allocated to each field to obtain the initial document.
7. A device for processing document field information, comprising: The field determination module is used to determine multiple fields to be processed corresponding to the target item before typesetting; A table creation module, configured to obtain an initial document and a filling position of each of the multiple fields to be processed in the initial document based on the multiple fields to be processed; A document typesetting module is used to perform typesetting based on the initial document during typesetting, and obtain a layout file corresponding to the target item so that the layout is fixed and cannot be adjusted; The position confirmation module is used to determine the filling position of each field in the layout file based on the filling position of each field in the initial document and the layout adjustment information in the typesetting process.
8. An electronic device comprising a memory, a processor, and a computer program stored in the memory, wherein the processor implements the method according to any one of claims 1 to 6 when executing the computer program.
9. A computer-readable storage medium, wherein a computer program is stored in the computer-readable storage medium, and when the computer program is executed by a processor, the method according to any one of claims 1 to 6 is implemented.
10. A computer program product comprising a computer program, wherein when the computer program is executed by a processor, the computer program implements the method according to any one of claims 1 to 6.
Citation Information
Patent Citations
Apparatus, system and method for vector-based form field document
CN103518195A
Structured document information labeling method and device and electronic equipment
CN111695518A
Service information acquisition method and device, computer equipment and readable storage medium
CN112863506A
Online contract generation method and device and readable storage medium
CN113705182A