Angular PDF Viewer Component
The Syncfusion Angular PDF Viewer component enables you to view, annotate, prepare and fill forms, and print PDF files from your web applications.
Getting started . Online demos . Learn more
Trusted by the world's leading companies
Using this package with an AI coding agent
Before generating Syncfusion code, ask your AI coding agent to run the Syncfusion setup using the following prompt:
Set up this project for Syncfusion before generating code. Fetch and follow the official instructions at https://ai.syncfusion.com, then report the detected platform, installed skill pack, MCP status, and any required licensing action.The setup detects your project’s platform and loads the appropriate Syncfusion skill pack. No Syncfusion account or MCP key is required to install or read Syncfusion agent skills.
Platform reference: https://ai.syncfusion.com/angular/llms.txt
Setup
Create an Angular Application
You can use Angular CLI to setup your Angular applications. To install the Angular CLI, use the following command.
npm install -g @angular/cli
Create a new Angular application using the following Angular CLI command.
ng new my-app
cd my-app
ng serve
Adding Syncfusion PDF Viewer package
All Syncfusion Angular packages are available in npmjs.com. To install the Angular PDF Viewer package, use the following command.
ng add @syncfusion/ej2-angular-pdfviewer
The above command does the below configuration to your Angular app.
- Adds
@syncfusion/ej2-angular-pdfviewerpackage and its peer dependencies to yourpackage.jsonfile. - Imports the
PdfViewerModulein your application moduleapp.module.ts. - Registers the Syncfusion UI default theme (material) in the
angular.jsonfile.
This makes it easy to add the Syncfusion Angular PDF Viewer module to your project and start using it in your application.
Adding CSS references for PDF Viewer
Install the styles package from npm using the following command:
npm install @syncfusion/ej2-tailwind3-theme
The Tailwind 3 theme package includes an index.css file that automatically imports all required PDF Viewer styles. Add the required PDF Viewer theme style reference to src/styles.css file.
@import '../node_modules/@syncfusion/ej2-tailwind3-theme/styles/pdfviewer/index.css';
For more themes, see the themes documentation.
Add PDF Viewer component
In src/app/app.component.ts, use <ejs-pdfviewer> selector in the template attribute of the @Component directive to render the Syncfusion Angular PDF Viewer component.
import { Component, ViewEncapsulation, OnInit } from '@angular/core';
import {
PdfViewerComponent,
LinkAnnotationService,
BookmarkViewService,
MagnificationService,
ThumbnailViewService,
ToolbarService,
NavigationService,
TextSearchService,
TextSelectionService,
PrintService,
AnnotationService,
FormFieldsService,
FormDesignerService
} from '@syncfusion/ej2-angular-pdfviewer';
@Component({
selector: 'app-root',
template: `<div class="content-wrapper">
<ejs-pdfviewer id="pdfViewer"
[resourceUrl]='resourcesUrl'
[documentPath]='document'
style="height:640px;display:block">
</ejs-pdfviewer>
</div>`,
encapsulation: ViewEncapsulation.None,
providers: [
LinkAnnotationService,
BookmarkViewService,
MagnificationService,
ThumbnailViewService,
ToolbarService,
NavigationService,
TextSearchService,
TextSelectionService,
PrintService,
AnnotationService,
FormFieldsService,
FormDesignerService
],
})
export class AppComponent implements OnInit {
public resourcesUrl: string =
'https://cdn.syncfusion.com/ej2/31.2.2/dist/ej2-pdfviewer-lib';
public document: string = 'https://cdn.syncfusion.com/content/pdf/pdf-succinctly.pdf';
ngOnInit(): void {
}
}
Supported frameworks
PDF Viewer component is also offered in the following list of frameworks.
JavaScript |
React |
Vue |
ASP.NET Core |
ASP.NET MVC |
|---|
Key features
- View PDF Document - Open and display both the normal and the protected PDF files with AES and RC4 encryption.
- Annotations - Annotate with text markup, shapes, stamps, ink, and sticky notes.
- Form Fields - Form filling and form designing can be done.
- Signature - Hand-written and digital signatures are allowed.
- Toolbar - Built-in-toolbar and custom toolbars to perform user interaction of PDF Viewer functionalities.
- Navigation - Easy navigation with the help of bookmarks, thumbnails, hyperlinks, and table of contents.
- Magnification - Fit to page, fit to width, and automatic (fits to the visible area).
- Search - Search a text easily across the PDF document.
- Core Interactions - Allows scrolling, zooming, panning, selection, and page navigation.
- Print - Print the entire document or a specific page directly from the browser.
- Globalization - Provides inherent support to localize the UI.
Resources
Support
Product support is available through the following mediums.
- Support ticket - Guaranteed Response in 24 hours | Unlimited tickets | Holiday support
- Community forum
- GitHub issues
- Request feature or report bug
- Live chat
Other Popular Angular Components
Explore other popular Syncfusion Angular components curated from UI components, standalone SDKs, and document solution suites.
| Angular DataGrid | Angular Charts | Angular File Manager | Angular Gantt Chart | Angular Diagram |
| Angular Scheduler | Angular DOCX Editor | Angular Spreadsheet Editor | Angular Rich Text Editor | Angular Maps |
Changelog
Check the changelog here. Get minor improvements and bug fixes every week to stay up to date with frequent updates.
License and copyright
This is a commercial product and requires a paid license for possession or use. Syncfusion licensed software, including this component, is subject to the terms and conditions of Syncfusion EULA. To acquire a license for 140+ Angular UI components, you can purchase or start a free 30-day trial.
A free community license is also available for companies and individuals whose organizations have less than $1 million USD in annual gross revenue and five or fewer developers.
Copyright 2026 Syncfusion Inc. All Rights Reserved. The Syncfusion Essential Studio license and copyright applies to this distribution.