Apply a bounded in-format mutation to PDF bytes, such as linearization.
Use describe("pdf.transform") when your code needs the complete live JSON Schemas.
At a glance
| Property | Value |
|---|---|
| Package | @runstamp/pdf |
| Domain / verb | pdf / transform |
| Customer jobs | transform |
| Deterministic | Yes |
| Side effects | none |
Availability
| Local | SDK | CLI | MCP | Managed API |
|---|---|---|---|---|
| public ga | public ga | public ga | public ga | public ga |
Managed API route: POST /api/v2/operations/pdf/transform. Managed execution requires a free-trial workspace or an active Platform or Enterprise workspace, and an environment-bound API key.
Input and result
| Schema | Required fields | Optional fields |
|---|---|---|
| Input | none | none |
| Options | operation | deterministic, deterministicSeed, timeoutMs, locale, lossPolicy, limits, plan |
| Result value | bytes, mediaType, extension, byteLength, hash | none |
Every success also carries losses, diagnostics, and a hash-bound receipt.
Defaults, limits, and format constraints
Defaults
| Path | Default |
|---|---|
$.deterministic | default=true |
$.lossPolicy | default="collect" |
Formats and profiles
No separate format selector is declared. Accepted artifacts are bounded by the exact input schema.
Other limits
| Path | Constraint |
|---|---|
$.timeoutMs | minimum=1 |
$.limits.maxInputBytes | minimum=1 |
$.limits.maxOutputBytes | minimum=1 |
$.limits.maxPages | minimum=1 |
$.limits.maxElements | minimum=1 |
$.limits.maxArchiveEntries | minimum=1 |
$.limits.maxExpansionRatio | minimum=1 |
$.limits.maxDurationMs | exclusiveMinimum=0maximum=2147483647 |
Invoke
const input = await fetch("https://runstamp.com/demo-evidence/operation-evidence/pdf/pdf.transform/input.json").then((response) => response.json());
const result = await runstamp.run("pdf.transform", input);
if (!result.ok) throw new Error(`${result.error.code}: ${result.error.remediation}`);
console.log(result.value, result.losses, result.diagnostics, result.receipt);curl -fsS https://runstamp.com/demo-evidence/operation-evidence/pdf/pdf.transform/input.json -o input.json
npx -p @runstamp/sdk runstamp ops invoke pdf.transform --input input.json{
"tool": "runstamp_invoke_operation",
"arguments": {
"operation": "pdf.transform",
"input": "<JSON from https://runstamp.com/demo-evidence/operation-evidence/pdf/pdf.transform/input.json>",
"execution_mode": "local"
}
}Errors and losses
Declared errors (7)
common/SCHEMA_REJECTEDcommon/CONTRACT_VIOLATIONcommon/OPERATION_CANCELLEDcommon/OPERATION_TIMEOUTcommon/RESOURCE_LIMIT_EXCEEDEDpdf/LOSS_POLICY_VIOLATEDcommon/UNSUPPORTED_FEATURE
Declared losses (0)
- None.
SDK AbortSignal, CLI exit 130, and MCP cancellation return the typed common/OPERATION_CANCELLED failure envelope.
Verified example and exact contract
- Fixture:
icp-workflow(PDF rendered from the ITGC audit source). - Example input — SHA-256
743e93cb2818ca661e0042a1386248c7c735d66a9611415340382f85aa4e00be. - Example result — SHA-256
1ef2d8efd436c23b639a0048ae333037dec1264ac0015d9d3a348838779bb1a0. - Verified result SHA-256:
7bd10731f612dd2fc3231188f22d7144a82d9b63ff66d18770cca16090691ec4. - Qualification lane:
11-pdf-xlsx.
Contract fingerprints
- Descriptor:
396f22f7ea52278526f5b524f0f1b38afeaa5ad4a2ba8ecee3b227bfa5001a45. - Input schema:
862106739c7360a1f6f1513712f1fa453d315c205829370d9cd536df88f6ffb0. - Options schema:
dd0b88b850a34ba9e6660937555bcb27db39bd8d023f101913cc26ae8cf8b5e3. - Result value schema:
e7e0bc52bf866264c04c0cc2a2d2d788751a82a731f6a8bc31b2efb72d06d08c.
The machine-readable operation reference publishes the complete schemas, qualification results, and evidence bindings for every operation.