I'm trying to embed a powerpoint presentation in my offline site but fail to find a suitable open source library that can view my pptx file. I want to use a viewer that can view the pptx content and retain the transition etc. of the pptx file. Then detect if the user reach the end of the slide. Thank you for your help guys.
Related
I am using IE 11 for web development. Now in javascript, I do window.msSaveOrOpenBlob(fileBlob), a pop up shows on the button of the page with save and open option.
Now what I want to achieve is that perform click event on open so the file will be open automatically(without user click open).
Here is the case:
User click a link, it should open the associated file with whatever file reader that can open the file. PDF, will be adobe reader, word document will be opened in microsoft word.
Things still works when I click the open button from pop up. I just want to skip this manual click and do it in the code.
I've seen some webpage does this, but can't figure out myself. Need some help.
As far as I know, we can't control the "open or save" prompt using JavaScript. It is the browser behavior.
As a workaround, to the pdf file, I suggest you could try to use the pdf.js plugin to display the pdf file. To the Office documents, you could check the following article to use the Office Web Viewer to view the document.
Office Web Viewer: View Office documents in a browser
Besides, here is an article about displaying (Show) Word, Excel, PowerPoint (PPT) and PDF files in browser web page in ASP.Net, you can also refer to it.
I have some MS Powerpoint slides that i want to display on my website. The problem
is that i don't want the users to download them or embed them or share them.
I have tried using some third party tools like GoogleDrive, PowerpointOnline, SlideShare etc...but all of them have similar issue.
My main concern is that i don't want the users to give the option of download or embed or share. I just want the slides to play on my website.
So my question is :
Is there a way where i can turn off these features (Embed,Download,Share)
in GoogleDrive, PowerpointOnline, SlideShare etc.
OR
If there is no way to solve this issue then can i do something with javascript or jquery to play the Powerpoint slides on my website.
OR
If there is some plugin in wordpress to handle this.
problem is that i don't want the users to download them or embed them or share them
You can't have something on a website and not allow the user to download it. The only way for a user to view anything on a website is for the user to download the resources to their machine. Typically this happens automatically where the browser downloads assets to a temporary location (or if the cache duration is high, a not-so-temporary location).
You may be able to host a different format of the file on your website, such as a series of images, instead of the raw powerpoint slides.
Be aware that anyone could then use those images to recreate the powerpoint deck.
I have ppt file in the href attribute of an anchor tag.If i click on the Anchor tag the file should open in Full screen.I tried by saving the ppt file in different Formats but nothing worked. Please let me know if any way to do that in Html or using Javascript.
Ppt is not an HTML standard so you can't expect to see it in the web page properly, but only if you have a proper viewer installed in the computer, but you can't predict it's behaviour.
Why not export the ppt to HTML and then point a link to it with target="_blank"?
Upload your PowerPoint to Scribd and you can use their API to show it on your website without any add-ons or special software.
I have a PDF (or PPT) document that i want to embed in a website. This would be done using one of the standard plugins available for this. What I want is to get the current active page number from the plugin in the website.
IE. Using javascript, or anything else, use a function that gets the current active page from the plugin. Does anyone know of either:
a) A specific plugin that would allow this.
b) A workaround, or hack to do this.
Thanks.
No, there isn't. The adobe plugin runs in a completely different sandbox and interacts with the browser through a different API.
You could use imagemagick's command "convert" to turn your pdf into image files, displaying them in the browser via JS. You could create a image slideshow where you know which page your visitor is viewing.
I have a PDF embedded in a web page using the following code:
<object id="pdfviewer" data='test_full.pdf#page=1&toolbar=0&statusbar=0&messages=0&navpanes=0'
type='application/pdf'
width='500px'
height='350px'>
The PDF itself is set to open in full screen mode which shows no controls. The user can advance the slides by clicking on the view.
What I'd like to have is some way to trigger that click so that I can advance 2 similar PDF:s side-by-side (one for the actual slideshow and one for the speaker notes). Is this possible to do in javascript and/or jQuery? I have tried using the click()-method but it doesn't get through to the embedded PDF.
Update: Can't find any info on it, so I guess I'm out of luck and have to try a workaround. Am currently juggling 3 embeds of the same pdf (current page, next page and previous page), hiding and showing them and loading more pages as the user clicks around.
I doubt it. Allowing web page scripts to pass input events to the PDF viewer could be a security risk (since the viewer generally has access to system file dialogues via things like Save As).