Skip to content

subedigaurav/ngx-pdf-viewer

Repository files navigation

ngx-pdf-viewer

A lightweight PDF viewer library for angular applications.

Angular TypeScript

Features

  • 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)

Installation

pnpm add @subedigaurav/ngx-pdf-viewer

Or with npm:

npm install @subedigaurav/ngx-pdf-viewer

Usage

Import 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';
}

About

lightweight pdf viewer for angular applications

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors