Document content display method and device, computer equipment, readable storage medium and program product

By obtaining and replacing strings in the document, generating and displaying target controls, the cumbersome problem of adding controls in traditional template creation is solved, and efficiency and accuracy are improved.

CN119311364APending Publication Date: 2025-01-14SHENZHEN FADADA NETWORK TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411482600.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-10-23
Publication Date
2025-01-14

AI Technical Summary

Technical Problem

During the creation of traditional templates, the addition of controls is cumbersome and time-consuming, which affects efficiency.

Method used

By obtaining the string and string names in the source document, the target control is generated using placeholder replacement, and the target control is generated based on the attributes of the target string, and the corresponding placeholder is replaced, which is displayed in the display panel.

Benefits of technology

It improves the efficiency and accuracy of adding controls and simplifies the process of setting the location and properties of controls in the document.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119311364A_ABST
    Figure CN119311364A_ABST
Patent Text Reader

Abstract

The invention relates to a document content display method and device, computer equipment, a computer readable storage medium and a computer program product. The method comprises the steps of obtaining at least one first character string in a source document and a character string name of the first character string, and replacing the first character string in the source document with a placeholder; obtaining a target document uploaded by the user, at least one second character string in the target document, and character string attributes of the second character strings; for each placeholder in the source document, obtaining a target character string with the same character string name as the first character string corresponding to the placeholder from the at least one second character string; generating a target control based on the character string attribute of the target character string, and replacing the corresponding placeholder with the target control; and displaying the source document including the target control in the display panel. According to the method provided by the invention, the control adding efficiency and accuracy can be effectively improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer technology, and in particular to a document content display method, apparatus, computer equipment, computer-readable storage medium, and computer program product. Background Art

[0002] Templates are widely used in the process of managing electronic contracts within enterprises. The traditional template creation process usually includes steps such as setting template properties, uploading documents, adding parties, adding controls, and associating controls with parties. In the process of adding controls, users need to drag each control to the appropriate position in the document and set the control's name, width, height and other properties. This process is cumbersome and time-consuming. Summary of the invention

[0003] Based on this, it is necessary to provide a document content display method, apparatus, computer device, computer-readable storage medium and computer program product that can improve the efficiency of adding controls in response to the above technical problems.

[0004] In a first aspect, the present application provides a method for displaying document content, the method comprising:

[0005] Acquire at least one first string and a string name of the first string in a source document, and replace the first string in the source document with a placeholder;

[0006] Acquire a target document uploaded by a user, at least one second string in the target document, and string attributes of the second string, wherein the string attributes include position coordinates, string height, string width, string name, and input hint of the second string in the target document;

[0007] For each placeholder in the source document, acquiring, from the at least one second string, a target string having the same string name as the first string corresponding to the placeholder;

[0008] Generate a target control based on the string attribute of the target string, and replace the corresponding placeholder with the target control;

[0009] The source document including the target control is displayed in the display panel.

[0010] In one embodiment, obtaining at least one first string and a string name of the first string in the source document includes:

[0011] The source document is formatted, the format-converted document is input into a natural language processing model, and the first character string and the character string name of the first character string are output.

[0012] In one embodiment, the process of obtaining the position coordinates includes:

[0013] For each second character string, when the second character string includes at least two characters, obtaining position coordinates of two characters located at both ends of the second character string in the target document;

[0014] An average value of the position coordinates of the two characters is determined as the position coordinates of the second character string.

[0015] In one embodiment, the process of obtaining the height of the character string includes:

[0016] For each second character string, if the second character string is in a table, a cell height of the table is determined as the character string height; if the second character string is not in a table, a preset height is determined as the character string height.

[0017] In one embodiment, the process of obtaining the width of the character string includes:

[0018] For each second character string, if the second character string is not in the table and the second character string includes at least two characters, obtaining position coordinates of two characters located at both ends of the second character string in the target document;

[0019] The absolute value of the difference between the position coordinates of the two characters is determined as the character string width.

[0020] In one embodiment, the process of obtaining the width of the character string includes:

[0021] For each second character string, when the second character string is located in a table, a cell width of the table is determined as the character string width.

