CN107656911B - Form processing method and system - Google Patents

Form processing method and system Download PDF

Info

Publication number
CN107656911B
CN107656911B CN201710816050.0A CN201710816050A CN107656911B CN 107656911 B CN107656911 B CN 107656911B CN 201710816050 A CN201710816050 A CN 201710816050A CN 107656911 B CN107656911 B CN 107656911B
Authority
CN
China
Prior art keywords
cell
size
height
display area
width
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201710816050.0A
Other languages
Chinese (zh)
Other versions
CN107656911A (en
Inventor
莫文
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Jingdong Century Trading Co Ltd
Beijing Jingdong Shangke Information Technology Co Ltd
Original Assignee
Beijing Jingdong Century Trading Co Ltd
Beijing Jingdong Shangke Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Jingdong Century Trading Co Ltd, Beijing Jingdong Shangke Information Technology Co Ltd filed Critical Beijing Jingdong Century Trading Co Ltd
Priority to CN201710816050.0A priority Critical patent/CN107656911B/en
Publication of CN107656911A publication Critical patent/CN107656911A/en
Application granted granted Critical
Publication of CN107656911B publication Critical patent/CN107656911B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/166Editing, e.g. inserting or deleting
    • G06F40/177Editing, e.g. inserting or deleting of tables; using ruled lines
    • G06F40/18Editing, e.g. inserting or deleting of tables; using ruled lines of spreadsheets
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/103Formatting, i.e. changing of presentation of documents
    • G06F40/106Display of layout of documents; Previewing

Abstract

The present disclosure provides a form processing method applied to an electronic device having a display unit, the method including: acquiring size information of a display area of a display unit; acquiring size information of at least one table; judging whether the size of the at least one table exceeds the size of the display area according to the acquired size information of the display area and the size information of the at least one table to obtain a judgment result; and determining the display mode of at least one table on the display area according to the judgment result. The present disclosure also provides a form processing system, a computer system, and a computer-readable storage medium.

Description

Form processing method and system
Technical Field
The present disclosure relates to the field of computer technologies, and in particular, to a form processing method and system, a computer system, and a computer-readable storage medium.
Background
With the development of scientific technology, more and more functions are provided on electronic equipment. The user can browse information on the display screen of the electronic equipment and can also operate the information on the display screen. Therefore, the user can conveniently obtain a large amount of information by using the electronic device.
In the process of implementing the inventive concept, the inventor finds that at least the following problems exist in the prior art: when a form is displayed on a display screen of an electronic device, the form sometimes exceeds a display area on the display screen, so that the form cannot be completely displayed, and the user experience is affected.
Disclosure of Invention
In view of the above, the present disclosure provides a table processing method and system.
One aspect of the present disclosure provides a form processing method applied to an electronic device having a display unit, the method including acquiring size information of a display area of the display unit; acquiring size information of at least one table; judging whether the size of the at least one table exceeds the size of the display area according to the acquired size information of the display area and the size information of the at least one table to obtain a judgment result; and determining the display mode of the at least one table on the display area according to the judgment result.
According to an embodiment of the present disclosure, determining, according to the determination result, a manner of displaying the at least one form on the display area includes converting the at least one form into a picture when a size of the at least one form exceeds a size of the display area, and displaying the at least one form on the display area with the picture; and directly displaying the at least one table on the display area under the condition that the size of the at least one table does not exceed the size of the display area.
According to an embodiment of the present disclosure, obtaining the size information of the at least one table includes obtaining a height of a row and a width of a column in the at least one table; obtaining distance information between external display content to be displayed together with the at least one form and the at least one form, wherein at least one part of the external display content is positioned outside the at least one form; and calculating size information of the at least one table according to the acquired height, width and distance information.
According to an embodiment of the present disclosure, obtaining the height of the row and the width of the column in the at least one table includes sequentially obtaining the height and the width of each cell in the at least one table; calculating the height of the row of the cell according to the height of the cell; and calculating the width of the row of the cell according to the width of the cell.
According to the embodiment of the disclosure, calculating the height of the row where the cell is located according to the height of the cell includes taking the cell height with the highest height of the cells in the row as the height of the row; and calculating the width of the column of the unit cell according to the width of the unit cell comprises taking the width of the unit cell with the widest width in the column as the width of the column.
According to an embodiment of the present disclosure, in a case that a size of the at least one table exceeds a size of the display area, converting the at least one table into a picture includes acquiring coordinate information of each cell in the at least one table in the corresponding table; acquiring the size information of each cell; and converting the at least one table into a picture according to the coordinate information and the size information of each cell.
Another aspect of the present disclosure further provides a form processing system applied to an electronic device having a display unit, where the system includes a first obtaining module, configured to obtain size information of a display area of the display unit; the second acquisition module is used for acquiring the size information of at least one table; the judging module is used for judging whether the size of the at least one table exceeds the size of the display area according to the acquired size information of the display area and the size information of the at least one table to obtain a judgment result; and the determining module is used for determining the display mode of the at least one table on the display area according to the judgment result.
According to an embodiment of the present disclosure, the determining module includes a converting unit, configured to convert the at least one table into a picture if a size of the at least one table exceeds a size of the display area, and display the at least one table on the display area in the picture; and a display unit for directly displaying the at least one table on the display area when the size of the at least one table does not exceed the size of the display area.
According to an embodiment of the present disclosure, the second obtaining module includes a first obtaining unit, configured to obtain a height of a row and a width of a column in the at least one table; a second obtaining unit, configured to obtain distance information between external display content to be displayed together with the at least one form and the at least one form, where at least a part of the external display content is located outside the at least one form; and a first calculation unit configured to calculate size information of the at least one table based on the acquired height, width, and distance information.
According to an embodiment of the present disclosure, the first obtaining unit includes a first obtaining subunit, configured to sequentially obtain a height and a width of each cell in the at least one table; the first calculating subunit is used for calculating the height of the row of the cell according to the height of the cell; and the second calculating subunit is used for calculating the width of the column of the cell according to the width of the cell.
According to an embodiment of the present disclosure, the first calculation subunit is further configured to take a cell height at which the height of the cell in the row is the highest as the height of the row; and the second calculating subunit is further configured to include a width of the widest cell in the column as the width of the column.
According to an embodiment of the present disclosure, the converting unit includes a second obtaining subunit, configured to obtain coordinate information of each cell in the at least one table in a corresponding table; a third obtaining subunit, configured to obtain size information of each cell; and a converting subunit, configured to convert the at least one table into a picture according to the coordinate information and the size information of each cell.
Yet another aspect of the present disclosure provides a computer system comprising one or more processors; a memory for storing one or more programs, wherein when the one or more programs are executed by the one or more processors, the one or more processors are caused to implement the table processing method as described in any one of the above.
Another aspect of the present disclosure provides a computer-readable storage medium having stored thereon executable instructions that, when executed by a processor, cause the processor to implement a form processing method as described in any one of the above.
Another aspect of the disclosure provides a computer program comprising computer executable instructions which when executed are for implementing a form processing method as claimed in any one of the above.
According to the embodiment of the disclosure, by acquiring the size information of the display area of the display unit and the size information of at least one form, and comparing the size of the display area with the size of the form, whether the form exceeds the boundary of the display area when being displayed on the display area can be judged, so that the display mode of the form on the display screen is determined according to the judgment result, the technical problem that the form is not fully displayed easily when the form is displayed on small-sized electronic equipment in the related art is at least partially solved, and the technical effect of fully displaying the form in the display area of the electronic equipment is further achieved.
Drawings
The above and other objects, features and advantages of the present disclosure will become more apparent from the following description of embodiments of the present disclosure with reference to the accompanying drawings, in which:
FIG. 1 schematically illustrates an exemplary system architecture to which a form processing method and system thereof may be applied, according to an embodiment of the present disclosure;
FIG. 2 schematically illustrates a flow chart of a form processing method according to an embodiment of the present disclosure;
FIG. 3A is a flow chart schematically illustrating determining a manner of presenting at least one table on a display area according to a determination result according to an embodiment of the present disclosure;
FIG. 3B schematically shows a flow chart for obtaining dimension information of at least one table according to an embodiment of the disclosure;
FIG. 3C schematically illustrates a flow chart for obtaining the height of a row and the width of a column in at least one table according to an embodiment of the disclosure;
fig. 3D schematically illustrates a flow chart of converting at least one table into a picture according to an embodiment of the present disclosure;
FIG. 4 schematically illustrates a block diagram of a form processing system according to an embodiment of the present disclosure;
FIG. 5A schematically illustrates a block diagram of a determination module according to an embodiment of the present disclosure;
FIG. 5B schematically shows a block diagram of a second acquisition module according to an embodiment of the disclosure;
fig. 5C schematically shows a block diagram of a first acquisition unit according to an embodiment of the disclosure;
FIG. 5D schematically shows a block diagram of a conversion unit according to an embodiment of the disclosure; and
FIG. 6 schematically illustrates a block diagram of a computer system suitable for implementing a form processing method according to an embodiment of the present disclosure.
Detailed Description
Hereinafter, embodiments of the present disclosure will be described with reference to the accompanying drawings. It should be understood that the description is illustrative only and is not intended to limit the scope of the present disclosure. Moreover, in the following description, descriptions of well-known structures and techniques are omitted so as to not unnecessarily obscure the concepts of the present disclosure.
The terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the disclosure. The words "a", "an" and "the" and the like as used herein are also intended to include the meanings of "a plurality" and "the" unless the context clearly dictates otherwise. Furthermore, the terms "comprises," "comprising," and the like, as used herein, specify the presence of stated features, steps, operations, and/or components, but do not preclude the presence or addition of one or more other features, steps, operations, or components.
All terms (including technical and scientific terms) used herein have the same meaning as commonly understood by one of ordinary skill in the art unless otherwise defined. It is noted that the terms used herein should be interpreted as having a meaning that is consistent with the context of this specification and should not be interpreted in an idealized or overly formal sense.
The embodiment of the disclosure provides a form processing method and a form processing system applied to an electronic device with a display unit. The method comprises the steps of obtaining size information of a display area of a display unit, obtaining size information of at least one form, judging whether the size of the at least one form exceeds the size of the display area according to the obtained size information of the display area and the size information of the at least one form to obtain a judgment result, and determining a display mode of the at least one form on the display area according to the judgment result.
Fig. 1 schematically shows an exemplary system architecture to which a form processing method and a system thereof may be applied according to an embodiment of the present disclosure.
As shown in fig. 1, the system architecture 100 according to this embodiment may include terminal devices 101, 102, 103, a network 104 and a server 105. The network 104 serves as a medium for providing communication links between the terminal devices 101, 102, 103 and the server 105. Network 104 may include various connection types, such as wired, wireless communication links, or fiber optic cables, to name a few.
The user may use the terminal devices 101, 102, 103 to interact with the server 105 via the network 104 to receive or send messages or the like. The terminal devices 101, 102, 103 may have installed thereon various communication client applications, such as office software applications, web browser applications, search-type applications, instant messaging tools, mailbox clients, social platform software, etc. (by way of example only).
The terminal devices 101, 102, 103 may be various electronic devices having a display screen and supporting document browsing, including but not limited to smart phones, tablet computers, laptop portable computers, desktop computers, and the like.
The server 105 may be a server providing various services, such as a background management server (for example only) providing support for websites browsed by users using the terminal devices 101, 102, 103. The background management server may analyze and perform other processing on the received data such as the user request, and feed back a processing result (e.g., a webpage, information, or data obtained or generated according to the user request) to the terminal device.
It should be noted that the form processing method provided by the embodiment of the present disclosure may be generally executed by the server 105. Accordingly, the form processing system provided by the disclosed embodiments may be generally disposed in the server 105. The form processing method provided by the embodiment of the present disclosure may also be executed by a server or a server cluster that is different from the server 105 and is capable of communicating with the terminal devices 101, 102, 103 and/or the server 105. Accordingly, the form processing system provided by the embodiment of the present disclosure may also be disposed in a server or a server cluster different from the server 105 and capable of communicating with the terminal devices 101, 102, 103 and/or the server 105. Alternatively, the form processing method provided by the embodiment of the present disclosure may also be executed by the terminal device 101, 102, or 103, or may also be executed by another terminal device different from the terminal device 101, 102, or 103. Accordingly, the form processing system provided by the embodiment of the present disclosure may also be provided in the terminal device 101, 102, or 103, or in another terminal device different from the terminal device 101, 102, or 103.
For example, the table to be processed may be originally stored in any one of the terminal devices 101, 102, or 103 (e.g., the terminal device 101, but not limited thereto), or may be stored on an external storage device and may be imported into the terminal device 101. Then, the terminal device 101 may locally execute the form processing method provided by the embodiment of the present disclosure, or send the form to be processed to another terminal device, a server, or a server cluster, and execute the form processing method provided by the embodiment of the present disclosure by another terminal device, a server, or a server cluster that receives the form to be processed.
It should be understood that the number of terminal devices, networks, and servers in fig. 1 is merely illustrative. There may be any number of terminal devices, networks, and servers, as desired for implementation.
FIG. 2 schematically shows a flow chart of a form processing method according to an embodiment of the present disclosure.
As shown in fig. 2, the method includes operations S210 to S240, in which:
in operation S210, size information of a display area of a display unit is acquired.
In operation S220, size information of at least one table is acquired.
In operation S230, it is determined whether the size of the at least one table exceeds the size of the display area according to the acquired size information of the display area and the size information of the at least one table, resulting in a determination result.
In operation S240, a display manner of at least one table on the display area is determined according to the determination result.
According to the embodiment of the disclosure, in order to display the forms on the display unit of the electronic device completely, whether the size of the at least one form exceeds the size of the display area may be determined first, so as to determine the display mode of the at least one form on the display area according to the determination result.
According to the embodiment of the disclosure, the display unit on the electronic device can be partitioned to obtain a plurality of display areas, each display area can be used for displaying different contents, and the size of each display area can be the same or partially the same. For example, one of the display areas is selected from the display unit to display at least one table, and the other display areas are used for displaying text information except the table.
According to the embodiment of the disclosure, after the display unit on the electronic device is partitioned, one of the display areas can be automatically selected to display the table to be displayed.
According to an embodiment of the present disclosure, the at least one table may include one table, or may include a plurality of tables, and the specific number thereof may be determined according to an actual situation, and is not limited herein. Further, the sizes of the different tables may be the same or different. Regardless of whether the sizes of the forms are the same or different, in order to enable the forms to be completely displayed on the electronic device, before displaying, the display mode of the form on the display area may be determined according to the acquired size information of the form and the acquired size information of the display area.
According to the embodiment of the disclosure, when the display unit has a plurality of display areas, the display modes of the table displayed on the corresponding display areas may be the same or different. For example, the display mode of the table a on the display area a may be the same as or different from the display mode of the table B on the display area B.
According to the embodiment of the disclosure, by acquiring the size information of the display area of the display unit and the size information of at least one table, and comparing the size of the display area with the size of the table, whether the table exceeds the boundary of the display area when being displayed on the display area can be judged, so that the display mode of the table on the display screen is determined according to the judgment result, the technical problem that the table is not fully displayed easily when the table is displayed on small-sized electronic equipment in the related art is at least partially solved, and the technical effect of completely displaying the table in the display area of the electronic equipment is further achieved.
The method shown in fig. 2 is further described with reference to fig. 3A-3D in conjunction with specific embodiments.
Fig. 3A schematically illustrates a flowchart of determining a display manner of at least one table on a display area according to a determination result according to an embodiment of the present disclosure.
As shown in fig. 3A, determining the display manner of the at least one table on the display area according to the determination result may include operations S241 and S242, where:
in operation S241, in the case where the size of the at least one table exceeds the size of the display area, the at least one table is converted into a picture, and the at least one table is displayed in the picture on the display area.
In operation S242, in the case where the size of the at least one table does not exceed the size of the display area, the at least one table is directly presented on the display area.
According to an embodiment of the present disclosure, the display manner of the table displayed on the display area may include various types, which is not limited herein. For example, the corresponding table may be displayed on the display area in a picture manner, and at this time, the user may perform other operations such as enlarging, reducing, and cropping on the picture; or, the corresponding table may be displayed on the display area in the original format, that is, the table may be displayed on the display area in a line manner, and at this time, the user may perform an editing operation on the table. It should be noted that the manner in which the above table is displayed on the display area is merely illustrative and not an undue limitation to the present disclosure, and any manner in which the table is displayed on the display area may be part of the embodiments of the present disclosure.
According to the embodiment of the disclosure, when the size of the table is judged to exceed the size of the display area, the system can automatically convert the table into the picture without manually capturing the picture of the table, and the effect of automatically converting the picture to ensure complete display is achieved.
Fig. 3B schematically illustrates a flow chart for obtaining size information of at least one table according to an embodiment of the disclosure.
As shown in fig. 3B, acquiring the size information of the at least one table may include operations S221 to S223, in which:
in operation S221, the height of a row and the width of a column in at least one table are obtained.
In operation S222, distance information between external presentation content to be presented with at least one form and the at least one form is acquired, at least a portion of the external presentation content being located outside the at least one form.
In operation S223, size information of at least one table is calculated according to the acquired height, width, and distance information.
According to an embodiment of the present disclosure, each table may include at least one row and at least one column, and acquiring the size information of the table may include acquiring a height of the row and a width of the column in the table, and distance information between the external presentation contents presented together with the table and the table. The external display content can be characters, pictures and the like, and is displayed outside the table. The size information of the calculation table can be obtained by calculation according to the acquired row height, column width and distance information.
According to the embodiment of the disclosure, the size of the table is determined by the row height and the column width of the table and the distance between other external display contents displayed simultaneously with the table, so that the effect of more accurately determining the size of the space occupied by the table in the display area is achieved, and the table can be prevented from being incompletely displayed on the electronic equipment.
Fig. 3C schematically illustrates a flow chart for obtaining the height of a row and the width of a column in at least one table according to an embodiment of the disclosure.
As shown in fig. 3C, obtaining the height of the row and the width of the column in at least one table may include operations S2211 to S2213, where:
in operation S2211, the height and width of each cell in at least one table are sequentially obtained.
In operation S2212, the height of the row where the cell is located is calculated according to the height of the cell.
In operation S2213, a width of the column where the cell is located is calculated according to the width of the cell.
According to the embodiment of the disclosure, the table may include a plurality of cells, each row in the table is composed of at least one cell, and each column in the table is composed of at least one cell, and thus, obtaining the height of the row and the width of the column in the at least one table may be calculating the height of the row where the cell is located by calculating the height of the cell, and calculating the width of the column where the cell is located by calculating the width of the cell.
According to embodiments of the present disclosure, one way of how to calculate the size of a table is given by calculating the height and width of the cells in the table. It should be noted that, the way of calculating the size of the table may also be to obtain the length of the line in the table. Therefore, there are various ways to obtain the height of the row and the width of the column in at least one table, which is not limited herein.
According to an embodiment of the present disclosure, calculating the height of the row in which the cell is located according to the height of the cell includes taking the cell height at which the height of the cell in the row is the highest as the height of the row; calculating the width of the column in which the cell is located according to the width of the cell includes taking the cell width with the widest width in the column as the width of the column.
According to embodiments of the present disclosure, the heights of the cells in the same row may be the same or different. When the heights of the cells are different, the height of the cell having the highest height in the row is defined as the height of the row. The width of the cells in the same column may be the same or different. When the widths of the cells are different, the width of the cell having the widest width in the column is defined as the width of the column. The effect of accurately calculating the size of the table is achieved, and complete display of the table is facilitated.
Fig. 3D schematically shows a flow chart of converting at least one table into a picture according to an embodiment of the present disclosure.
As shown in fig. 3D, the method of converting at least one table into a picture includes operations S2411 to S2413, in which:
in operation S2411, coordinate information of each cell in at least one table in the corresponding table is obtained.
In operation S2412, size information of each cell is acquired.
In operation S2413, at least one table is converted into a picture according to the coordinate information and the size information of each cell.
According to the embodiment of the disclosure, the table is automatically converted into the picture according to the coordinate information of the cells in the table and the size information of the cells, the picture interception of the table is not needed manually, meanwhile, whether the table needs to be converted into the picture or not can be intelligently judged, and the effect of automatically converting the picture is achieved.
FIG. 4 schematically shows a block diagram of a form processing system according to an embodiment of the disclosure.
As shown in FIG. 4, the form processing system 400 includes an identification first obtaining module 410, a second obtaining module 420, a determining module 430, and a determining module 440. Wherein:
the first obtaining module 410 is used for obtaining size information of a display area of the display unit.
The second obtaining module 420 is configured to obtain size information of at least one table.
The judging module 430 is configured to judge whether the size of the at least one table exceeds the size of the display area according to the acquired size information of the display area and the size information of the at least one table, so as to obtain a judgment result.
The determining module 440 is configured to determine a display manner of the at least one table on the display area according to the determination result.
According to the embodiment of the disclosure, by acquiring the size information of the display area of the display unit and the size information of at least one form, and comparing the size of the display area with the size of the form, whether the form exceeds the boundary of the display area when being displayed on the display area can be judged, so that the display mode of the form on the display screen is determined according to the judgment result, the technical problem that the form is not fully displayed easily when the form is displayed on small-sized electronic equipment in the related art is at least partially solved, and the technical effect of fully displaying the form in the display area of the electronic equipment is further achieved.
Fig. 5A schematically illustrates a block diagram of determination modules according to an embodiment of the present disclosure.
As shown in fig. 5A, the determining module 440 includes a converting unit 441 and a presenting unit 442. Wherein:
the conversion unit 441 is configured to, if the size of the at least one table exceeds the size of the display area, convert the at least one table into a picture, and display the at least one table in the picture on the display area.
The presentation unit 442 is configured to directly present the at least one table on the display area if the size of the at least one table does not exceed the size of the display area.
According to the embodiment of the disclosure, when the size of the table is judged to exceed the size of the display area, the table is converted into the picture, manual picture interception of the table is not needed, and the effect of automatic picture conversion is achieved.
Fig. 5B schematically illustrates a block diagram of a second acquisition module according to an embodiment of the disclosure.
As shown in fig. 5B, the second acquisition module 420 includes a first acquisition unit 421, a second acquisition unit 422, and a first calculation unit 423. Wherein:
the first obtaining unit 421 is configured to obtain a height of a row and a width of a column in at least one table.
The second obtaining unit 422 is configured to obtain distance information between at least one form and external presentation content to be presented together with the at least one form, where at least a portion of the external presentation content is located outside the at least one form.
The first calculation unit 423 is configured to calculate size information of at least one table according to the calculated height, width, and distance information.
According to the embodiment of the disclosure, the effect of calculating the space occupied by the table in the display area more accurately is achieved by calculating the height of the rows and the width of the columns of the table and the preset distance between the table and other display contents when the table is displayed.
Fig. 5C schematically shows a block diagram of a first acquisition unit according to an embodiment of the disclosure.
As shown in fig. 5C, the first acquisition unit 421 includes a first acquisition subunit 4211, a first calculation subunit 4212, and a second calculation subunit 4213. Wherein:
the first obtaining subunit 4211 is configured to obtain the height and width of each cell in at least one table in turn.
The first calculation subunit 4212 is configured to calculate the height of the row of the cell according to the height of the cell.
The second calculating subunit 4213 is configured to calculate, according to the width of the cell, the width of the column in which the cell is located.
According to embodiments of the present disclosure, one way of how to calculate the size of a table is given by calculating the height and width of the cells in the table. It should be noted that, the way of calculating the size of the table may also be to obtain the length of the line in the table.
According to an embodiment of the present disclosure, the first calculation subunit 4212 is further configured to take the cell height with the highest height of the cells in the row as the height of the row. The second calculation subunit 4213 is further configured to include the cell width with the widest width in the column as the width of the column.
According to embodiments of the present disclosure, the heights of the cells in the same row may be the same or different. When the heights of the cells are different, the height of the cell having the highest height in the row is defined as the height of the row. The width of the cells in the same column may be the same or different. When the widths of the cells are different, the width of the cell having the widest width in the column is defined as the width of the column. The effect of accurately calculating the size of the table is achieved, and complete display of the table is facilitated.
Fig. 5D schematically illustrates a block diagram of a conversion unit according to an embodiment of the present disclosure.
As shown in fig. 5D, the conversion unit 441 includes a second acquisition sub-unit 4411, a third acquisition sub-unit 4412, and a conversion sub-unit 4413. Wherein:
the second obtaining sub-unit 4411 is configured to obtain coordinate information of each cell in at least one table in the corresponding table.
The third acquiring sub-unit 4412 is configured to acquire size information of each cell.
The conversion sub-unit 4413 is configured to convert the at least one table into a picture according to the coordinate information and the size information of each cell.
According to the embodiment of the disclosure, the table is automatically converted into the picture according to the coordinate information of the cells in the table and the size information of the cells, the picture interception of the table is not needed manually, meanwhile, whether the table needs to be converted into the picture or not can be intelligently judged, and the effect of automatically converting the picture is achieved.
It should be noted that, the table processing system part in the embodiment of the present disclosure corresponds to the table processing method part in the embodiment of the present disclosure, and the description of the table processing system part specifically refers to the table processing method part, which is not described herein again.
FIG. 6 schematically illustrates a block diagram of a computer system suitable for implementing a form processing method according to an embodiment of the present disclosure. The computer system illustrated in FIG. 6 is only one example and should not impose any limitations on the scope of use or functionality of embodiments of the disclosure.
Yet another aspect of the present disclosure provides a computer system comprising one or more processors; a memory for storing one or more programs, wherein the one or more programs, when executed by the one or more processors, cause the one or more processors to implement a table processing method as any one of the above.
As shown in fig. 6, a computer system 600 according to an embodiment of the present disclosure includes a processor 601, which can perform various appropriate actions and processes according to a program stored in a Read Only Memory (ROM)602 or a program loaded from a storage section 608 into a Random Access Memory (RAM) 603. Processor 601 may include, for example, a general purpose microprocessor (e.g., a CPU), an instruction set processor and/or associated chipset, and/or a special purpose microprocessor (e.g., an Application Specific Integrated Circuit (ASIC)), among others. The processor 610 may also include onboard memory for caching purposes. Processor 610 may include a single processing unit or multiple processing units for performing the different actions of the method flows described with reference to fig. 2, 3A-3D in accordance with embodiments of the present disclosure.
In the RAM 603, various programs and data necessary for the operation of the system 600 are stored. The processor 601, the ROM 602, and the RAM 603 are connected to each other via a bus 604. The processor 601 performs various operations described above with reference to fig. 2, 3A to 3D by executing programs in the ROM 602 and/or the RAM 603. It is to be noted that the programs may also be stored in one or more memories other than the ROM 602 and RAM 603. The processor 601 may also perform various operations described above with reference to fig. 2, 3A-3D by executing programs stored in the one or more memories.
According to an embodiment of the present disclosure, system 600 may also include an input/output (I/O) interface 605, also connected to bus 604, an input/output (I/O) interface 606. The system 600 may also include one or more of the following components connected to the I/O interface 605: an input portion 606 including a keyboard, a mouse, and the like; an output portion 607 including a display such as a Cathode Ray Tube (CRT), a Liquid Crystal Display (LCD), and the like, and a speaker; a storage section 608 including a hard disk and the like; and a communication section 609 including a network interface card such as a LAN card, a modem, or the like. The communication section 609 performs communication processing via a network such as the internet. The driver 610 is also connected to the I/O interface 605 as needed. A removable medium 611 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like is mounted on the drive 610 as necessary, so that a computer program read out therefrom is mounted in the storage section 608 as necessary.
According to an embodiment of the present disclosure, the method described above with reference to the flow chart may be implemented as a computer software program. For example, embodiments of the present disclosure include a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising program code for performing the method illustrated in the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network through the communication section 609, and/or installed from the removable medium 611. The computer program, when executed by the processor 601, performs the above-described functions defined in the system of the embodiments of the present disclosure. The systems, devices, apparatuses, modules, units, etc. described above may be implemented by computer program modules according to embodiments of the present disclosure.
It should be noted that the computer readable media shown in the present disclosure may be computer readable signal media or computer readable storage media or any combination of the two. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present disclosure, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In contrast, in the present disclosure, a computer-readable signal medium may include a propagated data signal with computer-readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, fiber optic cable, RF, etc., or any suitable combination of the foregoing. According to embodiments of the present disclosure, a computer-readable medium may include the ROM 602 and/or RAM 603 described above and/or one or more memories other than the ROM 602 and RAM 603.
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams or flowchart illustration, and combinations of blocks in the block diagrams or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
As another aspect, the present disclosure also provides a computer-readable storage medium, which may be contained in the apparatus described in the above embodiments; or may be separate and not incorporated into the device. The computer-readable storage medium carries one or more programs which, when executed by an apparatus, cause the apparatus to perform: the method comprises the steps of obtaining size information of a display area of a display unit, obtaining size information of at least one form, judging whether the size of the at least one form exceeds the size of the display area according to the obtained size information of the display area and the size information of the at least one form to obtain a judgment result, and determining a display mode of the at least one form on the display area according to the judgment result. Optionally, according to the determination result, determining a display manner of the at least one form on the display area includes converting the at least one form into a picture if the size of the at least one form exceeds the size of the display area, displaying the at least one form in the picture on the display area, and directly displaying the at least one form on the display area if the size of the at least one form does not exceed the size of the display area. Optionally, the obtaining of the size information of the at least one table includes: the method includes the steps of obtaining a height of a row and a width of a column in at least one table, obtaining distance information between external display content to be displayed together with the at least one table and the at least one table, wherein at least one part of the external display content is located outside the at least one table, and calculating size information of the at least one table according to the calculated height, width and distance information. Optionally, the obtaining the height of the row and the width of the column in the at least one table includes sequentially obtaining the height and the width of each cell in the at least one table, calculating the height of the row where the cell is located according to the height of the cell, and calculating the width of the column where the cell is located according to the width of the cell. Optionally, calculating the height of the row of the cell according to the height of the cell includes taking the height of the cell with the highest height of the cells in the row as the height of the row, and calculating the width of the column of the cell according to the width of the cell includes taking the width of the cell with the widest width in the column as the width of the column. Optionally, in a case where a size of the at least one table exceeds a size of the display area, converting the at least one table into the picture includes acquiring coordinate information of each cell in the at least one table in the corresponding table, acquiring size information of each cell, and converting the at least one table into the picture according to the coordinate information and the size information of each cell.
The embodiments of the present disclosure have been described above. However, these examples are for illustrative purposes only and are not intended to limit the scope of the present disclosure. Although the embodiments are described separately above, this does not mean that the measures in the embodiments cannot be used in advantageous combination. The scope of the disclosure is defined by the appended claims and equivalents thereof. Various alternatives and modifications can be devised by those skilled in the art without departing from the scope of the present disclosure, and such alternatives and modifications are intended to be within the scope of the present disclosure.

Claims (10)

1. A form processing method is applied to an electronic device with a display unit, and the method comprises the following steps:
acquiring size information of a display area of the display unit;
acquiring size information of at least one table;
judging whether the size of the at least one table exceeds the size of the display area according to the acquired size information of the display area and the size information of the at least one table to obtain a judgment result; and
determining a display mode of the at least one table on the display area according to the judgment result; wherein, the display mode comprises: in the case that the size of the at least one form exceeds the size of the display area, converting the at least one form into a picture, the at least one form being presented with the picture on the display area; and in the event that the size of the at least one form does not exceed the size of the display area, directly presenting the at least one form on the display area;
wherein the converting the at least one table into a picture comprises:
acquiring coordinate information of each cell in the at least one table in the corresponding table;
acquiring the size information of each cell; and
and converting the at least one table into a picture according to the coordinate information and the size information of each cell.
2. The method of claim 1, wherein obtaining size information of the at least one table comprises:
acquiring the height of a row and the width of a column in the at least one table;
obtaining distance information between external presentation content to be presented together with the at least one form and the at least one form, at least a part of the external presentation content being located outside the at least one form; and
and calculating the size information of the at least one table according to the obtained height, width and distance information.
3. The method of claim 2, wherein obtaining the height of the rows and the width of the columns in the at least one table comprises:
sequentially acquiring the height and width of each cell in the at least one table;
calculating the height of the row of the cell according to the height of the cell; and
and calculating the width of the column of the cell according to the width of the cell.
4. The method of claim 3, wherein:
calculating the height of the row of the cell according to the height of the cell, wherein the height of the cell with the highest height in the row is taken as the height of the row; and
calculating the width of the column of the cell according to the width of the cell comprises taking the cell width with the widest width in the column as the width of the column.
5. A form processing system for use with an electronic device having a display unit, the system comprising:
the first acquisition module is used for acquiring the size information of the display area of the display unit;
the second acquisition module is used for acquiring the size information of at least one table;
the judging module is used for judging whether the size of the at least one table exceeds the size of the display area according to the acquired size information of the display area and the size information of the at least one table to obtain a judgment result; and
the determining module is used for determining the display mode of the at least one table on the display area according to the judgment result; wherein the determining module comprises: a conversion unit configured to convert the at least one table into a picture in a case where a size of the at least one table exceeds a size of the display area on which the at least one table is presented with the picture; and a presentation unit for directly presenting the at least one table on the display area in a case where a size of the at least one table does not exceed a size of the display area;
wherein the conversion unit includes:
the second obtaining subunit is configured to obtain coordinate information of each cell in the at least one table in the corresponding table;
a third obtaining subunit, configured to obtain size information of each cell; and
and the converting subunit is used for converting the at least one table into a picture according to the coordinate information and the size information of each cell.
6. The system of claim 5, wherein the second acquisition module comprises:
a first obtaining unit, configured to obtain a height of a row and a width of a column in the at least one table;
a second obtaining unit configured to obtain distance information between external presentation content to be presented together with the at least one form and the at least one form, at least a part of the external presentation content being located outside the at least one form; and
and the first calculation unit is used for calculating the size information of the at least one table according to the acquired height, width and distance information.
7. The system of claim 6, wherein the first acquisition unit comprises:
the first obtaining subunit is used for sequentially obtaining the height and the width of each cell in the at least one table;
the first calculating subunit is used for calculating the height of the row of the cell according to the height of the cell; and
and the second calculating subunit is used for calculating the width of the column of the cell according to the width of the cell.
8. The system of claim 7, wherein:
the first calculation subunit is also used for taking the height of the cell with the highest height in the row as the height of the row; and
the second calculating subunit is further configured to include a width of a widest cell in the column as the width of the column.
9. A computer system, comprising:
one or more processors;
a memory for storing one or more programs,
wherein the one or more programs, when executed by the one or more processors, cause the one or more processors to implement the table processing method of any of claims 1-4.
10. A computer-readable storage medium having stored thereon executable instructions that, when executed by a processor, cause the processor to implement the form processing method of any one of claims 1 to 4.
CN201710816050.0A 2017-09-11 2017-09-11 Form processing method and system Active CN107656911B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710816050.0A CN107656911B (en) 2017-09-11 2017-09-11 Form processing method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710816050.0A CN107656911B (en) 2017-09-11 2017-09-11 Form processing method and system

Publications (2)

Publication Number Publication Date
CN107656911A CN107656911A (en) 2018-02-02
CN107656911B true CN107656911B (en) 2021-08-17

Family

ID=61129528

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710816050.0A Active CN107656911B (en) 2017-09-11 2017-09-11 Form processing method and system

Country Status (1)

Country Link
CN (1) CN107656911B (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110659527B (en) 2018-06-29 2023-03-28 微软技术许可有限责任公司 Form detection in electronic forms
CN109815461B (en) * 2018-12-07 2024-02-09 北京天健源达科技股份有限公司 Method for editing form
CN112784543A (en) * 2020-06-08 2021-05-11 北京金山办公软件股份有限公司 Picture adjusting method, device, equipment and storage medium
CN112286603A (en) * 2020-09-28 2021-01-29 长沙市到家悠享网络科技有限公司 Table display method and device, electronic equipment and storage medium
CN112632921B (en) * 2020-11-26 2022-02-11 腾讯科技(深圳)有限公司 Display processing method, device, terminal and storage medium for multimedia data
CN113111285A (en) * 2021-04-15 2021-07-13 西安诺瓦星云科技股份有限公司 Form processing method and device, electronic equipment and computer readable storage medium
CN113268686B (en) * 2021-05-25 2022-08-26 山东卓创资讯股份有限公司 Processing method for multiple browsing modes of form in information at APP (application) end

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6833844B1 (en) * 1999-06-21 2004-12-21 Kabushiki Kaisha Toshiba System display apparatus and storing medium
CN102446051A (en) * 2010-10-11 2012-05-09 英业达股份有限公司 Webpage display adjustment system and display adjustment method thereof
CN103853806A (en) * 2013-09-26 2014-06-11 深圳海联讯科技股份有限公司 Method and device for converting table
CN104571862A (en) * 2014-12-30 2015-04-29 北京奇虎科技有限公司 Method and device for displaying data in mobile terminal page
CN105069023A (en) * 2015-07-17 2015-11-18 孙巍 Method, device and system for playing webpage image-text in television
CN106886511A (en) * 2016-06-21 2017-06-23 阿里巴巴集团控股有限公司 A kind of processing method and processing device of network form

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6833844B1 (en) * 1999-06-21 2004-12-21 Kabushiki Kaisha Toshiba System display apparatus and storing medium
CN102446051A (en) * 2010-10-11 2012-05-09 英业达股份有限公司 Webpage display adjustment system and display adjustment method thereof
CN103853806A (en) * 2013-09-26 2014-06-11 深圳海联讯科技股份有限公司 Method and device for converting table
CN104571862A (en) * 2014-12-30 2015-04-29 北京奇虎科技有限公司 Method and device for displaying data in mobile terminal page
CN105069023A (en) * 2015-07-17 2015-11-18 孙巍 Method, device and system for playing webpage image-text in television
CN106886511A (en) * 2016-06-21 2017-06-23 阿里巴巴集团控股有限公司 A kind of processing method and processing device of network form

Also Published As

Publication number Publication date
CN107656911A (en) 2018-02-02

Similar Documents

Publication Publication Date Title
CN107656911B (en) Form processing method and system
CN110096660B (en) Method and device for loading page pictures and electronic equipment
CN109242801B (en) Image processing method and device
CN112306793A (en) Method and device for monitoring webpage
CN105808307B (en) Page display method and device
CN112783394A (en) List page display method and device
CN107436743B (en) Method and device for pushing information
CN112445394A (en) Screenshot method and device
WO2020042842A1 (en) Page presentation method and system, computer system, and computer-readable medium
CN115756461A (en) Annotation template generation method, image identification method and device and electronic equipment
CN113282852A (en) Method and device for editing webpage
CN110647327A (en) Method and device for dynamic control of user interface based on card
CN107688572B (en) Page display method and terminal
CN115328429A (en) Display method, display device, electronic apparatus, and storage medium
CN114995914A (en) Picture data processing method and device, computer equipment and storage medium
CN110888583B (en) Page display method, system and device and electronic equipment
CN109710911B (en) Content typesetting method and device for cells, electronic equipment and storage medium
CN112486783A (en) Progress bar display method and device
CN113760205A (en) Picture display method and device
CN109600558B (en) Method and apparatus for generating information
CN110020317B (en) Webpage container bottom supporting file determining method, device, equipment and readable storage medium
CN113032696A (en) Display method and display device of page picture
CN112825079B (en) Information display method and device
CN111125501A (en) Method and apparatus for processing information
CN114510309B (en) Animation effect setting method, device, equipment and medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant