Summary of the invention
The shortcoming of prior art in view of the above, the object of the present invention is to provide a kind of electronic document display processing method and system, solves the defects such as above-mentioned online electronic document demonstration of the prior art is inconvenient, slow, inefficiency.
For achieving the above object and other relevant objects, the invention provides a kind of electronic document display processing method, comprise: receive and have the electronic document that the terminal device of display proposes and show request, described electronic document shows that request comprises: the demonstration configuration information of described display, area information to be shown, requirement documents information; Be the multiple demonstration views that adapt to described demonstration configuration information by the typesetting electronic document to be shown of described correspondence requirement documents information; According to described area information to be shown by described multiple demonstration views respectively cutting be treated to many groups and be mutually related and show view blocks; Electronic document after treatment cutting is sent to described terminal device; At terminal device, the each group of demonstration view block being associated combined respectively; , shown in the document display region corresponding to described display region information on described display combined multiple demonstration view blocks or multiple demonstration views of combining at terminal device, until described electronic document to be shown is shown complete.
Preferably, described demonstration configuration information comprises: the display sizes of terminal device, monitor resolution, the horizontal screen of display or perpendicular screen display are shown; The range and position of the corresponding described document display region of described area information to be shown on display.
Preferably, described demonstration view block is to be shown in one by one described document display region until demonstrate described demonstration view; Described electronic document display processing method also comprises: in the time showing one by one described demonstration view block, carry out the step that part is refreshed.
Preferably, described electronic document display processing method comprises: judge whether described demonstration view block is blank block, if carry out described transmission to preset format symbol replacement.
Preferably, the page that described demonstration view block is described electronic document to be shown, shows the described page in described document display region one by one, until described electronic document to be shown is shown complete.
For achieving the above object and other relevant objects, the invention provides a kind of electronic document display processing system, comprise: receiver module, have the electronic document that the terminal device of display proposes and show request for receiving, described electronic document shows that request comprises: the demonstration configuration information of described display, area information to be shown, requirement documents information; Type-setting module, for being the multiple demonstration views that adapt to described demonstration configuration information by the typesetting electronic document to be shown of described correspondence requirement documents information; Cutting module, for according to described area information to be shown by described multiple demonstration views respectively cutting be treated to many groups and be mutually related and show view blocks; Delivery module, for being sent to described terminal device by electronic document after treatment cutting; Composite module, for combining the each group of demonstration view block being associated respectively at described terminal device; Display module, for at described terminal device by combined multiple demonstration view blocks or multiple demonstration views of combining, in document display region corresponding to described display region information on described display, shown, until described electronic document to be shown is shown complete.
Preferably, described demonstration configuration information comprises: the display sizes of terminal device, monitor resolution, the horizontal screen of display or perpendicular screen display are shown; The range and position of the corresponding described document display region of described area information to be shown on display.
Preferably, described demonstration view block is to be shown in one by one described document display region until demonstrate described demonstration view; Described electronic document display processing system also comprises: in the time showing one by one described demonstration view block, carry out the step that part is refreshed.
Preferably, described electronic document display processing system comprises: blank replacement module, and for judging whether described demonstration view block is blank block, if carry out described transmission to preset format symbol replacement.
Preferably, the page that described demonstration view block is described electronic document to be shown, shows the described page in described document display region one by one, until described electronic document to be shown is shown complete.
As mentioned above, a kind of electronic document display processing method provided by the invention and system, there is by reception the demonstration configuration information that comprises display that the terminal device of display proposes, area information to be shown, the demonstration request of requirement documents information, be to adapt to the multiple demonstration views that show configuration information by the typesetting electronic document to be shown of corresponding requirement documents information, and by area information to be shown by multiple demonstration views respectively cutting be treated to many groups and be mutually related and show view blocks, then electronic document after treatment cutting is sent to terminal device the each group of demonstration view block being associated combined respectively at terminal device, and then by combined multiple demonstration view blocks, or the multiple demonstration views that combine, on display, in the document display region of correspondence, show to having shown electronic document to be shown, this kind shows after view area blocks of data stream transmits and combines and shows, and do not need to open afterwards as existing first transmission, document shows efficient rapidly, user experiences good.
Embodiment
Below, by specific instantiation explanation embodiments of the present invention, those skilled in the art can understand other advantages of the present invention and effect easily by the disclosed content of this instructions.The present invention can also be implemented or be applied by other different embodiment, and the every details in this instructions also can be based on different viewpoints and application, carries out various modifications or change not deviating under spirit of the present invention.Technical characterictic in following embodiment all can mutually combine in not afoul situation.
Refer to Fig. 1, the invention provides a kind of electronic document display processing method, comprising:
Step S1: receive and have the electronic document that the terminal device of display proposes and show request, described electronic document shows that request comprises: the demonstration configuration information of described display, area information to be shown, requirement documents information; In the present embodiment, described electronic document can be preferably the document of the softwares such as office software WORD, EXCEL, POWERPOINT, the OFFICE of Yongzhong.The electronic document of described terminal device shows that request is by being sent by the application-specific or the browser that are installed in described terminal device.
Step S2: be the multiple demonstration views that adapt to described demonstration configuration information by the typesetting electronic document to be shown of described correspondence requirement documents information; This step is carried out at server end, and the application that can move described electronic document is installed on described server, this application can electronic document to be shown such as OFFICE software carries out typesetting demonstration.
Step S3: according to described area information to be shown by described multiple demonstration views respectively cutting be treated to many groups and be mutually related and show view blocks; In the present embodiment, described association can be that each demonstration view block in same group relative position on former demonstration view is coordinate association, or the mode such as indications that adds mutual coupling at the adjoiner of each demonstration view block of adjacency in cutting all can, those skilled in the art can realize according to the various image processing methods of prior art.
Step S4: electronic document after treatment cutting is sent to described terminal device;
Step S5: the each group of demonstration view block being associated combined respectively at terminal device;
Step S6: at terminal device by combined multiple demonstration view blocks or multiple demonstration views of combining, in document display region corresponding to described display region information on described display, shown, until described electronic document to be shown is shown complete.
Like this, owing to not needing that file to be shown is first downloaded to terminal device, in terminal device, specific software is opened again afterwards, but in the present invention, do not need document itself to transfer to terminal device, but the demonstration view block of multiple demonstration views of the file that directly transmission need to show, can thoroughly solve like this document size independence problem, realize the security that terminal device is opened fast network file and also can have been ensured to a certain extent like this document.In addition, on different terminal devices, show same network documentation, the view consistance that can keep document to show.
In the present embodiment, described demonstration configuration information comprises: the display sizes of terminal device (4 cun of for example mobile phone, 59.7 cun of screens etc., 7.9 cun, 9.7 cun screens of panel computer etc., 11 cun~15 cun of notebook computer etc., or 17 cun~23.6 cun of desktop computer etc.), monitor resolution (monitor resolution such as such as 800*600~1980*1080, or dots per inch DPI), the horizontal screen of display or perpendicular screen display show (be existing display device automatically change horizontal, vertical screen display function according to gravity sensing), the range and position of the corresponding described document display region of described area information to be shown on display, the range and position of described document display region can be determined by the coordinate figure scope of the transverse axis coordinate X at display and ordinate of orthogonal axes Y, and described cutting also can corresponding described coordinate figure scope be determined, both can show with reference to institute's cutting the size of view block, also can be with reference to showing view area block file size, preferably, display processing method of the present invention can increase and judges and show whether view area block file size mates with network transfer speeds, reach best actual displayed efficiency and avoid demonstration not freely to be as the criterion.
Preferably, described demonstration view block is to be shown in one by one described document display region until demonstrate described demonstration view; Described electronic document display processing method also comprises: in the time showing one by one described demonstration view block, carry out the step that part is refreshed, show variation to allow user see.
Preferably, the page that described demonstration view block is described electronic document to be shown, shows the described page in described document display region one by one, until described electronic document to be shown is shown complete.
To sum up, that is to say, described electronic document display processing method comprises numerous embodiments:
As shown in Figure 2 a, if show the single page page that view is electronic document, if described single page pagefile is larger, for example 1M byte, described demonstration block can be on the described page, to divide fragment out, described fragment can be shown one by one, much more each show that one shows that view block can part refreshes to allow user see to show and changes, wherein black part is the state that the demonstration view block of this part not yet shows; Or after being reduced into former demonstration view, terminal device combination shows as shown in Figure 2 b;
Again as shown in Figure 2 c, for example, if show the single page that view is electronic document, and described pagefile size is less, only has the byte of hundreds of k, can be demonstration view block by full page cutting, thereby show one by one the single page until whole electronic document shows complete at terminal device;
For another example shown in 2d, multiple pages compositions that view is electronic document if show, if the file size of described demonstration view is larger, can be equally using single-page as showing the in addition cutting showing at terminal device of view block; Or as shown in Figure 2 e, if whole demonstration view file is little, also can by described be that the demonstration view block of single-page shows after terminal device combination.
Preferably, described electronic document display processing method comprises: judge whether described demonstration view block is blank block, if carry out described transmission transmission to preset format symbol replacement, can save like this view size that needs demonstration, only substantial demonstration view part is shown to user, the white space as shown in Fig. 2 f is black region and is not shown, so can greatly promote the fluency that network remote electronic document shows.
As shown in Figure 3, the invention provides a kind of electronic document display processing system 1, its know-why and above-mentioned electronic document display processing method are roughly the same, and the ins and outs that therefore part is identical are not below repeating; Described electronic document display processing system 1 comprises:receiver module 11, have the electronic document that the terminal device of display proposes and show request for receiving, described electronic document shows that request comprises: the demonstration configuration information of described display, area information to be shown, requirement documents information; Type-setting module 12, for being the multiple demonstration views that adapt to described demonstration configuration information by the typesetting electronic document to be shown of described correspondence requirement documents information;Cutting module 13, for according to described area information to be shown by described multiple demonstration views respectively cutting be treated to many groups and be mutually related and show view blocks;Delivery module 14, for being sent to described terminal device by electronic document after treatment cutting;Composite module 15, for combining the each group of demonstration view block being associated respectively at described terminal device;Display module 16, for at described terminal device by combined multiple demonstration view blocks or multiple demonstration views of combining, in document display region corresponding to described display region information on described display, shown, until described electronic document to be shown is shown complete.
Preferably, described demonstration configuration information comprises: the display sizes of terminal device, monitor resolution, the horizontal screen of display or perpendicular screen display are shown; The range and position of the corresponding described document display region of described area information to be shown on display.
Preferably, described demonstration view block is to be shown in one by one described document display region until demonstrate described demonstration view; Described electronic document display processing system also comprises: in the time showing one by one described demonstration view block, carry out the step that part is refreshed.
Preferably, described electronic document display processing system 1 comprises:blank replacement module 17, and for judging whether described demonstration view block is blank block, if carry out described transmission to preset format symbol replacement.
Preferably, the page that described demonstration view block is described electronic document to be shown, shows the described page in described document display region one by one, until described electronic document to be shown is shown complete.
It should be noted that, electronic document display processing system 1 of the present invention, can realize by software, both can be independent of the server that described terminal device or network connect described terminal device, also can on described terminal device or server, move, maybe the each module assignment in described system 1 jointly can be moved etc. and all can at described server and terminal device.
In sum, a kind of electronic document display processing method provided by the invention and system, there is by reception the demonstration configuration information that comprises display that the terminal device of display proposes, area information to be shown, the demonstration request of requirement documents information, be to adapt to the multiple demonstration views that show configuration information by the typesetting electronic document to be shown of corresponding requirement documents information, and by area information to be shown by multiple demonstration views respectively cutting be treated to many groups and be mutually related and show view blocks, then electronic document after treatment cutting is sent to terminal device the each group of demonstration view block being associated combined respectively at terminal device, and then by combined multiple demonstration view blocks, or the multiple demonstration views that combine, on display, in the document display region of correspondence, show to having shown electronic document to be shown, this kind shows after view area blocks of data stream transmits and combines and shows, and do not need to open afterwards as existing first transmission, document shows efficient rapidly, user experiences good.
Above-described embodiment is illustrative principle of the present invention and effect thereof only, but not for limiting the present invention.Any person skilled in the art scholar all can, under spirit of the present invention and category, modify or change above-described embodiment.Therefore, such as in affiliated technical field, have and conventionally know that the knowledgeable, not departing from all equivalence modifications that complete under disclosed spirit and technological thought or changing, must be contained by claim of the present invention.