[0022] In a second aspect, the present application further provides a document content display device, the device comprising:

[0023] A first acquisition module, used for acquiring at least one first string and a string name of the first string in a source document, and replacing the first string in the source document with a placeholder;

[0024] A second acquisition module is used to acquire a target document uploaded by a user, at least one second string in the target document, and string attributes of the second string, wherein the string attributes include position coordinates of the second string in the target document, string height, string width, string name, and input hint;

[0025] A third acquisition module is used for acquiring, for each placeholder in the source document, from the at least one second string, a target string having the same string name as the first string corresponding to the placeholder;

[0026] A generating module, used for generating a target control based on the string attribute of the target string, and replacing the corresponding placeholder with the target control;

[0027] The display module is used to display the source document including the target control in a display panel.

[0028] In a third aspect, the present application further provides a computer device, which includes a memory and a processor, wherein the memory stores a computer program, and the processor implements the steps of the method in any one of the above embodiments when executing the computer program.

[0029] In a fourth aspect, the present application further provides a computer-readable storage medium, wherein a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the steps of the method in any one of the above embodiments are implemented.

[0030] In a fifth aspect, the present application further provides a computer program product, which includes a computer program, and when the computer program is executed by a processor, the steps of the method in any one of the above embodiments are implemented.

[0031] The document content display method, device, computer equipment, computer-readable storage medium and computer program product described above obtain at least one first string and the string name of the first string in the source document, and replace the first string in the source document with a placeholder; obtain the target document uploaded by the user, at least one second string in the target document, and the string attributes of the second string, the string attributes including the position coordinates, string height, string width, string name and input prompt of the second string in the target document; for each placeholder in the source document, obtain a target string having the same string name as the first string corresponding to the placeholder from at least one second string; generate a target control based on the string attributes of the target string, and replace the corresponding placeholder with the target control; and display the source document including the target control in the display panel. The method provided by the present application can effectively improve the efficiency and accuracy of adding controls. BRIEF DESCRIPTION OF THE DRAWINGS

[0032] In order to more clearly illustrate the technical solutions in the embodiments of the present application or related technologies, the drawings required for use in the embodiments of the present application or related technical descriptions will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.

[0033] FIG1 is a schematic diagram of a flow chart of a method for displaying document content in one embodiment;

[0034] FIG2 is a schematic flow chart of a method for determining the position coordinates of a second character string in one embodiment;

[0035] FIG3 is a structural block diagram of a document content display device in one embodiment;

[0036] FIG. 4 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION

[0037] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0038] In one embodiment, as shown in FIG1 , a document content display method is provided. This embodiment is described by taking the method applied to a terminal as an example. It is understandable that the method can also be applied to a server, and can also be applied to a system including a terminal and a server, and is implemented through the interaction between the terminal and the server. In this embodiment, the method includes the following steps:

[0039] S102: Acquire at least one first string and a string name of the first string in a source document, and replace the first string in the source document with a placeholder.

[0040] Among them, a placeholder refers to a location marker used to replace specific data or content.

[0041] S104, obtaining a target document uploaded by the user, at least one second string in the target document, and string attributes of the second string, wherein the string attributes include position coordinates of the second string in the target document, string height, string width, string name, and input hint.

[0042] Optionally, for example, the second character string is {{mobile phone number: please enter your mobile phone number}}, wherein “mobile phone number” is the character string name, and “please enter your mobile phone number” is the input prompt.

[0043] S106. For each placeholder in the source document, obtain, from at least one second string, a target string having the same string name as the first string corresponding to the placeholder.

[0044] The first string and the second string have the same name, indicating that the target control generated based on the string attribute of the second string and the placeholder corresponding to the first string are located in the same position in the source document.

[0045] S108. Generate a target control based on the string attribute of the target string, and replace the corresponding placeholder with the target control.

[0046] Among them, controls refer to interactive elements used to interact with users in a graphical user interface. Controls allow users to enter data, change settings, execute commands, or navigate applications. Controls can be windows, buttons, text boxes, drop-down lists, sliders, check boxes, and almost any interface element that can respond to user operations.

