CN109815445A - A kind of document display method, device, electronic equipment and readable storage medium storing program for executing - Google Patents
A kind of document display method, device, electronic equipment and readable storage medium storing program for executing Download PDFInfo
- Publication number
- CN109815445A CN109815445A CN201711166557.2A CN201711166557A CN109815445A CN 109815445 A CN109815445 A CN 109815445A CN 201711166557 A CN201711166557 A CN 201711166557A CN 109815445 A CN109815445 A CN 109815445A
- Authority
- CN
- China
- Prior art keywords
- document
- reading position
- cloud
- client account
- reading
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Classifications
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D10/00—Energy efficient computing, e.g. low power processors, power management or thermal management
Landscapes
- Information Transfer Between Computers (AREA)
Abstract
The embodiment of the invention provides a kind of document display method, device, electronic equipment and readable storage medium storing program for executing.This method is applied to document and reads client, this method comprises: the document content ident value for being used for unique identification document to be shown is obtained, as target identification value when detecting the open instructions for document to be shown;Obtain the active client account that client is read for logging on to document;Active client account and target identification value are sent to Cloud Server, so that Cloud Server is based on the first mapping table, obtain active client account and the corresponding cloud reading position of target identification value;Receive the cloud reading position that Cloud Server is sent;According to the cloud reading position received, document to be shown is shown.Using the embodiment of the present invention, document can be made to read client when opening document, the document, which reads client, can quickly position document the reading position read to the last time, improve reading efficiency.
Description
Technical field
The present invention relates to document field of display technology, more particularly to a kind of document display method, device, electronic equipment and
Readable storage medium storing program for executing.
Background technique
Currently, user, which reads client often through document, carrys out reading documents, i.e., client is read by document to show
Document.Also, document reads client usually by user installation on different electronic equipments.When user is in a certain electronic equipment
On document read client reading documents after, replace another electronic equipment come when reading with a document, needing manually should
Document is adjusted to last reading position, time-consuming and laborious.
For example, user, which first passes through the document on computer, reads client reading documents a, and read to page 10 of document a
Afterwards, close document a terminates to read.After a period of time, which reads client by the document on mobile phone and opens document a,
At this point, user needs manually to adjust document a to page 10.
Therefore, how a kind of new document displaying scheme is provided, so that document reads client when opening document, it can
Document is quickly positioned to the technical problem for becoming urgently to be resolved to last time reading position.
Summary of the invention
The embodiment of the present invention is designed to provide a kind of document display method, device, electronic equipment and readable storage medium
Document can quickly be positioned the reading position read to the last time so that document reads client when opening document by matter.
In a first aspect, being applied to document the embodiment of the invention provides a kind of document display method and reading client, the party
Method may include:
When detecting the open instructions for document to be shown, obtain in the document for unique identification document to be shown
Hold ident value, as target identification value;
Obtain the active client account that client is read for logging on to document;
Active client account and target identification value are sent to Cloud Server, so that Cloud Server is based on the first mapping
Table obtains active client account and the corresponding cloud reading position of target identification value;Wherein, recording in the first mapping table has:
Corresponding relationship between client account, document content ident value and cloud reading position;Cloud reading position obtained are as follows:
First mapping table record, the login of active client account document reading client the last time shows the aobvious of document to be shown
Show position;
Receive the cloud reading position that Cloud Server is sent;
According to the cloud reading position received, document to be shown is shown.
Optionally, the document content ident value for being used for unique identification document to be shown, the step as target identification value are obtained
Suddenly, may include:
The MD5 value that the document content of document to be shown is calculated using message digest algorithm MD5, the mesh as document to be shown
Mark ident value.
Optionally, may include: the step of display to document to be shown according to the cloud reading position received
Based on the second mapping table, active client account and the corresponding local reading position of target identification value are obtained;Wherein,
There is record in second mapping table: the corresponding relationship between client account, document content ident value and local reading position;Second
Mapping table is stored in the electronic equipment where document reading client;Local reading position obtained are as follows: the second mapping table note
Record, the login of active client account document reads the display position for client the last time showing document to be shown;
Judge whether the local reading position of the cloud reading position received and acquisition is identical;
If not identical, reading position positioning indicating is shown;Wherein, reading position positioning indicating is used to read client for document
The user at end selects: document to be shown being navigated to the received corresponding position of cloud reading position, or, by text to be shown
Shelves navigate to the corresponding position of local reading position obtained;
According to the regioselective operation that user carries out according to reading position positioning indicating, document to be shown is shown.
Optionally, when the regioselective of acquisition operates are as follows: document to be shown is navigated to local reading obtained by selection
When the corresponding position in position, this method can also include:
By active client account, target identification value and local reading position obtained, it is sent to Cloud Server, so that
Cloud Server is based on active client account, target identification value and local reading position obtained, updates the first mapping table.
Optionally, after the step of according to the cloud reading position that receives, being shown to document to be shown, the party
Method can also include:
When receiving the out code for document to be shown, the current reading location of document to be shown is determined;
Current reading location, active client account and target identification value are sent to Cloud Server, so that Cloud Server
Based on active client account, target identification value and current reading location, the first mapping table is updated.
Optionally, after the step of determining the current reading location of document to be shown, this method can also include:
Based on active client account, target identification value and current reading location, update document is read where client
The second mapping table stored in electronic equipment;Wherein, recording in the second mapping table has: client account, document content ident value
Corresponding relationship between local reading position.
Optionally it is determined that the step of current reading location of document to be shown, may include:
When according to receiving the out code for document to be shown, the page number shown by document to be shown is determined to aobvious
Show the current reading location of document;
Or, when according to receiving the out code for document to be shown, the location of cursor in document to be shown, really
The current reading location of fixed document to be shown;
Or, when according to receiving the out code for document to be shown, the first row/Duan Wen shown by document to be shown
Word determines the current reading location of document to be shown.
Second aspect, the embodiment of the invention also provides a kind of document display devices, are applied to document and read client, should
Device may include:
First obtains unit, for obtaining and being used for unique identification when detecting the open instructions for document to be shown
The document content ident value of document to be shown, as target identification value;
Second obtaining unit, for obtaining the active client account for reading client for logging on to document;
First transmission unit, for active client account and target identification value to be sent to Cloud Server, so that cloud takes
Device be engaged in based on the first mapping table, obtains active client account and the corresponding cloud reading position of target identification value;Wherein, first
There is record in mapping table: the corresponding relationship between client account, document content ident value and cloud reading position;It is obtained
Cloud reading position are as follows: it is aobvious that the first mapping table record, the login of active client account document reads client the last time
Show the display position of document to be shown;
Receiving unit, for receiving the cloud reading position of Cloud Server transmission;
Display unit, for being shown to document to be shown according to the cloud reading position received.
Optionally, first obtains unit is specifically used for:
The MD5 value that the document content of document to be shown is calculated using message digest algorithm MD5, the mesh as document to be shown
Mark ident value.
Optionally, the first display unit may include:
First obtains subelement, for being based on the second mapping table, obtains active client account and target identification value is corresponding
Local reading position;Wherein, recording in the second mapping table has: client account, document content ident value and local reading position
Corresponding relationship between setting;Second mapping table is stored in the electronic equipment where document reading client;It reads local obtained
Reading location are as follows: the second mapping table record, the login of active client account document reading client the last time shows to aobvious
Show the display position of document;
First judgment sub-unit, the local reading position of cloud reading position for judging to receive and acquisition whether phase
Together;
First display subelement, the local reading position for working as the cloud reading position received and acquisition be not identical
When, show reading position positioning indicating;Wherein, the user that reading position positioning indicating is used to read client for document selects:
Document to be shown is navigated to the received corresponding position of cloud reading position, is obtained or, document to be shown is navigated to
The corresponding position of local reading position obtained;
Second display subelement, the regioselective for being carried out according to user according to reading position positioning indicating operates, right
Document to be shown is shown.
Optionally, in embodiments of the present invention, which can also include:
Second transmission unit, for when the regioselective operation obtained are as follows: selection, which navigates to document to be shown, to be obtained
Local reading position corresponding position when, by active client account, target identification value and local reading position obtained,
It is sent to Cloud Server, so that Cloud Server is to based on active client account, target identification value and local reading obtained
Position updates the first mapping table.
Optionally, in embodiments of the present invention, which can also include:
Determination unit, for determining the current of document to be shown when receiving the out code for document to be shown
Reading position;
Third transmission unit, for current reading location, active client account and target identification value to be sent to cloud clothes
Business device updates the first mapping table so that Cloud Server is based on active client account, target identification value and current reading location.
Optionally, in embodiments of the present invention, which can also include:
Updating unit, for being based on active client account, mesh after the current reading location for determining document to be shown
Ident value and current reading location are marked, the second mapping table stored in the electronic equipment where document reads client is updated;Its
In, there is record in the second mapping table: the corresponding relationship between client account, document content ident value and local reading position.
Optionally, in embodiments of the present invention, determination unit is specifically used for:
When according to receiving the out code for document to be shown, the page number shown by document to be shown is determined to aobvious
Show the current reading location of document;
Or, when according to receiving the out code for document to be shown, the location of cursor in document to be shown, really
The current reading location of fixed document to be shown;
Or, when according to receiving the out code for document to be shown, the first row/Duan Wen shown by document to be shown
Word determines the current reading location of document to be shown.
The third aspect, the embodiment of the invention also provides a kind of electronic equipment, including processor, communication interface, memory
And communication bus, wherein processor, communication interface, memory complete mutual communication by communication bus;In electronic equipment
Document is installed and reads client;
Memory, for storing computer program;
Processor when for executing the program stored on memory, realizes any one of first aspect embodiment of the method
Method and step.
Fourth aspect, the embodiment of the invention also provides a kind of readable storage medium storing program for executing, readable storage medium storing program for executing is electronic equipment
In readable storage medium storing program for executing, document is installed in electronic equipment and reads client, is stored with computer journey in readable storage medium storing program for executing
Sequence realizes the method and step of any one of first aspect embodiment of the method when computer program is executed by processor.
In embodiments of the present invention, document reads client when detecting the open instructions for document to be shown, can
To obtain the document content ident value of the content for the unique identification document to be shown, and can be by the document content identification value
As target identification value.The active client account that the document reads client is logged on to and it is possible to obtain.Then, it will obtain
The target identification value and active client account obtained is uploaded to Cloud Server.In this way, Cloud Server is receiving target identification value
After active client account, the client account stored in the first mapping table, document content ident value and cloud can use
Corresponding relationship between reading position obtains the target identification value and the corresponding cloud reading position of active client account, and
By the acquisition cloud, reading position is sent to the document and reads client.
In this way, document, which reads client, can receive the cloud reading position of Cloud Server transmission, so as to be based on
The cloud reading position shows the document to be shown.Wherein, due to received cloud reading position are as follows: cloud service
Device record, the login of active client account document reads the display position for client the last time showing the document to be shown
It sets.Therefore, the reading client of the document on any one electronic equipment is logged in using the active client account to read as user
When reading the document to be shown, can be based on the cloud reading position, by the document to be shown position to: using active client
Document reading client the last time that account logs in shows at the display position of the document to be shown, and it is manual not need user
Reading position is adjusted, the experience of user is improved.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below
There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this
Some embodiments of invention for those of ordinary skill in the art without creative efforts, can be with
It obtains other drawings based on these drawings.
Fig. 1 is a kind of flow chart of document display method provided in an embodiment of the present invention;
Fig. 2 is a kind of structural schematic diagram of document display device provided in an embodiment of the present invention;
Fig. 3 is the structural schematic diagram of a kind of electronic equipment provided in an embodiment of the present invention.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete
Site preparation description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on
Embodiment in the present invention, it is obtained by those of ordinary skill in the art without making creative efforts every other
Embodiment shall fall within the protection scope of the present invention.
In order to solve the problems in the existing technology, the embodiment of the invention provides a kind of document display method, device,
Electronic equipment and readable storage medium storing program for executing.
Document display method provided in an embodiment of the present invention is illustrated first below.
Wherein, document involved in the embodiment of the present invention includes but is not limited to: PDF (Portable Document
Format, portable document format) document, word document and PPT (PowerPoint, PowerPoint) document.Correspondingly, document
Read client are as follows: PDF document reads client, word document reads client and PPT document reads client.
Referring to Fig. 1, document display method provided in an embodiment of the present invention is applied to document and reads client, and this method can
To include the following steps:
S101: it when detecting the open instructions for document to be shown, obtains and is used for the unique identification document to be shown
Document content ident value, as target identification value;
S102: the active client account that client is read for logging on to the document is obtained;
S103: being sent to Cloud Server for active client account and target identification value, so that Cloud Server is based on first
Mapping table obtains active client account and the corresponding cloud reading position of target identification value;Wherein, it is recorded in the first mapping table
Have: the corresponding relationship between client account, document content ident value and cloud reading position;Cloud reading position obtained
Are as follows: the first mapping table record, the login of active client account document reads client the last time display document to be shown
Display position;
S104: the cloud reading position that Cloud Server is sent is received;
S105: according to the cloud reading position received, document to be shown is shown.
In embodiments of the present invention, document reads client when detecting the open instructions for document to be shown, can
To obtain the document content ident value of the content for the unique identification document to be shown, and can be by the document content identification value
As target identification value.The active client account that the document reads client is logged on to and it is possible to obtain.Then, it will obtain
The target identification value and active client account obtained is uploaded to Cloud Server.In this way, Cloud Server is receiving target identification value
After active client account, the client account stored in the first mapping table, document content ident value and cloud can use
Corresponding relationship between reading position obtains the target identification value and the corresponding cloud reading position of active client account, and
By the acquisition cloud, reading position is sent to the document and reads client.
In this way, document, which reads client, can receive the cloud reading position of Cloud Server transmission, so as to be based on
The cloud reading position shows the document to be shown.Wherein, due to received cloud reading position are as follows: cloud service
Device record, the login of active client account document reads the display position for client the last time showing the document to be shown
It sets.Therefore, the reading client of the document on any one electronic equipment is logged in using the active client account to read as user
When reading the document to be shown, can be based on the cloud reading position, by the document to be shown position to: using active client
Document reading client the last time that account logs in shows at the display position of the document to be shown, and it is manual not need user
Reading position is adjusted, the experience of user is improved.
It is understood that the document content ident value of the content for the unique identification document to be shown is obtained, as
A kind of implementation of target identification value can be with are as follows: utilizes MD5 (Message-Digest Algorithm5, message digest algorithm
5) come calculate the document to be shown content MD5 value, and using the MD5 value as target identification value.In this way, can be by this
MD5 value carrys out the content of the unique identification document to be shown, it is, it is to be shown to uniquely identify this to can use the MD5 value
Document.
Wherein, when calculated MD5 value is as target identification value, pair that is recorded in first mapping table
Document content ident value in should being related to should be also based on what MD5 algorithm was calculated.In addition, the MD5 value being calculated
It can be what the full content based on the document to be shown was calculated, be also possible to the partial content based on the document to be shown
It is calculated, this is all reasonable.
In another implementation, it also can use SHA (Secure Hash Algorithm, secure hash algorithm),
Or, RIPEMD (RACE Integrity Primitives Evaluation Message Digest, RACE raw integrity
Verification message abstract) scheduling algorithm calculates the digest value of the content of the document to be shown, and using the digest value being calculated as
Target identification value, this is reasonable.
Wherein, when the digest value being calculated using SHA algorithm is as when target identification value, in first mapping table
Document content ident value in the corresponding relationship of record should be also based on what SHA algorithm was calculated.It is calculated when using RIPEMD
When the digest value that method is calculated is as target identification value, in the document in corresponding relationship that is recorded in first mapping table
Holding ident value should be also based on what RIPEMD algorithm was calculated.
In addition, the cloud reading position after the cloud reading position of acquisition, can be sent to document and read by Cloud Server
Read client.To which document is read client and can be carried out according to the cloud reading position received to the document to be shown
Display.
Wherein, according to the cloud reading position, a kind of implementation for being shown to the document to be shown can be with are as follows: text
Shelves read client after receiving the cloud reading position, can be directly corresponding by the cloud reading position of the document to be shown
Content shown.In this manner it is achieved that: it is installed on any electronic equipment when user is logged in using the active client account
Document read client when, document read client the content at the cloud reading position of the document to be shown can be carried out
Display.Even if replacement electronic equipment is read, do not need user yet and manually adjust the document to be shown to show to the last time
The page of reading realizes the synchronous read of polyelectron equipment, improves the reading experience of user.
In another implementation, document reads client in the cloud reading position for receiving Cloud Server transmission
Afterwards, it is also based on the second mapping table, obtains active client account and the corresponding local reading position of target identification value.So
Afterwards, judge whether the local reading position of the cloud reading position received and acquisition is identical.If not identical, reading position is shown
Positioning indicating.According to the regioselective operation that user carries out according to reading position positioning indicating, document to be shown is shown.
Wherein, recording in the second mapping table has: between client account, document content ident value and local reading position
Corresponding relationship.Second mapping table is stored in the electronic equipment where document reading client.Local reading position obtained are as follows:
Second mapping table record, the login of active client account document reading client the last time shows the aobvious of document to be shown
Show position.
In addition, the user that reading position positioning indicating is used to read client for document selects: document to be shown is positioned
To the received corresponding position of cloud reading position, or, document to be shown is navigated to local reading position obtained
Corresponding position;
For example, it is assumed that document to be shown is document a, and the document content ident value of document a is target identification value a, should
The document that document a will be installed in the electronic device is read customer end A and is shown, the current the document that logs in reads customer end A
Client account be denoted as: active client account.Also, the cloud that Cloud Server is sent to the document reading customer end A is read
Read bit is set to page 10.It is page 15 that the document, which reads customer end A by searching for the local reading position that the second mapping table obtains,.
At this point, document is read, customer end A judges the cloud reading position and local reading position is not identical.In the case of this kind, text
Shelves, which read client, can show reading position positioning indicating: selective positioning is to cloud reading position page 10, or selection is fixed
Position is to local reading position page 15.Then, document is read customer end A and can be operated according to the regioselective of user, by document a
It positions to the corresponding page.
Where it is assumed that document reads the regioselective operation that customer end A obtains are as follows: selective positioning to local reading position the
Page 15.At this point, show that user's last time reads customer end A by the document and read page 15 of document a, but due to
The reasons such as network, the reading position are not synchronized to Cloud Server.At this point, document reading customer end A can be by active client
Account, target identification value a and local reading position obtained: page 15, it is sent to Cloud Server.To so that cloud service
Device can be based on active client account, target identification value a and local reading position obtained: page 15, Lai Gengxin first
Mapping table, so that the data stored in the first mapping table are newest reading position data.
In addition, document reads customer end A after showing document a to page 15, user can continue document a
It reads.Assuming that when reading to page 20, user's close document a.It can receive at this point, document reads customer end A for document a
Out code, at this point it is possible to determine document a current reading location: such as page 20.And by current reading location: the 20th
Page, active client account and target identification value a are sent to Cloud Server, so that Cloud Server can be based on existing customer
End account, target identification value a and current reading location: page 20, the first mapping table of Lai Gengxin.In this way, when user is by deserving
Preceding client account logs on to the document installed on another electronic equipment and reads customer end B come when opening the document a, document is read
Customer end B can obtain the current reading location from cloud service: page 20, so as to show the document a to page 20,
It realizes: reading being synchronized to the document a on distinct electronic apparatuses.
Wherein, when document reading customer end A receives the out code for document a, the current reading position of document a is determined
The mode set can be with are as follows:
When according to receiving the out code for document a, the page number shown by document a determines the current reading of document a
Position.Alternatively, the location of cursor, determines working as document a in document a when according to receiving the out code for document a
Preceding reading position.Alternatively, when according to receiving the out code for document a, the first row/section text shown by document a, really
Determine the current reading location of document a.That is, current reading location can use the page number specifically to indicate, can also use up
Position location is marked to indicate, can also be indicated with the first row/section text, be not limited thereto certainly.
It is understood that document reads customer end A when receiving the out code for document a, can also be based on
Active client account, target identification value a and current reading location: page 20, second stored in Lai Gengxin electronic equipment is reflected
Firing table, so that can also save the reading information of the document a: existing customer in the electronic equipment where document reading customer end A
Hold account, target identification value a and current reading location.In this way, when reading information cannot be synchronized to Cloud Server by Network Abnormal,
It can guarantee that the reading information of the document a is not lost.Wherein, recording in the second mapping table has: client account, document content mark
Corresponding relationship between knowledge value and local reading position.
Certainly, the document, which reads client, can not also show reading position positioning indicating, directly determine document to be shown
The position page of the page number rearward into cloud reading position and local reading position, this is also rational.In this way, completely without with
Family is operated manually, and further improves the reading experience of user.
Corresponding to above-mentioned document display method embodiment, the embodiment of the present invention also provides can a kind of document display device.
Referring to fig. 2, document display device provided in an embodiment of the present invention may include:
First obtains unit 201, for when detecting the open instructions for document to be shown, obtaining for uniquely marking
The document content ident value for knowing document to be shown, as target identification value;
Second obtaining unit 202, for obtaining the active client account for reading client for logging on to document;
First transmission unit 203, for active client account and target identification value to be sent to Cloud Server, so that cloud
Server is based on the first mapping table, obtains active client account and the corresponding cloud reading position of target identification value;Wherein,
There is record in one mapping table: the corresponding relationship between client account, document content ident value and cloud reading position;It is obtained
Cloud reading position are as follows: the first mapping table record, that document that active client account logs in reads client is the last
Show the display position of document to be shown;
Receiving unit 204, for receiving the cloud reading position of Cloud Server transmission;
Display unit 205, for being shown to document to be shown according to the cloud reading position received.
In embodiments of the present invention, document reads client when detecting the open instructions for document to be shown, can
To obtain the document content ident value of the content for the unique identification document to be shown, and can be by the document content identification value
As target identification value.The active client account that the document reads client is logged on to and it is possible to obtain.Then, it will obtain
The target identification value and active client account obtained is uploaded to Cloud Server.In this way, Cloud Server is receiving target identification value
After active client account, the client account stored in the first mapping table, document content ident value and cloud can use
Corresponding relationship between reading position obtains the target identification value and the corresponding cloud reading position of active client account, and
By the acquisition cloud, reading position is sent to the document and reads client.
In this way, document, which reads client, can receive the cloud reading position of Cloud Server transmission, so as to be based on
The cloud reading position shows the document to be shown.Wherein, due to received cloud reading position are as follows: cloud service
Device record, the login of active client account document reads the display position for client the last time showing the document to be shown
It sets.Therefore, the reading client of the document on any one electronic equipment is logged in using the active client account to read as user
When reading the document to be shown, can be based on the cloud reading position, by the document to be shown position to: using active client
Document reading client the last time that account logs in shows at the display position of the document to be shown, and it is manual not need user
Reading position is adjusted, the experience of user is improved.
Optionally, in embodiments of the present invention, first obtains unit 201 is specifically used for:
The MD5 value that the document content of document to be shown is calculated using message digest algorithm MD5, the mesh as document to be shown
Mark ident value.
Optionally, in inventive embodiments, display unit 205 may include:
First obtains subelement, for being based on the second mapping table, obtains active client account and target identification value is corresponding
Local reading position;Wherein, recording in the second mapping table has: client account, document content ident value and local reading position
Corresponding relationship between setting;Second mapping table is stored in the electronic equipment where document reading client;It reads local obtained
Reading location are as follows: the second mapping table record, the login of active client account document reading client the last time shows to aobvious
Show the display position of document;
First judgment sub-unit, the local reading position of cloud reading position for judging to receive and acquisition whether phase
Together;
First display subelement, the local reading position for working as the cloud reading position received and acquisition be not identical
When, show reading position positioning indicating;Wherein, the user that reading position positioning indicating is used to read client for document selects:
Document to be shown is navigated to the received corresponding position of cloud reading position, is obtained or, document to be shown is navigated to
The corresponding position of local reading position obtained;
Second display subelement, the regioselective for being carried out according to user according to reading position positioning indicating operates, right
Document to be shown is shown.
Optionally, in inventive embodiments, device can also include:
Second transmission unit, for when the regioselective operation obtained are as follows: the document to be shown is navigated to institute by selection
When the corresponding position of the local reading position of acquisition, by active client account, target identification value and obtained local read
Position is sent to Cloud Server, so that Cloud Server is to based on active client account, target identification value and local obtained
Reading position updates the first mapping table.
Optionally, in inventive embodiments, which can also include:
Determination unit, for determining the current of document to be shown when receiving the out code for document to be shown
Reading position;
Third transmission unit, for current reading location, active client account and target identification value to be sent to cloud clothes
Business device updates the first mapping table so that Cloud Server is based on active client account, target identification value and current reading location.
Optionally, in inventive embodiments, which can also include:
Updating unit, for being based on active client account, mesh after the current reading location for determining document to be shown
Ident value and current reading location are marked, the second mapping table stored in the electronic equipment where document reads client is updated;Its
In, there is record in the second mapping table: the corresponding relationship between client account, document content ident value and local reading position.
Optionally, which is specifically used for:
When according to receiving the out code for document to be shown, the page number shown by document to be shown is determined to aobvious
Show the current reading location of document;
Or, when according to receiving the out code for document to be shown, the location of cursor in document to be shown, really
The current reading location of fixed document to be shown;
Or, when according to receiving the out code for document to be shown, the first row/Duan Wen shown by document to be shown
Word determines the current reading location of document to be shown.
Corresponding to above-mentioned document display method embodiment, the embodiment of the invention also provides a kind of electronic equipment.
Referring to Fig. 3, which includes processor 301, communication interface 302, memory 303 and communication bus 304,
In, processor 301, communication interface 302, memory 303 completes mutual communication by communication bus 304;The electronic equipment
On be equipped with document read client;Memory 303, for storing computer program;
Processor 301 when for executing the program stored on memory 303, realizes any of the above-described document display method
The method and step of embodiment.
In embodiments of the present invention, document reads client when detecting the open instructions for document to be shown, can
To obtain the document content ident value of the content for the unique identification document to be shown, and can be by the document content identification value
As target identification value.The active client account that the document reads client is logged on to and it is possible to obtain.Then, it will obtain
The target identification value and active client account obtained is uploaded to Cloud Server.In this way, Cloud Server is receiving target identification value
After active client account, the client account stored in the first mapping table, document content ident value and cloud can use
Corresponding relationship between reading position obtains the target identification value and the corresponding cloud reading position of active client account, and
By the acquisition cloud, reading position is sent to the document and reads client.
In this way, document, which reads client, can receive the cloud reading position of Cloud Server transmission, so as to be based on
The cloud reading position shows the document to be shown.Wherein, due to received cloud reading position are as follows: cloud service
Device record, the login of active client account document reads the display position for client the last time showing the document to be shown
It sets.Therefore, the reading client of the document on any one electronic equipment is logged in using the active client account to read as user
When reading the document to be shown, can be based on the cloud reading position, by the document to be shown position to: using active client
Document reading client the last time that account logs in shows at the display position of the document to be shown, and it is manual not need user
Reading position is adjusted, the experience of user is improved.
The communication bus that above-mentioned electronic equipment is mentioned can be Peripheral Component Interconnect standard (Peripheral Component
Interconnect, PCI) bus or expanding the industrial standard structure (Extended Industry Standard
Architecture, EISA) bus etc..The communication bus can be divided into address bus, data/address bus, control bus etc..For just
It is only indicated with a thick line in expression, figure, it is not intended that an only bus or a type of bus.
Communication interface is for the communication between above-mentioned electronic equipment and other equipment.
Memory may include random access memory (Random Access Memory, RAM), also may include non-easy
The property lost memory (Non-Volatile Memory, NVM), for example, at least a magnetic disk storage.Optionally, memory may be used also
To be storage device that at least one is located remotely from aforementioned processor.
Above-mentioned processor can be general processor, including central processing unit (Central Processing Unit,
CPU), network processing unit (Network Processor, NP) etc.;It can also be digital signal processor (Digital Signal
Processing, DSP), it is specific integrated circuit (Application Specific Integrated Circuit, ASIC), existing
It is field programmable gate array (Field-Programmable Gate Array, FPGA) or other programmable logic device, discrete
Door or transistor logic, discrete hardware components.
Corresponding to above-mentioned document display method embodiment, the embodiment of the invention also provides a kind of readable storage medium storing program for executing.It should
Readable storage medium storing program for executing is the readable storage medium storing program for executing in electronic equipment, and document is equipped in electronic equipment and reads client, readable to deposit
It is stored with computer program in storage media, realizes that any of the above-described document display method is implemented when computer program is executed by processor
The method and step of example.
In embodiments of the present invention, document reads client when detecting the open instructions for document to be shown, can
To obtain the document content ident value of the content for the unique identification document to be shown, and can be by the document content identification value
As target identification value.The active client account that the document reads client is logged on to and it is possible to obtain.Then, it will obtain
The target identification value and active client account obtained is uploaded to Cloud Server.In this way, Cloud Server is receiving target identification value
After active client account, the client account stored in the first mapping table, document content ident value and cloud can use
Corresponding relationship between reading position obtains the target identification value and the corresponding cloud reading position of active client account, and
By the acquisition cloud, reading position is sent to the document and reads client.
In this way, document, which reads client, can receive the cloud reading position of Cloud Server transmission, so as to be based on
The cloud reading position shows the document to be shown.Wherein, due to received cloud reading position are as follows: cloud service
Device record, the login of active client account document reads the display position for client the last time showing the document to be shown
It sets.Therefore, the reading client of the document on any one electronic equipment is logged in using the active client account to read as user
When reading the document to be shown, can be based on the cloud reading position, by the document to be shown position to: using active client
Document reading client the last time that account logs in shows at the display position of the document to be shown, and it is manual not need user
Reading position is adjusted, the experience of user is improved.
It should be noted that, in this document, relational terms such as first and second and the like are used merely to a reality
Body or operation are distinguished with another entity or operation, are deposited without necessarily requiring or implying between these entities or operation
In any actual relationship or order or sequence.Moreover, the terms "include", "comprise" or its any other variant are intended to
Non-exclusive inclusion, so that the process, method, article or equipment including a series of elements is not only wanted including those
Element, but also including other elements that are not explicitly listed, or further include for this process, method, article or equipment
Intrinsic element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that
There is also other identical elements in process, method, article or equipment including the element.
Each embodiment in this specification is all made of relevant mode and describes, same and similar portion between each embodiment
Dividing may refer to each other, and each embodiment focuses on the differences from other embodiments.Especially for device,
For electronic equipment and readable storage medium storing program for executing embodiment, since it is substantially similar to the method embodiment, so the comparison of description is simple
Single, the relevent part can refer to the partial explaination of embodiments of method.
The foregoing is merely illustrative of the preferred embodiments of the present invention, is not intended to limit the scope of the present invention.It is all
Any modification, equivalent replacement, improvement and so within the spirit and principles in the present invention, are all contained in protection scope of the present invention
It is interior.
Claims (16)
1. a kind of document display method, which is characterized in that be applied to document and read client, which comprises
When detecting the open instructions for document to be shown, obtain in the document of document to be shown described in unique identification
Hold ident value, as target identification value;
Obtain the active client account that client is read for logging on to the document;
The active client account and the target identification value are sent to Cloud Server, so that the Cloud Server is based on the
One mapping table obtains the active client account and the corresponding cloud reading position of the target identification value;Wherein, described
There is record in one mapping table: the corresponding relationship between client account, document content ident value and cloud reading position;It is obtained
Cloud reading position are as follows: the document that first mapping table record, described active client account logs in reads client
The last time shows the display position of the document to be shown;
Receive the cloud reading position that the Cloud Server is sent;
According to the cloud reading position received, the document to be shown is shown.
2. the method according to claim 1, wherein described obtain for document to be shown described in unique identification
Document content ident value, the step of as target identification value, comprising:
The MD5 value that the document content of the document to be shown is calculated using message digest algorithm MD5, as the document to be shown
Target identification value.
3. the method according to claim 1, wherein the cloud reading position that the basis receives, to described
The step of document to be shown is shown, comprising:
Based on the second mapping table, the active client account and the corresponding local reading position of the target identification value are obtained;
Wherein, recording in second mapping table has: the correspondence between client account, document content ident value and local reading position
Relationship;Second mapping table is stored in the electronic equipment where the document reading client;Local reading position obtained
Be set to: the document that the second mapping table record, described active client account logs in reads the display of client the last time
The display position of the document to be shown;
Judge whether the local reading position of the cloud reading position received and acquisition is identical;
If not identical, reading position positioning indicating is shown;Wherein, the reading position positioning indicating is used to read for the document
The user of client selects: the document to be shown being navigated to the received corresponding position of cloud reading position, or, will
The document to be shown navigates to the corresponding position of local reading position obtained;
According to the regioselective operation that user carries out according to the reading position positioning indicating, the document to be shown is shown
Show.
4. according to the method described in claim 3, it is characterized in that, when the regioselective operation obtained are as follows: selection will it is described to
When display document navigates to local reading position obtained corresponding position, the method also includes:
By the active client account, the target identification value and the local reading position obtained, it is sent to described
Cloud Server, so that the Cloud Server is based on the active client account, the target identification value and described obtained
Local reading position updates first mapping table.
5. the method according to claim 1, wherein according to the cloud reading position that receives, to it is described to
After the step of display document is shown, the method also includes:
When receiving the out code for the document to be shown, the current reading location of the document to be shown is determined;
The current reading location, the active client account and the target identification value are sent to the Cloud Server,
So that the Cloud Server is based on the active client account, the target identification value and the current reading location, update
First mapping table.
6. according to the method described in claim 5, it is characterized in that, in the current reading position of the determination document to be shown
After the step of setting, the method also includes:
Based on the active client account, the target identification value and the current reading location, updates the document and read
The second mapping table stored in electronic equipment where client;Wherein, recording in second mapping table has: client account
Number, the corresponding relationship between document content ident value and local reading position.
7. according to the method described in claim 5, it is characterized in that, the current reading location of the determination document to be shown
The step of, comprising:
When according to receiving the out code for the document to be shown, the page number shown by the document to be shown is determined
The current reading location of the document to be shown;
Or, when according to receiving the out code for the document to be shown, position locating for cursor in the document to be shown
It sets, determines the current reading location of the document to be shown;
Or, when according to receiving the out code for the document to be shown, the first row shown by the document to be shown/
Section text, determines the current reading location of the document to be shown.
8. a kind of document display device, which is characterized in that be applied to document and read client, described device includes:
First obtains unit, for obtaining for described in unique identification when detecting the open instructions for document to be shown
The document content ident value of document to be shown, as target identification value;
Second obtaining unit, for obtaining the active client account for reading client for logging on to the document;
First transmission unit, for the active client account and the target identification value to be sent to Cloud Server, so that
The Cloud Server is based on the first mapping table, obtains the active client account and the corresponding cloud of the target identification value is read
Reading location;Wherein, recording in first mapping table has: client account, document content ident value and cloud reading position it
Between corresponding relationship;Cloud reading position obtained are as follows: the first mapping table record, described active client account is stepped on
The document of record reads the display position for client the last time showing the document to be shown;
Receiving unit, the cloud reading position sent for receiving the Cloud Server;
Display unit, for being shown to the document to be shown according to the cloud reading position received.
9. device according to claim 8, which is characterized in that the first obtains unit is specifically used for:
The MD5 value that the document content of the document to be shown is calculated using message digest algorithm MD5, as the document to be shown
Target identification value.
10. device according to claim 8, which is characterized in that first display unit, comprising:
First obtains subelement, for being based on the second mapping table, obtains the active client account and the target identification value
Corresponding local reading position;Wherein, recording in second mapping table has: client account, document content ident value and sheet
Corresponding relationship between ground reading position;The electronics that second mapping table is stored in where the document reads client is set
It is standby;Local reading position obtained are as follows: the document that the second mapping table record, described active client account logs in is read
Reading client the last time shows the display position of the document to be shown;
Whether the local reading position of the first judgment sub-unit, cloud reading position and acquisition for judging to receive is identical;
First display subelement, for showing when the local reading position of the cloud reading position and acquisition that receive is not identical
Show reading position positioning indicating;Wherein, the reading position positioning indicating is used to read user's choosing of client for the document
It selects: the document to be shown being navigated to the received corresponding position of cloud reading position, or, by the document to be shown
Navigate to the corresponding position of local reading position obtained;
Second display subelement, the regioselective for being carried out according to user according to the reading position positioning indicating operates, right
The document to be shown is shown.
11. device according to claim 10, which is characterized in that described device further include:
Second transmission unit, for when the regioselective operation obtained are as follows: selection, which navigates to the document to be shown, to be obtained
Local reading position corresponding position when, by the active client account, the target identification value and described obtained
Local reading position is sent to the Cloud Server, so that the Cloud Server is to based on the active client account, described
Target identification value and the local reading position obtained, update first mapping table.
12. device according to claim 8, which is characterized in that described device further include:
Determination unit, for determining the document to be shown when receiving the out code for the document to be shown
Current reading location;
Third transmission unit, for sending out the current reading location, the active client account and the target identification value
It send to the Cloud Server, so that the Cloud Server is based on the active client account, the target identification value and described
Current reading location updates first mapping table.
13. device according to claim 12, which is characterized in that described device further include:
Updating unit, for being based on the active client account after the current reading location for determining the document to be shown
Number, the target identification value and the current reading location, update and deposited in the electronic equipment where the document reads client
Second mapping table of storage;Wherein, recording in second mapping table has: client account, document content ident value and local are read
Corresponding relationship between reading location.
14. device according to claim 12, which is characterized in that the determination unit is specifically used for:
When according to receiving the out code for the document to be shown, the page number shown by the document to be shown is determined
The current reading location of the document to be shown;
Or, when according to receiving the out code for the document to be shown, position locating for cursor in the document to be shown
It sets, determines the current reading location of the document to be shown;
Or, when according to receiving the out code for the document to be shown, the first row shown by the document to be shown/
Section text, determines the current reading location of the document to be shown.
15. a kind of electronic equipment, which is characterized in that including processor, communication interface, memory and communication bus, wherein processing
Device, communication interface, memory complete mutual communication by communication bus;Document is installed in the electronic equipment and reads visitor
Family end;
Memory, for storing computer program;
Processor when for executing the program stored on memory, realizes method and step as claimed in claim 1 to 7.
16. a kind of readable storage medium storing program for executing, which is characterized in that the readable storage medium storing program for executing is the readable storage medium in electronic equipment
Matter is equipped with document in the electronic equipment and reads client, is stored with computer program in the readable storage medium storing program for executing, described
Method and step as claimed in claim 1 to 7 is realized when computer program is executed by processor.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711166557.2A CN109815445B (en) | 2017-11-21 | 2017-11-21 | Document display method and device, electronic equipment and readable storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711166557.2A CN109815445B (en) | 2017-11-21 | 2017-11-21 | Document display method and device, electronic equipment and readable storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109815445A true CN109815445A (en) | 2019-05-28 |
CN109815445B CN109815445B (en) | 2023-06-23 |
Family
ID=66600412
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201711166557.2A Active CN109815445B (en) | 2017-11-21 | 2017-11-21 | Document display method and device, electronic equipment and readable storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109815445B (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111753505A (en) * | 2019-09-30 | 2020-10-09 | 北京沃东天骏信息技术有限公司 | Document processing method, document processing device, server and storage medium |
CN112001151A (en) * | 2020-08-10 | 2020-11-27 | 青岛海尔科技有限公司 | Method, device and equipment for document display |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102855226A (en) * | 2012-08-21 | 2013-01-02 | 广州市渡明信息技术有限公司 | Synchronous reading method, reading equipment and server |
CN103167008A (en) * | 2011-12-19 | 2013-06-19 | 方正国际软件(北京)有限公司 | Method of multi-terminal synchronous reading |
CN103634281A (en) * | 2012-08-24 | 2014-03-12 | 腾讯科技(深圳)有限公司 | Bookmark synchronization method and client and server for bookmark synchronization |
CN103888531A (en) * | 2014-03-20 | 2014-06-25 | 小米科技有限责任公司 | Reading position synchronization method and reading position obtaining method and device |
CN104104711A (en) * | 2013-04-15 | 2014-10-15 | 腾讯科技(深圳)有限公司 | Reading history processing method and device |
-
2017
- 2017-11-21 CN CN201711166557.2A patent/CN109815445B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103167008A (en) * | 2011-12-19 | 2013-06-19 | 方正国际软件(北京)有限公司 | Method of multi-terminal synchronous reading |
CN102855226A (en) * | 2012-08-21 | 2013-01-02 | 广州市渡明信息技术有限公司 | Synchronous reading method, reading equipment and server |
CN103634281A (en) * | 2012-08-24 | 2014-03-12 | 腾讯科技(深圳)有限公司 | Bookmark synchronization method and client and server for bookmark synchronization |
CN104104711A (en) * | 2013-04-15 | 2014-10-15 | 腾讯科技(深圳)有限公司 | Reading history processing method and device |
CN103888531A (en) * | 2014-03-20 | 2014-06-25 | 小米科技有限责任公司 | Reading position synchronization method and reading position obtaining method and device |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111753505A (en) * | 2019-09-30 | 2020-10-09 | 北京沃东天骏信息技术有限公司 | Document processing method, document processing device, server and storage medium |
CN111753505B (en) * | 2019-09-30 | 2024-10-22 | 北京沃东天骏信息技术有限公司 | Document processing method, device, server and storage medium |
CN112001151A (en) * | 2020-08-10 | 2020-11-27 | 青岛海尔科技有限公司 | Method, device and equipment for document display |
CN112001151B (en) * | 2020-08-10 | 2023-12-19 | 青岛海尔科技有限公司 | Method, device and equipment for displaying document |
Also Published As
Publication number | Publication date |
---|---|
CN109815445B (en) | 2023-06-23 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104703125B (en) | Information recommendation method, device and terminal based on instant messaging | |
CN101061475B (en) | Maintaining time-date information for syncing low fidelity devices | |
JP2018182725A5 (en) | ||
CN106302829A (en) | A kind of information access method, device and server | |
CN107562372B (en) | Electronic equipment, data management method thereof and computer readable storage medium | |
CN112543210B (en) | Document sharing method, device, terminal, sharing server and storage medium | |
CN109598131A (en) | A kind of file upload, method for down loading, device, electronic equipment and storage medium | |
US20070260807A1 (en) | Address information managing system, management apparatus, processing apparatus and address book updating method | |
CN103220352A (en) | Terminal, server, file storage system and file storage method | |
CN103841464A (en) | Video information pushing method and device | |
CN109902269A (en) | A kind of document display method, device, electronic equipment and readable storage medium storing program for executing | |
CN103905615A (en) | Short message merging system and method thereof | |
CN109815445A (en) | A kind of document display method, device, electronic equipment and readable storage medium storing program for executing | |
CN103905441A (en) | Data acquisition method and device | |
US20220343274A1 (en) | Data collection system and interface | |
CN102739446A (en) | Method and device for selecting network time protocol (NTP) servers | |
JPWO2009004724A1 (en) | E-mail processing apparatus, e-mail processing method, e-mail processing program, and e-mail processing system | |
CN106358220A (en) | Detection method of abnormal contact person information, device and system | |
JP2018050162A (en) | Fax reception data management device, fax reception data management system and program | |
CN109918439A (en) | Method of data synchronization and its loop detecting method and relevant apparatus of application | |
CN110427557A (en) | Main broadcaster's recommended method, device, electronic equipment and computer readable storage medium | |
CN105653509A (en) | Document processing method and device | |
CN109818851A (en) | A kind of information persistence method, device and electronic equipment | |
CN111880996B (en) | Bare metal data acquisition method, device, equipment and readable storage medium | |
CN103413416A (en) | Intelligent meter reading 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 |