Skip to main content

ng2-pdfjs-viewer

The most comprehensive Angular PDF viewer powered by Mozilla PDF.js

NPM VersionPDF.js VersionAngular SupportMonthly DownloadsTotal DownloadsGitHub Stars

Complete Rewrite in v25.x 🎉

We completely rewrote ng2-pdfjs-viewer from the ground up with modern Angular patterns, strict TypeScript, and PDF.js v5.x integration. The result? A more reliable, feature-rich, and maintainable library.

Why Choose ng2-pdfjs-viewer?

The most mature and reliable Angular PDF viewer solution with continuous updates and long-term support

🚀

Always Up-to-Date

Built on the latest PDF.js v5.3.93 with continuous updates and Angular 20+ compatibility. Stay current with modern web standards.

🏗️

️ Enterprise-Ready

Production-tested architecture with comprehensive error handling, performance optimization, and strict TypeScript support.

🎨

Highly Customizable

Advanced theme system, custom templates, and flexible configuration. Use Angular templates for loading and error states.

📱

Mobile Optimized

Touch-friendly interface with responsive design for all screen sizes.Mobile-first approach ensures great UX everywhere.

High Performance

Event-driven architecture with universal action dispatcher. No polling, timeouts, or defensive programming patterns.

🔧

Developer Friendly

Complete API coverage, comprehensive documentation, and easy integration.19+ methods with consistent Promise-based returns.

Trusted by Millions

Born in 2018 and still going strong with over 7+ million downloads. This battle-tested library has been trusted by developers worldwide for over 8 years, powering thousands of applications.

ng2-pdfjs-viewer in action - showing PDF viewer with sidebar, toolbar, and event feed

Live example showing ng2-pdfjs-viewer with full functionality including sidebar navigation, toolbar controls, and real-time event feed