[0047] S110: Displaying a source document including a target control in a display panel.

[0048] After the source document including the target control is displayed in the display panel, the user can input data in the target control based on the corresponding string name and input prompt of the target control.

[0049] In the above document content display method, at least one first string and the string name of the first string in the source document are obtained, and the first string in the source document is replaced with a placeholder; the target document uploaded by the user, at least one second string in the target document, and the string attributes of the second string are obtained, and the string attributes include the position coordinates of the second string in the target document, the string height, the string width, the string name, and the input prompt; for each placeholder in the source document, a target string having the same string name as the first string corresponding to the placeholder is obtained from at least one second string; a target control is generated based on the string attributes of the target string, and the corresponding placeholder is replaced with the target control; and the source document including the target control is displayed in the display panel. The method provided by the present application can effectively improve the efficiency and accuracy of adding controls.

[0050] In some embodiments, obtaining at least one first string and a string name of the first string in a source document includes: formatting the source document, inputting the format-converted document into a natural language processing model, and outputting the first string and the string name of the first string.

[0051] Optionally, for example, the format of the source document before format conversion may be a word document, and the format of the source document after format conversion may be a pdf document.

[0052] In this embodiment, format conversion of the source document can effectively improve the efficiency and accuracy of subsequently acquiring the first character string and the character string name of the first character string.

[0053] In some embodiments, as shown in FIG2 , the process of obtaining the position coordinates includes:

[0054] S202: For each second character string, if the second character string includes at least two characters, obtain position coordinates of two characters located at both ends of the second character string in the target document.

[0055] S204: Determine an average value of the position coordinates of the two characters as the position coordinates of the second character string.

[0056] Wherein, when the second character string includes only one character, the position coordinates of the character are determined as the position coordinates of the second character string.

[0057] In this embodiment, the average value of the position coordinates of the two characters is determined as the position coordinates of the second character string, so that the target control generated based on the character string attribute of the second character string is more accurate.

[0058] In some embodiments, the process of obtaining the string height includes: for each second string, if the second string is in a table, determining the cell height of the table as the string height; if the second string is not in the table, determining a preset height as the string height.

[0059] The cell height refers to the space occupied by the cell in the vertical direction.

[0060] In this embodiment, in the process of determining the height of the character string, two situations are divided into: the second character string is located in the table and the second character string is not located in the table, so that the determined character string height is more accurate.

[0061] In some embodiments, the process of obtaining the string width includes: for each second string, when the second string is not in a table and includes at least two characters, obtaining the position coordinates of two characters located at both ends of the second string in the target document; and determining the absolute value of the difference between the position coordinates of the two characters as the string width.

[0062] If the second character string is not in the table and the second character string includes only one character, the width of the character is determined as the width of the second character string.

[0063] In this embodiment, when the second string is not in the table and includes at least two characters, the string width of the second string is determined based on the position coordinates of the two characters at both ends of the second string, so that the determined string width of the second string is more accurate.

[0064] In some embodiments, the process of obtaining the string width includes: for each second string, when the second string is in a table, determining the cell width of the table as the string width.

[0065] The cell width of a table refers to the space occupied by a single cell in the table in the horizontal direction.

[0066] In this embodiment, when the second character string is located in a table, the cell width of the table is determined as the character string width, so that the character string width determined in this way is more accurate.

[0067] In one embodiment, another document content display method is provided, the method comprising the following contents:

[0068] After the user uploads the source document, the system converts the source document into PDF format, then parses the characters of the PDF document, finds the string that matches the placeholder format, and obtains the following information:

[0069] 1. Control coordinates: For each placeholder format string, the coordinates of the control are calculated based on the coordinate information of the first and last characters. The midpoint of the two character coordinates is the coordinate of the control.

[0070] 2. Control height: For table scene controls, the height is based on the table cell height, while for non-table scenes, the height is the default height.

[0071] 3. Width of the control: For table scene controls, the width is based on the table cell width. For non-table scenes, the width is calculated based on the coordinates of the first and last characters in the placeholder format. The absolute value of the difference between the x coordinates of the two characters is the width.

