Some test text!

Jul 20 2022

How to View PPTX Documents in a Vue Web App

by Andrey Safonov

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

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. PDFTron’s WebViewer directly converts `DOCX`, `XLSX`, and `PPTX` files with JavaScript and renders them to view dynamically. 

Go try out our

and test your files with WebViewer! 

Or, check out the full Vue doc web app demo on

You can also visit the documentation
for get-started steps
and further information on additional functionality. 

Additional Functionality 

WebViewer supports more than just viewing Office documents. It offers

,
mail merge
on PPTX templates,
text editing
,
page manipulation
,
redaction
,
form filling and creation
, and much more. 

WebViewer also supports formats like PDF, images,

, and
CAD
documents. 

How to View PPTX in a Vue Web App 

Step 1 - Get Started 

Once your Vue doc web app example is running,

the URL, blob, file path, or arrayBuffer to `initialDoc` property in WebViewer constructor.

Code Example for Vue Document Viewer 

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' });
  });

Step 2 - Run the App

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.

A Customizable UI

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

. You can also
create your own UI
by referencing our open-source
UI code
.

Conclusion

Adding Office document viewing and collaboration to your native npm Vue file browser app is straightforward with PDFTron’s WebViewer, a

. Find the source code for this blog post on our
GitHub

You can also check out other capabilities on our

If you have any questions about PDFTron’s SDK or WebViewer, please

.

Related articles

thumbnail

How to Build a Flutter PDF Viewer

This guide shows you your options to build a Flutter PDF viewer and your potential best path forward towards a professional solution.

thumbnail

How to Embed PDF Files or a PDF Viewer in an HTML Website

This blog discusses the three options for embedding PDF files or a PDF viewer in a website that are available to you, starting with the simplest and ending with the PDF viewing bells and whistles.

thumbnail

How to Extract Text from PDFs Using Python

A tutorial on how to extract text from a PDF using Python and the PDFTron SDK for machine learning.

ANDREY SAFONOV

Head of Product

First a developer then a solution engineer. Now a product team leader and dev experience advocate.

Related Products

Share this post

Upcoming Webinar: PDFTron SDK Tech Review | Nov 29, 2022 at 2 pm ET

PDFTron SDK

The Platform

NEW

© 2022 PDFTron Systems Inc. All rights reserved.

Privacy

Terms of Use