CN111191418A - Online document processing method and device, electronic equipment and computer storage medium - Google Patents

Online document processing method and device, electronic equipment and computer storage medium Download PDF

Info

Publication number
CN111191418A
CN111191418A CN201911241688.1A CN201911241688A CN111191418A CN 111191418 A CN111191418 A CN 111191418A CN 201911241688 A CN201911241688 A CN 201911241688A CN 111191418 A CN111191418 A CN 111191418A
Authority
CN
China
Prior art keywords
document
page
loaded
document page
processed
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201911241688.1A
Other languages
Chinese (zh)
Other versions
CN111191418B (en
Inventor
罗志伟
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201911241688.1A priority Critical patent/CN111191418B/en
Publication of CN111191418A publication Critical patent/CN111191418A/en
Application granted granted Critical
Publication of CN111191418B publication Critical patent/CN111191418B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention provides an online document processing method, an online document processing device, electronic equipment and a computer storage medium, wherein the method comprises the following steps: acquiring a document acquisition request of a user for a document to be processed; acquiring a document page to be loaded in a document to be processed based on the document acquisition request, wherein the document page to be loaded comprises a target document page corresponding to the page number indication information; and sending the document page to be loaded to a user terminal so that the user terminal loads the document page to be loaded into the memory and displays the target document page to a user. In the scheme, the document page to be loaded is part of the document page in the document to be processed, and the part of the document page is loaded in the memory of the user terminal, so that in the process of displaying the document page to the user by the user terminal, only part of the document page in the document to be processed can be provided for the user through the user terminal, and all the document pages are not required to be sent to the user terminal, thereby reducing the time of waiting for the document to be loaded by the user and improving the user experience.

Description

Online document processing method and device, electronic equipment and computer storage medium
Technical Field
The invention relates to the technical field of data processing, in particular to an online document processing method and device, electronic equipment and a computer storage medium.
Background
In the prior art, when a user wants to process a certain document online, the server generally sends the whole document to the user terminal, and then the user terminal loads all document pages in the whole document into the memory, and then displays the document pages in the document to the user. Based on the scheme, a certain time is consumed in the process of loading the whole document by the user terminal, so that the waiting time of the user is long, and the user experience is poor.
Disclosure of Invention
The embodiments of the present invention mainly aim to provide an online document processing method, an online document processing device, an electronic device, and a computer storage medium.
In a first aspect, an embodiment of the present invention provides an online document processing method, where the method includes:
acquiring a document acquisition request aiming at a document to be processed, wherein the document acquisition request comprises page number indicating information;
acquiring a document page to be loaded in a document to be processed based on the document acquisition request, wherein the document page to be loaded comprises a target document page corresponding to the page number indication information;
and sending the document page to be loaded to a user terminal so that the user terminal loads the document page to be loaded into the memory and displays the target document page to a user.
In an optional embodiment of the first aspect, the document pages to be loaded further comprise a set number of associated document pages associated with the target document page, the associated document pages comprising at least one of document pages preceding or following the target document page.
In an optional embodiment of the first aspect, the document obtaining request is generated by the user terminal based on an operation request of the user for the document to be processed, where the operation request includes a document opening request or a document page obtaining request;
when the operation request is a document opening request, the page number indicating information is setting information, and when the operation request is a document page acquisition request, the page number indicating information is a page number identifier of a document page corresponding to the document page acquisition request.
In an optional embodiment of the first aspect, the document obtaining request further includes document format information, and if a document format corresponding to the document format information is different from a document format corresponding to a document to be processed, the sending the document page to be loaded to the user terminal includes:
converting the document page to be loaded into a document page in a document format corresponding to the document format information;
and sending the document page to be loaded after the format conversion to a user terminal.
In an alternative embodiment of the first aspect, the format of the document to be processed is a non-editable format.
In an optional embodiment of the first aspect, the method further comprises:
receiving a document editing request for a document to be processed;
when the document to be processed is a document with an editable format, processing a corresponding document page based on the document editing request, and sending a processing result to the user terminal;
and when the document to be processed is not the editable format document, converting the document to be processed into the editable format document, processing the corresponding document page based on the editing request, and sending the processed editable format document page to the user terminal.
In an alternative embodiment of the first aspect, the set number is determined by:
acquiring equipment information of a user terminal;
the set number is determined based on the device information.
In an optional embodiment of the first aspect, sending the document page to be loaded to the user terminal includes:
acquiring equipment information of a user terminal;
determining a document page to be loaded corresponding to the equipment information;
and sending the document page to be loaded corresponding to the equipment information to the user terminal.
In an optional embodiment of the first aspect, the device information comprises at least one of screen resolution or available memory information.
In a second aspect, an embodiment of the present invention provides an online document processing method, where the method includes:
acquiring an operation request of a user for a document to be processed, wherein the operation request comprises page number indicating information;
based on the operation request, sending a corresponding document acquisition request to the server, and receiving a document page to be loaded returned by the server based on page number indicating information in the document acquisition request, wherein the document page to be loaded comprises a target document page corresponding to the page number indicating information;
and loading the document page to be loaded into the memory, and displaying the target document page to a user.
In an optional embodiment of the second aspect, the document pages to be loaded further comprise a set number of associated document pages associated with the target document page, the associated document pages comprising at least one of document pages preceding or following the target document page.
In an optional embodiment of the second aspect, the operation request comprises a document open request or a document page acquisition request;
when the operation request is a document opening request, the page number indicating information is setting information, and when the operation request is a document page acquisition request, the page number indicating information is a page number identifier of a document page corresponding to the document page acquisition request.
In an optional embodiment of the second aspect, the document obtaining request further includes document format information, and if the document format corresponding to the document format information is different from the document format corresponding to the document to be processed, the document page to be loaded is a document page in which the server converts the document page to be loaded into the document format corresponding to the document format information.
In an alternative embodiment of the second aspect, the format of the document to be processed is a non-editable format.
In an optional embodiment of the second aspect, the method further comprises:
acquiring a document editing request for a document to be processed;
when the document to be processed is a document with an editable format, receiving a processing result returned by the server for processing the corresponding document page based on the document editing request;
and when the document to be processed is not the editable format document, the receiving server converts the document to be processed into the editable format document, and processes the corresponding document page based on the editing request to obtain the editable format document page.
In an alternative embodiment of the second aspect, the set number is determined by:
acquiring equipment information of a user terminal;
the set number is determined based on the device information.
In an optional embodiment of the second aspect, the document page to be loaded is a document page corresponding to the device information, which is determined by the server based on the device information of the user terminal.
In an optional embodiment of the second aspect, the device information comprises at least one of screen resolution or available memory information.
In a third aspect, the present invention provides an online document processing apparatus, comprising:
the document acquisition request acquisition module is used for acquiring a document acquisition request aiming at a document to be processed, wherein the document acquisition request comprises page number indicating information;
the document page acquiring module is used for acquiring a document page to be loaded in the document to be processed based on the document acquiring request, wherein the document page to be loaded comprises a target document page corresponding to the page number indicating information;
and the document page processing module is used for sending the document page to be loaded to the user terminal so that the user terminal loads the document page to be loaded into the memory and displays the target document page to the user.
In an optional embodiment of the third aspect, the document page to be loaded further comprises a set number of associated document pages associated with the target document page, the associated document pages comprising at least one of document pages preceding or following the target document page.
In an optional embodiment of the third aspect, the document obtaining request is generated by the user terminal based on an operation request of the user for the document to be processed, where the operation request includes a document opening request or a document page obtaining request;
when the operation request is a document opening request, the page number indicating information is setting information, and when the operation request is a document page acquisition request, the page number indicating information is a page number identifier of a document page corresponding to the document page acquisition request.
In an optional embodiment of the third aspect, the document obtaining request further includes document format information, and if the document format corresponding to the document format information is different from the document format corresponding to the document to be processed, the document page processing module is specifically configured to, when sending the document page to be loaded to the user terminal:
converting the document page to be loaded into a document page in a document format corresponding to the document format information;
and sending the document page to be loaded after the format conversion to a user terminal.
In an optional embodiment of the third aspect, the format of the document to be processed is a non-editable format.
In an optional embodiment of the third aspect, the apparatus further comprises:
the document editing module is used for receiving a document editing request aiming at a document to be processed; when the document to be processed is a document with an editable format, processing a corresponding document page based on the document editing request, and sending a processing result to the user terminal; and when the document to be processed is not the editable format document, converting the document to be processed into the editable format document, processing the corresponding document page based on the editing request, and sending the processed editable format document page to the user terminal.
In an alternative embodiment of the third aspect, the set number is determined by:
acquiring equipment information of a user terminal;
the set number is determined based on the device information.
In an optional embodiment of the third aspect, when the document page processing module sends the document page to be loaded to the user terminal, the document page processing module is specifically configured to:
acquiring equipment information of a user terminal;
determining a document page to be loaded corresponding to the equipment information;
and sending the document page to be loaded corresponding to the equipment information to the user terminal.
In an optional embodiment of the third aspect, the device information comprises at least one of screen resolution or available memory information.
In a fourth aspect, the present invention provides an online document processing apparatus, comprising:
the operation request acquisition module is used for acquiring an operation request of a user for a document to be processed, wherein the operation request comprises page number indicating information;
the document page receiving module is used for sending a corresponding document acquisition request to the server based on the operation request, and receiving a document page to be loaded returned by the server based on page number indicating information in the document acquisition request, wherein the document page to be loaded comprises a target document page corresponding to the page number indicating information;
and the document page display module is used for loading the document page to be loaded into the memory and displaying the target document page to a user.
In an optional embodiment of the fourth aspect, the document page to be loaded further comprises a set number of associated document pages associated with the target document page, the associated document pages comprising at least one of document pages preceding or following the target document page.
In an optional embodiment of the fourth aspect, the operation request comprises a document open request or a document page acquisition request;
when the operation request is a document opening request, the page number indicating information is setting information, and when the operation request is a document page acquisition request, the page number indicating information is a page number identifier of a document page corresponding to the document page acquisition request.
In an optional embodiment of the fourth aspect, the document obtaining request further includes document format information, and if the document format corresponding to the document format information is different from the document format corresponding to the document to be processed, the document page to be loaded is a document page in which the server converts the document page to be loaded into the document format corresponding to the document format information.
In an optional embodiment of the fourth aspect, the format of the document to be processed is a non-editable format.
In an optional embodiment of the fourth aspect, the apparatus further comprises:
the document editing processing module is used for acquiring a document editing request aiming at a document to be processed; when the document to be processed is a document with an editable format, receiving a processing result returned by the server for processing the corresponding document page based on the document editing request; and when the document to be processed is not the editable format document, the receiving server converts the document to be processed into the editable format document, and processes the corresponding document page based on the editing request to obtain the editable format document page.
In an alternative embodiment of the fourth aspect, the set number is determined by:
acquiring equipment information of a user terminal;
the set number is determined based on the device information.
In an optional embodiment of the fourth aspect, the document page to be loaded is a document page corresponding to the device information, which is determined by the server based on the device information of the user terminal.
In an optional embodiment of the fourth aspect, the device information comprises at least one of screen resolution or available memory information.
In a fifth aspect, an embodiment of the present invention provides an electronic device, where the electronic device includes a processor and a memory; the memory has stored therein readable instructions which, when loaded and executed by the processor, implement the method as shown in any one of the optional embodiments of the first or second aspect described above.
In a sixth aspect, the present invention provides a computer-readable storage medium, in which readable instructions are stored, and when the readable instructions are loaded and executed by a processor, the method as shown in any optional embodiment of the first aspect or the second aspect is implemented.
The technical scheme provided by the embodiment of the invention has the following beneficial effects: in the scheme, because the document page to be loaded is part of the document page in the document to be processed and the document page to be loaded is loaded in the memory of the user terminal, in the process of displaying the target document page to the user by the user terminal, only part of the document page in the document to be processed can be provided to the user through the user terminal without sending all the document pages to the user terminal, and all the document pages are loaded to the memory by the user terminal and then displayed to the user, based on the scheme, the user can check the document to be processed without waiting for too long loading time, and the user experience is improved. Especially for the request only wanting to look up the content in the pending document, can more obvious improvement document loading efficiency.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings used in the description of the embodiments of the present invention will be briefly described below.
FIG. 1 is a flow chart illustrating a method of online document processing provided in an embodiment of the present invention;
FIG. 2 is a flow chart illustrating a further method of online document processing provided in an embodiment of the present invention;
FIG. 3 is a flow chart illustrating an online document processing method in one example provided in an embodiment of the present invention;
FIG. 4 is a schematic structural diagram of an online document processing apparatus provided in an embodiment of the present invention;
FIG. 5 is a schematic structural diagram of another online document processing apparatus provided in the embodiment of the present invention;
fig. 6 shows a schematic structural diagram of an electronic device provided in an embodiment of the present invention.
Detailed Description
In order to make the objects, features and advantages of the present invention more obvious and understandable, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention, and it is apparent that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Reference will now be made in detail to embodiments of the present invention, examples of which are illustrated in the accompanying drawings, wherein like or similar reference numerals refer to the same or similar elements or elements having the same or similar function throughout. The embodiments described below with reference to the drawings are illustrative only and should not be construed as limiting the invention.
As used herein, the singular forms "a", "an" and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It will be further understood that the terms "comprises" and/or "comprising," when used in this specification, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof. It will be understood that when an element is referred to as being "connected" or "coupled" to another element, it can be directly connected or coupled to the other element or intervening elements may also be present. Further, "connected" or "coupled" as used herein may include wirelessly connected or wirelessly coupled. As used herein, the term "and/or" includes all or any element and all combinations of one or more of the associated listed items.
For better understanding and description of the embodiments of the present invention, some technical terms used in the embodiments of the present invention will be briefly described below.
Electronic documents: the electronic data of each region and each department is configured uniformly to form a document with a standard format.
wps (Word Processing System, text editing System): a character editing software can realize multiple functions of characters, tables, demonstration and the like which are most commonly used by office software.
Word (Microsoft Office Word, Microsoft Office text): a text editing software for creating and editing text and graphics in letters, reports, web pages or e-mails using Microsoft office Word.
In the prior art, when an electronic document is viewed or edited online, the document is usually edited and viewed by an electronic document processing system of an installed client plug-in (such as word, wps, etc.), and no matter the electronic document is viewed or edited, all document pages of the electronic document need to be loaded, so that a user can view or edit the electronic document by the electronic document processing system.
The inventor of the invention has found through analysis that the scheme at least has the following problems:
1) the user angle is as follows: the functionality of the electronic document processing system is not divided according to the purpose of its use by the user. Users usually have two different purposes of viewing documents and editing documents in electronic document systems. The checking is simple, only the content of the electronic document needs to be provided, and the paging display is carried out, so that the user does not care about the display form of the document, and the loading speed and the checking efficiency of the document are relatively concerned. However, in the existing scheme, the use purpose of the user is usually not considered, all document pages of the client plug-in and the electronic document need to be loaded, and the waiting time of the user is too long, so that the experience is poor.
2) The system resource angle is as follows: the use purpose of the user is not distinguished, and when the user needs to check the electronic document, the user still needs to download the client plug-in, load the client plug-in and load all document pages of the electronic document as when the user edits the electronic document. Therefore, when the electronic document is viewed or edited, especially when the electronic document is viewed, a large amount of system Central Processing Unit (CPU) resources and network bandwidth are occupied, which causes resource waste and system performance reduction, and is not beneficial to long-term use of the system.
3) Document loading angle: some documents (electronic documents) occupy a very large memory space, and therefore take a long time to load. For a user viewing a document, all document pages of the document are not required to be loaded at one time. Generally, for a reader, the viewing requirement can be met only by loading the front page and the back page of the reading page once. Therefore, for a user who only views a document, all document pages of the document do not need to be loaded at one time, otherwise, the problems of long waiting time, poor user experience, waste of system resources and the like are easily caused.
In view of the above technical problems in the prior art, an embodiment of the present invention provides a document processing method, which can provide only a part of document pages (to-be-loaded document pages) in a to-be-processed document to a user through a user terminal when obtaining document pages in the to-be-processed document, without sending all document pages to the user terminal, and displaying all document pages to the user after loading all document pages to a memory by the user terminal. Especially for the request only wanting to look up the content in the pending document, can more obvious improvement document loading efficiency.
The following describes the technical solution of the present invention and how to solve the above technical problems with specific examples. The following several specific embodiments may be combined with each other, and details of the same or similar concepts or processes may not be repeated in some embodiments. Embodiments of the present invention will be described below with reference to the accompanying drawings.
Fig. 1 shows a flow chart of an online document processing method provided by the present invention, and as shown in the figure, the method may include steps S110 to S130, where:
step S110: and acquiring a document acquisition request aiming at the document to be processed, wherein the document acquisition request comprises page number indicating information.
The document acquisition request is triggered by a user terminal based on an operation request of a user for a document to be processed, the document to be processed refers to a document which the user wants to operate, and document content and document format of the document are not limited. The operation request refers to a processing mode in which a user wants to process a document to be processed, such as viewing, editing, opening, and the like, and may be triggered by a specific trigger displayed on a user interface of the user terminal triggered by the user.
The page number indicating information is used for identifying which page or pages of the document to be processed the target document page the user wants to operate on, the page number indicating information can be determined by the user, namely specified by the user, or configured by the system, the page number indicating information can be page number identification in the forms of numbers, characters and the like, and the specific representation form of the page number indicating information is limited in the scheme of the invention.
It is understood that if the user does not explicitly indicate which page or pages of the document in the document to be processed is desired to be operated, the page number indication information may be determined based on the operation type of the operation request, where the operation type refers to a manner of operating the document to be processed, such as opening, viewing, and the like; for example, when the operation type is open, which indicates that the user wants to open the document to be processed, the page number indication information corresponding to the operation type may be default indication information configured in advance by the system, and the document page corresponding to the default indication information may be a start page of the document. If the operation type is viewing, the operation request includes page number indication information of a document page to be viewed, and the target document page is a document page corresponding to the page number indication information.
Each document can have a corresponding document identifier, and when a user selects a document to be processed through a user interface, the user terminal can simultaneously send the document identifier of the document to be processed to the server. The document identifier may include, but is not limited to, a document name, a preset identifier, and the like, and the specific expression manner of the document identifier is not limited in the scheme of the present invention.
Step S120: and acquiring a document page to be loaded in the document to be processed based on the document acquisition request, wherein the document page to be loaded comprises a target document page corresponding to the page number indication information.
When the document to be loaded is a plurality of pages, the server may adopt a synchronous loading mode, that is, one document page is obtained, or an asynchronous obtaining mode, that is, a plurality of document pages are obtained simultaneously when the server obtains the document page to be loaded. If the asynchronous acquisition mode is adopted, the acquisition efficiency of the document page can be further improved.
Step S130: and sending the document page to be loaded to a user terminal so that the user terminal loads the document page to be loaded into the memory and displays the target document page to a user.
Wherein, a large number of documents can be stored in the server, when receiving a document acquisition request for the document to be processed sent by a user through a user terminal, the document pages to be loaded in the document to be processed (for the convenience of description, the document pages of the document pages to be loaded are referred to as a first number hereinafter) can be obtained and sent to the user terminal according to the loading mode, then, based on the same obtaining mode, continuously obtaining the first number of document pages in the document pages which are not obtained in the document to be processed, obtaining the same number (first number) of document pages each time, when obtaining each first number of document pages, the server sends each first number of document pages to the user terminal according to the obtaining sequence, the user can check the content of each page of the document under the condition of no perception of document loading, and the user experience is further improved. In the scheme of the invention, when a document acquisition request of a user for a document to be processed is acquired, a document page to be loaded in the document to be processed is acquired based on page number indicating information in the request, the document page to be loaded comprises a target document page corresponding to the page number indicating information, in the scheme, because the document page to be loaded is a part of the document page in the document to be processed and the document page to be loaded is loaded in a memory of a user terminal, in the process of displaying the target document page to the user by the user terminal, only the part of the document page in the document to be processed can be provided for the user through the user terminal without sending all the document pages to the user terminal, and all the document pages are loaded into the memory by the user terminal and then displayed to the user, based on the scheme, the user can check the document to be processed without waiting for overlong loading time, the user experience is improved. Especially for the request only wanting to look up the content in the pending document, can more obvious improvement document loading efficiency.
In an alternative aspect of the invention, the document pages to be loaded further include a set number of associated document pages associated with the target document page.
The set number can be configured based on actual requirements, for example, the set number can be configured based on the time consumed for loading each page of document and the time required for a user to view one page of document, so that the user can view the content of each page of document without perception of document loading. In practical applications, the set number may be adjustable, for example, based on an adjustment rule, and the adjustment rule may be configured based on actual requirements, for example, the number of document pages (hereinafter referred to as the second number for convenience of description) corresponding to at least one of document pages before or after the target document page. For example, when the second number is smaller than the set number, which indicates that the set number of associated document pages may not be obtained at one time, the set number may be adjusted in size so that the corresponding associated document pages may be obtained. The adjustment of the set quantity can be carried out by the server according to the set adjustment rule, or can be carried out by providing a setting function option for the user, and the user can carry out setting operation through a corresponding user interface on the user terminal according to the actual requirement of the user.
The document page to be loaded is at least one continuous document page in the document to be processed, and it can be understood that, in practical application, the specific form of the document page to be loaded can be correspondingly determined according to different practical application scenarios, for example, when the target document page is the last page of the document to be processed, the target document page is the document page, and the document page has no associated document page. For another example, if the document to be processed has 1 page in total, the target document page is the document page, and the document page has no associated document page.
In addition, since the associated document page is a document page associated with the target document page, for example, at least one of the document pages before or after the target document page, and the associated document page is a document page already loaded in the memory in the document page to be processed, when the target document page is presented to the user, if the user wants to operate the associated document page of the document page, the user terminal may directly display the associated document page to the user from the memory, and the associated document page is obtained again without requesting the server.
In an alternative aspect of the invention, the associated document page may include at least one of a document page preceding or following the target document page.
The associated document page includes at least one of:
a document page preceding the target document page;
a document page following the target document page;
document pages before and after the target document page.
Similarly, a set number of associated document pages may include at least one of:
a set number of document pages preceding the target document page;
a set number of document pages after the target document page;
and a third number of document pages before the target document page and a fourth number of document pages after the target document page, wherein the sum of the third number and the fourth number is equal to the set number, and the third number and the fourth number can be the same or different and can be adjusted based on actual requirements.
The adjustment of the set number based on the adjustment rule is specifically described with reference to the three associated document pages of the set number:
first, a set number of document pages before the target document page.
If the second number of document pages preceding the target document page is less than the set number, indicating that the set number of document pages cannot be acquired at one time, the set number may be adjusted to be not more than the second number.
Second, a set number of document pages after the target document page.
If the second number of document pages subsequent to the target document page is less than the set number, indicating that the set number of document pages cannot be acquired at one time, the set number may also be adjusted to be not more than the second number.
Third, a third number of document pages before and a fourth number of document pages after the target document page.
If the sum of the third number and the fourth number is smaller than the set number, which indicates that the number of document pages of the associated document pages is smaller than the set number, i.e., the set number of document pages cannot be acquired at one time, the set number may be adjusted to be not larger than the sum of the third number and the fourth number.
It is understood that the third number and the fourth number may be adjusted based on the same adjustment rule as the set number, and will not be described herein.
In an alternative of the present invention, it may be that the second number corresponding to at least one of the document pages before or after the target document page is smaller than the set number because the document pages loaded into the memory are included in the at least one of the document pages before or after the target document page, and the document pages loaded into the memory do not need to be acquired again in the process of acquiring the first number of document pages this time, so that the second number corresponding to at least one of the document pages before or after the target document page is smaller than the set number.
It can be understood that, if the second number corresponding to at least one of the document pages before or after the target document page is greater than the set number, and the document pages at least one of before or after the target document page includes the document pages that have been loaded into the memory. Considering the influence of various factors on the efficiency of acquiring the number of document pages (first number) at a time, the set number may be a relatively ideal number, and in order to avoid wasting resources, when acquiring document pages that are not acquired in the document to be processed, the first number of document pages may still be acquired in addition to the document pages that have been loaded into the memory, that is, it is ensured that the number of document pages acquired each time is the first number.
As an example, for example, the document to be processed has 50 document pages in total, the current document page is page 20, the document pages that have been loaded are page 10 to page 23, the document pages that have not been loaded are document pages other than the document pages that have been loaded in the document pages to be processed, the set number is 3, and if the target document page indicated by the page number indication information is page 15, the document page 15 is a document page that has been loaded, and the document pages of other pages 2 associated with the document page are also document pages that have been loaded, the document page 15 and the document pages of 2 associated with the document page can be directly sent to the user terminal.
In this example, if the target document page indicated by the page number indicating information is the 23 rd page and the 23 rd page is a document page that has already been loaded, at this time, the server may load a fifth number of document pages associated with the page number indicating information based on the page number indicating information, in this example, the fifth number may not be greater than the set number, if the fifth number is equal to the set number, the acquired document pages may be document pages corresponding to the 23 rd page, the 24 th page, the 25 th page, and the 26 th page, if the fifth number is less than the set number, that is, if the fifth number plus 1 is equal to the set number, the acquired document pages may be document pages corresponding to the 23 rd page, the 24 th page, and the 25 th page, and transmit the acquired document pages to the user terminal.
In this example, if the target document page indicated by the page number indicating information is the 15 th page, the 15 th document page is a document page that has been loaded, and the other 2 nd document pages associated with the document page are also document pages that have been loaded, the 15 th document page and the 2 nd document page associated with the document page may be directly transmitted to the user terminal.
In the alternative of the invention, the document acquisition request is generated by the user terminal based on the operation request of the user for the document to be processed, and the operation request comprises a document opening request or a document page acquisition request;
when the operation request is a document opening request, the page number indicating information is setting information, and when the operation request is a document page acquisition request, the page number indicating information is a page number identifier of a document page corresponding to the document page acquisition request.
The user interface of the user terminal can simultaneously display the document identifiers of a plurality of documents and can also display the virtual identifiers for triggering different requests, based on the identifiers, the user can trigger the operation requests corresponding to the virtual identifiers through the virtual identifiers on the user interface of the user terminal, and the document to be processed can be any one of the documents corresponding to the identifiers.
The operation request indicates a processing mode of a document to be processed by a user, different operation requests indicate different processing modes of the document to be processed, the operation request may include a document opening request or a document page acquisition request, the document opening request refers to opening the document to be processed, and the document page acquisition request refers to performing corresponding processing on a document page in the document to be processed. The page number indication information corresponding to different operation requests may be different. Based on different operation requests, the corresponding page number indication information can be in the following two schemes:
the first method comprises the following steps: and when the operation request is a document opening request, the page number indicating information is the setting information, and the target document page is the document page corresponding to the setting information in the document to be processed.
The setting information may be configured based on actual requirements, and the setting information may be configured by a system or configured by a user based on actual requirements. The document page corresponding to the setting information is the first page presented to the user when the document is opened. In practical applications, the document page corresponding to the setting information may be any page of the document to be processed, for example, a starting page of a document, or, if the first pages of a certain type of document are generally the same content and do not need to be referred by a user, the document page including the substantial content may be used as the document page corresponding to the setting information.
The setting information may be represented by a set identifier, such as a preset character string.
In the case where the page number indication information is the setting information, when the first number of document pages are acquired, the server may start acquisition with the document page corresponding to the setting information as a base page, and obtain the first number of document pages.
And the second method comprises the following steps: when the operation request is a document page acquisition request, the page number indication information is the page number identifier of the document page corresponding to the document page acquisition request, and the target document page is the document page corresponding to the page number identifier.
The document page acquisition request may also be triggered through a user interface, for example, the request is triggered through an operation of sliding a document page, a page identifier is determined by stopping the operation of sliding the document page, or a document page selection request is triggered through a document page number input box displayed on the user interface, and information input in the document page number input box is the page identifier. Wherein the page number identification is user selected.
For the case that the page number indication information is a page number identifier, when a first number of document pages are acquired, the acquisition may be started by using the document page corresponding to the page number identifier as a base page, so as to obtain the first number of document pages.
In an alternative of the present invention, the document obtaining request further includes document format information, and if a document format corresponding to the document format information is different from a document format corresponding to the document to be processed, the sending the document page to be loaded to the user terminal may include:
converting the document page to be loaded into a document page in a document format corresponding to the document format information;
and sending the document page to be loaded after the format conversion to a user terminal.
The document format information indicates what format the document format of the document to be processed is, and different document formats may correspond to different document format information. The format of the document stored in the server may be a document format corresponding to the document format information or may not be the document format corresponding to the document format information, and when the format of the document stored in the server is the document format corresponding to the document format information, the server may directly send the document page to be loaded to the user terminal. If the format of the document stored in the server is not the document format corresponding to the document format information, the server may convert the document page to be loaded into the document page of the document format corresponding to the document format information, and then transmit the document page to be loaded after the format conversion to the user terminal.
It can be understood that, in the process of converting the document page to be loaded into the document page in the document format corresponding to the document format information, the document page to be loaded in the document to be processed may be determined first, and the document page to be loaded is converted into the document page in the document format corresponding to the document format information, or all the document pages in the document to be processed may be converted into the document page in the document format corresponding to the document format information first, and then the document page to be loaded is obtained from the document after the format conversion, and at this time, the document page to be loaded is the document page in the document format corresponding to the document format information, and then the document page to be loaded is sent to the user terminal.
In an alternative of the invention, the format of the document to be processed is a non-editable format.
Wherein, the non-editable format refers to that the content in the document is not editable. If the document is in a content editable format, the format of the document is easily disordered in the process of loading the document, and the viewing experience of a user is influenced.
The content editable format can be a word format and the like, and the specific representation form of the content editable format is not limited in the invention; the content non-editable format can be a format such as a picture format, for example, a PDF format, and the specific representation form of the content non-editable format is not limited in the present invention.
In the scheme of the invention, if the document with the editable format is converted into the document with the PDF format, the format of the document with the editable format is firstly solidified and then the PDF format is converted by a printing program of office software in a mode of printing the document to the file.
When the document page to be loaded is acquired based on the document acquisition request and the acquired document page to be loaded is required to be the document page in the non-editable format, if the document to be processed is the document in the non-editable format, format conversion is not required to be performed on the document to be processed, and the document page to be loaded in the non-editable format can be directly sent to the user terminal based on the operation request. If the document to be processed is a document with an editable format, the document to be processed can be converted into a document with a non-editable format, and then the document page to be loaded in the non-editable format is sent to the user terminal.
The method comprises the steps of obtaining page number indicating information in a document acquisition request, converting the page number indicating information in the document acquisition request into page numbers in the document to be processed, wherein the page numbers in the document to be processed can be converted in real time in the process of converting the format of the document to be processed, namely converting the corresponding document pages in the document to be processed into the document pages in the non-editable format, and then sending the document pages to be loaded in the non-editable format to a user terminal. Or all document pages in the document to be processed can be converted into document pages in a non-editable format, and then the document pages to be loaded in the document pages can be sent to the user terminal.
In the solution of the present invention, the non-editable format may be a picture format.
The document in the picture format can be displayed through the application program with the picture display function, and the user terminal usually comprises the application program with the picture display function, so that the document in the picture format can be directly displayed through any application program with the picture display function in the user terminal, and the special application program for displaying the document to be processed does not need to be additionally downloaded and loaded, so that the processing efficiency is further improved.
In an alternative aspect of the invention, the method further comprises:
receiving a document editing request for a document to be processed;
when the document to be processed is a document with an editable format, processing a corresponding document page based on the document editing request, and sending a processing result to the user terminal;
and when the document to be processed is not the editable format document, converting the document to be processed into the editable format document, processing the corresponding document page based on the editing request, and sending the processed editable format document page to the user terminal.
The document editing request refers to that a user wants to edit, such as retrieve, modify, and the like, text content in a document to be processed. And if the document to be processed is a document in an uneditable format, the user cannot perform corresponding editing processing on the document to be processed. For example, if the document to be processed is a PDF document, the PDF document cannot provide the user with a search requirement. Based on this, when the document to be processed is a document with an editable format, that is, the document to be processed with the editable format of the content is stored in the server, the server may process the corresponding document page based on the document editing request, and send the processing result to the user terminal. When the document to be processed is not a document in an editable format, that is, the document to be processed stored in the server is not a document in an editable format, the server may convert the document to be processed into the document in the editable format, process the corresponding document page based on the editing request, and send the processed document page in the editable format to the user terminal.
The document page corresponding to the document editing request may be a part of the document pages in the document to be processed, or may be all the document pages in the document to be processed.
The document to be processed may include a document in an editable format, where the document in the editable format may be pre-stored in the server, or may be obtained by performing format conversion on the document to be processed in real time based on a document editing request.
In an alternative aspect of the invention, the set number is determined by:
acquiring equipment information of a user terminal;
the set number is determined based on the device information.
The set number may also be related to device information of the user terminal, where the device information may include at least one of screen resolution or available memory information. The device information affects the efficiency of document acquisition, and therefore, the set number can be determined based on the device information to ensure relatively good efficiency in acquiring the document pages. Different device information may correspond to different set numbers.
The screen resolution of different user terminals may be different, and the resolution is too large, which may result in slow document loading. Based on this, as an example, the resolution corresponding to the document page in the document a is the first resolution, the resolution corresponding to the document page in the document B is the second resolution, and the first resolution is greater than the second resolution, then in order to avoid affecting the document loading speed, the set number corresponding to the first resolution is smaller than the set number corresponding to the second resolution.
The available memory information of different user terminals may also be different, and the available memory is too small, which may result in slow document loading. Based on this, the set number corresponding to the user terminal with the available memory information a may be set to be smaller than the set number corresponding to the user terminal with the available memory information B, where the available memory information a is smaller than the available memory information B, so as to avoid affecting the loading speed of the document.
In an alternative of the present invention, sending the document page to be loaded to the user terminal may include:
acquiring equipment information of a user terminal;
determining a document page to be loaded corresponding to the equipment information;
and sending the document page to be loaded corresponding to the equipment information to the user terminal.
When the document page to be loaded is obtained, the document page to be loaded corresponding to the device information can be obtained based on the device information of the user terminal, so that the obtained document page can meet the actual requirements of the user better, and better experience is provided for the user.
It can be understood that, if the document page to be loaded corresponding to the device information is already stored in the server, the document page to be loaded may be directly sent to the user terminal, and if the document page to be loaded corresponding to the device information is not stored in the server, the document to be processed may be converted into a document corresponding to the device information, and then the document page to be loaded therein may be sent to the user terminal. Or, the document page to be loaded may be determined first, then the document page to be loaded is converted into a document page corresponding to the device information, and the document page to be loaded corresponding to the device information is sent to the user terminal. The above modes are all within the protection scope of the scheme of the invention.
In an aspect of the present invention, the device information may include at least one of screen resolution or available memory information. Taking the device information as the screen resolution as an example, if the document to be processed is a document in a picture format, the screen resolutions of different user terminals may be different, and the resolution is too large, which may cause slow loading of the document, and the resolution is too small, which may cause poor picture definition, and affect the viewing of the user. Based on the method, each page of the document to be processed can have the document pictures corresponding to at least two resolutions, and after the screen resolution of the user terminal is determined, the resolutions of the target document page and the associated document page can be consistent with the screen resolution, so that the problems that the loading is slow, the resolution is too small, the picture definition is poor and the user viewing is influenced due to too large resolution are solved.
In the scheme of the invention, if the document to be processed is a document in a picture format, in order to provide a better visual effect for a user, an emulation document effect, namely a visual effect similar to paper, can be set in the client, and based on the emulation document effect, a better visual experience can be provided for the user.
In an alternative of the present invention, since the obtained document page is cached in the memory of the user terminal when the document with the content non-editable format is obtained, the text of the document page generally has some important business information, and based on security considerations, it is necessary to provide a security means for the document with the content non-editable format, such as converting the document with the content non-editable format into a binary stream, or adding watermark information in the background of the document page with the content non-editable format, and the like. The conversion of the document with the content non-editable format into the binary stream and the watermarking of the information in the background of the document page with the content non-editable format can be realized by the method in the prior art, and are not described herein again.
Based on the same principle as the method shown in fig. 1, the embodiment of the present invention also provides an online document processing method, which may be performed by a user terminal, the method including steps S210 to S230, wherein,
step S210: acquiring an operation request of a user for a document to be processed, wherein the operation request comprises page number indicating information;
step S220: based on the operation request, sending a corresponding document acquisition request to the server, and receiving a document page to be loaded returned by the server based on page number indicating information in the document acquisition request, wherein the document page to be loaded comprises a target document page corresponding to the page number indicating information;
step S230: and loading the document page to be loaded into the memory, and displaying the target document page to a user.
The above scheme is executed by the user terminal, and has the same principle as the above scheme in which the server is the execution main body, and is not described herein again.
Optionally, the document page to be loaded further includes a set number of associated document pages associated with the target document page, and the associated document pages include at least one of document pages before or after the target document page.
Optionally, the operation request includes a document opening request or a document page obtaining request;
when the operation request is a document opening request, the page number indicating information is setting information, and when the operation request is a document page acquisition request, the page number indicating information is a page number identifier of a document page corresponding to the document page acquisition request.
Optionally, the document obtaining request further includes document format information, and if the document format corresponding to the document format information is different from the document format corresponding to the document to be processed, the document page to be loaded is a document page in which the document page to be loaded is converted by the server into the document format corresponding to the document format information.
Optionally, the format of the document to be processed is a non-editable format.
Optionally, the method further includes:
acquiring a document editing request for a document to be processed;
when the document to be processed is a document with an editable format, receiving a processing result returned by the server for processing the corresponding document page based on the document editing request;
and when the document to be processed is not the editable format document, the receiving server converts the document to be processed into the editable format document, and processes the corresponding document page based on the editing request to obtain the editable format document page.
Optionally, the set number is determined by:
acquiring equipment information of a user terminal;
the set number is determined based on the device information.
Optionally, the document page to be loaded is a document page determined by the server based on the device information of the user terminal and corresponding to the device information.
Optionally, the device information includes at least one of screen resolution or available memory information.
In order to better understand the method provided by the embodiment of the present invention, the following describes the scheme of the embodiment of the present invention in further detail with reference to fig. 3.
The scheme is applied to any application program (corresponding to foreground application in fig. 3) with a picture display function of a user terminal, and a server (background conversion service shown in fig. 3) is used for storing documents, performing relevant processing on the documents, and interacting with the foreground application. In this example, a description will be given taking a document page following the associated document page as a target document page as an example.
In this example, the document stored in the server may be a document uploaded by an online user, or may be a document pre-stored in the server, where the online user refers to a user who can upload a document through a user terminal. During uploading, the specific process may be: the online user uploads the document to the foreground application corresponding to each user terminal, the foreground application sends the document to the server, and if the format of the uploaded document is a document with an editable format, the server can convert the uploaded document into a document with a non-editable format, in this example, the non-editable format is a picture format, such as a PDF format. While the original document (document in an editable format not converted into a picture format) is saved (corresponding to the version archive shown in fig. 3), the first page in the document in the PDF format may also be used as the setting information corresponding to the document page.
It should be noted that if the uploaded document is a document in a picture format, the server does not need to perform format conversion on the uploaded document.
The user triggers an operation request for a document to be processed based on a user interface corresponding to a foreground application, the operation request is a document opening request (corresponding to a browsed document in fig. 3), the request includes page number indication information, at this time, the page number indication information is setting information, the request is sent to a server (corresponding to the request page 1 shown in fig. 3), and when the server receives the document opening request, the server can send a first page (a target document page corresponding to the page number indication information) of the document to be processed to a user terminal based on the request, so that the user terminal loads the first page into a memory and displays the first page to the user. Meanwhile, the server adopts an asynchronous conversion mode, and can also send the associated document pages (pages 2 to N) of the target document page (first page) to the user terminal, so that the user terminal can load the associated document pages into the memory of the user terminal. If the uploaded document is not converted into a document in a picture format in advance, and only the first page of the uploaded document is converted into a document page in a picture format, the first page may be sent to the user terminal (corresponding to the page 1 returned in fig. 3) based on the document opening request, so that the user terminal loads the first page of the document page into the memory and displays the page to the user. Meanwhile, the server converts the associated document page of the first page into a document page of a picture format (corresponding to the 2 nd to nth conversion pages shown in fig. 3) in an asynchronous conversion manner, and transmits the associated document page of the picture format to the user terminal. Wherein, the 2 nd to the Nth pages are the set number of document pages, and the set number can be adjusted.
After the user views the content of the first document page, if the user wants to view other document pages loaded in the memory, the user may use a sliding user interface mode, at this time, the document obtaining request is a document page obtaining request, and based on the request, the document pages that are not obtained in the document may be obtained according to the obtaining mode. The set number can be adjusted based on specific conditions, and the scheme for specifically adjusting the set number is the same as that described above, and is not described herein again.
The page number indication information in the document page acquisition request is a page number identifier, and if the user is in a downward sliding operation and the document page displayed by the user terminal is the 4 th page, the document page corresponding to the page number identifier is the document page after the 4 th page.
At this time, if the user wants to view the X-th page in the document to be processed, where the X-th page is a document page that is not viewed by the user, the user may trigger a document page obtaining request based on the user interface, where the page number indication information in the document page obtaining request is a page number identifier, and the page number identifier is the X-th page. The document page acquisition request is sent to a server (corresponding to the request page X shown in fig. 3), the server converts the page X (a target document page corresponding to the page identifier) into a document page in a picture format based on the page number identifier, the page X can be sent to a user terminal first so that the user terminal displays the page X to a user (corresponding to the returned page X in fig. 3), then the associated document pages (corresponding to the page X +1 to the page X + N) associated with the page X are converted into document pages in the picture format, and the document pages corresponding to the page X +1 to the page X + N in the picture format are sent to the user terminal so that the document pages corresponding to the page X +1 to the page X + N are loaded into a memory by the user terminal.
By the method, when the document page in the document to be processed is obtained, only part of the document page (document page to be loaded) in the document to be processed is loaded at one time, the document page to be loaded is loaded into the memory of the user terminal, and in the process that the user terminal displays the target document page to the user, only part of the document page in the document to be processed can be provided to the user through the user terminal without sending all the document pages to the user terminal, and all the document pages are loaded into the memory and then displayed to the user through the user terminal. Especially for the request only wanting to look up the content in the pending document, can more obvious improvement document loading efficiency.
Based on the same principle as the method shown in fig. 1, the embodiment of the present invention further provides an online document processing apparatus 20, as shown in fig. 4, the online document processing apparatus 30 may include a document acquisition request acquisition module 310, a document page acquisition module 320 and a document page processing module 330, wherein:
a document obtaining request obtaining module 310, configured to obtain a document obtaining request for a document to be processed, where the document obtaining request includes page number indication information;
the document page acquiring module 320 is configured to acquire a document page to be loaded in a document to be processed based on a document acquiring request, where the document page to be loaded includes a target document page corresponding to the page number indication information;
the document page processing module 330 is configured to send the document page to be loaded to the user terminal, so that the user terminal loads the document page to be loaded into the memory, and displays the target document page to the user.
Optionally, the document page to be loaded further includes a set number of associated document pages associated with the target document page, and the associated document pages include at least one of document pages before or after the target document page.
Optionally, the document acquisition request is generated by the user terminal based on an operation request of the user for the document to be processed, where the operation request includes a document opening request or a document page acquisition request;
when the operation request is a document opening request, the page number indicating information is setting information, and when the operation request is a document page acquisition request, the page number indicating information is a page number identifier of a document page corresponding to the document page acquisition request.
Optionally, the document obtaining request further includes document format information, and if the document format corresponding to the document format information is different from the document format corresponding to the document to be processed, the document page processing module is specifically configured to, when sending the document page to be loaded to the user terminal:
converting the document page to be loaded into a document page in a document format corresponding to the document format information;
and sending the document page to be loaded after the format conversion to a user terminal.
Optionally, the format of the document to be processed is a non-editable format.
Optionally, the apparatus further comprises:
the document editing module is used for receiving a document editing request aiming at a document to be processed; when the document to be processed is a document with an editable format, processing a corresponding document page based on the document editing request, and sending a processing result to the user terminal; and when the document to be processed is not the editable format document, converting the document to be processed into the editable format document, processing the corresponding document page based on the editing request, and sending the processed editable format document page to the user terminal.
Optionally, the set number is determined by:
acquiring equipment information of a user terminal;
the set number is determined based on the device information.
Optionally, when the document page processing module sends the document page to be loaded to the user terminal, the document page processing module is specifically configured to:
acquiring equipment information of a user terminal;
determining a document page to be loaded corresponding to the equipment information;
and sending the document page to be loaded corresponding to the equipment information to the user terminal.
Optionally, the device information includes at least one of screen resolution or available memory information.
Based on the same principle as the method shown in fig. 2, an embodiment of the present invention further provides an online document processing apparatus 40, as shown in fig. 5, the online document processing apparatus 40 may include an operation request acquisition module 410, a document page acquisition module 420 and a document page processing module 430, wherein:
an operation request obtaining module 410, configured to obtain an operation request of a user for a document to be processed, where the operation request includes page number indication information;
a document page receiving module 420, configured to send a corresponding document acquisition request to the server based on the operation request, and receive a to-be-loaded document page returned by the server based on page number indication information in the document acquisition request, where the to-be-loaded document page includes a target document page corresponding to the page number indication information;
and the document page display module 430 is configured to load a document page to be loaded into the memory, and display the target document page to the user.
Optionally, the document page to be loaded further includes a set number of associated document pages associated with the target document page, and the associated document pages include at least one of document pages before or after the target document page.
Optionally, the operation request includes a document opening request or a document page obtaining request;
when the operation request is a document opening request, the page number indicating information is setting information, and when the operation request is a document page acquisition request, the page number indicating information is a page number identifier of a document page corresponding to the document page acquisition request.
Optionally, the document obtaining request further includes document format information, and if the document format corresponding to the document format information is different from the document format corresponding to the document to be processed, the document page to be loaded is a document page in which the document page to be loaded is converted by the server into the document format corresponding to the document format information.
Optionally, the format of the document to be processed is a non-editable format.
Optionally, the apparatus further comprises:
the document editing processing module is used for acquiring a document editing request aiming at a document to be processed; when the document to be processed is a document with an editable format, receiving a processing result returned by the server for processing the corresponding document page based on the document editing request; and when the document to be processed is not the editable format document, the receiving server converts the document to be processed into the editable format document, and processes the corresponding document page based on the editing request to obtain the editable format document page.
Optionally, the set number is determined by:
acquiring equipment information of a user terminal;
the set number is determined based on the device information.
Optionally, the document page to be loaded is a document page determined by the server based on the device information of the user terminal and corresponding to the device information.
Optionally, the device information includes at least one of screen resolution or available memory information.
Since the online document processing apparatus provided in the embodiment of the present invention is an apparatus capable of executing the online document processing method in the embodiment of the present invention, based on the online document processing method provided in the embodiment of the present invention, a person skilled in the art can understand a specific implementation manner of the online document processing apparatus in the embodiment of the present invention and various variations thereof, so that a detailed description of how the online document processing apparatus implements the online document processing method in the embodiment of the present invention is not described here. The online document processing device adopted by the person skilled in the art to implement the online document processing method in the embodiment of the present invention is within the scope of the present application.
Based on the same principle as the online document processing method and the online document processing apparatus provided by the embodiment of the present invention, the embodiment of the present invention also provides an electronic device, which may include a processor and a memory. Wherein the memory has stored therein readable instructions, which when loaded and executed by the processor, may implement the method shown in any of the embodiments of the present invention.
As an example, fig. 6 shows a schematic structural diagram of an electronic device 4000 to which the solution of the embodiment of the present application is applied, and as shown in fig. 6, the electronic device 4000 may include a processor 4001 and a memory 4003. Processor 4001 is coupled to memory 4003, such as via bus 4002. Optionally, the electronic device 4000 may further comprise a transceiver 4004. In addition, the transceiver 4004 is not limited to one in practical applications, and the structure of the electronic device 4000 is not limited to the embodiment of the present application.
The Processor 4001 may be a CPU (Central Processing Unit), a general-purpose Processor, a DSP (Digital Signal Processor), an ASIC (Application specific integrated Circuit), an FPGA (Field Programmable Gate Array) or other Programmable logic device, a transistor logic device, a hardware component, or any combination thereof. Which may implement or perform the various illustrative logical blocks, modules, and circuits described in connection with the disclosure. The processor 4001 may also be a combination that performs a computational function, including, for example, a combination of one or more microprocessors, a combination of a DSP and a microprocessor, or the like.
Bus 4002 may include a path that carries information between the aforementioned components. The bus 4002 may be a PCI (Peripheral Component Interconnect) bus, an EISA (extended industry Standard Architecture) bus, or the like. The bus 4002 may be divided into an address bus, a data bus, a control bus, and the like. For ease of illustration, only one thick line is shown in FIG. 6, but this is not intended to represent only one bus or type of bus.
The Memory 4003 may be a ROM (Read Only Memory) or other types of static storage devices that can store static information and instructions, a RAM (Random Access Memory) or other types of dynamic storage devices that can store information and instructions, an EEPROM (Electrically erasable programmable Read Only Memory), a CD-ROM (Compact Read Only Memory) or other optical disk storage, optical disk storage (including Compact disk, laser disk, optical disk, digital versatile disk, blu-ray disk, etc.), a magnetic disk storage medium or other magnetic storage devices, or any other medium that can be used to carry or store desired program code in the form of instructions or data structures and that can be accessed by a computer, but is not limited to.
The memory 4003 is used for storing application codes for executing the scheme of the present application, and the execution is controlled by the processor 4001. The processor 4001 is configured to execute application code stored in the memory 4003 to implement the scheme shown in any one of the foregoing method embodiments.
It should be understood that, although the steps in the flowcharts of the figures are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and may be performed in other orders unless explicitly stated herein. Moreover, at least a portion of the steps in the flow chart of the figure may include multiple sub-steps or multiple stages, which are not necessarily performed at the same time, but may be performed at different times, which are not necessarily performed in sequence, but may be performed alternately or alternately with other steps or at least a portion of the sub-steps or stages of other steps.
The foregoing is only a partial embodiment of the present invention, and it should be noted that, for those skilled in the art, various modifications and decorations can be made without departing from the principle of the present invention, and these modifications and decorations should also be regarded as the protection scope of the present invention.

