Check PDF bytes for conformance defects without modifying them.
Use describe("pdf.validate") when your code needs the complete live JSON Schemas.
At a glance
| Property | Value |
|---|---|
| Package | @runstamp/pdf |
| Domain / verb | pdf / validate |
| Customer jobs | validate |
| 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/validate. 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 |
| Result value | valid, summary | 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.validate/input.json").then((response) => response.json());
const result = await runstamp.run("pdf.validate", 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.validate/input.json -o input.json
npx -p @runstamp/sdk runstamp ops invoke pdf.validate --input input.json{
"tool": "runstamp_invoke_operation",
"arguments": {
"operation": "pdf.validate",
"input": "<JSON from https://runstamp.com/demo-evidence/operation-evidence/pdf/pdf.validate/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
bad9f01f23b256f50ad55cb38d71afa064d396ce6bcd4215105a14e4a8b38f38. - Verified result SHA-256:
853b51ff1ee81e2c9479887dff8b6b95e679ff753b77384f88ae0a5d44bfbe13. - Qualification lane:
11-pdf-xlsx.
Contract fingerprints
- Descriptor:
1267bbc7925c792311cb430936d1c913b85bbf2b11269219dd5228e64c1b84cd. - Input schema:
862106739c7360a1f6f1513712f1fa453d315c205829370d9cd536df88f6ffb0. - Options schema:
b115f78e30322b94883edd9fbf120ff2021df3c5d3e1542851ec1816685d5115. - Result value schema:
ac09206dc3c6b5ccdca3139941050ef2d8d2b5d9595bc661b849c91a2e07d93d.
The machine-readable operation reference publishes the complete schemas, qualification results, and evidence bindings for every operation.