Available Now: Explore our latest release with enhanced accessibility and powerful IDP features
By Andrey Safonov | 2022 Jun 23
2 min
Tags
view
pptx
react
Looking for a React PPTX web app viewer? Today, you’ll read how to view Microsoft Office documents in a React web app with Apryse’s WebViewer. Support includes Microsoft Word, Excel, and PowerPoint formats and legacy formats like DOC, XLS, and PPT.
In a few lines of code, you can view files client-side, with no server dependencies, Microsoft Office licenses, or third-party software. Apryse’s WebViewer directly converts DOCX, XLSX, and PPTX files using JavaScript and renders them for viewing dynamically.
You can even try our office demo to test WebViewer with some files.
See the React doc viewer demo on our GitHub page, or visit the documentation for get-started steps and further information on additional functionality.
But WebViewer supports more than just viewing Office documents. It also offers annotation, mail merge on PPTX templates, text editing, page manipulation, redaction, form filling and creation, and more.
Once the React doc viewer example is running, pass the URL, blob, file path, or arrayBuffer to initialDoc
property in WebViewer constructor.
WebViewer({
...,
initialDoc: 'https://myserver.com/myfile.pptx',
}, document.getElementById('viewer'));
You can also call loadDocument
with the same parameters.
WebViewer(...)
.then(instance => {
instance.UI.loadDocument('https://myserver.com/myfile.pptx', { filename: 'myfile.pptx' });
});
You can now run the app via 'npm start'.
To view the npm React file viewer pptx app, navigate to http://localhost:3000/
. The app automatically reloads if you change any of the source files.
If you want to configure the UI, WebViewer comes with a rich set of APIs. To get an idea of the various possibilities, check out the UI customization guide. You can also create your own UI by referencing our open-source UI code.
Adding Office document viewing and collaboration to your native npm React file browser app is straightforward with Apryse’s WebViewer, a JavaScript-based MS Office SDK. Find the source code for this blog post on our GitHub.
You can also check out other capabilities on our showcase.
If you have any questions about Apryse's SDK or WebViewer, please get in touch.
Tags
view
pptx
react
Share this post
PRODUCTS
Enterprise
Small Business
Popular Content