[0072] 4. Control name: The string before the placeholder colon is the control name.

[0073] 5. Control input hint: The string after the placeholder string colon is the control input hint.

[0074] After obtaining the above information, the control data can be generated. After the control data is generated, the user's original document is saved, a PDF file is copied, and the placeholder information of the copied file is cleared. Then, the file information and control information are returned to the front-end for display.

[0075] It should be understood that, although the various steps in the flowcharts involved in the above-mentioned embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps does not have a strict order restriction, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above-mentioned embodiments can include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.

[0076] Based on the same inventive concept, the embodiment of the present application also provides a document content display device for implementing the document content display method involved above. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme recorded in the above method, so the specific limitations in one or more document content display device embodiments provided below can refer to the limitations of the document content display method above, and will not be repeated here.

[0077] In an exemplary embodiment, as shown in FIG3 , a document content display device 300 is provided, comprising: a first acquisition module 301, a second acquisition module 302, a third acquisition module 303, a generation module 304 and a display module 305, wherein:

[0078] The first acquisition module 301 is used to acquire at least one first string and a string name of the first string in a source document, and replace the first string in the source document with a placeholder.

[0079] The second acquisition module 302 is used to acquire the target document uploaded by the user, at least one second string in the target document, and string attributes of the second string, wherein the string attributes include the position coordinates, string height, string width, string name and input prompt of the second string in the target document.

[0080] The third acquisition module 303 is configured to acquire, for each placeholder in the source document, from the at least one second string, a target string having the same string name as the first string corresponding to the placeholder.

[0081] The generating module 304 is used to generate a target control based on the string attribute of the target string, and replace the corresponding placeholder with the target control.

[0082] The display module 305 is used to display the source document including the target control in a display panel.

[0083] In some embodiments, the first acquisition module 301 is further used to perform format conversion on the source document, input the format-converted document into a natural language processing model, and output the first character string and the character string name of the first character string.

[0084] In some embodiments, the document content display device 300 is specifically used to obtain the position coordinates of two characters located at both ends of each second character string in the target document, when the second character string includes at least two characters; and determine the average value of the position coordinates of the two characters as the position coordinates of the second character string.

[0085] In some embodiments, the document content display device 300 is further used to, for each second character string, determine the cell height of the table as the character string height when the second character string is located in a table, and determine the preset height as the character string height when the second character string is not located in a table.

[0086] In some embodiments, the document content display device 300 is further used to obtain the position coordinates of two characters located at both ends of each second character string in the target document, if the second character string is not located in a table and the second character string includes at least two characters; and determine the absolute value of the difference between the position coordinates of the two characters as the character string width.

[0087] In some embodiments, the document content display device 300 is further configured to, for each second character string, determine a cell width of the table as the character string width when the second character string is in a table.

[0088] Each module in the document content display device can be implemented in whole or in part by software, hardware, or a combination thereof. Each module can be embedded in or independent of a processor in a computer device in the form of hardware, or can be stored in a memory in a computer device in the form of software, so that the processor can call and execute operations corresponding to each module.

[0089] In an exemplary embodiment, a computer device is provided, which may be a terminal, and its internal structure diagram may be shown in FIG4. The computer device includes a processor, a memory, an input / output interface, a communication interface, a display unit, and an input device. The processor, the memory, and the input / output interface are connected via a system bus, and the communication interface, the display unit, and the input device are connected to the system bus via the input / output interface. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The input / output interface of the computer device is used to exchange information between the processor and an external device. The communication interface of the computer device is used to communicate with an external terminal in a wired or wireless manner, and the wireless manner can be implemented through WIFI, a mobile cellular network, a near field communication (NFC) or other technologies. When the computer program is executed by the processor, a document content display method is implemented.

[0090] Those skilled in the art will understand that the structure shown in FIG. 4 is merely a block diagram of a partial structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than shown in the figure, or combine certain components, or have a different arrangement of components.

