PDFTron is now Apryse. Same great products, new name.
By Andrey Safonov | 2022 Jul 20
3 min
Tags
vue
pptx
view
tutorial
Looking for a Vue PPTX web app viewer? Use this blog to learn how to view Microsoft Office documents in a Vue web app file viewer via Apryse’s WebViewer. WebViewer supports Microsoft Word, Excel, and PowerPoint formats, and other legacy formats such as DOC, XLS, and PPT.
Using only a few lines of code, view files client-side, without any server dependencies, Microsoft Office licenses or third-party software. Apryse’s WebViewer directly converts DOCX, XLSX, and PPTX files with JavaScript and renders them to view dynamically.
Go try out our office demo and test your files with WebViewer!
Or, check out the full Vue doc web app demo on GitHub. You can also visit the documentation for get-started steps and further information on additional functionality.
Once your Vue doc web app 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 Vue 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 vast array of possibilities, check out the UI customization guide. You can also create your own UI by referencing our open-source UI code.
WebViewer supports more than just viewing Office documents. It offers annotation, mail merge on PPTX templates, text editing, page manipulation, redaction, form filling and creation, and much more.
Adding Office document viewing and collaboration to your native npm Vue 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
vue
pptx
view
tutorial
Andrey Safonov
Related Products
Share this post
Popular Content