Some test text!

Jul 18 2022

How to View PPTX Documents in an Angular Web App

by Andrey Safonov

Looking for an Angular PPTX web app viewer? This blog describes how to view Microsoft Office documents in an Angular web app using PDFTron’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 PDFTron WebViewer directly converts `DOCX,` `XLSX,` and `PPTX` files using JavaScript, and renders them for viewing dynamically. 

You can also try our

to test your files in WebViewer.

View our full Angular doc viewer demo on

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

,
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 an Angular Web App 

 Step 1 - Get Started 

 After the Angular doc viewer example is running,

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

Code Example for Angular Document Viewer 

WebViewer({
  ...,
  initialDoc: 'https://myserver.com/myfile.pptx',
}, document.getElementById('viewer'));

You can 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

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

, or
create your own UI
by referencing our open-source
UI code
.

Conclusion

The process to add Office document viewing and collaboration to your native npm Angular file browser app is straightforward using the PDFTron WebViewer, a

. The source code for this blog post is available on our
GitHub
page.  

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 View XLSX in a Vue Web App

This blog post describes how to open XLSX documents in a Vue web app and much more with PDFTron WebViewer.

thumbnail

How to View XLSX in an Angular Web App

This article describes how to open XLSX documents in an Angular web app and so much more with PDFTron WebViewer.

thumbnail

How to View PPTX Documents in a Vue Web App

A description of how to open PPTX documents in a Vue web app and so much more with PDFTron WebViewer.

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: Customer Experience and Retaining Control: Boosting Document Automation and Efficiency in Financial Services | Sept 15, 2022 at 11 am PT

PDFTron SDK

The Platform

NEW

© 2022 PDFTron Systems Inc. All rights reserved.

Privacy

Terms of Use