A comprehensive, feature-rich Angular PDF viewer component powered by Mozilla's PDF.js, trusted by developers since 2018.
ng2-pdfjs-viewer is an Angular component library that enables developers to embed a full-featured PDF viewer into their Angular applications. It solves the problem of integrating reliable, customizable PDF viewing by leveraging Mozilla's PDF.js engine, providing features like search, navigation, theming, and mobile responsiveness directly within Angular projects.
Angular developers building applications that require embedded PDF viewing, such as enterprise document management systems, e-learning platforms, financial reporting tools, or content management systems.
Developers choose ng2-pdfjs-viewer for its maturity, extensive feature set, and deep Angular integration. It offers a battle-tested, production-ready solution with over 7 million downloads, continuous updates, and comprehensive customization options that outperform basic PDF embedding approaches.
Angular PDF viewer powered by Mozilla's PDF.js
With over 7 million downloads and 8+ years of continuous development, it's battle-tested for production, as emphasized in the README's emphasis on long-term support.
Includes URL validation, CSP compliance, and secure iframe sandboxing with fixed attributes, making it suitable for secure document viewing in corporate environments.
Offers theme systems, CSS custom properties, and Angular template support for loading/error states, allowing complete visual control as detailed in the advanced configuration section.
Provides 24+ events covering all user interactions and state changes, enabling fine-grained control and integration with Angular's event-driven architecture.
Requires manual asset configuration in angular.json and server MIME type settings for .mjs/.ftl files, which can lead to deployment issues if overlooked, as admitted in the installation guide.
Tied specifically to Angular, making it unusable in other frameworks and limiting flexibility for polyglot or future migration projects.
The README lists deprecated properties and methods, indicating breaking changes that require migration effort for users upgrading versions, adding maintenance overhead.
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.