Claims (15)

1. An online document processing method, comprising:
acquiring a document acquisition request aiming at a document to be processed, wherein the document acquisition request comprises page number indicating information;
acquiring a document page to be loaded in the document to be processed based on the document acquisition request, wherein the document page to be loaded comprises a target document page corresponding to the page number indication information;
and sending the document page to be loaded to a user terminal so that the user terminal loads the document page to be loaded into a memory and displays the target document page to a user.
2. The method of claim 1, wherein the document pages to be loaded further comprise a set number of associated document pages associated with the target document page, the associated document pages comprising at least one of document pages preceding or following the target document page.
3. The method according to claim 1, wherein the document acquisition request is generated by a user terminal based on an operation request of a user for the document to be processed, and the operation request comprises a document opening request or a document page acquisition request;
when the operation request is the document opening request, the page number indicating information is setting information, and when the operation request is the document page acquisition request, the page number indicating information is a page number identifier of a document page corresponding to the document page acquisition request.
4. The method according to any one of claims 1 to 3, wherein the document acquisition request further includes document format information, and if the document format corresponding to the document format information is different from the document format corresponding to the document to be processed, the sending the document page to be loaded to the user terminal includes:
converting the document page to be loaded into a document page in a document format corresponding to the document format information;
and sending the document page to be loaded after the format conversion to the user terminal.
5. The method according to any one of claims 1 to 3, wherein the format of the document to be processed is a non-editable format.
6. The method according to any one of claims 1 to 3, further comprising:
receiving a document editing request aiming at the document to be processed;
when the document to be processed is a document with an editable format, processing a corresponding document page based on the document editing request, and sending a processing result to the user terminal;
and when the document to be processed is not the editable format document, converting the document to be processed into the editable format document, processing the corresponding document page based on the editing request, and sending the processed editable format document page to the user terminal.
7. A method according to any one of claims 1 to 3, characterized in that the set number is determined by:
acquiring equipment information of the user terminal;
determining the set number based on the device information.
8. The method according to any one of claims 1 to 3, wherein the sending the document page to be loaded to a user terminal comprises:
acquiring equipment information of the user terminal;
determining a document page to be loaded corresponding to the equipment information;
and sending the document page to be loaded corresponding to the equipment information to the user terminal.
9. The method of claim 8, wherein the device information comprises at least one of screen resolution or available memory information.
10. An online document processing method, comprising:
acquiring an operation request of a user for a document to be processed, wherein the operation request comprises page number indicating information;
based on the operation request, sending a corresponding document acquisition request to a server, and receiving a document page to be loaded returned by the server based on the page number indication information in the document acquisition request, wherein the document page to be loaded comprises a target document page corresponding to the page number indication information;
and loading the document page to be loaded into a memory, and displaying the target document page to the user.
11. The method of claim 10, wherein the document pages to be loaded further comprise a set number of associated document pages associated with the target document page, the associated document pages comprising at least one of document pages preceding or following the target document page.
12. An online document processing apparatus, comprising:
the document acquisition request acquisition module is used for acquiring a document acquisition request aiming at a document to be processed, wherein the document acquisition request comprises page number indicating information;
a document page obtaining module, configured to obtain a document page to be loaded in the document to be processed based on the document obtaining request, where the document page to be loaded includes a target document page corresponding to the page number indication information;
and the document page processing module is used for sending the document page to be loaded to a user terminal so that the user terminal loads the document page to be loaded into the memory and displays the target document page to the user.
13. An online document processing apparatus, comprising:
the operation request acquisition module is used for acquiring an operation request of a user for a document to be processed, wherein the operation request comprises page number indicating information;
a document page receiving module, configured to send a corresponding document acquisition request to a server based on the operation request, and receive a to-be-loaded document page returned by the server based on the page number indication information in the document acquisition request, where the to-be-loaded document page includes a target document page corresponding to the page number indication information;
and the document page display module is used for loading the document page to be loaded into the memory and displaying the target document page to the user.
14. An electronic device, comprising a processor and a memory;
the memory has stored therein readable instructions which, when loaded and executed by the processor, implement the method of any one of claims 1 to 11.
15. A computer-readable storage medium, characterized in that it stores at least one computer program which is loaded and executed by a processor to implement the method of any of claims 1 to 11.
CN201911241688.1A 2019-12-06 2019-12-06 Online document processing method and device, electronic equipment and computer storage medium Active CN111191418B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911241688.1A CN111191418B (en) 2019-12-06 2019-12-06 Online document processing method and device, electronic equipment and computer storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911241688.1A CN111191418B (en) 2019-12-06 2019-12-06 Online document processing method and device, electronic equipment and computer storage medium

