CN111191418B - 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
CN111191418B
CN111191418B CN201911241688.1A CN201911241688A CN111191418B CN 111191418 B CN111191418 B CN 111191418B CN 201911241688 A CN201911241688 A CN 201911241688A CN 111191418 B CN111191418 B CN 111191418B
Authority
CN
China
Prior art keywords
document
page
loaded
user terminal
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.)
Active
Application number
CN201911241688.1A
Other languages
Chinese (zh)
Other versions
CN111191418A (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

Abstract

The invention provides an online document processing method, an online document processing device, electronic equipment and a computer storage medium, wherein the online document processing 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 a document acquisition request, wherein the document page to be loaded comprises a target document page corresponding to page number indication information; and 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 displaying the target document page to the user. In the scheme, the document pages to be loaded are part of the document pages in the document to be processed, and the part of the document pages are loaded in the memory of the user terminal, so that in the process that the user terminal displays the document pages to the user, only part of the document pages 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, the time for the user to wait for loading the document is reduced, and the user experience is improved.

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, an online document processing device, electronic equipment and a computer storage medium.
Background
In the prior art, when a user wants to process a certain document online, typically after a server sends the whole document to a user terminal, the user terminal loads all document pages in the whole document into a memory, and then displays the document pages in the document to the user. Based on the scheme, a certain time is required to be spent 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 embodiment of the invention mainly aims to provide an online document processing method, an online document processing device, electronic equipment 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 indication information;
acquiring a document page to be loaded in a document to be processed based on a document acquisition request, wherein the document page to be loaded comprises a target document page corresponding to page number indication information;
And 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 displaying the target document page to the user.
In an alternative 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 the document pages preceding or following the target document page.
In an optional embodiment of the first aspect, the document acquisition request is generated by the user terminal based on a user operation request for the document to be processed, and 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 indication information is set information, and when the operation request is a document page acquisition request, the page indication information is a page identification 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 the document to be processed, 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 format conversion to the 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 alternative 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 in an editable format, processing a corresponding document page based on a document editing request, and sending a processing result to a user terminal;
when the document to be processed is not the document in the editable format, converting the document to be processed into the document in the editable format, processing the corresponding document page based on the editing request, and sending the processed document page in the editable format 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;
based on the device information, a set number is determined.
In an alternative 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 alternative embodiment of the first aspect, the device information includes 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, including:
acquiring an operation request of a user for a document to be processed, wherein the operation request comprises page number indication 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 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 the memory, and displaying the target document page to the user.
In an alternative 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 the document pages preceding or following the target document page.
In an alternative embodiment of the second aspect, the operation request includes a document open request or a document page acquisition request;
when the operation request is a document opening request, the page indication information is set information, and when the operation request is a document page acquisition request, the page indication information is a page identification 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 a document format corresponding to the document format information is different from a 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 alternative embodiment of the second aspect, the method further comprises:
acquiring a document editing request aiming at a document to be processed;
when the document to be processed is a document in an editable format, receiving a processing result returned by the server for processing the corresponding document page based on the document editing request;
when the document to be processed is not the document in the editable format, the receiving server converts the document to be processed into the document in the editable format, and processes the corresponding document page based on the editing request.
In an alternative embodiment of the second aspect, the set number is determined by:
acquiring equipment information of a user terminal;
based on the device information, a set number is determined.
In an alternative embodiment of the second aspect, the document page to be loaded is a document page corresponding to device information determined by the server based on the device information of the user terminal.
In an alternative embodiment of the second aspect, the device information includes 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 indication information;
the document page acquisition module is used for acquiring a document page to be loaded in a document to be processed based on a document acquisition request, wherein the document page to be loaded comprises a target document page corresponding to page number indication 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 alternative embodiment of the third 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 the document pages preceding or following the target document page.
In an alternative embodiment of the third aspect, the document acquisition request is generated by the user terminal based on a user operation request for the document to be processed, the operation request including a document opening request or a document page acquisition request;
when the operation request is a document opening request, the page indication information is set information, and when the operation request is a document page acquisition request, the page indication information is a page identification 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 a document format corresponding to the document format information is different from a document format corresponding to the document to be processed, the document page processing module is specifically configured to:
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 format conversion to the user terminal.
In an alternative embodiment of the third aspect, the format of the document to be processed is a non-editable format.
In an alternative embodiment of the third aspect, the apparatus further comprises:
the document editing module is used for receiving a document editing request for a document to be processed; when the document to be processed is a document in an editable format, processing a corresponding document page based on a document editing request, and sending a processing result to a user terminal; when the document to be processed is not the document in the editable format, converting the document to be processed into the document in the editable format, processing the corresponding document page based on the editing request, and sending the processed document page in the editable format 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;
based on the device information, a set number is determined.
In an alternative embodiment of the third aspect, the document page processing module is specifically configured to, when sending the document page to be loaded to the user terminal:
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 alternative embodiment of the third aspect, the device information includes 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 indication information;
the document page receiving module is used for sending a corresponding document acquisition request to the server based on the operation request, receiving a document page to be loaded returned by the server based on 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 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.
In an alternative embodiment of the fourth 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 the document pages preceding or following the target document page.
In an alternative embodiment of the fourth aspect, the operation request includes a document open request or a document page acquisition request;
when the operation request is a document opening request, the page indication information is set information, and when the operation request is a document page acquisition request, the page indication information is a page identification 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 a document format corresponding to the document format information is different from a 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 fourth aspect, the format of the document to be processed is a non-editable format.
In an alternative 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 in an editable format, receiving a processing result returned by the server for processing the corresponding document page based on the document editing request; when the document to be processed is not the document in the editable format, the receiving server converts the document to be processed into the document in the editable format, and processes the corresponding document page based on the editing request.
In an alternative embodiment of the fourth aspect, the set number is determined by:
acquiring equipment information of a user terminal;
based on the device information, a set number is determined.
In an optional embodiment of the fourth aspect, the document page to be loaded is a document page corresponding to device information determined by the server based on the device information of the user terminal.
In an alternative embodiment of the fourth aspect, the device information includes at least one of screen resolution or available memory information.
In a fifth aspect, an embodiment of the present invention provides an electronic device, including a processor and a memory; the memory has stored therein readable instructions which, when loaded and executed by a processor, implement a method as shown in any of the alternative embodiments of the first or second aspects described above.
In a sixth aspect, embodiments of the present invention provide a computer readable storage medium having stored therein readable instructions which, when loaded and executed by a processor, implement a method as shown in any of the alternative embodiments of the first or second aspects described above.
The technical scheme provided by the embodiment of the invention has the beneficial effects that: according to the online document processing method, the device, the electronic equipment and the computer storage medium, when a document acquisition request of a user for a document to be processed is acquired, the document page to be loaded in the document to be processed can be acquired based on page number indication information in the request, and the document page to be loaded comprises a target document page corresponding to the page number indication information. Especially, for the request of only looking up the content in the document to be processed, the document loading efficiency can be improved more obviously.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings that are required to be used in the description of the embodiments of the present invention will be briefly described below.
FIG. 1 is a flow diagram of an online document processing method provided in an embodiment of the present invention;
FIG. 2 shows a flow diagram of yet another online document processing method provided in an embodiment of the invention;
FIG. 3 illustrates a flow diagram of an online document processing method in one example provided in an embodiment of the invention;
FIG. 4 is a schematic diagram showing the structure of an online document processing apparatus provided in an embodiment of the present invention;
FIG. 5 is a schematic diagram showing the structure of still another online document processing apparatus provided in an embodiment of the present invention;
fig. 6 shows a schematic structural diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
In order to make the objects, features and advantages of the present invention more comprehensible, the technical solutions in the embodiments of the present invention will be clearly described in conjunction with the accompanying drawings in the embodiments of the present invention, and it is apparent that the described embodiments are only some embodiments of the present invention, but not all embodiments of the present invention. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
Embodiments of the present invention are described in detail below, examples of which are illustrated in the accompanying drawings, wherein like or similar reference numerals refer to like or similar elements or elements having like or similar functions throughout. The embodiments described below by referring to the drawings are illustrative only and are not to 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 expressly stated otherwise, as understood by those skilled in the art. 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. The term "and/or" as used herein includes all or any element and all combination of one or more of the associated listed items.
In order to better understand and describe the schemes of the embodiments of the present invention, some technical terms related to the embodiments of the present invention are briefly described below.
Electronic document: the electronic data of the documents with the standard format are formed after the electronic data of each region and each department are configured uniformly.
wps (Word Processing System, text editing system): a character editing software can realize the most common functions of characters, tables, demonstration and the like of office software.
word (Microsoft Office Word, microsoft office text): a text editor may create and edit text and graphics in letters, reports, web pages or emails using Microsoft Office Word.
In the prior art, when an electronic document is checked or edited online, the electronic document is usually edited and checked through an electronic document processing system of an installed client plug-in (such as word, wps, etc.), and all document pages of the electronic document need to be loaded and completed no matter the electronic document is checked or edited, so that a user can check or edit the electronic document through the electronic document processing system.
The present inventors have found through analysis that the above scheme has at least the following problems:
1) User angle: the functions of the electronic document processing system are not divided according to the purpose of use of the electronic document processing system by a user. Users often have two different purposes of viewing and editing documents in electronic document systems. The method is simple in viewing, only the contents of the electronic document are required to be provided, and paging display is carried out, so that a user does not pay attention to the display form of the file, and the loading speed and the viewing efficiency of the file are compared. However, the existing scheme does not consider the purpose of use of the user generally, all document pages of the client plug-in and the electronic document need to be loaded, which causes overlong waiting time of the user and poor experience.
2) System resource angle: the method is characterized in that the use purposes of users are not distinguished, when the users need to view the electronic document, the users still need to download client side plug-ins, load the client side plug-ins and load all document pages of the electronic document like when editing the electronic document. Therefore, when the electronic document is checked or edited, particularly when the electronic document is checked, a large amount of CPU (Central Processing Unit ) resources and network bandwidth of the system are occupied, so that the resource waste and the system performance reduction are caused, and the long-acting use of the system is not facilitated.
3) Document loading angle: some documents (electronic documents) occupy a very large memory space, so that a long time is required for loading. While it is not really necessary for a user viewing a document to load all document pages of the document at once. Because it is generally required for readers to load several pages before and after the reading page at a time, the viewing requirement can be met. Therefore, for a user who only views the 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.
Aiming at the technical problems in the prior art, the embodiment of the invention provides a document processing method, which can only provide partial document pages (document pages to be loaded) in a document to be processed for a user through a user terminal when the document pages in the document to be processed are acquired, and does not need to send all the document pages to the user terminal, and the user terminal loads all the document pages into a memory and then displays the document pages to the user. Especially, for the request of only looking up the content in the document to be processed, the document loading efficiency can be improved more obviously.
The following describes the technical scheme of the present invention and how the technical scheme of the present invention solves the above technical problems in detail with specific embodiments. The following embodiments may be combined with each other, and the same or similar concepts or processes may not be described in detail 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, as shown in the figure, the method may include steps S110 to S130, where:
step S110: a document acquisition request for a document to be processed is acquired, and page indication information is included in the document acquisition request.
The document acquisition request is triggered by the user terminal based on an operation request of a user on a document to be processed, wherein the document to be processed refers to a document which the user wants to operate, and the document content and the document format of the document are not limited. The operation request refers to a processing manner in which a user wants to process a document to be processed, for example, viewing, editing, opening, etc., and the operation request may be triggered by a specified trigger identifier displayed on a user interface of a user trigger user terminal.
The page indication information is used for identifying which page or pages of the document to be processed is/are the target document page or pages of the document to be processed, and can be determined by the user, namely, specified by the user or configured by the system, and can be page number identification in the form of numbers, characters and the like.
It is to be understood that if the user does not explicitly indicate which page or pages of the document are to be manipulated in the document to be processed, page number indication information may be determined based on the manipulation type of the manipulation request, where the manipulation type refers to the manner in which the document to be processed is manipulated, such as opening, viewing, etc.; 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 preconfigured by the system, and the document page corresponding to the default indication information may be the start page of the document. If the operation type is view, page number indication information of the document page to be viewed is included in the operation request, and the target document page is the document page corresponding to the page number indication information.
Each document can have a corresponding document identification, and when a user selects a document to be processed through a user interface, the user terminal can simultaneously send the document identification 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, etc., and the specific expression mode of the document identifier is not limited in the scheme of the 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 can adopt a synchronous loading mode, namely, one document page is acquired, or adopt an asynchronous acquisition mode, namely, a plurality of document pages are acquired simultaneously. If an asynchronous acquisition mode is adopted, the acquisition efficiency of the document pages can be further improved.
Step S130: and 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 displaying the target document page to the user.
When receiving a document acquisition request for a document to be processed sent by a user through a user terminal, a server can acquire document pages to be loaded in the document to be processed (for convenience of description, the document pages of the document pages to be loaded are called as a first number hereinafter) first and send the document pages to the user terminal, then, based on the same acquisition mode, continuously acquiring the first number of document pages (the first number) in the document pages which are not acquired in the document to be processed, and acquiring the same number of document pages (the first number) each time, and when acquiring each first number of document pages, the server sends each first number of document pages to the user terminal according to the acquisition sequence, so that the user can view the content of each document page under the condition that the document loading is not perceived, and further improving the user experience. According to the scheme, when the document acquisition request of the user for the document to be processed is acquired, the document pages to be loaded in the document to be processed can be acquired based on the page number indication information in the request, and the document pages to be loaded comprise the target document pages corresponding to the page number indication information. Especially, for the request of only looking up the content in the document to be processed, the document loading efficiency can be improved more obviously.
In an alternative aspect of the present 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 may be configured based on actual requirements, for example, based on time consumed for loading each page of document and 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 sensing the loading of the document. In practical applications, the set number may be adjustable, for example, based on an adjustment rule, which may be configured based on a practical requirement, for example, the number of document pages corresponding to at least one of the document pages before or after the target document page (hereinafter referred to as the second number for convenience of description). 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 acquired at one time, the set number may be adjusted so that the corresponding associated document pages may be acquired. The adjustment of the set number can be corresponding adjustment by the server according to the set adjustment rule, or can be providing a set function option for the user, and the user can perform setting operation through a corresponding user interface on the user terminal according to the actual requirement.
The document page to be loaded is at least one continuous page of 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 configured according to different practical application scenes, 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 is not related to the document page. For another example, if the document to be processed has 1 document page in total, the target document page is the document page, and the document page is not associated with the 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 which has been loaded into the memory in the document pages to be processed, when the target document page is presented to the user, if the user also wants to operate on the associated document page of the document page, the user terminal can directly display the associated document page to the user from the memory without requesting the server, and re-acquire the associated document page once.
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 subsequent to the target document page;
the document pages preceding and following the target document page.
Similarly, the 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 subsequent to the target document page;
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.
Combining the three set quantity of associated document pages, and adjusting the set quantity based on an adjustment rule to specifically explain:
first, a set number of document pages preceding the target document page.
If the second number of document pages preceding the target document page is smaller than the set number, indicating that the set number of document pages is not acquired at one time, the set number may be adjusted to be not larger 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 smaller than the set number, indicating that the set number of document pages is not acquired at one time, the set number may be adjusted to be not larger than the second number.
Third, a third number of document pages before the target document page 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, the number of document pages indicating the associated document pages is smaller than the set number, that is, 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, which is not described herein.
In the alternative scheme of the invention, the reason that the second number corresponding to at least one of the front or rear document pages of the target document page is smaller than the set number may be that the document pages loaded in the memory are included in the at least one of the front or rear document pages of the target document page, so that the second number corresponding to at least one of the front or rear document pages of the target document page is smaller than the set number without acquiring the document pages loaded in the memory again in the process of acquiring the first number of document pages.
It is understood that if the second number corresponding to at least one of the preceding or following document pages of the target document page is greater than the set number, the document pages of the at least one of the preceding or following document pages of the target document page include 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 not to waste resources, the first number of document pages may be acquired in addition to the document pages loaded into the memory when acquiring the document pages that are not acquired in the document to be processed, that is, the number of document pages acquired each time is guaranteed to be the first number.
As an example, for example, the document to be processed has 50 total document pages, the current document page is the 20 th page, the loaded document pages are the 10 th page to the 23 rd page, the unloaded document pages are other document pages except the loaded document page in the document pages to be processed, the set number is 3, if the target document page indicated by the page number indication information is the 15 th page, the 15 th document page is the loaded document page, the other 2 document pages associated with the document page are also the loaded document pages, the 15 th document page and the 2 document pages 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 indication information is the 23 rd page, the 23 rd page is the document page that has been loaded, at this time, the server may load a fifth number of document pages associated with the page number indication information based on the page number indication information, in this example, the fifth number may be not greater than the set number, the acquired document pages may be the 23 rd page, the 24 th page, the 25 th page, and the 26 th page if the fifth number is equal to the set number, and the acquired document pages may be the 23 rd page, the 24 th page, and the 25 th page if the fifth number is less than the set number, that is, the fifth number plus 1 is equal to the set number, and the acquired document pages may be the 23 rd page, the 24 th page, and the 25 th page.
In this example, if the target document page indicated by the page number indication information is the 15 th page, the 15 th page is a document page that has been loaded, and the other 2 pages associated with the document page are also document pages that have been loaded, the 15 th page and the 2 pages associated with the document page may be directly transmitted to the user terminal.
In the alternative scheme of the invention, the document acquisition request is generated by the user terminal based on the operation request of the user on 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 indication information is set information, and when the operation request is a document page acquisition request, the page indication information is a page identification of a document page corresponding to the document page acquisition request.
The user interface of the user terminal can simultaneously display document identifiers of a plurality of documents, virtual identifiers triggering different requests can also be displayed, and based on the identifiers, a user can trigger an operation request corresponding to the virtual identifier through the virtual identifier 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 can comprise 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 corresponding processing of a document page in the document to be processed. Page indication information corresponding to different operation requests may be different. Based on different operation requests, the corresponding page indication information may be the following two schemes:
first kind: when the operation request is a document opening request, the page number indication information is setting information, and the target document page is a 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 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 document page in the document to be processed, for example, the start page of a document, or if the first pages of a document of a certain type are generally the same content, the first document page containing substantial content may be used as the document page corresponding to the setting information, and in the scheme of the present invention, it is not limited to which page in the document page corresponding to the setting information is.
The setting information may be represented by a set identifier, for example, a preset character string.
In the case where the page number indication information is the setting information, when acquiring the first number of document pages, the server may start acquiring with the document page corresponding to the setting information as a base page, to obtain the first number of document pages.
Second kind: when the operation request is a document page acquisition request, if the page indication information is the page number identification of the document page corresponding to the document page acquisition request, the target document page is the document page corresponding to the page number identification.
The document page obtaining 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 through an operation of stopping sliding the document page, or a document page selecting request is triggered through a document page input box displayed on the user interface, and information input in the document page input box is the page identifier. Wherein the page number identification is user-selected.
When the page number indication information is the page number identification, the first number of document pages can be obtained by starting to obtain the first number of document pages by taking the document page corresponding to the page number identification as a base page.
In an alternative scheme 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 a 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 format conversion to the user terminal.
Wherein the document format information indicates what 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 a document format corresponding to the document format information, and when the format of the document stored in the server is a 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 can firstly convert the document page to be loaded into the document page of the document format corresponding to the document format information, and then send 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 may be 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, and then the document page to be added may be obtained from the document after the format conversion, where 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.
Where the non-editable format refers to content in the document being non-editable. If the document is a document with an editable format, the document format is easy to be disordered in the process of loading the document, so that the consulting experience of a user is affected, and based on the document, when the document to be processed is the document with the editable format, the document to be processed can be converted into the document with a non-editable format, so that the stability of the document format in the loading process is ensured.
The content editable format can be a word format and the like, and the specific expression form of the content editable format is not limited in the invention; the content non-editable format may be a format such as a picture format, for example, a PDF format, and the specific expression 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 solidified by a printing program of office software in a mode that the document is printed into a file, and then the PDF format is converted.
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 in the non-editable format, if the document to be processed is in the non-editable format, format conversion of the document to be processed is not needed, 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 in an editable format, the document to be processed can be converted into a document in a non-editable format, and then the document page to be loaded in the non-editable format is sent to the user terminal.
In the process of converting the format of the document to be processed, real-time conversion can be performed, namely, page number indication information in the document acquisition request corresponds to which page of the document to be processed, the corresponding document page in the document to be processed is converted into a document page in a non-editable format, and then the document page to be loaded in the non-editable format is sent to the user terminal. All the 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 to be processed can be sent to the user terminal.
In the solution of the present invention, the non-editable format may be a picture format.
Since the document in the picture format can be displayed by the application program with the picture display function, the user terminal generally comprises the application program with the picture display function, and for the document in the picture format, the document can be directly displayed by any application program with the picture display function in the user terminal, and the special application program for displaying the document to be processed is not required to be additionally downloaded and loaded, so that the processing efficiency is further improved.
In an alternative aspect of the present 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 in an editable format, processing a corresponding document page based on a document editing request, and sending a processing result to a user terminal;
when the document to be processed is not the document in the editable format, converting the document to be processed into the document in the editable format, processing the corresponding document page based on the editing request, and sending the processed document page in the editable format to the user terminal.
The document editing request refers to that a user wants to edit text content in a document to be processed, such as searching, modifying, and the like. If the document to be processed is a document in a non-editable format, the user cannot perform corresponding editing processing on the document to be processed. For example, if the document to be processed is a document in PDF format, the document of PDF cannot provide the user with a requirement for retrieval. Based on this, when the document to be processed is a document in an editable format, that is, the document to be processed in a content editable format is stored in the server, the server may process the corresponding document page based on the document editing request, and transmit 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 a document in an editable format, process a corresponding document page based on the editing request, and send the processed document page in an 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 can comprise a document in an editable format, namely, the document in the editable format can be pre-stored in a server, or can be obtained by converting the format of the document to be processed in real time based on a document editing request.
In an alternative of the invention, the set number is determined by:
acquiring equipment information of a user terminal;
based on the device information, a set number is determined.
The set number may also be related to device information of the user terminal, which 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 of acquiring document pages. Different device information may correspondingly determine different set amounts.
Wherein, the screen resolutions 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 a first resolution, the resolution corresponding to the document page in the document B is a second resolution, and the first resolution is larger than the second resolution, and 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 may also be different for different user terminals, and too little available memory may result in slow loading of the document. Based on this, the set number corresponding to the user terminal with the available memory information a may be set 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 not to affect the loading speed of the document.
In an alternative scheme 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 acquired, the document page to be loaded corresponding to the equipment information can be acquired based on the equipment information of the user terminal, so that the acquired document page can meet the actual requirements of the user, and better experience is provided for the user.
It will be understood that if the server already stores the document page to be loaded corresponding to the device information, the document page to be loaded may be directly sent to the user terminal, and if the server does not store the document page to be loaded corresponding to the device information, the document to be processed may be converted into the 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 can be determined first, then the document page to be loaded is converted into the document page corresponding to the equipment information, and the document page to be loaded corresponding to the equipment information is sent to the user terminal. The above modes are all within the protection scope of the scheme of the invention.
In aspects of the 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 too large resolution may result in slow document loading, too small resolution may result in poor picture definition, and influence on user viewing. Based on the above, each document page in the document to be processed can have 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 viewing of a user is influenced 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, a simulation document effect, namely a visual effect similar to paper, can be set in the client, and based on the simulation document effect, a better visual experience can be provided for the user.
In the alternative scheme of the invention, since the acquired document pages are cached in the memory of the user terminal when the document in the content non-editable format is acquired, the text of the document pages generally has some important business information, and security measures are required for the document in the content non-editable format based on security consideration, such as converting the document in the content non-editable format into a binary stream, or watermarking information in the background of the document pages in the content non-editable format. The conversion of the document in the content non-editable format into the binary stream and the watermarking of the watermark information in the background of the document page in the content non-editable format may be achieved by means of the prior art, which is not described here again.
Based on the same principle as the method shown in fig. 1, an embodiment of the present invention also provides an online document processing method, which can 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 indication information;
step S220: 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 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;
Step S230: and loading the document page to be loaded into the memory, and displaying the target document page to the user.
The above scheme is executed by the user terminal, and the principle of the scheme using the server as the execution body is the same as that of the scheme described above, and will not be described herein.
Optionally, 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 the document pages preceding or following the target document page.
Optionally, the operation request includes a document open request or a document page acquisition request;
when the operation request is a document opening request, the page indication information is set information, and when the operation request is a document page acquisition request, the page indication information is a page identification 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 server converts the document page to be loaded 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 comprises:
acquiring a document editing request aiming at a document to be processed;
when the document to be processed is a document in an editable format, receiving a processing result returned by the server for processing the corresponding document page based on the document editing request;
when the document to be processed is not the document in the editable format, the receiving server converts the document to be processed into the document in the editable format, and processes the corresponding document page based on the editing request.
Optionally, the set number is determined by:
acquiring equipment information of a user terminal;
based on the device information, a set number is determined.
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, a scheme of the embodiment of the present invention is further described in detail below with reference to fig. 3.
The scheme is applied to any application program (corresponding to a foreground application in fig. 3) of the user terminal, wherein the server (a background conversion service shown in fig. 3) is used for storing a document, carrying out relevant processing on the document and interacting with the foreground application. In this example, a document page subsequent to the associated document page as the target document page is explained as an example.
In this example, the document stored in the server may be a document uploaded by an online user, which refers to a user who can upload a document through a user terminal, or may be a document stored in advance in the server. During uploading, the specific process can be as follows: the online user uploads the document to a foreground application corresponding to the respective user terminal, and the foreground application sends the document to the server, and if the uploaded document is in an editable format, the server can convert the uploaded document into a document in a non-editable format, in this example, a picture format, for example, a PDF format. While the original document (document not converted into an editable format of a picture format) is saved (corresponding to the version archiving shown in fig. 3), the first page in the document of 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, wherein the operation request is a document opening request (corresponding to a browsed document in fig. 3), page number indication information is set information and is sent to a server (corresponding to a request page 1 shown in fig. 3) at the moment, and when the server receives the document opening request, a first page (a target document page corresponding to the page number indication information) of the document to be processed can be sent to the 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 (the 2 nd to the N th document pages) of the target document page (the 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 the document in the picture format in advance, only the first page is converted into the document page in the picture format, the first page can be sent to the user terminal (corresponding to the return 1 st page in fig. 3) based on the document opening request, so that the user terminal loads the document page of the first page into the memory and displays the document page of the first page to the user. Meanwhile, the server converts the associated document page of the first page into document pages of the picture format (corresponding to the conversion pages 2 to N shown in fig. 3) in an asynchronous conversion manner, and transmits the associated document pages of the picture format to the user terminal. The 2 nd to the N th pages are set number of document pages, and the set number can be adjusted.
After the user looks up the content of the first page of document pages, if the user wants to look up other document pages loaded in the memory, the user can slide the user interface, at this time, the document acquisition request is a document page acquisition request, and based on the request, the document pages which are not acquired in the document can be acquired according to the acquisition mode. The setting number may be adjusted based on a specific situation, and a scheme for specifically adjusting the setting number is consistent with the foregoing description, which is not described herein.
The page indication information in the document page acquisition request is a page number identification, and if the user is a downward sliding operation and the document page displayed by the user terminal is the 4 th page, the page number identification corresponds to the document page which is the document page after the 4 th page.
At this time, if the user wants to view the xth page in the document to be processed, which is a document page not viewed by the user, the user may trigger a document page acquisition request based on the user interface, where page number indication information in the document page acquisition request is a page number identification, and the page number identification is the xth page. The document page obtaining request is sent to a server (corresponding to the request X page shown in fig. 3), the server converts the X page (the target document page corresponding to the page identifier) into a document page in a picture format based on the page identifier, the X page can be sent to the user terminal first, so that the user terminal displays the X page to the user (corresponding to the return X page in fig. 3), then converts the associated document page (the document pages corresponding to the x+1st page to the x+n page) associated with the X page into the document page in the picture format, and sends the document pages corresponding to the x+1st page to the x+n page in the picture format to the user terminal, so that the document pages corresponding to the x+1st page to the x+n page are loaded into the memory by the user terminal.
According to the method, when the document pages in the document to be processed are acquired, only part of the document pages (the document pages to be loaded) in the document to be processed are loaded at one time, the document pages to be loaded are loaded in the memory of the user terminal, in the process that the user terminal displays the target document pages to the user, only part of the document pages 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 the user terminal loads all the document pages into the memory and then displays the document pages to the user. Especially, for the request of only looking up the content in the document to be processed, the document loading efficiency can be improved more obviously.
Based on the same principle as the method shown in fig. 1, the embodiment of the present invention also 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 acquisition request acquisition module 310, configured to acquire a document acquisition request for a document to be processed, where the document acquisition request includes page number indication information;
A document page obtaining module 320, configured to obtain a document page to be loaded in a document to be processed based on a document obtaining request, where the document page to be loaded includes a target document page corresponding to 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 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 the document pages preceding or following the target document page.
Optionally, the document acquisition request is generated by the user terminal based on an operation request of the user on the document to be processed, and 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 indication information is set information, and when the operation request is a document page acquisition request, the page indication information is a page identification 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:
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 format conversion to the 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 for a document to be processed; when the document to be processed is a document in an editable format, processing a corresponding document page based on a document editing request, and sending a processing result to a user terminal; when the document to be processed is not the document in the editable format, converting the document to be processed into the document in the editable format, processing the corresponding document page based on the editing request, and sending the processed document page in the editable format to the user terminal.
Optionally, the set number is determined by:
acquiring equipment information of a user terminal;
based on the device information, a set number is determined.
Optionally, the document page processing module is specifically configured to, when sending the document page to be loaded to the user terminal:
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 also 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 for a document to be processed from a user, where the operation request includes page number indication information;
the document page receiving module 420 is configured to send a corresponding document acquisition request to the server based on the operation request, and receive a document page to be loaded returned by the server based on page indication information in the document acquisition request, where the document page to be loaded includes a target document page corresponding to the page indication information;
the document page display module 430 is configured to load a document page to be loaded into the memory, and display a target document page to a user.
Optionally, 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 the document pages preceding or following the target document page.
Optionally, the operation request includes a document open request or a document page acquisition request;
when the operation request is a document opening request, the page indication information is set information, and when the operation request is a document page acquisition request, the page indication information is a page identification 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 server converts the document page to be loaded 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 in an editable format, receiving a processing result returned by the server for processing the corresponding document page based on the document editing request; when the document to be processed is not the document in the editable format, the receiving server converts the document to be processed into the document in the editable format, and processes the corresponding document page based on the editing request.
Optionally, the set number is determined by:
acquiring equipment information of a user terminal;
based on the device information, a set number is determined.
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, a person skilled in the art can understand the specific implementation of the online document processing apparatus in the embodiment of the present invention and various modifications thereof based on the online document processing method provided in the embodiment of the present invention, so how the online document processing apparatus implements the online document processing method in the embodiment of the present invention will not be described in detail herein. The online document processing apparatus used by those skilled in the art to implement the online document processing method according to the embodiments of the present invention is within the scope of protection intended in the present application.
Based on the same principle as the online document processing method and the online document processing device provided by the embodiment of the invention, the embodiment of the invention also provides electronic equipment which can comprise a processor and a memory. The memory stores readable instructions that, when loaded and executed by the processor, implement the methods described in any of the embodiments of the present invention.
As an example, a schematic structural diagram of an electronic device 4000 to which the scheme of the embodiment of the present application is applicable is shown in fig. 6, and as shown in fig. 6, the electronic device 4000 may include a processor 4001 and a memory 4003. Wherein the processor 4001 is coupled to the memory 4003, such as via a bus 4002. Optionally, the electronic device 4000 may also include a transceiver 4004. It should be noted that, in practical applications, the transceiver 4004 is not limited to one, 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 ), general purpose processor, DSP (Digital Signal Processor, data signal processor), ASIC (Application Specific Integrated Circuit ), FPGA (Field Programmable Gate Array, field programmable gate array) or other programmable logic device, transistor logic device, hardware components, or any combination thereof. Which may implement or perform the various exemplary logic blocks, modules, and circuits described in connection with this disclosure. The processor 4001 may also be a combination that implements computing functionality, e.g., comprising one or more microprocessor combinations, a combination of a DSP and a microprocessor, etc.
Bus 4002 may include a path to transfer information between the aforementioned components. Bus 4002 may be a PCI (Peripheral Component Interconnect, peripheral component interconnect standard) bus or an EISA (Extended Industry Standard Architecture ) bus, or the like. The bus 4002 can 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 not only one bus or one type of bus.
Memory 4003 may be, but is not limited to, ROM (Read Only Memory) or other type of static storage device that can store static information and instructions, RAM (Random Access Memory ) or other type of dynamic storage device that can store information and instructions, EEPROM (Electrically Erasable Programmable Read Only Memory ), CD-ROM (Compact Disc Read Only Memory, compact disc Read Only Memory) or other optical disk storage, optical disk storage (including compact discs, laser discs, optical discs, digital versatile discs, blu-ray discs, etc.), magnetic disk storage media 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.
The memory 4003 is used for storing application program codes for executing the present application, and 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 of the method embodiments described above.
It should be understood that, although the steps in the flowcharts of the figures are shown in order as indicated by the arrows, these steps are not necessarily performed in order as indicated by the arrows. The steps are not strictly limited in order and may be performed in other orders, unless explicitly stated herein. Moreover, at least some of the steps in the flowcharts of the figures may include a plurality of sub-steps or stages that are not necessarily performed at the same time, but may be performed at different times, the order of their execution not necessarily being sequential, but may be performed in turn or alternately with other steps or at least a portion of the other steps or stages.
The foregoing is only a partial embodiment of the present invention, and it should be noted that it will be apparent to those skilled in the art that modifications and adaptations can be made without departing from the principles of the present invention, and such modifications and adaptations should and are intended to be comprehended within the 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 indication information; the document acquisition request is triggered based on an operation request of a user for the document to be processed, wherein when indication information of a document page which the user wants to operate is not acquired, the page number indication information is determined based on an operation type of the operation request;
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 target document pages corresponding to the page number indication information and a set number of associated document pages associated with the target document pages; wherein the set number is determined based on the time consumed by the user terminal to load each page of document and the time required by the user to view each page of document;
the document page to be loaded is sent to a user terminal, so that the user terminal loads the document page to be loaded into a memory, and the target document page is displayed to a user;
wherein, each document page of the document to be processed corresponds to document pages with at least two resolutions, and the sending the document page to be loaded to the user terminal includes:
Determining the screen resolution of the user terminal;
and determining the document pages to be loaded, which are matched with the screen resolution of the user terminal, in the document pages to be loaded with at least two resolutions, and sending the determined document pages to be loaded to the user terminal.
2. The method of claim 1, wherein the associated document page comprises at least one of a document page preceding or following the target document page.
3. The method of claim 1, wherein the operation request comprises a document open request or a document page acquisition request;
when the operation request is the document opening request, the page indication information is set information, and when the operation request is the document page acquisition request, the page indication information is a page identification of a document page corresponding to the document page acquisition request.
4. A 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 format conversion to the user terminal.
5. A 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. A method according to any one of claims 1 to 3, further comprising:
receiving a document editing request for the document to be processed;
when the document to be processed is a document in 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 in the editable format, converting the document to be processed into the document in the editable format, processing a corresponding document page based on the editing request, and sending the processed document page in the editable format 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;
The set number is determined based on the device information.
8. A method according to any one of claims 1 to 3, characterized in that said 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 indication information; when the instruction information of the document page which the user wants to operate is not acquired, the page number instruction information is determined based on the operation type of the operation request;
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 a set number of associated document pages associated with the target document page; wherein the set number is determined based on the time consumed by the user terminal to load each page of document and the time required by the user to view each page of document; each document page of the document to be processed corresponds to a document page with at least two resolutions, and the document page to be loaded is a document page to be loaded which is determined by the server according to the screen resolution of the user terminal from the document pages to be loaded with at least two resolutions and is matched with the screen resolution of the user terminal;
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 associated document page comprises at least one of a document page 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 indication information; the document acquisition request is triggered based on an operation request of a user for the document to be processed, wherein when indication information of a document page which the user wants to operate is not acquired, the page number indication information is determined based on an operation type of the operation request;
a document page acquisition module, configured to acquire a document page to be loaded in the document to be processed based on the document acquisition request, where the document page to be loaded includes a target document page corresponding to the page number indication information and a set number of associated document pages associated with the target document page; wherein the set number is determined based on the time consumed by the user terminal to load each page of document and the time required by the user to view each page of document;
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 a memory and displays the target document page to the user;
wherein, each document page of the document to be processed corresponds to document pages with at least two resolutions, and the document page processing module is used for sending the document page to be loaded to a user terminal:
determining the screen resolution of the user terminal;
and determining the document pages to be loaded, which are matched with the screen resolution of the user terminal, in the document pages to be loaded with at least two resolutions, and sending the determined document pages to be loaded to the user terminal.
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 indication information; when the instruction information of the document page which the user wants to operate is not acquired, the page number instruction information is determined based on the operation type of the operation request;
the document page receiving module is used for sending a corresponding document acquisition request to a server based on the operation request, and receiving a document page to be loaded returned by the server based on the page indication information in the document acquisition request, wherein the document page to be loaded comprises target document pages corresponding to the page indication information and a set number of associated document pages associated with the target document pages; wherein the set number is determined based on the time consumed by the user terminal to load each page of document and the time required by the user to view each page of document; each document page of the document to be processed corresponds to a document page with at least two resolutions, and the document page to be loaded is a document page to be loaded which is determined by the server according to the screen resolution of the user terminal from the document pages to be loaded with at least two resolutions and is matched with the screen resolution of the user terminal;
And the document page display module is used for loading the document page to be loaded into a memory and displaying the target document page to the user.
14. An electronic device comprising a processor and a memory;
stored in the memory are 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 that is loaded and executed by a processor to implement the method of any one 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 CN111191418A (en) 2020-05-22
CN111191418B true 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 (24)

