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 v0.2.0 surface: render, sign, inspect, and verify. 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.
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 (v0.2.0): byte-range integrity (SHA-256), certificate chain, trust evaluation. Out of scope: full CMS signature-value, OCSP/CRL, RFC 3161 timestamps, LTV โ€” 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