Some test text!
Jul 13 2022
by Andrey Safonov
Looking for an Angular DOCX viewer? This blog describes how to view Microsoft Office documents in an Angular file viewer 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
View our full Angular doc viewer demo on
WebViewer supports more than simply viewing Office documents, offering
WebViewer also supports formats like PDF, images,
After the Angular doc viewer example is running, pass the URL, blob, file path, or arrayBuffer to `initialDoc` property in the WebViewer constructor.
WebViewer({
...,
initialDoc: 'https://myserver.com/myfile.docx',
}, document.getElementById('viewer'));
You can also call `loadDocument` with the same parameters.
WebViewer(...)
.then(instance => {
instance.UI.loadDocument('https://myserver.com/myfile.docx', { filename: 'myfile.docx' });
});
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.
To configure the UI, WebViewer comes with a rich set of APIs. For an idea of the vast possibilities, check out the
The process to add Office document viewing and collaboration to your native npm Angular file browser app is straightforward using the PDFTron WebViewer, a
You can also check out other capabilities on our
If you have any questions about PDFTron’s SDK or WebViewer, please
This guide shows you your options to build a Flutter PDF viewer and your potential best path forward towards a professional solution.
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.
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.
PDFTron SDK
COMPANY