Generate and process native PDF files with the public SDK. @runstamp/pdf
is an internal binding name and is not published on npm.
Install
npm install @runstamp/sdkRequires Node.js >=18.14.1.
Quick start
import { runstamp } from "@runstamp/sdk";
import { writeFileSync } from "node:fs";
const input = await fetch("https://runstamp.com/demo-evidence/operation-evidence/pdf/pdf.render/input.json").then(r => r.json());
const result = await runstamp.operations.run("pdf.render", input);
if (!result.ok) throw new Error(result.error.message);
writeFileSync("update.pdf", result.value.bytes);Core API (workspace-only)
These engine helpers are for Runstamp workspace development. They are not exports of
@runstamp/sdk, and @runstamp/pdf is not on npm. SDK users call runstamp.operations.run.
PdfEngine.render(document, options?): returns aUint8Arrayof the PDF.PdfEngine.renderStream(document, options?): returns a NodeReadableadapter. The full PDF is buffered before the stream emits, so peak render memory is not reduced.
Rendering is native, with no Chromium or Puppeteer, and is deterministic for repeatable builds and tests. It supports text, layout, graphics, images, tables, links and bookmarks.
Commercial boundary
All local PDF rendering ships in @runstamp/sdk.
Pro adds company-wide production support and commercial assurance, not a
different package or fidelity gate. See License & Pricing.