nutrient-flutter-sdk

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

Nutrient Flutter SDK

Nutrient Flutter SDK

Flutter plugin wrapping the native Nutrient iOS and Android SDKs. Provides PDF viewing, annotation, form filling, and digital signing from a single Dart API, plus a real-time collaboration variant via Nutrient Instant.
一款封装了原生Nutrient iOS和Android SDK的Flutter插件。通过统一的Dart API提供PDF查看、批注、表单填写和数字签名功能,还支持通过Nutrient Instant实现实时协作版本。

Documentation

文档

Single-fetch LLM-curated dumps — prefer these over the human-shaped docs site for API/guide look-ups:
单次获取由LLM整理的文档内容——API/指南查询优先使用这些文档,而非人工维护的文档站点:

Example Repositories

示例仓库

Key Concepts

核心概念

  • Package:
    flutter pub add nutrient_flutter
    . The legacy
    pspdfkit_flutter
    package is the pre-rebrand name; new projects use
    nutrient_flutter
    .
  • Main widget:
    NutrientView
    — embeds the PDF viewer inline. Use
    NutrientInstantView
    instead when you need real-time collaborative annotation via Nutrient Instant. The legacy
    PspdfkitWidget
    is the pre-rebrand name.
  • Required initialisation: call
    Nutrient.initialize(androidLicenseKey: ..., iosLicenseKey: ...)
    in
    main()
    before
    runApp()
    . The SDK refuses to work without
    initialize()
    having been called — this requirement is new in the Nutrient era; the legacy
    pspdfkit_flutter
    plugin auto-initialised.
  • 包:
    flutter pub add nutrient_flutter
    。旧版
    pspdfkit_flutter
    包是更名前的名称;新项目请使用
    nutrient_flutter
    。
  • 主组件:
    NutrientView
    —— 用于内嵌PDF查看器。如果需要通过Nutrient Instant实现实时协作批注,请改用
    NutrientInstantView
    。旧版
    PspdfkitWidget
    是更名前的名称。
  • 必填初始化:在
    runApp()
    之前,于
    main()
    中调用
    Nutrient.initialize(androidLicenseKey: ..., iosLicenseKey: ...)
    。未调用
    initialize()
    的情况下SDK无法正常工作——这是Nutrient时代新增的要求;旧版
    pspdfkit_flutter
    插件会自动初始化。