Jquery and Powerpoint - javascript

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.

Related

How to open powerpoint file in a browser using javascript

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.

Disable toolbar in PDF Web View Element to disable Download and Print

My issue is that I have to deploy a local server (without internet), so I cannot use Google Doc Viewer in this case. All I want is to restrict the user from download or printing the document. I have tried hiding or removing the toolbar in JS but it is not working out.
You may be able to disable the toolbar somehow, but that isn't good enough to keep users from downloading or printing it anyway, and nothing you can do will be. If a person can see something, they can copy it, no matter what you try to do to stop them (and all trying will do is inconvenience legitimate users). Previous similar questions:
How to prevent downloading images and video files from my website?
disable downloading of image from a html page
https://graphicdesign.stackexchange.com/questions/39462/is-it-possible-to-prevent-download-of-images-when-designing-a-website
Although those talk about images, the exact same reasoning applies to PDFs.

Google Chrome PDF Viewer API

I do have a pdf embeded in to the page. It does work and it has it's own buttons, like print, download, rotate, zoom-in, zoom-out.
Is it possible to control these buttons from javascript? I want to show the pdf, but the buttons for download and print I want to control by myslef, with different design and placements outside of the embeded element.
TO sum up, I want to hide all buttons which is shown to the user from the default pdf viewer, except the page number, and I want to separately create donwload and print button with my own design but with the same functionality.
I've done a little bit of research and I found this: https://bugs.chromium.org/p/chromium/issues/detail?id=135146
which is yet has unknown status. Does it mean the API for Chrome pdf viewer doesnt exist? I couldnt fine any.
Another solution is to integrate PDF.js in my own web app, which is heavy (almost 2.6mb zipped) and time consuming.
Any idea is welcome.

Is there a way to get the current active page from a PDF & PPT viewer embeded in a website

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.

Generating thumbnails of the webpages visited on a client side

I developing an extension - firefox so with this extension i keep track of the pages the user visits and now what i want to do is, i want to be able to popup a thumbnail of the webpage when the user hovers the mouse over the link. i have done that using third party websites for generating thumbnials such as http://images.websnapr.com. I was wondering if there was anyway i could do it on clientside without having to use third party website.
Any suggestions?
You can also just use firefox's own canvas. Look here for an example :
http://fixunix.com/mozilla/408090-firefox-page-capture-image-need-minor-tweaks-autochosen.html
i would recommend you to look at the screengrab extension, which does just that:
https://addons.mozilla.org/en-US/firefox/addon/1146
(i think it uses java as underlying layer)

Categories