Document content display method and device, computer equipment, readable storage medium and program product
By displaying the rendered list document data in the browsing page and responding to user operations, dynamically adjusting the document content, the problem of low browsing efficiency in the existing technology is solved, and efficient document content browsing is achieved.
Patent Information
- Application Number
- CN202411461981.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-18
- Publication Date
- 2025-02-07
AI Technical Summary
In the prior art, when users browse document content, due to the limited space of browsing pages, users need to frequently and tediously operate to browse all document content, which significantly affects the user's browsing efficiency.
A document content display method is provided, by displaying at least one rendered list document data in a browsing page, and dynamically adjusting the displayed document content in response to the user's touch zoom operation and sliding operation to improve browsing efficiency.
Adjusting document content through preloading and dynamic scaling reduces over-rendering and memory pressure, improves user browsing efficiency of document content, and enables users to view document content and details more conveniently.
Smart Images

Figure CN119396316A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of Internet technology, and in particular to a document content display method, device, computer equipment, computer-readable storage medium and computer program product. Background Art
[0002] With the development of mobile communication technology, smart devices such as mobile phones and smart wearable devices are becoming more and more popular, bringing great convenience to people's life, study and work. For example, many office processes are implemented through mobile terminals, and the demand for viewing various documents through mobile terminals is gradually increasing. Due to the large amount of document content, list controls are usually used to display them.
[0003] In the related art, since the length of the browsing page is limited and the document content is large, the document content often cannot be fully displayed on the browsing page. Users often need to browse all the document content through frequent and cumbersome operations, which significantly affects the user's browsing efficiency of the document content.
[0004] Therefore, there is a problem in the related art that the efficiency of users browsing document contents is low. Summary of the invention
[0005] Based on this, it is necessary to provide a document content display method, apparatus, computer equipment, computer-readable storage medium and computer program product that can improve the user's browsing efficiency of document content in response to the above technical problems.
[0006] In a first aspect, the present application provides a document content display method, comprising:
[0007] At least one rendered list document data is displayed in a browsing page; the browsing page includes a list control for loading the rendered list document data; the number of the rendered list document data loaded in the list control is greater than the number of the rendered list document data displayed in the browsing page; the list document data includes document content in a target document;
[0008] In response to a touch-zoom operation on the list control, the rendered and scaled list document data is displayed in the browsing page; the scaled list document data includes the document content located in the display area of the browsing page after scaling the rendered list document data loaded in the list control according to the touch-zoom operation.
[0009] In one embodiment, in response to a touch zoom operation on the list control, displaying rendered zoomed list document data on the browsing page includes:
[0010] In response to the touch zoom operation, determining updated rendering parameters for the list document data;
[0011] The rendered list document data loaded in the list control is rendered and updated according to the updated rendering parameters, so as to display the rendered and scaled list document data in the browsing page.
[0012] In one embodiment, in response to the touch zoom operation, determining updated rendering parameters for the list document data includes:
[0013] Determining a list zoom ratio for the list control according to the touch zoom operation;
[0014] The updated rendering parameters are determined according to the list scaling ratio.
[0015] In one embodiment, the method further comprises:
[0016] In response to a sliding operation on the browsing page, slidingly displaying the rendered list document data loaded by the list control in the browsing page;
[0017] Among them, the rendered list document data loaded by the list control includes rendered first list document data and rendered second list document data; the first list document data and the second list document data are respectively the list document data in the target document that are located before and after the list document data currently displayed on the browsing page; the data lengths of the first list document data and the second list document data are both equal to the length of the display area.
[0018] In one embodiment, the list document data loaded by the list control is cached in a container corresponding to the list control, and the method further includes:
[0019] During the sliding display process, the list document data outside the preset area is removed, and the list document data in the target document that newly enters the preset area is cached in the container;
[0020] The preset area is an area consisting of the display area, the first area and the second area; the widths of the first area and the second area are equal to the width of the display area, the first area is located above the display area and the length is equal to the length of the display area, and the second area is located below the display area and the length is equal to the length of the display area.
[0021] In one embodiment, the touch zoom operation is a two-finger touch zoom operation, and determining the list zoom ratio for the list control according to the touch zoom operation includes:
[0022] Acquire the distance between the two-finger touch points when the two-finger touch zoom operation is received to obtain a first distance;
[0023] Acquire the distance between the two-finger touch points when the two-finger touch zoom operation stops being received, to obtain a second distance;
[0024] The list zoom ratio is determined according to a ratio between the second distance and the first distance.
[0025] In a second aspect, the present application also provides a document content display device, comprising:
[0026] A display module, configured to display at least one rendered list document data in a browsing page; the browsing page includes a list control for loading the rendered list document data; the number of the rendered list document data loaded in the list control is greater than the number of the rendered list document data displayed in the browsing page; the list document data includes document content in a target document;
[0027] A zoom module is used to display the rendered and scaled list document data in the browsing page in response to a touch zoom operation on the list control; the scaled list document data includes the document content located in the display area of the browsing page after the rendered list document data loaded in the list control is zoomed and adjusted according to the touch zoom operation.
[0028] In a third aspect, the present application further provides a computer device, wherein the computer device comprises a memory and a processor, wherein the memory stores a computer program, and when the computer program is executed by the processor, the steps of the above method are implemented.
[0029] In a fourth aspect, the present application further provides a computer-readable storage medium having a computer program stored thereon, wherein the computer program implements the steps of the above method when executed by a processor.
[0030] In a fifth aspect, the present application further provides a computer program product, wherein the computer program product comprises a computer program, and when the computer program is executed by a processor, the steps of the above method are implemented.
[0031] The document content display method, apparatus, computer device, computer-readable storage medium and computer program product are described above, by displaying at least one rendered list document data in a browsing page; the browsing page includes a list control for loading the rendered list document data; the number of rendered list document data loaded in the list control is greater than the number of rendered list document data displayed in the browsing page; the list document data includes the document content in the target document; in response to a touch zoom operation on the list control, the rendered and zoomed list document data is displayed in the browsing page; the zoomed list document data includes the document content located in the display area of the browsing page after the rendered list document data loaded in the list control is zoomed and adjusted according to the touch zoom operation.
[0032] In this way, since rendering document data to the screen is a relatively time-consuming process, the present application displays at least one rendered list document data of the target document in the browsing page, wherein the browsing page includes a list control for loading the rendered list document data; the number of rendered list document data loaded in the list control is greater than the number of rendered list document data displayed in the browsing page, so that the list document data can be efficiently displayed in the display area of the browsing page based on the rendered list document data preloaded in the list control, so as to reduce excessive data rendering and reduce memory pressure. At the same time, by responding to the touch zoom operation of the list control, the rendered list document data loaded in the list control can be zoomed and adjusted, and the rendered zoomed list document data can be displayed in the display area of the browsing page, so as to achieve overall zoom adjustment of the list document data loaded in the list control, so that the user can continuously view the entire target document at a zoom ratio, making it more convenient for the user to view the document content and details, and effectively improving the user's browsing efficiency of the document content. BRIEF DESCRIPTION OF THE DRAWINGS
[0033] 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.
[0034] Figure 1 A schematic diagram of a flow chart of a document content display method in an embodiment;
[0035] Figure 2 A schematic diagram of initial list document data displayed on a browsing page in an embodiment;
[0036] Figure 3A schematic diagram of enlarged list document data in one embodiment;
[0037] Figure 4 A schematic diagram of displaying list document data during a sliding process in one embodiment;
[0038] Figure 5 A schematic diagram of preloaded list document data in one embodiment;
[0039] Figure 6 A schematic diagram of a flow chart of a document content display method in another embodiment;
[0040] Figure 7 is a structural block diagram of a document content display device in one embodiment;
[0041] Figure 8 FIG. 4 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION
[0042] 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.
[0043] It should be noted that the terms "first", "second", etc. in the specification and claims of the present disclosure and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present disclosure described herein can be implemented in an order other than those illustrated or described herein. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present disclosure. Instead, they are merely examples of devices and methods consistent with some aspects of the present disclosure as detailed in the appended claims.
[0044] In one embodiment, Figure 1 As shown, a document content display method is provided. This embodiment takes the method applied to a terminal as an example. It can be understood that the terminal can be, but is not limited to, various personal computers, laptops, smart phones, tablet computers and other mobile terminals. In this embodiment, the method includes the following steps:
[0045] Step S110: display at least one rendered list document data on the browsing page.
[0046] The browsing page includes a list control for loading rendered list document data.
[0047] The browsing page may be a page used for browsing documents on a terminal.
[0048] The amount of rendered list document data loaded in the list control is greater than the amount of rendered list document data displayed in the browsing page.
[0049] The list document data is document data presented in the form of a list.
[0050] The list document data includes the document content in the target document.
[0051] The target document is the document that the user needs to browse.
[0052] The target document may be a local document stored in a data container of the terminal.
[0053] The position of the list document data is determined according to the width and height of each page of the target document.
[0054] In a specific implementation, the terminal may display at least one rendered list document data in the browsing page. It is understandable that the rendered list document data displayed in the browsing page may be list document data after scaling adjustment or may be initial list document data without scaling adjustment.
[0055] In order to facilitate the understanding of those skilled in the art, Figure 2 A schematic diagram of the initial list document data displayed on the browsing page is provided. Figure 2 As shown, you can create a custom view for rendering list data for the browsing page, override the view's draw method, and the starting position of the target document is located at the starting position of the display area of the browsing page. The position of the list document data is calculated based on the width and height of each page of the document, and the rendering of the list document data in the display area is completed in sequence.
[0056] The display area of the browsing page is the area displayed on the display screen of the terminal, which can be equal to the size of the display screen or smaller than the size of the display screen.
[0057] Among them, due to the limited area of the display area, it is generally impossible to display all the list document data of the target document at one time. Therefore, the list document data loaded into the list control usually displays part of the list document data in the display area and another part of the list document data when sliding. Figure 2 As shown, 5 rendered list document data are loaded in the list control, but only a part of the rendered list document data is displayed in the display area of the browsing page.
[0058] Step S120 , in response to a touch zoom operation on the list control, displaying the rendered zoomed list document data on the browsing page.
[0059] The zoomed list document data includes the document content located in the display area of the browsing page after the rendered list document data loaded in the list control is zoomed and adjusted according to the touch zoom operation.
[0060] The touch zoom operation refers to an operation of zooming in and out of list document data in a list control.
[0061] In a specific implementation, the user can input a touch zoom operation on the list control to the terminal through the touch function of the terminal, so that the terminal can respond to the touch zoom operation, zoom and adjust the rendered list document data loaded in the list control, and display the zoomed list document data in the display area of the browsing page.
[0062] In some embodiments, after the rendered scaled list document data is displayed on the browsing page, the user can continue to input sliding operations on the list control to the terminal. For example, the user can drag the list control through the touch function of the terminal, drag the scroll bar of the list control through the touch function of the terminal, or use the page scrolling function of the terminal's mouse to input sliding operations on the list control to the terminal.
[0063] In this way, the terminal can receive the sliding operation on the list control, and slide to display the rendered and scaled list document data in the browsing page, so that the list control can be scaled while sliding, allowing the user to continue to view the entire target document at the zoom ratio, meeting the needs of zooming in or out to view content in scenarios such as document preview, making it more convenient to view document content and details.
[0064] In the above-mentioned document content display method, at least one rendered list document data is displayed in a browsing page; the browsing page includes a list control for loading the rendered list document data; the number of rendered list document data loaded in the list control is greater than the number of rendered list document data displayed in the browsing page; the list document data includes the document content in the target document; in response to a touch zoom operation on the list control, the rendered and zoomed list document data is displayed in the browsing page; the zoomed list document data includes the document content located in the display area of the browsing page after the rendered list document data loaded in the list control is zoomed and adjusted according to the touch zoom operation.
[0065] In this way, since rendering document data to the screen is a relatively time-consuming process, the present application displays at least one rendered list document data of the target document in the browsing page, wherein the browsing page includes a list control for loading the rendered list document data; the number of rendered list document data loaded in the list control is greater than the number of rendered list document data displayed in the browsing page, so that the list document data can be efficiently displayed in the display area of the browsing page based on the rendered list document data preloaded in the list control, so as to reduce excessive data rendering and reduce memory pressure. At the same time, by responding to the touch zoom operation of the list control, the rendered list document data loaded in the list control can be zoomed and adjusted, and the rendered zoomed list document data can be displayed in the display area of the browsing page, so as to achieve overall zoom adjustment of the list document data loaded in the list control, so that the user can continuously view the entire target document at a zoom ratio, making it more convenient for the user to view the document content and details, and effectively improving the user's browsing efficiency of the document content.
[0066] In one embodiment, in response to a touch zoom operation on a list control, rendered zoomed list document data is displayed on a browsing page, including: in response to the touch zoom operation, determining updated rendering parameters for the list document data; rendering and updating the rendered list document data loaded in the list control according to the updated rendering parameters, so as to display the rendered zoomed list document data on the browsing page.
[0067] In a specific implementation, when the terminal responds to a touch-zoom operation on a list control and displays the rendered scaled list document data on a browsing page, the terminal can determine updated rendering parameters for the list document data in response to the touch-zoom operation, and update the rendering of the rendered list document data loaded in the list control according to the updated rendering parameters to obtain the rendered scaled list document data, and display the rendered scaled list document data on the browsing page.
[0068] In some embodiments, when the terminal determines updated rendering parameters for list document data in response to a touch zoom operation, the terminal may determine a list zoom ratio for the list control according to the touch zoom operation; and determine updated rendering parameters according to the list zoom ratio.
[0069] In other embodiments, the touch zoom operation is a two-finger touch zoom operation, and the list zoom ratio for the list control is determined based on the touch zoom operation, including: obtaining the distance between the two-finger touch points when the two-finger touch zoom operation is received, to obtain a first distance; obtaining the distance between the two-finger touch points when the two-finger touch zoom operation stops being received, to obtain a second distance; and determining the list zoom ratio based on the ratio of the second distance to the first distance.
[0070] The two-finger touch point is a touch point formed when two fingers of the user touch the screen when performing a two-finger touch zoom operation.
[0071] In a specific implementation, when the terminal determines the zoom ratio of the list in response to the touch zoom operation, the terminal can obtain the distance between the two-finger touch points when the two-finger touch zoom operation is received to obtain the first distance. In addition, the distance between the two-finger touch points when the two-finger touch zoom operation stops being received can also be obtained to obtain the second distance, and the list zoom ratio is determined according to the ratio between the second distance and the first distance.
[0072] In actual applications, the terminal can capture the event of two fingers pressing on the display screen, record the distance between the two fingers, determine the list zoom ratio by the change in the distance between the two fingers (list zoom ratio coefficient = two-finger distance after zooming / two-finger distance before zooming), and when the list is rendered again to calculate the document content, it is zoomed and rendered according to the list zoom ratio, so that the document content can be enlarged or reduced following the distance between the two fingers. To facilitate understanding by those skilled in the art, take the touch zoom operation as an example of the zoom operation, Figure 3 A schematic diagram of a list document data after zooming in is provided. Thus, after the user stops the touch zooming operation, the user can continue to view the entire target document at the list zoom ratio.
[0073] In this way, the touch zoom operation is a two-finger touch zoom operation. The first distance is obtained by acquiring the distance between the two-finger touch points when the two-finger touch zoom operation is received; the second distance is obtained by acquiring the distance between the two-finger touch points when the two-finger touch zoom operation stops being received. Therefore, the list zoom ratio can be accurately determined according to the ratio between the second distance and the first distance, so as to realize zooming in or out of the list document data according to the distance between the two fingers, thereby meeting the different needs of users for browsing document content.
[0074] In one embodiment, the method further includes: in response to a sliding operation on the browsing page, slidingly displaying the rendered list document data loaded by the list control in the browsing page.
[0075] In a specific implementation, the user can also slide to view the document content in the target document by inputting a sliding operation on the list control to the terminal. In response to the sliding operation, the terminal slides and displays the rendered list document data loaded by the list control in the browsing page.
[0076] Specifically, the terminal captures the event of a finger sliding on the display screen, records the distance of the finger sliding, calculates the document content to be displayed in the display area according to the sliding offset, triggers the rendering of the list document data, and realizes that the list document data follows the finger sliding in the display area. Figure 4 A schematic diagram of displaying list document data during sliding is provided.
[0077] In some embodiments, the rendered list document data loaded by the list control includes rendered first list document data and rendered second list document data.
[0078] The first list document data and the second list document data are respectively list document data located before and after the list document data currently displayed on the browsing page in the target document.
[0079] The data lengths of the first list document data and the second list document data are both equal to the length of the display area.
[0080] In this way, when loading list document data, the list document data that needs to be displayed in the display area is calculated, and the list document data of the upper and lower display areas of the current display area are preloaded, which is used to load and avoid lag when sliding, while other list document data is not loaded. That is, in the implementation application, only the list document data in the current display area and the upper and lower display areas of the preloaded length can be rendered to reduce excessive data rendering and reduce memory pressure.
[0081] In some embodiments, the list document data loaded by the list control is cached in a data container corresponding to the list control. The method also includes: during the sliding display process, removing the list document data outside the preset area, and caching the list document data in the target document that newly enters the preset area into the container.
[0082] The preset area is an area consisting of the display area, the first area and the second area; the width of the first area and the second area is equal to the width of the display area, the first area is located above the display area and the length is equal to the length of the display area, and the second area is located below the display area and the length is equal to the length of the display area. The first list document data is located in the first area, and the second list document data is located in the second area.
[0083] In practical applications, the first area and the second area can be named as preload areas.
[0084] In a specific implementation, the list document data loaded by the list control is cached in the data container corresponding to the list control. When the terminal is sliding to display the list document data, the list document data outside the preset area can be removed, and the list document data newly entering the preset area in the target document can be cached in the data container. Among them, the preset area is an area composed of a display area, a first area, and a second area; the width of the first area and the second area is equal to the width of the display area, the first area is located above the display area and the length is equal to the length of the display area, and the second area is located below the display area and the length is equal to the length of the display area. That is, the container can cache list document data of three display area sizes, and when the page slides, the list document data that exceeds the display area by one display area length can be removed in time, and the list document data newly entering the above preset area can be cached in the data container.
[0085] For example, the list document data currently displayed in the display area of the browsing page is the document content of page 8, and the pre-loaded list document data of the upper and lower display area lengths, that is, the first list document data and the second list document data can be the document content of page 7 and the document content of page 9. When the document content of page 7 slides into the display area, the previously loaded document content of page 9 is removed for recycling, and the document content of page 6 is cached in the data container; when the document content of page 9 slides into the display area, the previously loaded document content of page 7 is removed for recycling, and the document content of page 10 is cached in the data container.
[0086] In this way, the visible document content of the rendering page can be loaded according to the sliding of the list control, and the loaded but invisible document content can be recycled, which ensures the memory usage in the process of loading a large number of documents in the list and avoids the problem of jamming caused by memory shortage. Through this memory management, document viewing is smoother and jamming due to the increase of document size is avoided.
[0087] In order to facilitate the understanding of those skilled in the art, Figure 5 A schematic diagram of pre-loaded list document data is provided. Figure 5 As shown, the green box is the rendered list document data, the gray box is the list document data that has left or not entered the preset area, and only the green box occupies memory.
[0088] In other embodiments, the list control also supports page number display, and the document page number will be accurately displayed according to the currently displayed page and the total number of pages of the target document. Specifically, according to the sliding distance, the superscript of the list document data displayed at the top of the current display area and the total number of pages of the target document are calculated and displayed on the page during the list rendering process. The page number display is realized, which makes it easier for users to find the required document content more conveniently.
[0089] In another embodiment, Figure 6 As shown, a document content display method is provided, which is described by taking the method applied to a terminal as an example, and includes the following steps:
[0090] Step S602: display at least one rendered list document data on the browsing page.
[0091] Step S604, obtaining the distance between the two-finger touch points when the two-finger touch zoom operation is received, and obtaining a first distance.
[0092] Step S606, obtaining the distance between the two-finger touch points when the two-finger touch zoom operation stops being received, to obtain a second distance.
[0093] Step S608: determining a list zoom ratio according to a ratio between the second distance and the first distance.
[0094] Step S610, determining updated rendering parameters according to the list scaling ratio.
[0095] Step S612: updating the rendered list document data loaded in the list control according to the updated rendering parameters, so as to display the rendered and scaled list document data on the browsing page.
[0096] It should be noted that the specific limitations of the above steps can refer to the specific limitations of a document content display method mentioned above.
[0097] 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.
[0098] 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.
[0099] In an exemplary embodiment, Figure 7 As shown, a document content display device is provided, including: a display module 710 and a zoom module 720, wherein:
[0100] Display module 710 is used to display at least one rendered list document data in a browsing page; the browsing page includes a list control for loading the rendered list document data; the amount of the rendered list document data loaded in the list control is greater than the amount of the rendered list document data displayed in the browsing page; the list document data includes the document content in the target document.
[0101] The zoom module 720 is used to display the rendered zoomed list document data in the browsing page in response to a touch zoom operation on the list control; the zoomed list document data includes the document content located in the display area of the browsing page after the rendered list document data loaded in the list control is zoomed and adjusted according to the touch zoom operation.
[0102] In one embodiment, the zoom module 720 is specifically configured to determine a list zoom ratio for the list control according to the touch zoom operation; and determine the updated rendering parameters according to the list zoom ratio.
[0103] In one embodiment, the zoom module 720 is specifically configured to determine a list zoom ratio for the list control according to the touch zoom operation; and determine the updated rendering parameters according to the list zoom ratio.
[0104] In one of the embodiments, the device also includes: a sliding module, which is used to slide and display the rendered list document data loaded by the list control in the browsing page in response to a sliding operation on the browsing page; wherein the rendered list document data loaded by the list control includes rendered first list document data and rendered second list document data; the first list document data and the second list document data are respectively the list document data in the target document that is located before and after the list document data currently displayed on the browsing page; the data lengths of the first list document data and the second list document data are both equal to the length of the display area.
[0105] In one of the embodiments, the list document data loaded by the list control is cached in a container corresponding to the list control, and the sliding module is further used to remove the list document data outside the preset area during the sliding display process, and cache the list document data in the target document that newly enters the preset area into the container; the preset area is an area composed of the display area, the first area and the second area; the widths of the first area and the second area are equal to the width of the display area, the first area is located above the display area and has a length equal to the length of the display area, and the second area is located below the display area and has a length equal to the length of the display area.
[0106] In one embodiment, the touch zoom operation is a two-finger touch zoom operation, and the zoom module 720 is specifically used to obtain the distance between the two-finger touch points when the two-finger touch zoom operation is received, and obtain the first distance; obtain the distance between the two-finger touch points when the two-finger touch zoom operation stops being received, and obtain the second distance; determine the list zoom ratio according to the ratio between the second distance and the first distance.
[0107] 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.
[0108] In an exemplary embodiment, a computer device is provided. The computer device may be a terminal, and its internal structure diagram may be as shown in FIG. Figure 8As shown. 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 through a system bus, and the communication interface, the display unit and the input device are connected to the system bus through 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, near field communication (NFC) or other technologies. When the computer program is executed by the processor, a document content display method is implemented. The display unit of the computer device is used to form a visually visible picture, which can be a display screen, a projection device or a virtual reality imaging device. The display screen can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer device can be a touch layer covering the display screen, or a button, trackball or touchpad set on the computer device shell, or an external keyboard, touchpad or mouse.
[0109] Those skilled in the art will understand that Figure 8 The structure shown in the figure is only a block diagram of a part of the 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 those shown in the figure, or combine certain components, or have a different arrangement of components.
[0110] In one embodiment, a computer device is further provided, including a memory and a processor, wherein a computer program is stored in the memory, and the processor implements the steps in the above method embodiments when executing the computer program.
[0111] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps in the above-mentioned method embodiments are implemented.
[0112] In one embodiment, a computer program product is provided, including a computer program, which implements the steps in the above method embodiments when executed by a processor.
[0113] 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.
[0114] 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.
[0115] 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.
[0116] 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 construed as limiting the scope of the present application. It should be noted that, for a person of ordinary skill in the art, several modifications 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: At least one rendered list document data is displayed in a browsing page; the browsing page includes a list control for loading the rendered list document data; the number of the rendered list document data loaded in the list control is greater than the number of the rendered list document data displayed in the browsing page; the list document data includes document content in a target document; In response to a touch-zoom operation on the list control, the rendered and scaled list document data is displayed in the browsing page; the scaled list document data includes the document content located in the display area of the browsing page after scaling the rendered list document data loaded in the list control according to the touch-zoom operation.
2. The method according to claim 1, characterized in that: In response to the touch zoom operation on the list control, displaying the rendered zoomed list document data on the browsing page includes: In response to the touch zoom operation, determining updated rendering parameters for the list document data; The rendered list document data loaded in the list control is rendered and updated according to the updated rendering parameters, so as to display the rendered and scaled list document data in the browsing page.
3. The method according to claim 2, characterized in that The step of determining updated rendering parameters for the list document data in response to the touch zoom operation includes: Determining a list zoom ratio for the list control according to the touch zoom operation; The updated rendering parameters are determined according to the list scaling ratio.
4. The method according to claim 1, characterized in that: The method further comprises: In response to a sliding operation on the browsing page, slidingly displaying the rendered list document data loaded by the list control in the browsing page; Among them, the rendered list document data loaded by the list control includes rendered first list document data and rendered second list document data; the first list document data and the second list document data are respectively the list document data in the target document that are located before and after the list document data currently displayed on the browsing page; the data lengths of the first list document data and the second list document data are both equal to the length of the display area.
5. The method according to claim 4, characterized in that The list document data loaded by the list control is cached in a container corresponding to the list control, and the method further includes: During the sliding display process, the list document data outside the preset area is removed, and the list document data in the target document that newly enters the preset area is cached in the container; The preset area is an area consisting of the display area, the first area and the second area; the widths of the first area and the second area are equal to the width of the display area, the first area is located above the display area and the length is equal to the length of the display area, and the second area is located below the display area and the length is equal to the length of the display area.
6. The method according to claim 3, characterized in that The touch zoom operation is a two-finger touch zoom operation, and determining a list zoom ratio for the list control according to the touch zoom operation includes: Acquire the distance between the two-finger touch points when the two-finger touch zoom operation is received to obtain a first distance; Acquire the distance between the two-finger touch points when the two-finger touch zoom operation stops being received, to obtain a second distance; The list zoom ratio is determined according to a ratio between the second distance and the first distance.
7. A document content display device, characterized in that: The device comprises: A display module, configured to display at least one rendered list document data in a browsing page; the browsing page includes a list control for loading the rendered list document data; the number of the rendered list document data loaded in the list control is greater than the number of the rendered list document data displayed in the browsing page; the list document data includes document content in a target document; A zoom module is used to display the rendered and scaled list document data in the browsing page in response to a touch zoom operation on the list control; the scaled list document data includes the document content located in the display area of the browsing page after the rendered list document data loaded in the list control is zoomed and adjusted according to the touch zoom operation.
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.