Home  ›  Playgrounds  ›  CLI command builder

pdfnative-cli command builder

Pick a command, fill the form, copy the resulting npx pdfnative-cli invocation. Covers the full CLI surface: render (with --watch / --template / --font), sign (RSA + ECDSA-SHA256, auto signature placeholder), inspect, and verify (real CMS verification + RFC 3161 detection). The builder runs entirely in your browser — nothing is uploaded.

Path to JSON input. Omit to read from stdin.
Output path. Omit to write to stdout.
Selects the renderer variant.
Single value or top,right,bottom,left in points.
FlateDecode all content streams.
AsyncGenerator streaming output.
Load any subset of PdfLayoutOptions. CLI flags override the layout file.
Comma-separated language codes. Non-Latin requires a registerFontLoader() wrapper.
Iteration helpers
Re-render on input/layout/template change. Requires --input + --output.
JSON file with { "key": "value" } pairs substituted into the document.
Bundled font codes. For other scripts use --lang.
Watermark
Headers / footers
Placeholders: {page}, {pages}, {date}, {title}. {pages} is rejected with --stream.
Encryption (mutually exclusive with --tagged pdfa*)
Required if any --encrypt-* flag is set. Prefer the env var.
PDF/A-3 attachments
Format: path[:mime[:relationship[:description]]]. Repeatable.
Or set $PDFNATIVE_SIGN_KEY.
Or set $PDFNATIVE_SIGN_CERT.
Repeatable. Or set $PDFNATIVE_SIGN_CHAIN.
Adds trailerKeys, catalogKeys, objectCount, xmpMetadata.
Per-page geometry, annotations, form fields.
--check (CI assertions, ANDed)
Exit code 0 on all-pass, 1 on any failure. Composable with --format.
Exit 1 on any failure or zero signatures.
Trust-anchor PEMs. Repeatable.

Scope (v1.1.0): full CMS/PKCS#7 verification (RSA + ECDSA-SHA256), byte-range integrity (SHA-256), certificate chain, trust evaluation against --trust roots, RFC 3161 timestamp validation (PAdES-T), and OCSP/CRL revocation checking via --revocation / --revocation-policy. See the CLI guide.

Generated command

npx pdfnative-cli render

Paste this in any shell. Secrets are never sent — the entire builder runs client-side.

What this playground does not do

It does not execute the CLI in your browser — signing real PDFs requires real private keys, and we will not pretend to. For an in-browser demo of render output, see the homepage live demo. To exercise the full CLI on your machine: npx pdfnative-cli <your built command>.

Resources