* 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
CN102799654A (en) * 2012-06-29 2012-11-28 新浪网技术(中国)有限公司 Intelligent terminal and document online previewing method and system for intelligent terminal
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
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
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
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

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8521772B2 (en) * 2004-02-15 2013-08-27 Google Inc. Document enhancement system and method
KR20120065217A (en) * 2010-12-10 2012-06-20 모글루(주) Device for creating interactive electronic documents, system for creating interactive electronic documents therewith and control method thereof, and reader for interactive electronic documents, system for reading interactive electronic documents therewith, control method thereof
US8635529B2 (en) * 2012-02-29 2014-01-21 Anusha Shanmugarajah Page turning in electronic document readers
US9626090B2 (en) * 2012-06-29 2017-04-18 Google Inc. Systems and methods for scrolling through content displayed on an electronic device
CN103399842A (en) * 2013-07-03 2013-11-20 惠州Tcl移动通信有限公司 File processing method and system in wireless communication equipment
US9442896B2 (en) * 2014-02-21 2016-09-13 Csr Imaging Us, Lp Universal mobile document viewer with high fidelity, efficient architecture and editing

Patent Citations (24)

* 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
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
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
CN102799654A (en) * 2012-06-29 2012-11-28 新浪网技术(中国)有限公司 Intelligent terminal and document online previewing method and system for intelligent terminal
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
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
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
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
CN111191418A (en) 2020-05-22

