PowerPoint Slider in ASP.Net - javascript

I need make a powerpoint slider from uploaded file and display it in web browser, using ASP.Net. I want tool to make it without 3rd party library and I have tried Office Web App like this
<iframe id="previewer" style="width:100%;height:811px;"
src="https://view.officeapps.live.com/op/view.aspx?
src=https://img.labnol.org/di/PowerPoint.ppt
">
</iframe>
But I don't want allow the client to make download for the file or cloning it.

I have done something similar but using AngularJS.
First convert ppt/pptx to pdf's as they are uploaded to server (you will need Powerpoint Interop library - SaveAs method)
Use pdf.js on the html side to display pdf
You can also use a carousel control to help select each individual page on the pdf.
Reason you need to convert to pdf - ppt/pptx is not a browser view-able format

Related

I have requirement to generate HTML to PDF and save the PDF to SharePoint Document Library using Javascript

We have one requirement where we need to generate HTML to PDF and store it on document Library.
So far we are able to generate the HTML to PDF but not able to store it in SharePoint Document Library.
Note: we are using kendo plugin for PDF conversion, Kendo giving SaveAs option to save the PDF locally, our requirement to store the PDF in SharePoint Environment.
Code Snipped:
kendo.drawing.pdf.saveAs(“PDFName”)
If anyone did similar requirement in past Please revert back to me.
We are Interested to achieve the solution with Client side programming. MS flow is not in scope as of now.
You could upload the file to sharepoint library via rest api:
create a file and add it to a folder.
And below is a sample:
How to Upload File in Document Library in SharePoint Using REST API & jQuery

PDF JS Functionality

I have created a HTML project. But my main aim is to display the pdf's on my site so that users can't save or download them is this possible using (https://mozilla.github.io/pdf.js/) viewer? If so how can i do it because i'm trying to output a lot of pdfs and this just seems impossible to do looking at the code.
No, it's not possible to display native pdfs to the user without allowing them to download them. By the nature of http, they will have had to download the pdf data in order for them to be displayed.
However, you could take snapshots of the pdf on the server, and display these to the user as pngs.
There are a number of libraries that will allow you to convert the first page of a pdf to an image, I suggest you start by trying to implement one of those.

Is there any way to display pdf files in browser such that the viewer can only read the file and can't save/download/print the file in any form

I have to integrate pdf files in my PHP web application such that the viewer of the file can not save/download/print the pdf file.
I am finding a way of doing this in any way like using javascript, jquery or straight in PHP or any other way if any.
I think you'd need a custom PDF viewer in your app, like what Google Drive does with images and documents.
I'm not aware of any functionality that allows an app to tell Chrome/Firefox or the registered PDF handler to limit user interaction like you mention.

Running JavaScript code on PDF pages on my domain?

I it possible to run javascript code on for example: mydomain.com/pdf/pdf-example.pdf?
Any ideas how to accomplish this?
My intention is to add live chat code so that we can help customers while they are looking at the PDF
You can use pdf.js to render a PDF file onto a standard HTML page. So instead of linking directly to the PDF file, you would create a new HTML page, where you would embed the pdf.js viewer, as well as any additional custom Javascript. Here is a demo. The downside to pdf.js, is browser support is limited.
Another option is pdfobject, which enables you to embed PDF's within pages. This uses the browsers native PDF viewer for rendering.

How to disable pdf file download option using JQuery?

How to disable pdf download using jquery or javascript.
In my website I am loading some pdf files in iframe. I need to protect my files.
So how can I dissable pdf file download, print those kind of options.
Please help me.
My website created using html. jquery, mysql and php
Since you are delivering pdf file directly into the browser, displayed using Adobe Reader ActiveX, how can it be possible to prevent file download, since the files are displayed after downloaded into your temp directory?
So it is not possible using ANY JavaScript library.
The only way to secure your master PDF files is by creating Images for each page and present those to the user on the web via your own interface (html, flash etc).
You may use ImageMagick along with GhostScript for this.
You may go through www.veryinteractivepeople.com/?p=521
Hope this helps...:)

Categories

Resources