Method, device, computer storage medium and terminal for realizing document display processing
By obtaining document size information and applying preset strategies for display, the problem of inappropriate document font display in the prior art is solved, and the user's review experience and operation ease is improved.
Patent Information
- Application Number
- CN202011149024.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-10-23
- Publication Date
- 2025-02-18
- Estimated Expiration
- 2040-10-23
AI Technical Summary
Existing word processing software cannot automatically adjust the font size when opening a document, resulting in user manual adjustments every time they open a document, which is cumbersome and affects the review experience.
By obtaining the size information of the pre-opened document, applying preset strategies for display according to different sizes, including display methods that are suitable for width or actual size. This process can be applied to documents except for oversized documents and scanned documents.
It improves the user's sensory comfort for the document, simplifies the adjustment process of document display parameters, and improves the user experience.
Smart Images

Figure CN114492298B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to, but is not limited to, automated office technology, and in particular to a method, device, computer storage medium and terminal for realizing document display processing. Background Art
[0002] At present, commonly used word processing software in related technologies usually displays documents in actual size, fit to width or fit to page when users open documents; some word processing software companies display documents opened by users in a way of fit to page when the document page is a horizontal page; and in a way of fit to width when the document is a vertical page; some word processing software companies display all PDF documents opened by users in a way of fit to width. Some word processing software companies display all documents opened by users in an actual size.
[0003] If the document is displayed in the above manner, problems may occur such as the font being too large or too small, which affects the user's document browsing experience. In addition, if the document font is too large or too small, the user needs to manually adjust the display parameters every time the document is opened, which is cumbersome. Summary of the invention
[0004] The following is a summary of the subject matter described in detail herein. This summary is not intended to limit the scope of the claims.
[0005] The embodiments of the present invention provide a method, an apparatus, a computer storage medium and a terminal for implementing document display processing, which can improve the sensory comfort of users in reading documents.
[0006] An embodiment of the present invention provides a method for implementing document display processing, including:
[0007] Get the size information of the first document currently being opened;
[0008] Determine the size of the first document according to the acquired size information, and display first documents of different sizes according to preset strategies respectively;
[0009] The first document includes: documents other than oversized documents and scanned copies.
[0010] On the other hand, an embodiment of the present invention further provides a computer storage medium, wherein the computer storage medium stores a computer program, and when the computer program is executed by a processor, the method for realizing document display processing is implemented.
[0011] In another aspect, an embodiment of the present invention further provides a terminal, comprising: a memory and a processor, wherein the memory stores a computer program; wherein:
[0012] The processor is configured to execute the computer program in the memory;
[0013] When the computer program is executed by the processor, the method for realizing document display processing as described above is implemented.
[0014] In another aspect, an embodiment of the present invention further provides a device for implementing document display processing, comprising: an acquisition unit and a display unit; wherein:
[0015] The acquisition unit is configured to: acquire the size information of the first document currently to be opened;
[0016] The display unit is configured to: determine the size of the first document according to the acquired size information, and display first documents of different sizes respectively according to preset strategies;
[0017] The first document includes: documents other than oversized documents and scanned copies.
[0018] The embodiment of the present invention obtains the size information of the first document currently being opened, and displays the first documents of different sizes respectively according to a preset strategy, wherein the first documents include: documents other than oversized documents and scanned copies; by separately displaying the first documents of different sizes, the user's sensory comfort for viewing the documents is improved.
[0019] Other features and advantages of the present invention will be described in the following description, and partly become apparent from the description, or understood by practicing the present invention. The purpose and other advantages of the present invention can be realized and obtained by the structures particularly pointed out in the description, claims and drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] The accompanying drawings are used to provide a further understanding of the technical solution of the present invention and constitute a part of the specification. Together with the embodiments of the present application, they are used to explain the technical solution of the present invention and do not constitute a limitation on the technical solution of the present invention.
[0021] Figure 1 A flowchart of a method for implementing document display processing according to an embodiment of the present invention;
[0022] Figure 2 A structural block diagram of a device for implementing document display processing according to an embodiment of the present invention;
[0023] Figure 3 The present invention is an example of a method flow chart of an application. DETAILED DESCRIPTION
[0024] In order to make the purpose, technical solution and advantages of the present invention more clear, the embodiments of the present invention will be described in detail with reference to the accompanying drawings. It should be noted that the embodiments and features in the embodiments of the present application can be combined with each other arbitrarily without conflict.
[0025] The steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions. Also, although a logical sequence is shown in the flowchart, in some cases, the steps shown or described can be performed in a sequence different from that shown here.
[0026] Figure 1 Flow chart of a method for implementing document display processing in an embodiment of the present invention, such as Figure 1 As shown, including:
[0027] Step 101, obtaining the size information of the first document currently to be opened;
[0028] The first document includes: documents other than oversized documents and scanned copies.
[0029] In an exemplary embodiment, the first document in the embodiment of the present invention includes but is not limited to: documents in formats such as Word and PDF.
[0030] It should be noted that, in the embodiment of the present invention, the size information of the first document can be obtained from the attribute information of the document with reference to related technologies.
[0031] Step 102: determine the size of the first document according to the acquired size information, and display first documents of different sizes according to preset strategies.
[0032] The embodiment of the present invention obtains the size information of the first document currently to be opened, and displays the first documents of different sizes respectively according to a preset strategy, wherein the first documents include: documents other than oversized documents and scanned copies; by performing display settings for the first documents of different sizes respectively, when the user opens documents of different sizes, the document is displayed according to the strategy corresponding to the document size, so that the user obtains good sensory comfort and improves the user's document browsing experience.
[0033] In an exemplary embodiment, the embodiment of the present invention displays first documents of different sizes according to preset strategies respectively, including:
[0034] First documents of different sizes are displayed in different display modes or display ratios.
[0035] In an exemplary embodiment, the embodiment of the present invention displays first documents of different sizes according to preset strategies respectively, including:
[0036] When it is determined that the size of the first document is within the first size range, the terminal window size is determined; and the method for displaying the first document is determined according to the determined terminal window size;
[0037] When it is determined that the size of the first document is within the second size range, determining whether the user has opened more than one second document; when it is determined that the user has opened more than one second document, determining the display ratio of the first document according to display-related parameters of the more than one second document;
[0038] The maximum value of the first size range is less than or equal to the minimum value of the second size range; the display-related parameters include the font size and display ratio of the second document.
[0039] It should be noted that the size of the first document is included in the first size range, which means that: the long side of the first document is smaller than the length of the first size, and the short side of the first document is smaller than the width of the first size; similarly, the size of the first document is included in the second size range, which means that: the long side of the first document is smaller than the length of the second size, and the short side of the first document is smaller than the width of the second size; the maximum value of the first size range is less than or equal to the minimum value of the second size range, which means that: the larger value of the length and width of the first size is less than or equal to the smaller value of the length and width of the second size;
[0040] In addition, the number of second documents can be set by those skilled in the art according to the application scenario. Generally, the number of second documents can be within 2 to 7, which can be adjusted according to different application scenarios. The size of the second document in the embodiment of the present invention theoretically belongs to the second size range. When the user consults the second document in advance, the display ratio is set according to the font size in accordance with the user's reading habits. After the display ratio of the first document is set according to the font size, the document displayed after setting the display ratio is theoretically in line with the user's reading habits, thereby improving the user's browsing experience. The terminal window size can be obtained by reading the attribute parameters of the terminal that loads the first document.
[0041] In an exemplary embodiment, the embodiment of the present invention determines the manner of displaying the first document according to the determined terminal window size, including:
[0042] When the terminal window size is larger than a preset size threshold, the first document is displayed in a manner suitable for the width;
[0043] When the terminal window size is less than or equal to the size threshold, the first document is displayed in an actual size.
[0044] It should be noted that the terminal window size is smaller than the size threshold, which means that the length and height of the terminal window are both smaller than the length and height of the size threshold. The terminal window size is larger than the size threshold, which means that the length and height of the terminal window are both larger than the length and height of the size threshold.
[0045] In an exemplary embodiment, the size threshold in the embodiment of the present invention can be set to 15.6 inches; the size threshold can be set and adjusted by those skilled in the art according to the application scenario. When displaying in a manner suitable for the width and actual size, the display processing method of existing word processing software in the related art can be referred to for processing.
[0046] The embodiment of the present invention displays the first document according to the terminal window size, thereby improving the user's sensory comfort in viewing the document.
[0047] In an exemplary embodiment, the embodiment of the present invention determines the display ratio of the first document according to display-related parameters of more than one second document, including:
[0048] The display-related parameters of all second documents are counted, and the counted display-related parameters are preprocessed; here, the display-related parameter statistics include: determining the display-related parameters for each second document; and collating and merging the display-related parameters of all second documents. For example, after differentiating each user according to the user account, when the user logs in to the account to view the document, the user's historical opening records can be stored through existing files including log files; when it is determined that the size of the first document is included in the second size range, the display-related parameters are obtained from the files corresponding to the user account including the log files.
[0049] The font size and the display ratio in the preprocessed display related parameters are averaged to obtain the average font size value and the average display ratio value;
[0050] The font size of the first document is divided by the average font size, and then multiplied by the average display ratio to obtain the display ratio of the first document.
[0051] In an exemplary embodiment, when the display ratio calculated by the embodiment of the present invention is not an integer, the calculated display ratio may be rounded up or down. Whether to round up or down may be analyzed and set by those skilled in the art.
[0052] In an exemplary embodiment, the preprocessing in the embodiment of the present invention includes one or any combination of the following processing:
[0053] Remove the maximum value of the font size in the statistical display-related parameters;
[0054] Remove the minimum value of the font size from the statistical display-related parameters;
[0055] Remove the maximum value of the display ratio among the statistical display-related parameters;
[0056] Remove the minimum value of the display ratio from the statistical display-related parameters.
[0057] It should be noted that the above-mentioned calculation rule for determining the display ratio of the first document is only an exemplary rule of an embodiment of the present invention. Those skilled in the art may determine other methods for calculating the display ratio based on the display-related parameters of the second document, for example: respectively counting the average font size and the average display ratio of each second document; preprocessing the average font size and the average display ratio of a preset number of second documents; the preprocessing includes one or any combination of the following processing: removing the maximum value of the obtained average font size; removing the minimum value of the obtained average font size; removing the maximum value of the obtained display ratio; removing the minimum value of the obtained display ratio; performing mean calculation on the preprocessed average font size to obtain a first mean; performing mean calculation on the preprocessed average display ratio to obtain a second mean; dividing the font size of the first document by the first mean, and then multiplying by the second mean, as the display ratio of the first document.
[0058] In an exemplary embodiment, the display-related parameters of the second document in the embodiment of the present invention may be parameters that meet certain conditions: for example, the display-related parameters when the time length for which the user browses the document page is greater than a preset time length.
[0059] In an exemplary embodiment, when it is determined that the user has not opened more than one second document, the method of the embodiment of the present invention further includes:
[0060] determining a font size of the first document;
[0061] According to the preset mapping relationship, a display ratio corresponding to the font size of the first document is determined.
[0062] It should be noted that the mapping relationship in the embodiment of the present invention can be set by a person skilled in the art according to the terminal window size by respectively setting the corresponding display ratio of the first document with different font sizes; for example, for a terminal window larger than 24 inches and a font size of 10 pounds, the display ratio is set to 120%.
[0063] In an exemplary embodiment, in the embodiments of the present invention:
[0064] The first size range includes: smaller than A4 drawing size;
[0065] The second size range includes: smaller than the A3 drawing size but larger than the A4 drawing size. It should be noted that the first size range and the second size range of the embodiment of the present invention can be set and adjusted by those skilled in the art according to the application scenario. The document size is smaller than the A4 drawing size, which means: the length of the document is smaller than the length of the A4 drawing, and the width of the document is smaller than the width of the A4 drawing. The document size is smaller than the A3 drawing size but larger than the A4 drawing size, which means: the length of the document is smaller than the length of the A3 drawing but larger than the length of the A4 drawing, and the width of the document is smaller than the width of the A3 drawing but larger than the width of the A4 drawing.
[0066] Here, the A3 and A4 drawing sizes are sizes known to those skilled in the art; wherein the A4 drawing size is 210 mm*297 mm; the A3 drawing size is 420 mm*297 mm;
[0067] In an exemplary embodiment, after determining the display ratio of the first document, the method of the embodiment of the present invention further includes:
[0068] Adjusting the display ratio of the first document according to the received preset adjustment instruction;
[0069] The font size of the first document and the adjusted display ratio are recorded, so that when the first document is opened again, the first document is displayed according to the recorded display ratio.
[0070] The embodiment of the present invention records the display ratio adjusted by the user, and when the first document is opened again, the document is displayed according to the recorded display ratio, thereby simplifying the operation of the user adjusting the display parameters of the document.
[0071] In an exemplary embodiment, before step 101, the method of the embodiment of the present invention further includes:
[0072] According to the attribute information of the document, it is determined whether the currently pre-opened document is the first document.
[0073] In an exemplary embodiment, when it is determined that the currently pre-opened document is not the first document, the method of the embodiment of the present invention further includes:
[0074] Determine the document type of the currently opened document according to the document's attribute information;
[0075] According to the determined document type of the currently pre-opened document, the currently pre-opened document is displayed in a preset display mode corresponding to each document type;
[0076] The document types include: oversized documents and / or scanned copies.
[0077] In an exemplary embodiment, the currently pre-opened document is displayed in a preset display mode corresponding to each document type, including:
[0078] When it is determined that the currently pre-opened document is an oversized document, the currently pre-opened document is displayed in a manner that fits the page;
[0079] When it is determined that the currently pre-opened document is a scanned copy, the currently pre-opened document is displayed in a manner suitable for the page.
[0080] In an exemplary embodiment, the scanned document of the embodiment of the present invention includes a blank document and / or a document including a picture document.
[0081] It should be noted that in the related art, hollow documents or scanned copies including image documents are generally displayed in a manner suitable for the width. When the font size in the document is large, the font may be displayed too large, affecting the user's document browsing experience. When displayed to fit the page, it can be adaptively adjusted according to the font size to enhance the user's sensory comfort in reading the document.
[0082] The embodiment of the present invention further provides a computer storage medium, in which a computer program is stored. When the computer program is executed by a processor, the method for realizing document display processing is implemented.
[0083] The embodiment of the present invention further provides a terminal, comprising: a memory and a processor, wherein a computer program is stored in the memory; wherein:
[0084] The processor is configured to execute the computer program in the memory;
[0085] When the computer program is executed by a processor, the method for realizing document display processing as described above is implemented.
[0086] Figure 2 FIG. 1 is a structural block diagram of a device for implementing document display processing according to an embodiment of the present invention. Figure 2 As shown, it includes: an acquisition unit and a display unit; wherein,
[0087] The acquisition unit is configured to: acquire size information of a first document currently being pre-opened; wherein the first document includes: documents other than oversized documents and scanned copies.
[0088] The display unit is configured to: determine the size of the first document according to the acquired size information, and display first documents of different sizes according to preset strategies respectively.
[0089] The embodiment of the present invention obtains the size information of the first document currently to be opened, and displays the first documents of different sizes respectively according to a preset strategy, wherein the first documents include: documents other than oversized documents and scanned copies; by performing display settings for the first documents of different sizes respectively, when the user opens documents of different sizes, the document is displayed according to the strategy corresponding to the document size, so that the user obtains good sensory comfort and improves the user's document browsing experience.
[0090] In an exemplary embodiment, the first document in the embodiment of the present invention includes but is not limited to: documents in formats such as Word and PDF.
[0091] In an exemplary embodiment, the display unit of the embodiment of the present invention is configured as:
[0092] First documents of different sizes are displayed according to preset strategies, including:
[0093] When it is determined that the size of the first document is within the first size range, the terminal window size is determined; and the method for displaying the first document is determined according to the determined terminal window size;
[0094] When it is determined that the size of the first document is within the second size range, determining whether the user has opened more than one second document; when it is determined that the user has opened more than one second document, determining the display ratio of the first document according to display-related parameters of the more than one second document;
[0095] The maximum value of the first size range is less than or equal to the minimum value of the second size range; the display-related parameters include the font size and display ratio of the second document.
[0096] In an exemplary embodiment, the display unit in the embodiment of the present invention is configured to determine the manner of displaying the first document according to the determined terminal window size, including:
[0097] When the terminal window size is larger than a preset size threshold, the first document is displayed in a manner suitable for the width;
[0098] When the terminal window size is less than or equal to the size threshold, the first document is displayed in an actual size manner.
[0099] In an exemplary embodiment, the size threshold in the embodiment of the present invention may be set to 15.6 inches; the size threshold may be set and adjusted by those skilled in the art according to the application scenario.
[0100] In an exemplary embodiment, the display unit in the embodiment of the present invention is configured to determine the display ratio of the first document according to display-related parameters of more than one second document, including:
[0101] Collecting statistics on display-related parameters of all second documents, and preprocessing the collected statistics on display-related parameters;
[0102] The font size and the display ratio in the preprocessed display related parameters are averaged to obtain the average font size value and the average display ratio value;
[0103] The font size of the first document is divided by the average font size, and then multiplied by the average display ratio to obtain the display ratio of the first document.
[0104] In an exemplary embodiment, when the display ratio calculated by the embodiment of the present invention is not an integer, the calculated display ratio may be rounded up or down. Whether to round up or down may be analyzed and set by those skilled in the art.
[0105] In an exemplary embodiment, the preprocessing in the embodiment of the present invention includes one or any combination of the following processing:
[0106] Remove the maximum value of the font size in the statistical display-related parameters;
[0107] Remove the minimum value of the font size from the statistical display-related parameters;
[0108] Remove the maximum value of the display ratio among the statistical display-related parameters;
[0109] Remove the minimum value of the display ratio from the statistical display-related parameters.
[0110] In an exemplary embodiment, the display unit is further configured to:
[0111] When it is determined that the user has not opened more than one second document, determining a font size of the first document;
[0112] According to the preset mapping relationship, a display ratio corresponding to the font size of the first document is determined.
[0113] In an exemplary embodiment, in the embodiments of the present invention:
[0114] The first size range includes: smaller than A4 drawing size;
[0115] The second size range includes: smaller than A3 drawing size but larger than A4 drawing size.
[0116] It should be noted that the first size range and the second size range in the embodiment of the present invention can be set and adjusted by those skilled in the art according to application scenarios.
[0117] In an exemplary embodiment, the device of the embodiment of the present invention further includes an adjustment unit, which is configured to:
[0118] Adjusting the display ratio of the first document according to the received preset adjustment instruction;
[0119] The font size of the first document and the adjusted display ratio are recorded, so that when the first document is opened again, the first document is displayed according to the recorded display ratio.
[0120] In an exemplary embodiment, the device of the embodiment of the present invention further includes a judgment unit, which is configured to:
[0121] According to the attribute information of the document, it is determined whether the currently pre-opened document is the first document.
[0122] In an exemplary embodiment, the present invention:
[0123] The judging unit is further configured to: when it is determined that the currently pre-opened document is not the first document, judge the document type of the currently pre-opened document;
[0124] The display unit is further configured to: display the currently pre-opened document in a preset display mode corresponding to each document type according to the determined document type of the currently pre-opened document;
[0125] The document types include: oversized documents and / or scanned copies.
[0126] In an exemplary embodiment, the display unit is further configured to display the currently pre-opened document in a preset display mode corresponding to each document type, including:
[0127] When it is determined that the currently pre-opened document is an oversized document, the currently pre-opened document is displayed in a manner that fits the page;
[0128] When it is determined that the currently pre-opened document is a scanned copy, the currently pre-opened document is displayed in a manner suitable for the page.
[0129] The following briefly describes the embodiments of the present invention through application examples. The application examples are only used to illustrate the embodiments of the present invention and are not used to limit the protection scope of the present invention.
[0130] Application Examples
[0131] Figure 3 A method flow chart of an example of application of the present invention is shown in FIG. Figure 3 As shown, including:
[0132] Step 300: Obtaining attribute information of the pre-opened document;
[0133] In an exemplary embodiment, the attribute information of the document includes: font information, font size information and / or page size information;
[0134] Step 301: determine the document type of the currently pre-opened document according to the attribute information of the document; wherein the document types include: a first document, an oversized document, and a scanned copy.
[0135] When it is determined that the document type of the currently pre-opened document is a scanned document, step 3020 is executed; when it is determined that the document type of the currently pre-opened document is an oversized document, step 3021 is executed; when it is determined that the document type of the currently pre-opened document is a first document, step 3022 is executed;
[0136] In an exemplary embodiment, determining the document type of the currently pre-opened document includes:
[0137] When the document attribute information does not include the font and font size information, it is determined that the document type of the currently pre-opened document is a scanned document;
[0138] When the document attribute information includes font and font size information, and the page size of the first page of the document meets the preset size, the document type of the document currently to be opened is judged to be the first document; when the document attribute information includes font and font size information, but the page size of the first page of the document does not meet the preset size, the document type of the document currently to be opened is judged to be an extra-large document; here, the preset size may include: the length and width of the document are both between A3 and A4; that is, when the document attribute information includes font and font size information, and the length and width of the first page of the document are both between A3 and A4, the document type of the document currently to be opened is judged to be the first document; when the document attribute information includes font and font size information, and the length and / or width of the first page of the document are both greater than A3, the document type of the document currently to be opened is judged to be an extra-large document;
[0139] Step 3020: Display in a manner suitable for the page;
[0140] Step 3021, display in a manner suitable for the page;
[0141] Step 3022, obtain the size information of the first document, and determine the size range to which the first document belongs; when the size of the first document is smaller than the A4 drawing size, execute step 30220; when the size of the first document is smaller than the A3 drawing size but larger than the A4 drawing size, execute step 30221
[0142] Step 30220: determining a terminal window size, and determining a method for displaying the first document according to the determined terminal window size;
[0143] Step 30221: determine whether the user has opened more than one second document; if it is determined that the user has opened more than one second document, execute step 302210; if it is determined that the user has not opened more than one second document, execute step 302211;
[0144] Step 302210: determine the display ratio of the first document based on display-related parameters of one or more second documents; the display-related parameters include: font size and display ratio of the second document.
[0145] Step 302211: determine the font size of the first document, and determine the display ratio corresponding to the font size of the first document according to a preset mapping relationship.
[0146] In an exemplary instance, step 30220 determines the manner of displaying the first document based on the determined terminal window size, including: when the terminal window size is larger than a preset size threshold, displaying the first document in a manner suitable for the width; when the terminal window size is less than or equal to the size threshold, displaying the first document in a manner of actual size.
[0147] In an exemplary embodiment, step 30221 determines the display ratio of the first document according to the display-related parameters of more than one second document, including: performing statistics on the display-related parameters of all second documents, and preprocessing the statistically determined display-related parameters;
[0148] The font size and the display ratio in the preprocessed display related parameters are averaged to obtain the average font size value and the average display ratio value;
[0149] The font size of the first document is divided by the average font size, and then multiplied by the average display ratio to obtain the display ratio of the first document.
[0150] In an exemplary embodiment, the preprocessing includes one or any combination of the following:
[0151] Remove the maximum value of the font size in the statistical display-related parameters;
[0152] Remove the minimum value of the font size from the statistical display-related parameters;
[0153] Remove the maximum value of the display ratio among the statistical display-related parameters;
[0154] Remove the minimum value of the display ratio from the statistical display-related parameters.
[0155] “A person skilled in the art will appreciate that all or some of the steps, systems, and functional modules / units in the above disclosed methods may be implemented as software, firmware, hardware, and appropriate combinations thereof. In hardware implementations, the division between the functional modules / units mentioned in the above description does not necessarily correspond to the division of physical components; for example, a physical component may have multiple functions, or a function or step may be performed by several physical components in cooperation. Some or all components may be implemented as software executed by a processor, such as a digital signal processor or a microprocessor, or as hardware, or as an integrated circuit, such as an application specific integrated circuit. Such software may be distributed on a computer-readable medium, which may include a computer storage medium (or a non-transitory medium) and a communication medium (or a transient medium). As is known in the art, As is well known to those skilled in the art, the term computer storage media includes volatile and nonvolatile, removable and non-removable media implemented in any method or technology for storage of information such as computer readable instructions, data structures, program modules or other data. Computer storage media include, but are not limited to, RAM, ROM, EEPROM, flash memory or other memory technology, CD-ROM, digital versatile disks (DVD) or other optical disk storage, magnetic cassettes, magnetic tapes, magnetic disk storage or other magnetic storage devices, or any other medium that can be used to store the desired information and can be accessed by a computer. In addition, as is well known to those skilled in the art, communication media typically contains computer readable instructions, data structures, program modules or other data in a modulated data signal such as a carrier wave or other transport mechanism, and may include any information delivery media. "
Claims
1. A method for implementing document display processing, comprising: Get the size information of the first document currently being opened; Determine the size of the first document according to the acquired size information, and display first documents of different sizes according to preset strategies respectively; Wherein, the first document includes: documents other than oversized documents and scanned copies; The first documents of different sizes are displayed according to preset strategies respectively, including: When it is determined that the size of the first document is within a first size range, determining the size of the terminal window; and determining a method for displaying the first document according to the size of the terminal window; When it is determined that the size of the first document is within the second size range, determining whether the user has opened more than one second document; when it is determined that the user has opened more than one second document, determining the display ratio of the first document according to display-related parameters of more than one second document; Among them, the maximum value of the first size range is less than or equal to the minimum value of the second size range; the display-related parameters include: font size and display ratio of the second document.
2. The method according to claim 1, characterized in that: Before obtaining the size information of the first document currently being opened, the method further includes: According to the attribute information of the document, it is determined whether the currently pre-opened document is the first document.
3. The method according to claim 2, characterized in that When it is determined that the currently pre-opened document is not the first document, the method further includes: Determine the document type of the currently opened document according to the document's attribute information; According to the determined document type of the currently pre-opened document, display the currently pre-opened document in a preset display mode corresponding to each document type; The document types include: oversized documents and / or scanned copies.
4. The method according to claim 3, characterized in that The presenting of the currently pre-opened document in a preset presentation mode corresponding to each document type includes: When it is determined that the currently pre-opened document is the oversized document, the currently pre-opened document is displayed in a manner that fits the page; When it is determined that the currently pre-opened document is the scanned copy, the currently pre-opened document is displayed in a manner suitable for the page.
5. The method according to claim 1, characterized in that The method of determining the display mode of the first document according to the size of the terminal window includes: When the size of the terminal window is larger than a preset size threshold, the first document is displayed in a manner suitable for the width; When the terminal window size is less than or equal to the size threshold, the first document is displayed in an actual size.
6. The method according to claim 1, characterized in that The determining the display ratio of the first document according to one or more display-related parameters of the second document includes: Collecting statistics on all display-related parameters of the second document, and preprocessing the collected display-related parameters; The font size and the display ratio in the preprocessed display-related parameters are averaged to obtain an average font size value and an average display ratio value; The font size of the first document is divided by the average font size, and then multiplied by the average display ratio to obtain the display ratio of the first document.
7. The method according to claim 6, characterized in that The pre-processing includes one or any combination of the following: removing the maximum value of the font size in the statistically analyzed display-related parameters; removing the minimum value of the font size in the statistically analyzed display-related parameters; removing the maximum value of the display ratio among the display-related parameters obtained by statistics; The minimum value of the display ratio among the display-related parameters obtained by statistics is removed.
8. The method according to claim 1, characterized in that When it is determined that the user has not opened more than one second document, the method further includes: determining a font size of the first document; According to a preset mapping relationship, a display ratio corresponding to the font size of the first document is determined.
9. The method according to claim 1, characterized in that: The first size range includes: smaller than A4 drawing size; The second size range includes: smaller than A3 drawing size but larger than A4 drawing size.
10. A computer storage medium, wherein a computer program is stored in the computer storage medium, and when the computer program is executed by a processor, the method for realizing document display processing according to any one of claims 1 to 9 is implemented.
11. A terminal, comprising: A memory and a processor, wherein the memory stores a computer program; wherein, The processor is configured to execute the computer program in the memory; When the computer program is executed by the processor, the method for realizing document display processing according to any one of claims 1 to 9 is implemented.
12. A device for implementing document display processing, comprising: an acquisition unit and a display unit; wherein, The acquisition unit is configured to: acquire the size information of the first document currently to be opened; The display unit is configured to: determine the size of the first document according to the acquired size information, and display first documents of different sizes respectively according to preset strategies; Wherein, the first document includes: documents other than oversized documents and scanned copies; The first documents of different sizes are displayed according to preset strategies respectively, including: When it is determined that the size of the first document is within a first size range, determining the size of the terminal window; and determining a method for displaying the first document according to the size of the terminal window; When it is determined that the size of the first document is within the second size range, determining whether the user has opened more than one second document; when it is determined that the user has opened more than one second document, determining the display ratio of the first document according to display-related parameters of more than one second document; Among them, the maximum value of the first size range is less than or equal to the minimum value of the second size range; the display-related parameters include: font size and display ratio of the second document.
Citation Information
Patent Citations
Method and system for adjusting display scale of office software in self-adaption manner
CN105511829A
Device for resizing window, and method of controlling the device to resize window
CN105630282A
Optimal display and zoom of objects and text in a document
CN107015751A