Publications (2)

Publication Number Publication Date
CN111191418A true CN111191418A (en) 2020-05-22
CN111191418B CN111191418B (en) 2024-01-12

Family

ID=70710893

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911241688.1A Active CN111191418B (en) 2019-12-06 2019-12-06 Online document processing method and device, electronic equipment and computer storage medium

Country Status (1)

Country Link
CN (1) CN111191418B (en)

Citations (30)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
GB0621450D0 (en) * 2006-10-30 2006-12-06 Hewlett Packard Development Co A method of constructing a remotely editable machine-readable document
CN101661459A (en) * 2009-10-19 2010-03-03 中国电信股份有限公司 Method for providing network document resources, platform thereof and system thereof
CN101859293A (en) * 2010-03-05 2010-10-13 鸿富锦精密工业(深圳)有限公司 Electronic reader and edition document storage method
CN101996194A (en) * 2009-08-14 2011-03-30 北京大学 On-line browsing method and system of electronic file
CN102222059A (en) * 2011-06-14 2011-10-19 汉王科技股份有限公司 Method, device and system for realizing multi-format information display of electronic reader
CN102566885A (en) * 2010-10-04 2012-07-11 索尼公司 Information processing apparatus, information processing method, and program
US20120297277A1 (en) * 2004-02-15 2012-11-22 Google Inc. Document Enhancement System and Method
CN102799654A (en) * 2012-06-29 2012-11-28 新浪网技术(中国)有限公司 Intelligent terminal and document online previewing method and system for intelligent terminal
US20130014009A1 (en) * 2010-12-10 2013-01-10 Tae Woo Kim Electronic document preparing apparatus, electronic document preparing system comprising same and control method thereof and electronic document reading system and control method thereof
JP2013050979A (en) * 2012-11-08 2013-03-14 Canon Software Inc Information processing apparatus, document management system, processing method, and program
CN103092544A (en) * 2011-10-27 2013-05-08 汉王科技股份有限公司 Method and system for sharing electronic files among electronic devices
CN103164439A (en) * 2011-12-14 2013-06-19 中国电信股份有限公司 Service information dynamic display method, server and online document browse terminal
US8504827B1 (en) * 2013-02-27 2013-08-06 WebFilings LLC Document server and client device document viewer and editor
US20130227408A1 (en) * 2012-02-29 2013-08-29 Anusha Shanmugarajah Page Turning in Electronic Document Readers
CN103593333A (en) * 2013-10-16 2014-02-19 小米科技有限责任公司 Electronic book document processing method, terminal and electronic equipment
JP2014102594A (en) * 2012-11-16 2014-06-05 Canon Marketing Japan Inc Information processor, processing method thereof, and program
CN104123287A (en) * 2013-04-24 2014-10-29 北大方正集团有限公司 Document data downloading device, terminal and document data downloading method
CN104516927A (en) * 2013-09-30 2015-04-15 腾讯科技(深圳)有限公司 Document processing method, device and terminal
US20150205474A1 (en) * 2012-06-29 2015-07-23 Google Inc. Systems and methods for scrolling through content displayed on an electronic device
US20150242371A1 (en) * 2014-02-21 2015-08-27 Csr Imaging Us, Lp Universal mobile document viewer with high fidelity, efficient architecture and editing
CN104965871A (en) * 2015-06-09 2015-10-07 北京金山安全软件有限公司 Page loading method and device and electronic equipment
CN104978537A (en) * 2014-04-01 2015-10-14 中国移动通信集团公司 Document access authority configuration method and device
US20150296039A1 (en) * 2013-07-03 2015-10-15 Huizhou Tcl Mobile Communication Co., Ltd. Method and system for document processing in wireless communication apparatus
CN105095250A (en) * 2014-05-05 2015-11-25 北京大学 Page scheduling processing method and device
CN105740657A (en) * 2016-01-26 2016-07-06 唐山新质点科技有限公司 On-line browsing method and device of file
CN106599183A (en) * 2016-12-13 2017-04-26 北京致远互联软件股份有限公司 Document online previewing method and system
CN106776506A (en) * 2017-02-27 2017-05-31 努比亚技术有限公司 Methods of exhibiting, device and system on document line based on browser
CN107506344A (en) * 2017-10-12 2017-12-22 郑州云海信息技术有限公司 A kind of file online editing method and apparatus
CN108090078A (en) * 2016-11-22 2018-05-29 北京京东尚科信息技术有限公司 The online method for previewing of document and device
CN109976617A (en) * 2019-04-03 2019-07-05 腾讯科技(深圳)有限公司 Document display method and apparatus

