A lightweight PDF viewer library for angular applications.
- Angular 21+ — Built for modern Angular applications
- Lightweight — Minimal dependencies, optimized bundle size
- Type-safe — Full TypeScript support
- Standalone — Uses Angular standalone components (no NgModules required)
pnpm add @subedigaurav/ngx-pdf-viewerOr with npm:
npm install @subedigaurav/ngx-pdf-viewerImport the standalone component in your Angular application:
import { PdfViewerComponent } from '@subedigaurav/ngx-pdf-viewer';
@Component({
selector: 'app-document-viewer',
standalone: true,
imports: [PdfViewerComponent],
template: `<ngx-pdf-viewer [src]="pdfSrc"></ngx-pdf-viewer>`,
})
export class DocumentViewerComponent {
pdfSrc = 'https://example.com/document.pdf';
}