New: Create and edit Word documents with DOCX Editor in WebViewer

How to View PPTX Documents in an Angular Web App

By Andrey Safonov | 2022 Jul 18

Sanity Image
Read time

2 min

Looking for an Angular PPTX web app viewer? This blog describes how to view Microsoft Office documents in an Angular web app using Apryse’s WebViewer. This includes Microsoft Word, Excel, and PowerPoint formats and legacy formats like DOC, XLS, and PPT. 

With just a few lines of code, view files client-side, without server dependencies, Microsoft Office licenses, or third-party software. The Apryse WebViewer directly converts DOCX, XLSX, and PPTX files using JavaScript, and renders them for viewing dynamically.

You can also try our office demo to test your files in WebViewer.

View our full Angular doc viewer demo on GitHub, or visit the documentation for get-started steps and further information on additional functionality.

Additional Functionality 

WebViewer supports more than simply viewing Office documents, offering annotation, mail merge on PPTX templates, text editing, page manipulation, redaction, form filling and creation, and more.

WebViewer also supports formats like PDF, images, videos, and CAD documents.

How to View PPTX in an Angular Web App

Step 1 - Get Started

After the Angular doc viewer example is running, pass the URL, blob, file path, or arrayBuffer to initialDoc property in the WebViewer constructor. 

Code Example for Angular Document Viewer

  initialDoc: '',
}, document.getElementById('viewer'));

You can call loadDocument with the same parameters.

  .then(instance => {
    instance.UI.loadDocument('', { filename: 'myfile.pptx' });

Step 2 - Run the App

Now run the app via 'npm start'.

View the npm Angular file viewer docx app, by navigating to http://localhost:4200/. The app automatically reloads if you change any source files.

A Customizable UI

To configure the UI, WebViewer comes with a rich set of APIs. For an idea of the vast possibilities, check out the UI customization guide, or create your own UI by referencing our open-source UI code.


Adding Office document viewing and collaboration to your native npm Angular file browser app is straightforward using Apryse WebViewer, a JavaScript-based MS Office SDK. The source code for this blog post is available on our GitHub page.

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.

Sanity Image

Andrey Safonov

Director of Product

LinkedIn link

Share this post