API reference
Every TruPDF package is published under the @trupdf/* scope. The
rolled-up bundle @trupdf/viewer re-exports every public surface
below — typical hosts only add one dependency.
Core surfaces
- @trupdf/sdk — framework-agnostic entry point, EventBus, plugin API.
- @trupdf/core — viewer engine + UI components.
- @trupdf/annotations — annotation engine, XFDF, the interactive annotation canvas, tools.
- @trupdf/forms — AcroForm / static XFA, FDF / XFDF data, sandboxed JS engine.
Viewing & 3D
- @trupdf/threed — 3D annotation detection (U3D / PRC) + poster rendering.
Services
- @trupdf/converter — conversion microservice client + server.
- @trupdf/ocr — the TruPDF OCR engine (WASM, runs fully in-browser).
- @trupdf/collaboration — WebSocket real-time sync.
Sensitive ops
- @trupdf/security — DRM, redaction, watermark.
- @trupdf/signature — sign + verify.
- @trupdf/compare — text + visual diff.
Editing & AI
- @trupdf/content-edit — content-stream rewrites.
- @trupdf/ai — AI engine + providers.
Cross-cutting
- @trupdf/licensing — license lifecycle.
- @trupdf/i18n — locale runtime.
- @trupdf/a11y — accessibility helpers.