[0091] In an exemplary embodiment, a computer device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and the processor implements the following steps when executing the computer program: obtaining at least one first string in a source document and a string name of the first string, and replacing the first string in the source document with a placeholder; obtaining a target document uploaded by a user, at least one second string in the target document, and string attributes of the second string, wherein the string attributes include position coordinates, string height, string width, string name, and input prompt of the second string in the target document; for each placeholder in the source document, obtaining a target string having the same string name as the first string corresponding to the placeholder from the at least one second string; generating a target control based on the string attributes of the target string, and replacing the corresponding placeholder with the target control; and displaying the source document including the target control in a display panel.

[0092] In one embodiment, obtaining at least one first string and a string name of the first string in a source document implemented by a processor executing a computer program includes: formatting the source document, inputting the format-converted document into a natural language processing model, and outputting the first string and the string name of the first string.

[0093] In one embodiment, the process of obtaining position coordinates implemented when the processor executes a computer program includes: for each second character string, when the second character string includes at least two characters, obtaining the position coordinates of two characters located at both ends of the second character string in the target document; and determining the average value of the position coordinates of the two characters as the position coordinates of the second character string.

[0094] In one embodiment, the process of obtaining the height of a character string implemented when a processor executes a computer program includes: for each second character string, when the second character string is located in a table, determining the cell height of the table as the height of the character string; when the second character string is not located in the table, determining a preset height as the height of the character string.

[0095] In one embodiment, the process of obtaining the string width implemented by the processor when executing a computer program includes: for each second string, when the second string is not located in a table and the second string includes at least two characters, obtaining the position coordinates of two characters located at both ends of the second string in the target document; and determining the absolute value of the difference between the position coordinates of the two characters as the string width.

[0096] In one embodiment, the process of obtaining the string width implemented when the processor executes the computer program includes: for each second string, when the second string is located in a table, determining the cell width of the table as the string width.

[0097] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented: obtaining at least one first string in a source document and a string name of the first string, and replacing the first string in the source document with a placeholder; obtaining a target document uploaded by a user, at least one second string in the target document, and string attributes of the second string, the string attributes including the position coordinates, string height, string width, string name, and input prompt of the second string in the target document; for each placeholder in the source document, obtaining a target string having the same string name as the first string corresponding to the placeholder from the at least one second string; generating a target control based on the string attributes of the target string, and replacing the corresponding placeholder with the target control; and displaying the source document including the target control in a display panel.

[0098] In one embodiment, the method of obtaining at least one first string and the string name of the first string in a source document implemented when the computer program is executed by a processor includes: formatting the source document, inputting the format-converted document into a natural language processing model, and outputting the first string and the string name of the first string.

[0099] In one embodiment, the process of obtaining position coordinates implemented when the computer program is executed by a processor includes: for each second character string, when the second character string includes at least two characters, obtaining the position coordinates of two characters located at both ends of the second character string in the target document; and determining the average value of the position coordinates of the two characters as the position coordinates of the second character string.

[0100] In one embodiment, the process of obtaining the height of a character string implemented when a computer program is executed by a processor includes: for each second character string, when the second character string is located in a table, determining the cell height of the table as the height of the character string; when the second character string is not located in the table, determining a preset height as the height of the character string.

[0101] In one embodiment, the process of obtaining the string width implemented when the computer program is executed by a processor includes: for each second string, when the second string is not located in a table and the second string includes at least two characters, obtaining the position coordinates of two characters located at both ends of the second string in the target document; and determining the absolute value of the difference between the position coordinates of the two characters as the string width.

[0102] In one embodiment, the process of obtaining the string width implemented when the computer program is executed by a processor includes: for each second string, when the second string is in a table, determining the cell width of the table as the string width.

[0103] In one embodiment, a computer program product is provided, including a computer program, which implements the following steps when executed by a processor: obtaining at least one first string in a source document and a string name of the first string, and replacing the first string in the source document with a placeholder; obtaining a target document uploaded by a user, at least one second string in the target document, and string attributes of the second string, the string attributes including position coordinates, string height, string width, string name, and input prompt of the second string in the target document; for each placeholder in the source document, obtaining a target string having the same string name as the first string corresponding to the placeholder from the at least one second string; generating a target control based on the string attributes of the target string, and replacing the corresponding placeholder with the target control; and displaying the source document including the target control in a display panel.

