CN109933382B - Online ppt file preview tool based on owa service - Google Patents
Online ppt file preview tool based on owa service Download PDFInfo
- Publication number
- CN109933382B CN109933382B CN201910181189.1A CN201910181189A CN109933382B CN 109933382 B CN109933382 B CN 109933382B CN 201910181189 A CN201910181189 A CN 201910181189A CN 109933382 B CN109933382 B CN 109933382B
- Authority
- CN
- China
- Prior art keywords
- ppt
- owa
- service
- preview tool
- preview
- 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.)
- Expired - Fee Related
Links
- 230000003993 interaction Effects 0.000 claims abstract description 4
- 238000000034 method Methods 0.000 claims description 11
- 238000012544 monitoring process Methods 0.000 claims description 5
- 238000004891 communication Methods 0.000 claims description 3
- 230000008569 process Effects 0.000 claims description 3
- 238000006243 chemical reaction Methods 0.000 description 3
- 230000004048 modification Effects 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000003068 static effect Effects 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000010586 diagram Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 230000009191 jumping Effects 0.000 description 1
- 239000003973 paint Substances 0.000 description 1
- 230000007704 transition Effects 0.000 description 1
Images
Landscapes
- Processing Or Creating Images (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
The invention discloses an online ppt file preview tool based on owa service, and relates to the technical field of online ppt file preview. The invention includes adding a listener to the source code of owa service to listen for a string identifying ppt page number; the preview tool polls the owa service for the number of pages requested for the ppt and saves the number of pages for the ppt locally via a LocalStorage; owa the service transmits operation instructions to the preview tool after listening for the LoadingApplication trigger through the listener. The previewing tool of the invention polls owa service for requesting the page number of the ppt and stores the page number of the ppt locally through LocalStorage, thus realizing the marking of the page of the ppt visited by the user; and after the wa service monitors the LoadingAperture trigger through the monitor, the wa service transmits an operation instruction to the preview tool, the preview tool draws and modifies according to the operation instruction, the barrage function is realized, and the interaction of a user is facilitated.
Description
Technical Field
The invention belongs to the technical field of online ppt file preview, and particularly relates to an online ppt file preview tool based on owa service.
Background
In the prior art, a native ppt file cannot be directly previewed through a browser, and the files which can be directly previewed by the browser at present include simple files such as pictures, html, txt and pdf. Currently, online previewing ppt files on the market generally has the following modes: firstly, converting the ppt file into a picture format and secondly, converting the ppt file into an html format.
The biggest problem of converting the ppt into the picture format is that the ppt animation is lost, so that the very exquisite ppt made by a user can become a very detailed static picture after conversion, and the picture is seriously distorted and unacceptable for the user. Meanwhile, ppt animations may overlap, and the animation playing is very beautiful, but once converted into static pictures, various problems such as ghosting and dislocation occur, and users will not be confused about the experience.
Converting the ppt format into the html format, and replacing the animation in the ppt with the animation in js, does solve the shortage of converting into animation to some extent. But the disadvantages are also quite evident. The principle of transition to html is to replace the animation in ppt with the animation in js. But js animation and ppt animation show are different: more complex slide animations fail to replace with js animations, and some ppt animations, which are simulated with js animations, are severely distorted. Therefore, the conversion from ppt to html is low in power, and various problems such as serious distortion, double images and unsmooth playing with the source file after partial conversion of the unreal lamp surface can be caused.
No matter the ppt file is converted into the picture or the ppt picture is converted into the animation, other problems exist, firstly, the user cannot mark or alter the ppt animation during playing, and other users cannot participate in the ppt animation during playing and only view the ppt animation passively. Meanwhile, the ppt preview tool in the market only provides preview, and does not provide the function of remembering the browsing trace, for example, the user currently sees page 5, and starts from the first page when entering the system to view next time.
To solve the above problems, the present invention is directed to developing an online ppt document preview tool based on owa service; marking and modifying the ppt animation in the playing process when the ppt file is previewed; meanwhile, ghost images and distortion of the ppt animation are avoided.
Disclosure of Invention
The invention aims to provide an online ppt file preview tool based on owa service, which polls owa service for requesting the number of pages of the ppt through the preview tool and stores the number of pages of the ppt locally through LocalStorage, thereby realizing the marking of the pages of the ppt visited by a user; and after monitoring the triggering of the Loading application through the monitor, the wa service transmits an operation instruction to the preview tool, and the preview tool performs drawing and modification according to the operation instruction.
In order to solve the technical problems, the invention is realized by the following technical scheme:
the invention relates to an online ppt file preview tool based on owa service, which comprises the following steps:
adding a listener to the source code of the owa service to listen for a string identifying the ppt page number; the preview tool polls the owa service for the number of pages requested for the ppt and saves the number of pages for the ppt locally via a LocalStorage;
owa, after monitoring the triggering of the Loading application through a listener, the service transmits an operation instruction to the preview tool; the preview tool does the following operations according to the operation instruction:
The method comprises the following steps: creating a Canvas container and obtaining a drawing environment
CanvasRenderingContext2D;
Step two: storing the coordinates of the drawing path points, and putting the coordinate point values into an array;
step three: a component drawing function;
step four: drawing through a Mousendown/mousemove/mourseup event;
step five: drawing a graph; the method comprises the following steps: circular, rectangular, and polygonal;
step six: and recording the drawn note data into a cache.
Preferably, the preview tool further comprises a bullet screen function for the user to interact with the audience during the presentation of the ppt; the bullet screen function is realized through socket communication, and specifically the following is included:
owa the server side listens for a port waiting for a connection request;
the client is connected with the ip and the port to obtain the output stream, the content is output to the server, and the server can obtain the message.
The realization principle of the invention is as follows:
the method is carried out by remembering the page number browsed by the user last time to improve the better synopsis effect of the user: the technical problem encountered when implementing this function is how to obtain the number of pages in the OWA service, but there is only one compiled source code in the OWA service, so it is necessary to add a listener to the source code of the OWA service to listen to a character string and operate the ppt page code to return to the preview tool, what needs to be done in the preview tool is to inform the preview tool of whether the number of pages of the ppt is changed by requesting the service of OWA in a round-robin manner, and after we take the ppt page code, we can store data in a hardware device (usually a hard disk, but also other hardware devices) local to the client through a LocalStorage, and even if the browser is closed, the data still exists, and the next time the browser is opened to access the website, so that the preview tool implements the function of remembering, but when jumping to the last browsed page number, we do not know when the number of pages of the OWA service is loaded And (4) obtaining.
Therefore, the owa service transmits an operation instruction to the preview tool after monitoring the triggering of the Loading application through the listener; and the preview tool modifies and draws according to the operation instruction.
The invention has the following beneficial effects:
according to the invention, a preview tool polls owa service for requesting the page number of the ppt and stores the page number of the ppt locally through LocalStorage, so that the page of the ppt visited by a user is marked; and after the wa service monitors the Loading application trigger through the monitor, the wa service transmits an operation instruction to the preview tool, the preview tool draws and modifies according to the operation instruction, the barrage function is realized, and the interaction of a user is facilitated.
Of course, it is not necessary for any product in which the invention is practiced to achieve all of the above-described advantages at the same time.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings used in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art that other drawings can be obtained according to the drawings without creative efforts.
FIG. 1 is a schematic structural diagram of an online ppt document preview tool based on owa service.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The invention relates to an online ppt file preview tool based on owa service, which comprises the following steps:
referring to FIG. 1, a listener is added to the source code of the owa service to listen for a string identifying the ppt page number; the preview tool polls the owa service for the number of pages requested for the ppt and saves the number of pages for the ppt locally via a LocalStorage;
owa, after monitoring the triggering of the Loading application through a listener, the service transmits an operation instruction to the preview tool; the preview tool does the following operations according to the operation instruction:
the method comprises the following steps: creating a Canvas container and obtaining a drawing environment
CanvasRenderingContext2D;
The concrete implementation is as follows:
<canvas id="canvasInAPerfectWorld"
width="490"height="220"></canvas>context
=document.getElementById('canvasInAPerfectWorld').getContext("2d");
step two: storing the coordinates of the drawing path points, and putting the coordinate point values into an array;
The concrete implementation is as follows:
step three: a component drawing function;
the concrete implementation is as follows:
step four: drawing through a Mousendown/mousemove/mourseup event;
the specific implementation mode is as follows:
the Mousendown event is realized:
the Mousemove event is realized:
the Morseup event is realized:
$('#canvas').mouseup(function(e){
paint=false;
});
step five: drawing a graph; the method comprises the following steps: circular, rectangular, and polygonal;
the concrete implementation is as follows:
the circular realization:
rectangular implementation:
and polygon realization:
step six: and recording the drawn note data into a cache.
The preview tool further comprises a bullet screen function, and the bullet screen function is used for interaction between a user and an audience in the process of demonstrating the ppt; the bullet screen function is realized through socket communication, and specifically the following is included:
owa the server monitors a port waiting for connection request;
the client is connected with the ip and the port to obtain the output stream, the content is output to the server, and the server can obtain the message.
It should be noted that, in the above system embodiment, each included unit is only divided according to functional logic, but is not limited to the above division as long as the corresponding function can be implemented; in addition, specific names of the functional units are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present invention.
In addition, it is understood by those skilled in the art that all or part of the steps in the method for implementing the embodiments described above may be implemented by a program instructing associated hardware, and the corresponding program may be stored in a computer-readable storage medium.
The preferred embodiments of the invention disclosed above are intended to be illustrative only. The preferred embodiments are not intended to be exhaustive or to limit the invention to the precise embodiments disclosed. Obviously, many modifications and variations are possible in light of the above teaching. The embodiments were chosen and described in order to best explain the principles of the invention and the practical application, to thereby enable others skilled in the art to best utilize the invention. The invention is limited only by the claims and their full scope and equivalents.
Claims (1)
1. An online ppt document preview tool based on owa service, comprising:
adding a listener to the source code of the owa service to listen for a string identifying the ppt page number; the preview tool polls owa service for requesting the page number of the ppt and saves the page number of the ppt locally through LocalStorage;
owa, after monitoring the LoadingApplication trigger through the monitor, the service transmits an operation instruction to the preview tool; the preview tool does the following operations according to the operation instruction:
The method comprises the following steps: creating a Canvas container and obtaining a drawing environment
CanvasRenderingContext2D;
Step two: storing the coordinates of the drawing path points, and merging the coordinate point values into an array;
step three: constructing a drawing function;
step four: drawing through a Mousendown/mousemove/mouseup event;
step five: drawing a graph; the method comprises the following steps: circular and polygonal;
step six: recording the drawn note data into a cache;
the preview tool further comprises a bullet screen function, and the bullet screen function is used for interaction between a user and an audience in the process of demonstrating the ppt; the bullet screen function is realized through socket communication, and specifically the following is included:
owa the server side listens for a port waiting for a connection request;
the client side is connected with the appointed server through the ip and the port to obtain the output stream, the content is output to the output stream, and the server obtains the message content.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910181189.1A CN109933382B (en) | 2019-03-11 | 2019-03-11 | Online ppt file preview tool based on owa service |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910181189.1A CN109933382B (en) | 2019-03-11 | 2019-03-11 | Online ppt file preview tool based on owa service |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109933382A CN109933382A (en) | 2019-06-25 |
CN109933382B true CN109933382B (en) | 2022-08-12 |
Family
ID=66986747
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910181189.1A Expired - Fee Related CN109933382B (en) | 2019-03-11 | 2019-03-11 | Online ppt file preview tool based on owa service |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109933382B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111782323B (en) * | 2020-06-29 | 2021-06-29 | 掌阅科技股份有限公司 | Bullet screen obtaining method, computing equipment and computer storage medium |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102455909A (en) * | 2011-02-25 | 2012-05-16 | 中标软件有限公司 | Method for asynchronously loading power point documents |
CN103532704A (en) * | 2013-10-08 | 2014-01-22 | 武汉理工大学 | E-mail IBE (identity based encryption) system aiming at OWA (outlook web access) |
CN104423991A (en) * | 2013-08-26 | 2015-03-18 | 阿里巴巴集团控股有限公司 | Webpage loading and webpage data providing method and device of mobile terminal |
WO2015103568A1 (en) * | 2014-01-03 | 2015-07-09 | White Knight Investments, Inc. | Interactive multimodal display platform |
CN107909874A (en) * | 2017-12-27 | 2018-04-13 | 武汉理工大学 | A kind of multimedia interaction tutoring system and its implementation |
Family Cites Families (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7085770B2 (en) * | 2002-01-31 | 2006-08-01 | International Business Machines Corporation | Method and system for generating a file containing graphical displays from content stored on a computing network location |
US7991850B2 (en) * | 2005-07-28 | 2011-08-02 | Advanced Micro Devices, Inc. | Resilient system partition for personal internet communicator |
CN102118379B (en) * | 2010-06-30 | 2014-06-25 | 卢伟 | Mobile cloud framework based on open wireless architecture (OWA) |
CN105630459A (en) * | 2014-10-25 | 2016-06-01 | 上海未达数码科技有限公司 | Method for converting PPT document to HTML page |
CN105573967A (en) * | 2015-12-04 | 2016-05-11 | 福建亿榕信息技术有限公司 | Multi-format file online browsing method and system |
CN105653597A (en) * | 2015-12-21 | 2016-06-08 | 广州视睿电子科技有限公司 | Method and device for synchronously playing files at multiple terminals |
CN106502506A (en) * | 2016-11-01 | 2017-03-15 | 上海爱数信息技术股份有限公司 | The mask method of document, system and electronic equipment in webpage |
US11017165B2 (en) * | 2017-07-10 | 2021-05-25 | Adaptam Inc. | Methods and systems for connecting a spreadsheet to external data sources with temporal replication of cell blocks |
CN108833950B (en) * | 2018-06-29 | 2021-05-28 | 武汉斗鱼网络科技有限公司 | Barrage message issuing method, server, system and storage medium |
-
2019
- 2019-03-11 CN CN201910181189.1A patent/CN109933382B/en not_active Expired - Fee Related
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102455909A (en) * | 2011-02-25 | 2012-05-16 | 中标软件有限公司 | Method for asynchronously loading power point documents |
CN104423991A (en) * | 2013-08-26 | 2015-03-18 | 阿里巴巴集团控股有限公司 | Webpage loading and webpage data providing method and device of mobile terminal |
CN103532704A (en) * | 2013-10-08 | 2014-01-22 | 武汉理工大学 | E-mail IBE (identity based encryption) system aiming at OWA (outlook web access) |
WO2015103568A1 (en) * | 2014-01-03 | 2015-07-09 | White Knight Investments, Inc. | Interactive multimodal display platform |
CN107909874A (en) * | 2017-12-27 | 2018-04-13 | 武汉理工大学 | A kind of multimedia interaction tutoring system and its implementation |
Also Published As
Publication number | Publication date |
---|---|
CN109933382A (en) | 2019-06-25 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US9563929B1 (en) | Caching of content page layers | |
CN105637472B (en) | The frame of screen content shared system with the description of broad sense screen | |
US9563928B1 (en) | Bandwidth reduction through delivery of hardware-independent graphics commands for portions of content pages | |
CN100407140C (en) | An intercept method of dynamic picture | |
DE102006012976A1 (en) | Data e.g. folder, transferring method for use over e.g. local area network, involves receiving user input over input device that indicates selected data is stored in part of window, where data is transferred from viewer to host computers | |
CN104462534A (en) | Network information sharing method and device | |
CN110309451A (en) | A kind of web preloads the generation method and device of the page | |
WO2022062888A1 (en) | Document editing method and apparatus, computer device and storage medium | |
CN106453572B (en) | Method and system based on Cloud Server synchronous images | |
JP2014524623A (en) | Template file processing method and apparatus | |
KR101774267B1 (en) | Collaborative support apparatus for collaborative editing of electronic documents and operating method thereof | |
CN105975393A (en) | Page display detection method and system | |
JP2023537767A (en) | Image processing method and apparatus, and computer-readable storage medium | |
CN109933382B (en) | Online ppt file preview tool based on owa service | |
CN113158619B (en) | Document processing method and device, computer readable storage medium and computer equipment | |
CN107248947B (en) | Expression processing method and processing device, computer equipment and storage medium | |
CN104572816B (en) | Information processing method and electronic equipment | |
US20180192121A1 (en) | System and methods thereof for displaying video content | |
CN106201461A (en) | Generation method, system and the background server at a kind of interface | |
CN106844763B (en) | A kind of method showed to the Internet media file formula of modifying and its device | |
CN104461893A (en) | Data processing method and data processing device | |
Nakabayashi et al. | An Intelligent Tutoring System on the WWW Supporting Interactive Simulation Environment with a Multimedia Viewer Control Mechanism. | |
US10042521B1 (en) | Emulation of control resources for use with converted content pages | |
US11169666B1 (en) | Distributed content browsing system using transferred hardware-independent graphics commands | |
CN109344217A (en) | A kind of WebGIS implementation method based on JavaScript and SVG |
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 | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20220812 |
|
CF01 | Termination of patent right due to non-payment of annual fee |