nutrient-nodejs-server-sdk

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

Nutrient Node.js SDK

Nutrient Node.js SDK

Server-side Node.js library for in-process PDF generation. Primary use case is converting Office documents (Word, Excel, PowerPoint) and images into PDF without external service dependencies. Distinct from the browser Nutrient Web SDK.
用于进程内PDF生成的服务端Node.js库。主要用途是在不依赖外部服务的情况下,将Office文档(Word、Excel、PowerPoint)和图片转换为PDF。与浏览器端的Nutrient Web SDK不同。

Documentation

文档

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

Key Concepts

核心概念

  • Package:
    npm install @nutrient-sdk/node
    . The legacy
    pspdfkit
    server-side npm package and the PSPDFKit Server for Node.js are deprecated; new projects use
    @nutrient-sdk/node
    .
  • In-process vs REST: this SDK runs operations locally — no network, no quota. The hosted REST alternative is the Nutrient DWS Processor API (covered by a separate plugin).
  • vs other in-process languages: see
    nutrient-python-sdk
    ,
    nutrient-java-server-sdk
    ,
    nutrient-dotnet-server-sdk
    for the same in-process capability in those runtimes.
  • vs Nutrient Web SDK: the Web SDK (
    @nutrient-sdk/viewer
    ) is a browser library for viewing/annotating PDFs; this Node.js SDK is a server-side generator/converter. Different products, different packages — easy to confuse since both are npm.
  • 包:
    npm install @nutrient-sdk/node
    。旧版
    pspdfkit
    服务端npm包及Node.js版PSPDFKit Server已废弃;新项目请使用
    @nutrient-sdk/node
    。
  • 进程内vs REST:本SDK在本地运行操作——无需网络,无配额限制。托管式REST替代方案为Nutrient DWS Processor API(由单独插件覆盖)。
  • 与其他进程内语言版本对比:如需在其他运行时实现相同的进程内功能,请查看
    nutrient-python-sdk
    、
    nutrient-java-server-sdk
    、
    nutrient-dotnet-server-sdk
    。
  • 与Nutrient Web SDK对比:Web SDK(
    @nutrient-sdk/viewer
    )是用于查看/批注PDF的浏览器库;本Node.js SDK是服务端生成/转换工具。二者是不同产品、不同包——因均为npm包,容易混淆。