[0104] In one embodiment, the method of obtaining at least one first string and the string name of the first string in a source document implemented when the computer program is executed by a processor includes: formatting the source document, inputting the format-converted document into a natural language processing model, and outputting the first string and the string name of the first string.

[0105] In one embodiment, the process of obtaining position coordinates implemented when the computer program is executed by a processor includes: for each second character string, when the second character string includes at least two characters, obtaining the position coordinates of two characters located at both ends of the second character string in the target document; and determining the average value of the position coordinates of the two characters as the position coordinates of the second character string.

[0106] In one embodiment, the process of obtaining the height of a character string implemented when a computer program is executed by a processor includes: for each second character string, when the second character string is located in a table, determining the cell height of the table as the height of the character string; when the second character string is not located in the table, determining a preset height as the height of the character string.

[0107] In one embodiment, the process of obtaining the string width implemented when the computer program is executed by a processor includes: for each second string, when the second string is not located in a table and the second string includes at least two characters, obtaining the position coordinates of two characters located at both ends of the second string in the target document; and determining the absolute value of the difference between the position coordinates of the two characters as the string width.

[0108] In one embodiment, the process of obtaining the string width implemented when the computer program is executed by a processor includes: for each second string, when the second string is in a table, determining the cell width of the table as the string width.

[0109] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with relevant regulations.

[0110] A person of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment method can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in the present application can include at least one of non-volatile memory and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, an artificial intelligence (AI) processor, etc., but are not limited to this.

[0111] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this application.

[0112] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.

Claims

1. A document content display method, characterized in that: The method comprises: Acquire at least one first string and a string name of the first string in a source document, and replace the first string in the source document with a placeholder; Acquire a target document uploaded by a user, at least one second string in the target document, and string attributes of the second string, wherein the string attributes include position coordinates, string height, string width, string name, and input hint of the second string in the target document; For each placeholder in the source document, acquiring, from the at least one second string, a target string having the same string name as the first string corresponding to the placeholder; Generate a target control based on the string attribute of the target string, and replace the corresponding placeholder with the target control; The source document including the target control is displayed in the display panel.

2. The method according to claim 1, characterized in that The obtaining of at least one first string and a string name of the first string in the source document includes: The source document is formatted, the format-converted document is input into a natural language processing model, and the first character string and the character string name of the first character string are output.

3. The method according to claim 1, characterized in that The process of obtaining the position coordinates includes: For each second character string, when the second character string includes at least two characters, obtaining position coordinates of two characters located at both ends of the second character string in the target document; An average value of the position coordinates of the two characters is determined as the position coordinates of the second character string.

4. The method according to claim 1, characterized in that The process of obtaining the height of the character string includes: For each second character string, if the second character string is in a table, a cell height of the table is determined as the character string height; if the second character string is not in a table, a preset height is determined as the character string height.

5. The method according to claim 1, characterized in that: The process of obtaining the width of the character string includes: For each second character string, if the second character string is not in the table and the second character string includes at least two characters, obtaining position coordinates of two characters located at both ends of the second character string in the target document; The absolute value of the difference between the position coordinates of the two characters is determined as the character string width.

6. The method according to claim 1, characterized in that The process of obtaining the width of the character string includes: For each second character string, when the second character string is located in a table, a cell width of the table is determined as the character string width.

7. A document content display device, characterized in that: The device comprises: A first acquisition module, used for acquiring at least one first string and a string name of the first string in a source document, and replacing the first string in the source document with a placeholder; A second acquisition module is used to acquire a target document uploaded by a user, at least one second string in the target document, and string attributes of the second string, wherein the string attributes include position coordinates of the second string in the target document, string height, string width, string name, and input hint; A third acquisition module is used to acquire, for each placeholder in the source document, a target string having the same string name as the first string corresponding to the placeholder from the at least one second string; A generating module, used for generating a target control based on the string attribute of the target string, and replacing the corresponding placeholder with the target control; The display module is used to display the source document including the target control in a display panel.

8. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 6 are implemented.

9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.

10. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.