score:0

there's some similar information here.

from what i read it seems like you could either convert the powerpoints to flash and display those, or potentially use some sort of tool like slideshare or a google slides extension.

hope this helps!

score:0

the only possible user-uploaded ppt solution i could find involves uploading a copy of the file to one drive, using microsoft's api: https://docs.microsoft.com/en-us/onedrive/developer/rest-api/concepts/upload?view=odsp-graph-online

you could then create a "sharing link" using the api. the url to the shared file is returned in the api response (https://1drv.ms/...) and anyone using the link can access the document to view it online. see: https://docs.microsoft.com/en-us/onedrive/developer/rest-api/api/driveitem_createlink?view=odsp-graph-online

score:1

it appears that particular microsoft embed link no longer works. one way to make it happen is to store the powerpoint file in a public folder online and create an embed code in powerpoint for the web (https://www.office.com/launch/powerpoint). the embed code should include an <iframe/> tag.

there's more information about the process here: https://support.office.com/en-us/article/embed-a-presentation-in-a-web-page-or-blog-19668a1d-2299-4af3-91e1-ae57af723a60

score:1

if you have backend, it is built with node.js and you will have full control over production server (i.e. able to install software there), you can try to covert to png using ppt-png package. under the hood it uses libreoffice for ppt-pdf conversion and then imagemagick for pdf-png conversion and this is the best approach to task.

score:2

i also had this similar issue. the problem is with this part src=[${linktopptfile}] of your iframe src. remove the box brackets. it should just be:

<iframe
    src={`https://view.officeapps.live.com/op/embed.aspx?src=${linktopptfile}`}
    width="100%"
    height="600px"
    frameborder="0"
>
</iframe>

Related Query

More Query from same tag