Similar Documents

Publication Publication Date Title
CN102326179B (en) For checking the Font processing of the document on web
US8134553B2 (en) Rendering three-dimensional objects on a server computer
KR101740071B1 (en) Utilizing server pre-processing to deploy renditions of electronic documents in a computer network
WO2012048642A1 (en) A method and system of web-based document service
CN110245304B (en) Data sharing method, device and computer readable medium
US20150169944A1 (en) Image evaluation apparatus, image evaluation method, and non-transitory computer readable medium
US20140229533A1 (en) Client-side network page generation
CN113382083B (en) Webpage screenshot method and device
US20120005564A1 (en) Content distribution system and method
US10817646B2 (en) Information processing system and control method therefor
CN112581568B (en) Dynamic poster generation method, device, server and storage medium
CN111897777A (en) Method, device and equipment for processing electronic invoice layout file and storage medium
CN114154000A (en) Multimedia resource publishing method and device
US11526961B2 (en) Information processing method, image processing apparatus, and storage medium that selectively perform upsampling to increase resolution to image data included in album data
CN111191418B (en) Online document processing method and device, electronic equipment and computer storage medium
US20150149586A1 (en) Information processing apparatus, information processing method, and information processing system
WO2023082813A1 (en) Information sharing method and apparatus, electronic device and storage medium
CN111401006A (en) Document playing method, device and system and computer readable storage medium
CN111767492B (en) Picture loading method and device, computer equipment and storage medium
CN116820635A (en) Document block sharing method, device, system and storage medium
CN112528184A (en) Sending method and device of rich text mail, computer equipment and storage medium
CN114065068A (en) Page access control method and device, equipment and storage medium
US20220066810A1 (en) Information processing system and method of controlling information processing system
CN112463280B (en) Image generation method, device, electronic equipment and computer readable storage medium
CN103905493A (en) File storage system and method

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