Patent Citations (31)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120297277A1 (en) * 2004-02-15 2012-11-22 Google Inc. Document Enhancement System and Method
GB0621450D0 (en) * 2006-10-30 2006-12-06 Hewlett Packard Development Co A method of constructing a remotely editable machine-readable document
CN101996194A (en) * 2009-08-14 2011-03-30 北京大学 On-line browsing method and system of electronic file
CN101661459A (en) * 2009-10-19 2010-03-03 中国电信股份有限公司 Method for providing network document resources, platform thereof and system thereof
CN101859293A (en) * 2010-03-05 2010-10-13 鸿富锦精密工业(深圳)有限公司 Electronic reader and edition document storage method
CN102566885A (en) * 2010-10-04 2012-07-11 索尼公司 Information processing apparatus, information processing method, and program
US20130014009A1 (en) * 2010-12-10 2013-01-10 Tae Woo Kim Electronic document preparing apparatus, electronic document preparing system comprising same and control method thereof and electronic document reading system and control method thereof
CN102222059A (en) * 2011-06-14 2011-10-19 汉王科技股份有限公司 Method, device and system for realizing multi-format information display of electronic reader
CN103092544A (en) * 2011-10-27 2013-05-08 汉王科技股份有限公司 Method and system for sharing electronic files among electronic devices
CN103164439A (en) * 2011-12-14 2013-06-19 中国电信股份有限公司 Service information dynamic display method, server and online document browse terminal
US20130227408A1 (en) * 2012-02-29 2013-08-29 Anusha Shanmugarajah Page Turning in Electronic Document Readers
CN102799654A (en) * 2012-06-29 2012-11-28 新浪网技术(中国)有限公司 Intelligent terminal and document online previewing method and system for intelligent terminal
US20150205474A1 (en) * 2012-06-29 2015-07-23 Google Inc. Systems and methods for scrolling through content displayed on an electronic device
JP2013050979A (en) * 2012-11-08 2013-03-14 Canon Software Inc Information processing apparatus, document management system, processing method, and program
JP2014102594A (en) * 2012-11-16 2014-06-05 Canon Marketing Japan Inc Information processor, processing method thereof, and program
US8504827B1 (en) * 2013-02-27 2013-08-06 WebFilings LLC Document server and client device document viewer and editor
CN104123287A (en) * 2013-04-24 2014-10-29 北大方正集团有限公司 Document data downloading device, terminal and document data downloading method
US20150296039A1 (en) * 2013-07-03 2015-10-15 Huizhou Tcl Mobile Communication Co., Ltd. Method and system for document processing in wireless communication apparatus
CN104516927A (en) * 2013-09-30 2015-04-15 腾讯科技(深圳)有限公司 Document processing method, device and terminal
CN103593333A (en) * 2013-10-16 2014-02-19 小米科技有限责任公司 Electronic book document processing method, terminal and electronic equipment
US20150242371A1 (en) * 2014-02-21 2015-08-27 Csr Imaging Us, Lp Universal mobile document viewer with high fidelity, efficient architecture and editing
CN104978537A (en) * 2014-04-01 2015-10-14 中国移动通信集团公司 Document access authority configuration method and device
CN105095250A (en) * 2014-05-05 2015-11-25 北京大学 Page scheduling processing method and device
CN104965871A (en) * 2015-06-09 2015-10-07 北京金山安全软件有限公司 Page loading method and device and electronic equipment
CN105740657A (en) * 2016-01-26 2016-07-06 唐山新质点科技有限公司 On-line browsing method and device of file
CN108090078A (en) * 2016-11-22 2018-05-29 北京京东尚科信息技术有限公司 The online method for previewing of document and device
US20190347307A1 (en) * 2016-11-22 2019-11-14 Beijing Jingdong Shangke Information Technology Co., Ltd. Document online preview method and device
CN106599183A (en) * 2016-12-13 2017-04-26 北京致远互联软件股份有限公司 Document online previewing method and system
CN106776506A (en) * 2017-02-27 2017-05-31 努比亚技术有限公司 Methods of exhibiting, device and system on document line based on browser
CN107506344A (en) * 2017-10-12 2017-12-22 郑州云海信息技术有限公司 A kind of file online editing method and apparatus
CN109976617A (en) * 2019-04-03 2019-07-05 腾讯科技(深圳)有限公司 Document display method and apparatus

