Install the Fork PDF SDK

Install the SDK via your preferred Node.js package manager:

npm install forkpdf@2.1.0
# or
yarn add forkpdf@2.1.0

SDK 2.1.0 requires Node.js 18+ and ships native ESM and CommonJS entry points with TypeScript declarations. Both module formats expose the same named exports. See the 2.1.0 changelog for spatial schema v2, per-page element fragments, inline formatting contexts, shaped runs, and the new TypeScript types.