ng2-pdfjs-viewer

website·Indexed 31 days ago

https://angularpdf.com/

A comprehensive Angular PDF viewer component powered by Mozilla PDF.js 6.

Tokens
394
Snippets
0
Records
2
Agent score
5%

What's inside ng2-pdfjs-viewer

  1. Overview of ng2-pdfjs-viewer

    ng2-pdfjs-viewer is a comprehensive Angular PDF viewer component powered by Mozilla PDF.js 6. It provides a single component (<ng2-pdfjs-viewer>) that supports viewing, annotating, signing, filling forms, searching, printing, theming, and read-aloud functionality. It supports Angular versions 10 through 22 and has zero runtime dependencies.
  2. Core capabilities of ng2-pdfjs-viewer

    The ng2-pdfjs-viewer component provides the following feature sets:

    • Annotation & eSign: Support for highlighting, text, drawing, stamps, signatures, and comment editors. Includes getAnnotations() and setAnnotations() for data round-trips.
    • Forms: Two-way [(formData)] AcroForm binding and programmatic field access.
    • Search: search() functionality with result totals, per-page counts, and next/previous navigation.
    • Page Organization: Ability to reorder, delete, extract, and merge pages.
    • AI Assistant: A chat panel that connects to an OpenAI-compatible endpoint with clickable page citations (the library does not make vendor calls itself).
    • Read Aloud: Sentence-by-sentence text-to-speech with in-page highlighting.
    • Custom UI: Ability to replace the toolbar, sidebar, and overlays with custom Angular templates or use chromeless mode.
    • Content Protection: Client-side deterrence to block printing, downloading, and selection, as well as watermarking.
    • Theming: Support for theme objects, CSS variables, and dark-mode page rendering via pageColors.
    • Accessibility: Screen-reader text layer, tagged-PDF structure, and keyboard-accessible chrome (WCAG/EAA compliant).