CN102799654B - A kind of online method for previewing of the document for intelligent terminal, system and intelligent terminal - Google Patents
A kind of online method for previewing of the document for intelligent terminal, system and intelligent terminal Download PDFInfo
- Publication number
- CN102799654B CN102799654B CN201210226258.4A CN201210226258A CN102799654B CN 102799654 B CN102799654 B CN 102799654B CN 201210226258 A CN201210226258 A CN 201210226258A CN 102799654 B CN102799654 B CN 102799654B
- Authority
- CN
- China
- Prior art keywords
- page
- document
- preview
- intelligent terminal
- script
- 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
Links
Landscapes
- Information Transfer Between Computers (AREA)
Abstract
The invention discloses a kind of online method for previewing of the document for intelligent terminal, system and intelligent terminal.The method includes: receiving the online preview request of document that intelligent terminal sends, the online preview request of described document includes document identification;According to the online preview request of described document, it is assembled in the page preview content of specified quantity page the most forward in document corresponding for described document identification on webpage to form preview webpage, and adds control script to described preview webpage;It is sent to described intelligent terminal by adding the preview webpage after controlling script;Wherein, described control script includes that the page preview content for controlling described document changes the script of display on described intelligent terminal.So, the online preview of the document for intelligent terminal of the present invention can be made to have preferable user friendly, be easier to be applied to various cross-platform each Terminal Type.
Description
Technical field
The present invention relates to the network information technology that intelligent terminal is correlated with, particularly relate to a kind of for intelligent terminal
The online method for previewing of document, system and intelligent terminal.
Background technology
Along with popularizing of the intelligent terminal such as smart mobile phone and panel computer, these intelligent terminal realize literary composition
The demand of the online preview of shelves is increasing.It is real that current document online preview majority is made by Web browser
Existing.The method commonly used is to utilize Flash plug-in unit, implements step and is:
1), various documents are first converted into the document of swf form;
2), use Flash technology to be constructed for the Flash broadcast interface of playblast, and be embedded into net
In Ye;
3), the preview document of swf form is loaded in the Flash broadcast interface made;
4), on intelligent terminal display be loaded with the Flash broadcast interface of preview document of swf form,
Thus realize the online preview of document.
But this mode needs to rely on third party (Flash) plug-in unit.User must install Flash in advance
Player plug-in unit could preview.
Additionally, due to the operating system platforms such as such as iOS (a kind of operating system that Apple provides) are not
Supporting Flash function, therefore, said method may not apply to these intelligent terminal not supporting Flash and grasps
Make system platform.
Then, start that some being independent of for Android and iOS intelligent terminal occur the most on the market
Document online preview solution in Flash, such as Flex Paper(exabyte) Adaptive UI
Product, its function is to utilize HTML5 to replace Flash plug-in unit preview document on webpage, it is achieved step
Suddenly:
1, in advance various documents are converted into the document of pdf form;
2, the program division of Adaptive UI product is deployed in preview server 21;
3, Adaptive Ui receives the pdf document changed in the first step, and uses HTML5 to be correlated with skill
Art controls interface pdf content and preview and is presented on webpage.
But, above-mentioned technology is the product of specific company exploitation, and its program code is underground, developer
The leeway modified as required is little.Can not be perfect for carrying out in place of the imperfection of product.Such as,
All pages such as this technology the most also cannot realize the paging of big document and download, needs have all been downloaded and just can have been opened
Beginning preview, when this causes user to want preview big document, needs to wait for the time longer.
It addition, a kind of similar solution is:
1, convert a document into pdf form in advance, and a PDF reader is installed;
Pdf document is directly embedded web page by the Object object 2, using HTML;
3, when user opens the above page on intelligent terminal, system can automatically be called the PDF of acquiescence and read
Read device and reach the effect of preview.
But, this mode needs to rely on PDF reader, needs additionally to wait reader program during preview
Startup, this can cause responding relatively slow, and Consumer's Experience is poor.
Summary of the invention
One of the technical problem to be solved is the pin needing to provide a kind of user friendly higher
The online method for previewing of document, system and intelligent terminal to intelligent terminal.
In order to solve above-mentioned technical problem, the invention provides a kind of document for intelligent terminal the most pre-
Look at method.The method includes:
Receiving the online preview request of document that intelligent terminal sends, the online preview request of described document includes literary composition
Shelves mark;
According to the online preview request of described document, by finger the most forward in document corresponding for described document identification
The page preview content of determined number page is assembled on webpage to form preview webpage, and to described preview webpage
Add and control script;
It is sent to described intelligent terminal by adding the preview webpage after controlling script;
Wherein, described control script includes that the page preview content for controlling described document is in described intelligence
The script of display is changed in terminal.
Method according to a further aspect in the invention, described change show include update display user the most pre-
Look at content page sequence number, make user's current preview content redirect as specified page, make user current
Preview content jumps at least one of lower one page or page up.
Method according to a further aspect in the invention, described control script also includes in user's preview
Triggering described intelligent terminal in journey or when meeting pre-conditioned and send the script of page request, the described page please
Ask and include described document identification and the page sequence number of the described intelligent terminal page to be obtained.
Method according to a further aspect in the invention, also includes: receive the described of described intelligent terminal transmission
Page request;Send and described document identification and described page to described intelligent terminal according to described page request
The page of the described document that face sequence number is corresponding.
Method according to a further aspect in the invention, described pre-conditioned for one below: when touching
Screen event or frame out event time;When pulling downward on event;When performing page rearwards
During the script that face redirects;When user triggers the function zooming in or out preview content;From described intelligence
Terminal can receive sent preview webpage and rise when have passed through preset time period.
Method according to a further aspect in the invention, described control script also includes for determining that user is current
The script of preview content page sequence number within said document, described script is determined by following process works as
The sequence number of the front page: obtained the page described in the positional distance of user's current preview by screen touch event pre-
Look at the distance on content top;Calculate the business of described distance and the height of page 1, obtain user's current preview
The estimated value of content page sequence number within said document;Based on the page up loaded or lower one page difference
Described estimated value is adjusted by the height apart from described page preview content top, the value after adjusting
As user's current preview content page sequence number within said document.
According to a further aspect in the invention, a kind of document for intelligent terminal online preview system is additionally provided
System.This system includes that server, described server include the first receiver module, assembling module and first
Send module, wherein:
Described first receiver module, for receiving the online preview request of document that intelligent terminal sends, described
The online preview request of document includes document identification;
Described assembling module, for according to the online preview request of described document, described document identification is corresponding
Document in the page preview content of the most forward specified quantity page be assembled on webpage to form preview net
Page, and add control script to described preview webpage;
Described first sending module, for being sent to described intelligence by with the addition of the preview webpage controlling script
Terminal, described control script includes that the page preview content for controlling described document is described intelligent terminal
The script of upper change display.
System according to a further aspect in the invention, described server also includes the second receiver module and second
Sending module, wherein: the control script that described assembling module is added also includes at user's previews
In or trigger described intelligent terminal when meeting pre-conditioned and send the script of page request to described server,
Described page request includes described document identification and the page sequence number of the described intelligent terminal page to be obtained;
Described second receiver module, for receiving the described page request that described intelligent terminal sends;Described second
Sending module, for sending and described document identification and institute to described intelligent terminal according to described page request
State the page of described document corresponding to page sequence number.
System according to a further aspect in the invention, described server includes first server and second service
Device, described first receiver module, described assembling module and described first sending module are arranged at described first
Server, and described second receiver module and described second sending module be arranged at described second service
Device, wherein: described control script also includes for touching in user's previews or when meeting pre-conditioned
Send out intelligent terminal described to described second server and send the script of page request.
System according to a further aspect in the invention, described server also includes the 3rd server, wherein:
Described 3rd server, after the document of various specific formats is converted to specified format, will specify lattice
The document of formula is sent to described second server, and described specified format is directly can present on webpage
Form;Described second server, is additionally operable to the document after storing described 3rd server conversion and document thereof
Mark;Described first server, is additionally operable to receiving the online preview of document that described intelligent terminal sends
During request, obtain from described second server based on the document identification in the online preview request of described document
The page preview content of specified quantity page the most forward in the document that described document identification is corresponding.
According to a further aspect in the invention, a kind of intelligent terminal is additionally provided.This terminal includes:
Sending module, for sending the online preview request of document to server, described request includes document mark
Know;
Terminal receiver module, for receiving the preview net being added with control script that described server returns
Page, is assembled with specified quantity page the most forward in the document that described document identification is corresponding in described preview webpage
Page preview content, described control script includes that the page preview content for controlling described document is in institute
State the script that the change on intelligent terminal shows;
Display module, for utilize the web displaying control of described intelligent terminal show received by described
Preview webpage, based on user's instruction with described control script to the page preview content in described preview webpage
It is changed display.
Intelligent terminal according to a further aspect in the invention, described change show include update display user work as
The page sequence number of front preview content, user's current preview content is made to redirect as specified page, make user
Current preview content jumps at least one of lower one page or page up, wherein: described intelligent terminal is the most aobvious
Show more than one the first control assembly of the instruction carrying out described change display for input, when user clicks on
Or touch described first and control assembly for the moment, by call in described control script with one more than
First controls script corresponding to one of assembly realizes change display;And described intelligent terminal also shows use
It is amplified showing or reducing the second control assembly of the instruction of display in input, when user clicks on or touches
During described second control assembly, amplify by calling the function of the web displaying control of described intelligent terminal
Show or reduce the described preview webpage of display.
Compared with prior art, one or more embodiments of the invention can have the advantage that
The present invention need not to pre-install special plug-in unit and without prerun third party software in the case of real
Now for the online preview of document of intelligent terminal so that the document for intelligent terminal of the present invention is the most pre-
Look at and there is preferable user friendly, be easier to be applied to various cross-platform each Terminal Type.
Other advantages of the present invention, target, and feature will enter to a certain extent in the following description
Row illustrates, and to a certain extent, based on to investigating to those skilled in the art hereafter
Will be apparent from, or can be instructed from the practice of the present invention.The target of the present invention and its
He can pass through description below at advantage, structure specifically noted in claims, and accompanying drawing
Realize and obtain.
Accompanying drawing explanation
Accompanying drawing is for providing a further understanding of the present invention, and constitutes a part for description, with this
Inventive embodiment is provided commonly for explaining the present invention, is not intended that limitation of the present invention.In the accompanying drawings:
Fig. 1 is the stream of the online method for previewing of the document for intelligent terminal according to a first embodiment of the present invention
Cheng Tu;
Fig. 2 is the knot of the online prebrowsing system of the document for intelligent terminal according to a second embodiment of the present invention
Structure schematic diagram;
Fig. 3 illustrates that an intelligent terminal carries out the example of online preview according to the present invention.
Detailed description of the invention
Embodiments of the present invention are described in detail, whereby to the present invention below with reference to drawings and Examples
How application technology means solve technical problem, and the process that realizes reaching technique effect can fully understand
And implement according to this.As long as it should be noted that do not constitute conflict, each embodiment in the present invention and
Each feature in each embodiment can be combined with each other, and the technical scheme formed is all in the protection of the present invention
Within the scope of.
It addition, can be at such as one group of computer executable instructions in the step shown in the flow chart of accompanying drawing
Computer system performs, and, although show logical order in flow charts, but in some feelings
Under condition, can be to be different from the step shown or described by order execution herein.
" document " includes plain text document, photo-document herein, (office) document of handling official business, and PDF
The various file for presenting the content information such as word and/or image to user such as document.
Herein " online preview " refer to by the document content of any of the above form in the way of read-only from far
Journey is presented to user side.Preferably, in now, the control interface of close friend is provided a user with, in the page
Hold (the abbreviation page) scaling, show current page number, page turning and page jump etc..
First embodiment
Below with reference to Fig. 1, a kind of online preview of the document for intelligent terminal according to the present embodiment is described
Each step of method.
Step S110, receives the online preview request of document that intelligent terminal sends, document line preview request bag
Include document identification.Subsequently into step S120.
Step S120, according to the online preview request of document, by the most forward in document corresponding for document identification
The page preview content of specified quantity page is assembled on webpage to form preview webpage, and adds to preview webpage
Add control script, subsequently into step S130.
Step S130, is sent to intelligent terminal by adding the preview webpage after controlling script.
More specifically, add the preview webpage after controlling script to include that the webpages such as such as HTML5 are (corresponding
In preview webpage) and by the control script of the realizations such as such as Javascript, by literary composition corresponding for document identification
The page preview content of specified quantity page the most forward in Dang is assembled on webpage so that webpage is for divide
In the form of page shows the page preview of specified quantity page the most forward in the document that document identification is corresponding
Hold (or be called for short preview content), control script and include change on intelligent terminal and showing for controlling document
Script.So so that user can the page of the most forward specified quantity of preview document.Control script bag
Include and may also include the preview location with user and download the script of respective document page content in advance, hereinafter by right
This describes in detail.
Such as, preview webpage can embed the front page 1 of the document or page 1 and page 2 in advance
Content, so, network traffics are less, and user can read the content of page 1 quickly, thus reduces
Period of reservation of number, improves user friendly.
Additionally, due to only need disposably to be loaded on intelligent terminal by control script, subsequent load is same
Being not required to reload during other pages of one document, the network traffics brought are the least, and this compares and requires user
Install for controlling the document plug-in unit of change display in webpage in advance on intelligent terminal, pdf reads
The mode of device etc., it is to avoid bring the extra trouble installing plug-in unit to user, thus user friend can be improve
Good property.
It should be noted that change display can include the sequence updating the page of display user's current preview content
Number, make user's current preview content redirect as specified page, user's current preview content is jumped to
At least one of lower one page or page up.
More specifically, the function representation that can will jump to prevpage is gotoPrePage (), can be by such as
Lower method realizes:
A) as obtained current page number above, if not being that homepage then uses offset () built-in for JavaScript
With the original position that window.scrollTo () function is rolled to page up.
B) notice terminal can only update the current page number of display.
The function representation that can will jump to the next page is gotoNextPage (), can be real by the following method
Existing:
A) first as obtained current page number the most above, if not being that last page then uses offset () built-in for JavaScript
With the original position that window.scrollTo () function is rolled to lower one page.
B) notice mobile terminal updates and shows current page number.
Additionally, the function representation that notice mobile terminal can update the current page number of display is
TellPhoneCurrPage (), can realize by the following method:
A) agent and the navigator.platform variable utilizing JaVascript judges the hands that requesting party uses
Machine OS Type
B) for the different intelligent terminal difference to the call method of JS function, corresponding method is write,
Current page number (positive integer) is returned to the local development language environment of intelligent terminal.
Preferably, control script to may also include for touching in user's previews or when meeting pre-conditioned
Sending out intelligent terminal and send the script of page request to server, page request includes document identification and intelligence eventually
The page sequence number of the page that end is to be obtained.
For example, control script and can include the script for being handled as follows: touch at user's finger
When (at document) screen or user's finger leave (at document) screen, check current touching the page it
After some pages be the most downloaded, if it is not, calculate need download page number, then trigger intelligence
Energy terminal sends the page request of these pages.Such as, receive from server if intelligent terminal is current
To the content of page 1 to 2, and user is touching page 1, then can include literary composition in this page request
Shelves mark, page sequence number 3 and 4.
Now, it is also possible to include step S140, server receives the page request that intelligent terminal sends, with
And step S150, send the described literary composition corresponding with described document identification and described page sequence number to intelligent terminal
The page of shelves.In the above example, corresponding with described document identification and described page sequence number described literary composition
The page of shelves is the page 3 of document in above-mentioned example and page four.Visible, intelligent terminal is by sending
The online preview request of document to obtain, from server, (the most forward appointment number initialized required for preview
Amount) page and load document former pages, afterwards, in the previews that user is carried out, intelligent terminal
Can to load subsequent page from server by sending page request.
As such, it is possible to the most pre-loaded user is it may be desirable to the page read after a while, thus subtract as far as possible
Few user reads the waiting time of subsequent page, to improve user friendly, it is also possible to save network traffics.
Pre-conditioned can be " when occurring to touch screen event or frame out it should be noted that aforementioned
During event ", " when pulling downward on event ", " when the script of the page jump performed rearwards ",
" when user triggers and zooms in or out the function of preview content " or " from described intelligent terminal for reception to taking
The preview webpage that business device is sent rises and have passed through preset time period " etc..
More specifically, can be preLoad () by the above-mentioned function representation about page prestrain, can be by such as
Lower method realizes:
A) arranging a global variable pages, the page number that record has been downloaded is with corresponding preview picture URL's
Map one by one;
B) a kind of prestrain strategy of definition, such as: only download page 5 after current page;
C) obtain the page number of current preview, according to the prestrain strategy of definition, check in variable pages
Whether specific webpage has been obtained for URL(URL) address, if not having, then use JS
AJAX Asynchronous Request function from storage server 22 download the required page.
Also include for calculating (determination) user current preview content within said document additionally, control script
The script of page sequence number, script can so determine the script of the sequence number of current page:
A) positional distance webpage (the such as HTML5 of user's current preview, is obtained by screen touch event
Webpage) page preview content top (i.e. corresponding to the top of the page preview content of page 1 in document)
Distance, such as, obtained current pre-by built-in for Javascript window.pageYOffset function
Distance h on the positional distance page top look at;
B), calculate to obtain the business of height of h and page 1, thus estimation obtains user's current preview content in institute
State the estimated value of page sequence number in document;
C), according to the height on the page up that loaded or lower one page distance page preview content top to estimation
Value is adjusted (because the height of the page in document has difference), such as: known page 1 height is
200, user touches the HTML5 page position away from top 755, can first estimate user the most pre-
Look at is document page 4, if now page 3 has loaded, and the original position of page 3 is big
In 755, then estimated value will continue to reduce;If the most now page 5 has loaded and initial
Position is less than 755, then estimated value will continue to increase, and the value after adjusting is as user's current preview
The sequence number of document file page, by such adjustment, even if so that possible different the length of every page
In the case of, the page number calculated is the most accurate.
Second embodiment
Below with reference to Fig. 2, a kind of online preview of the document for intelligent terminal according to the present embodiment is described
System.The server of the present embodiment have employed the online method for previewing of document of above-mentioned first embodiment, therefore
In first embodiment, method for previewing online to document is completely suitable for the present embodiment.
The online prebrowsing system of the document for intelligent terminal according to the present embodiment includes server 21, described
Server includes the first receiver module 211, assembles module 212 and the first sending module 213.
More specifically, the first receiver module 211, for receiving the online preview of document that intelligent terminal sends
Request, the online preview request of described document includes document identification.The process of the first receiver module 211 is corresponding
In above-mentioned steps S110, the most reinflated explanation
Assemble module 212, for according to the online preview request of described document, described document identification is corresponding
Document in the page preview content of the most forward specified quantity page be assembled on webpage, to form preview net
Page, then add control script to described preview webpage.Assemble the process of module 212 corresponding to above-mentioned steps
S120, the most reinflated explanation.
First sending module 213, for being sent to described intelligence by with the addition of the preview webpage controlling script
Terminal, described control script includes that the page preview content for controlling described document is described intelligent terminal
The script of upper change display.The process of the first sending module 213 is corresponding to above-mentioned steps S140, the most not
Reinflated explanation.
It is emphasized that the control script assembling module 212 interpolation also includes in user's preview
Triggering intelligent terminal in journey or when meeting pre-conditioned and send the script of page request to server, the page please
Ask and include document identification and the page sequence number of intelligent terminal's page to be obtained.In this case, described
Server also includes the second receiver module 221 and the second sending module 222.Second receiver module 221,
For receiving the page request that described intelligent terminal sends.Second sending module 222, for described intelligence
Energy terminal sends the page of the described document corresponding with described document identification and page sequence number.
Additionally, about change display, pre-conditioned and control the relevant explanation of script etc., see that first is real
Execute example.
Further, in order to preferably carry out load balancing, server could be arranged to more than one server.
For example, it is possible to include that first server (corresponding to preview server 21) and second server are (corresponding to depositing
Storage server 22).
Now, the first receiver module 211, assembling module 212 and the first sending module 213 are arranged at institute
State first server, and described second receiver module 221 and described second sending module 222 are arranged at
Described second server.As such, it is possible to reduce offered load to first server, and can be by by the
One server is set to the server that operational capability is stronger, and second server is set to network throughput energy
The server that power is strong and memory space is bigger, the refinement division of labor, improves systematic function.
Such as, the specified format of employing can be any document lattice that directly can present on html page
Formula (such as PNG lossless compress picture format, JPEG picture form, the document format of HTML form
Deng).First will be by various particular document forms (such as Office document, PDF document, RTF before preview
Document etc.) unify to be converted to targets preview form (specified format), in units of the page in document, each
Page is a pictures or a HTML code section, and each document is a set.Concrete crossover tool
There is a lot of selection available at present, be discussed in detail the most within the scope of the present application.
The preview document changed leaves in storage server 22 (second server), stores server 22
It is based on document and the calling interface of each preview document one PHP of offer is uniquely provided, or
Uniquely can identify providing the calling interface of a PHP for each preview document as document.Calling interface
Form be exemplified below:
http://base URL?Fid=id&page=x
Wherein baseURL is the interface IP address of storage server 22, and fid parameter is the document of wanted preview
Unique mark, page parameter represents page number to be obtained, from the beginning of 1.
Interface return value: use JSON form, comprise:
A). the number of pages altogether of document
B). the current page number returned
C). the URL address of page pictures
Further, it is also possible to the 3rd server arranged in addition to first service and second server is (corresponding to form
Change server 23).After the document of various specific formats being converted to specified format by the 3rd server,
The document of specified format is sent to second server 22, it is intended that form is for directly can present on webpage
Form.The document after the 3rd server 23 is changed and document identification thereof is stored by second server 22.
First server 21 is when receiving the online preview request of document that intelligent terminal sends, based on the document
The document identification that online preview request includes to obtain from second server 22 literary composition that document identification is corresponding
The page of the most forward specified quantity page of shelves.So, refine the division of labor of each server further, thus
Improve the performance of whole system.
Illustrate that the system according to the present embodiment carries out the example of the online preview of document below in conjunction with Fig. 3.
Preview server 21 is responsible for be assembled in from the preview page (png picture) of storage server 22
On one single html page, as the preview webpage of step S120, Javascript is controlled script
Add to this preview webpage, send adding the preview webpage after javascript controls script to intelligence eventually
End.
First, preview server 21 carries out following page structure and layout:
According to number of pages altogether, HTML+CSS is used to be arranged above and below preview picture at web page
On, and set interval and background colour.The preview picture the most do not downloaded uses white space reserved location.
Page effect after completing is similar to see in Adobe Reader reader.
When preview server 21 receive intelligent terminal send the online preview request of document after, can carry out as
Under preview initialization action:
A), send, to storage server 22, the request of preview document page 1 transferred by PHP script;
B), the JSON formatted data that storage server 22 returns is resolved, by PHP according to the " page above
Structure and layout ", assemble and generate preview page.The content that the preview page now completed comprises page 1.
C), Javascipt function interface is added to preview page, for realizing controlling the rolling of preview page,
Scaling, returns the functions such as current page number.
With reference to Fig. 3, in intelligent terminal side after receiving the initial preview page, when meeting pre-conditioned,
The page request of such as AJAX etc. can be triggered by touching screen.This page request can be sent directly to
Storage server 22.Storage server 22, after receiving page request, returns intelligence by JSON
The page that terminal is asked, so can thus realize the loading of subsequent page.
The following detailed description of the intelligent terminal 10 according to the present embodiment.Intelligent terminal 10 includes sending module
11, terminal receiver module 12 and display module 13.Sending module 11, for sending above-mentioned to server
The online preview request of document.Terminal receiver module 12, is added with control foot for receiving from server
Preview webpage after Ben.According to the above-mentioned explanation about server 20, this preview webpage assembles
There are the page preview content of specified quantity page the most forward in document corresponding to described document identification, this control
Script includes that the change on described intelligent terminal of the page preview content for controlling described document shows
Script.Display module 13, is used for showing this preview webpage.This preview webpage can be HTML5 webpage
Deng.Additionally, intelligent terminal 10 be also based on the user such as user's touch button instruction and with control script pair
In preview webpage, the page preview content of display is changed display.
Preferably, intelligent terminal 10 also shows the control assembly that self platform development language realizes.This
Bright control assembly can be button or drop-down menu etc..
More specifically, according to the intelligent terminal 10 in the system of the present embodiment may also include for input into
More than one of the instruction of row change display such as button or drop-down menu etc. first controls assembly, works as user
Click on or touch more than one first control assembly for the moment, by utilizing the exploitation language of intelligent terminal self
Speech calls and realizes change display with one of more than one the first control assembly corresponding script;And intelligence
Can terminal 10 also include being amplified showing or reduce the button of the instruction of display or drop-down dish for input
List waits the second control assembly, when user clicks on or touch second controls assembly, by calling intelligent terminal
The function of web displaying control amplify display or reduce the preview webpage that display server 20 returns.
As such, it is possible to make full use of the development interface that intelligent terminal provides, realize when mobile terminal preview tapping more
The amplification touched and reduce action.
Additionally, the intelligent terminal of the present invention can be iPhone(trade mark), use Andriond platform
Various smart mobile phones, panel computer etc..
Due to not demand to special plug-in unit, and the technology used is cross-platform current techique, institute
With in theory can (i.e. can be direct from Platform native language at any offer Javascript DLL
Call Javascript function) intelligent terminal upper dispose, highly versatile.Additionally, the present invention is also not required to
Will preview in web browser, online preview can be directly embedded in client application.
The present invention is independent of third party's plug-in unit (Flash), it is not necessary to user installation PDF reader.Cause
And it is little to take resource, efficiency is high.
Those skilled in the art should be understood that each module of the above-mentioned present invention or each step can be with logical
Calculating device realize, they can concentrate on single calculating device, or is distributed in multiple
Calculating on the network that device is formed, alternatively, they can be with calculating the executable program code of device
Realize, performed by calculating device it is thus possible to be stored in storing in device, or by it
Be fabricated to each integrated circuit modules respectively, or the multiple modules in them or step are fabricated to list
Individual integrated circuit modules realizes.So, the present invention is not restricted to the combination of any specific hardware and software.
Claims (11)
1. the online method for previewing of the document for intelligent terminal, it is characterised in that including:
Receiving the online preview request of document that intelligent terminal sends, the online preview request of described document includes literary composition
Shelves mark;
According to the online preview request of described document, by finger the most forward in document corresponding for described document identification
The page preview content of determined number page is assembled on webpage to form preview webpage, and to described preview webpage
Add and control script;
It is sent to described intelligent terminal by adding the preview webpage after controlling script;
Wherein, described control script includes that the page preview content for controlling described document is in described intelligence
The script of display is changed in terminal;
Wherein, described control script also includes for determining that user current preview content is within said document
The script of page sequence number, described script determines the sequence number of current page by following process:
Page preview content top described in the positional distance of user's current preview is obtained by screen touch event
Distance;
Calculate the business of described distance and the height of page 1, obtain user's current preview content at described document
In the estimated value of page sequence number;
Based on the page up loaded or lower one page respectively apart from the height pair on described page preview content top
Described estimated value is adjusted, and the value after adjusting is as user's current preview content within said document
Page sequence number.
Method the most according to claim 1, it is characterised in that described change shows to include updating and shows
Show user's current preview content page sequence number, make user's current preview content redirect into specified page,
User's current preview content is jumped at least one of lower one page or page up.
Method the most according to claim 1, it is characterised in that described control script also include for
Trigger described intelligent terminal in user's previews or when meeting pre-conditioned and send the foot of page request
This, described page request includes described document identification and the page sequence of the described intelligent terminal page to be obtained
Number.
Method the most according to claim 3, it is characterised in that also include:
Receive the described page request that described intelligent terminal sends;
Send and described document identification and described page sequence number to described intelligent terminal according to described page request
The page of corresponding described document.
Method the most according to claim 3, it is characterised in that described pre-conditioned for one below:
When occur touch screen event or frame out event time;
When pulling downward on event;
When the script of the page jump performed rearwards;
When user triggers the function zooming in or out preview content;
When have passed through preset time period from described intelligent terminal for reception to the preview webpage sent.
6. the online prebrowsing system of the document for intelligent terminal, it is characterised in that include server,
Described server includes the first receiver module, assembles module and the first sending module, wherein:
Described first receiver module, for receiving the online preview request of document that intelligent terminal sends, described
The online preview request of document includes document identification;
Described assembling module, for according to the online preview request of described document, described document identification is corresponding
Document in the page preview content of the most forward specified quantity page be assembled on webpage to form preview net
Page, and add control script to described preview webpage;
Described first sending module, for being sent to described intelligence by adding the preview webpage after controlling script
Terminal, described control script includes that the page preview content for controlling described document is described intelligent terminal
The script of upper change display;
Wherein, described control script also includes for determining that user current preview content is within said document
The script of page sequence number, described script determines the sequence number of current page by following process:
Page preview content top described in the positional distance of user's current preview is obtained by screen touch event
Distance;
Calculate the business of described distance and the height of page 1, obtain user's current preview content at described document
In the estimated value of page sequence number;
Based on the page up loaded or lower one page respectively apart from the height pair on described page preview content top
Described estimated value is adjusted, and the value after adjusting is as user's current preview content within said document
Page sequence number.
System the most according to claim 6, it is characterised in that described server also includes that second connects
Receive module and the second sending module, wherein:
Described assembling module add control script also include in user's previews or meet preset
Trigger described intelligent terminal during condition and send the script of page request, described page request to described server
Page sequence number including described document identification and the described intelligent terminal page to be obtained;
Described second receiver module, for receiving the described page request that described intelligent terminal sends;
Described second sending module, for sending with described to described intelligent terminal according to described page request
The page of the described document that document identification is corresponding with described page sequence number.
System the most according to claim 7, it is characterised in that described server includes first service
Device and second server, described first receiver module, described assembling module and described first sending module set
It is placed in described first server, and described second receiver module and described second sending module are arranged at institute
State second server, wherein:
Described control script also includes for triggering in user's previews or when meeting pre-conditioned described
Intelligent terminal sends the script of page request to described second server.
System the most according to claim 8, it is characterised in that described server also includes the 3rd clothes
Business device, wherein:
Described 3rd server, after the document of various specific formats is converted to specified format, will refer to
The document of the formula that fixes is sent to described second server, described specified format be can on webpage directly in
Existing form;
Described second server, is additionally operable to the document after storing described 3rd server conversion and document mark thereof
Know;
Described first server, being additionally operable to the online preview of document receiving described intelligent terminal transmission please
When asking, from described second server, obtain institute based on the document identification in the online preview request of described document
State the page preview content of specified quantity page the most forward in the document that document identification is corresponding.
10. an intelligent terminal, it is characterised in that including:
Sending module, for sending the online preview request of document to server, the online preview of described document please
Ask and include document identification;
Terminal receiver module, for receiving the preview webpage being added with control script that described server returns,
Described preview webpage is assembled with the page of specified quantity page the most forward in the document that described document identification is corresponding
Face preview content, described control script includes that the page preview content for controlling described document is in described intelligence
The script of the change display in energy terminal;
Display module, for utilize the web displaying control of described intelligent terminal show received by described
Preview webpage, based on user's instruction with described control script to the page preview content in described preview webpage
It is changed display;
Wherein, described control script also includes for determining that user current preview content is within said document
The script of page sequence number, described script determines the sequence number of current page by following process:
Page preview content top described in the positional distance of user's current preview is obtained by screen touch event
Distance;
Calculate the business of described distance and the height of page 1, obtain user's current preview content at described document
In the estimated value of page sequence number;
Based on the page up loaded or lower one page respectively apart from the height pair on described page preview content top
Described estimated value is adjusted, and the value after adjusting is as user's current preview content within said document
Page sequence number.
11. intelligent terminal according to claim 10, it is characterised in that described change shows and includes
Update the page sequence number of display user's current preview content, user's current preview content is redirected as specifying
The page, user's current preview content is made to jump at least one of lower one page or page up, wherein:
Described intelligent terminal also show for input carry out described change display instruction more than one first
Control assembly, control assembly for the moment, by calling described control when user clicks on or touch described first
Script controls with more than one first one of assembly corresponding script and realizes change display;And
Described intelligent terminal also shows the second control being amplified showing or reducing the instruction of display for input
Assembly processed, when user clicks on or touch described second control assembly, by calling described intelligent terminal's
The function of web displaying control amplifies display or reduces the described preview webpage of display.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210226258.4A CN102799654B (en) | 2012-06-29 | 2012-06-29 | A kind of online method for previewing of the document for intelligent terminal, system and intelligent terminal |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210226258.4A CN102799654B (en) | 2012-06-29 | 2012-06-29 | A kind of online method for previewing of the document for intelligent terminal, system and intelligent terminal |
Publications (2)
Publication Number | Publication Date |
---|---|
CN102799654A CN102799654A (en) | 2012-11-28 |
CN102799654B true CN102799654B (en) | 2016-09-14 |
Family
ID=47198764
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201210226258.4A Active CN102799654B (en) | 2012-06-29 | 2012-06-29 | A kind of online method for previewing of the document for intelligent terminal, system and intelligent terminal |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN102799654B (en) |
Families Citing this family (15)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103870479B (en) * | 2012-12-11 | 2018-01-05 | 腾讯科技(武汉)有限公司 | Webpage display process and device |
CN103353886B (en) * | 2013-06-28 | 2017-11-07 | 优视科技有限公司 | The method and system of preview webpage |
CN104346386B (en) * | 2013-07-31 | 2018-01-02 | 株式会社理光 | Cloud server and image display system |
CN104980474A (en) * | 2014-04-14 | 2015-10-14 | 华南理工大学 | Device and method for realizing mobile handling of documents |
CN105488064B (en) * | 2014-09-19 | 2019-09-20 | 腾讯科技(深圳)有限公司 | The method for previewing and device of webpage font |
CN104217021B (en) * | 2014-09-25 | 2018-10-23 | 北京奇虎科技有限公司 | Reading server, terminal device and its method for showing reading content |
CN105786811B (en) * | 2014-12-17 | 2019-09-27 | 珠海金山办公软件有限公司 | A kind of preparation method and device of lantern slide layout page |
CN104572870B (en) * | 2014-12-22 | 2018-04-20 | 北京京东尚科信息技术有限公司 | The method and apparatus and system of document online reading are provided |
CN104462522A (en) * | 2014-12-23 | 2015-03-25 | 深圳供电局有限公司 | File online preview method, mobile terminal and server |
CN104715188B (en) * | 2015-03-27 | 2019-10-01 | 百度在线网络技术(北京)有限公司 | A kind of application implementation method and device based on binding terminal |
CN106599183A (en) * | 2016-12-13 | 2017-04-26 | 北京致远互联软件股份有限公司 | Document online previewing method and system |
CN108803976A (en) * | 2017-05-05 | 2018-11-13 | 北大方正集团有限公司 | Electronic book methods of exhibiting and equipment |
CN111191418B (en) * | 2019-12-06 | 2024-01-12 | 腾讯科技(深圳)有限公司 | Online document processing method and device, electronic equipment and computer storage medium |
CN111400488B (en) * | 2020-03-19 | 2023-04-25 | 抖音视界有限公司 | Online document information processing method and device, electronic equipment and readable medium |
CN111984174A (en) * | 2020-07-29 | 2020-11-24 | 维沃移动通信有限公司 | Content downloading method and device and electronic equipment |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101146138A (en) * | 2007-10-16 | 2008-03-19 | 吕利勇 | A system, method and mobile terminal for customizing media contents of the mobile phone |
CN101627607A (en) * | 2007-02-26 | 2010-01-13 | 诺基亚公司 | Script-based system to perform dynamic updates to rich media content and services |
Family Cites Families (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US9076147B2 (en) * | 2002-09-18 | 2015-07-07 | Advenix, Corp. | Systems and methods for online marketing and advertising on e-mail systems |
CN101667182B (en) * | 2008-09-05 | 2012-07-25 | 华为技术有限公司 | Method, system and device for performing secondary operation on web pages |
CN102045388B (en) * | 2010-11-25 | 2013-05-29 | 汉王科技股份有限公司 | Online reading device and method |
CN102222086B (en) * | 2011-05-18 | 2014-11-26 | 广州市动景计算机科技有限公司 | Webpage viewing method and webpage viewing device based on mobile terminal as well as mobile terminal |
-
2012
- 2012-06-29 CN CN201210226258.4A patent/CN102799654B/en active Active
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101627607A (en) * | 2007-02-26 | 2010-01-13 | 诺基亚公司 | Script-based system to perform dynamic updates to rich media content and services |
CN101146138A (en) * | 2007-10-16 | 2008-03-19 | 吕利勇 | A system, method and mobile terminal for customizing media contents of the mobile phone |
Also Published As
Publication number | Publication date |
---|---|
CN102799654A (en) | 2012-11-28 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN102799654B (en) | A kind of online method for previewing of the document for intelligent terminal, system and intelligent terminal | |
EP2916243B1 (en) | Method, apparatus, server and system for implementing web application | |
CN106775836B (en) | Interface display method and interface display device | |
EP2919496B1 (en) | Method for realizing downloading of mobile terminal application program and mobile terminal | |
KR101651524B1 (en) | New tab pages and bookmark toolbars in a browser | |
EP2946574B1 (en) | Systems and methods for building and using hybrid mobile applications | |
US20230308504A9 (en) | Method and system of application development for multiple device client platforms | |
CN107741844B (en) | Method and device for generating application installation package | |
KR20140126328A (en) | Using an application cache to update resources of installed applications | |
CN102915366B (en) | A kind of browser loads the method and apparatus of webpage | |
CN103135879B (en) | Display packing, display device and electronic equipment | |
CN109240697A (en) | Calling processing method and device, storage medium | |
CN105160028A (en) | Webpage browsing realizing method and browser realizing system | |
CN102799477A (en) | Resource access method and apparatus | |
KR20170115543A (en) | Desktop Sharing Method and Mobile Terminal | |
US10089283B2 (en) | Mobile enablement of webpages | |
US8977954B2 (en) | Method and system for providing HTML-based application capable of controlling web action and client | |
CN105630310A (en) | Method and device for displaying titles during graph group switching | |
CN104978207A (en) | Method for uploading file, browser and system | |
CN110381192A (en) | A kind of virtual key control method and mobile terminal | |
CN113010766B (en) | Information searching method, device and storage medium | |
KR101835884B1 (en) | Method and apparatus for accessing one or more services of a device | |
CN115905742A (en) | Data display method, device, equipment and storage medium | |
CN102981876B (en) | Picture tool bar window loading method and device | |
KR20130115517A (en) | Method for executing advertisement launcher for smart terminals, and computer-readable recording medium with advertisement launcher program for the same |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant | ||
TR01 | Transfer of patent right |
Effective date of registration: 20230414 Address after: Room 501-502, 5/F, Sina Headquarters Scientific Research Building, Block N-1 and N-2, Zhongguancun Software Park, Dongbei Wangxi Road, Haidian District, Beijing, 100193 Patentee after: Sina Technology (China) Co.,Ltd. Address before: 100080, International Building, No. 58 West Fourth Ring Road, Haidian District, Beijing, 20 floor Patentee before: Sina.com Technology (China) Co.,Ltd. |
|
TR01 | Transfer of patent right |