Also Published As

Publication number Publication date
CN111191418B (en) 2024-01-12

Similar Documents

Publication Publication Date Title
CN109918345B (en) Document processing method, device, terminal and storage medium
CN105718540B (en) Data loading method and device
WO2018133663A1 (en) Page generation method, terminal, and data storage medium
CN110096660B (en) Method and device for loading page pictures and electronic equipment
US20140074930A1 (en) Information processing device and conference system
CN109491743A (en) Visual Report Forms generation method, device, electronic equipment and storage medium
US9256919B2 (en) Systems and methods for image processing using a resizing template
US9906626B2 (en) Resource demand-based network page generation
CN113382083B (en) Webpage screenshot method and device
CN107728892B (en) Picture display method, device, terminal and storage medium
CN112487766A (en) Document labeling method and system and computer equipment
CN112581568B (en) Dynamic poster generation method, device, server and storage medium
EP2997715B1 (en) Transmitting information based on reading speed
CN111767492B (en) Picture loading method and device, computer equipment and storage medium
WO2019127894A1 (en) Method for converting pdf file into picture, electronic device, and computer-readable storage medium
US20150149586A1 (en) Information processing apparatus, information processing method, and information processing system
CN111414383B (en) Data request method, data processing system and computing device
CN111191418A (en) Online document processing method and device, electronic equipment and computer storage medium
US10078479B2 (en) Printing process system and information processing apparatus
CN115643468A (en) Poster generation method and device, electronic equipment and storage medium
CN114020187A (en) Font icon display method and device and electronic equipment
CN112528184A (en) Sending method and device of rich text mail, computer equipment and storage medium
CN114048048A (en) Information sharing method and device, electronic equipment and storage medium
CN113918861A (en) Icon library display method and device
CN108647197B (en) Information processing method, device and storage medium

Legal Events

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