How to Install Packages for Older PDF Viewer Versions in Angular PDF

14 Aug 20261 minute to read

For Angular versions below 12, use the legacy (ngcc) package of the Angular components. To download the ngcc package, use the commands below.

Add @syncfusion/ej2-angular-pdfviewer@ngcc to the application:

npm install @syncfusion/ej2-angular-pdfviewer@ngcc --save

To reference the ngcc package in the package.json file, append the -ngcc suffix to the package version:

"@syncfusion/ej2-angular-pdfviewer": "20.2.38-ngcc"

If the -ngcc tag is not specified during installation, the Ivy library package will be installed. In View Engine projects this may produce compatibility warnings; use the -ngcc package for Angular versions below 12.