Package com.pd4ml.pdf.sign.cli
Class PdfSignCli
- java.lang.Object
-
- com.pd4ml.pdf.sign.cli.PdfSignCli
-
public final class PdfSignCli extends java.lang.ObjectSingle command-line entry point for the whole pdfsign-api project: COS inspection/path queries (thecom.pd4ml.pdf.cosreader), listing signature fields, applying a digital signature (PKCS#12, PKCS#11/HSM, or any invisible/visible/DocMDP-certifying/timestamped combination thereof), and adding PAdES-LT (LTV) validation information to an already-signed PDF.Usage: pdfsigncli inspect <input.pdf> [--password=...] [cos-path-expr ...] pdfsigncli fields <input.pdf> [--password=...] pdfsigncli sign <input.pdf> <output.pdf> [options...] pdfsigncli ltv <input.pdf> <output.pdf> [--password=...] [--field=name] [ltv-options...] sign options: --p12=<keystore.p12> --password=<pw> [--alias=<a>] key source: PKCS#12 --pkcs11-config=<cfg> --pkcs11-pin=<pin> [--pkcs11-alias=<a>] key source: PKCS#11/HSM --reason=... --location=... --contact=... --signer=... --digest=SHA256|SHA384|SHA512 (default SHA256) --certify=NONE|NO_CHANGES|FORM_FILL|FORM_FILL_ANNOTS (default NONE) --tsa=<url> [--tsa-user=...] [--tsa-password=...] --field=<name> (default "Signature1") --placeholder=<bytes> (default 16384) --visible --page=<n> --rect=llx,lly,width,height [--image=<file>] [--text=...] --ltv [ltv-options...] add LTV right after signing ltv options (both the "ltv" subcommand and "sign --ltv"): --no-ocsp --no-crl --crl-only-as-fallback --include-root Programmatic-only features not exposed here: cloud KMS signing (
CertificateUtils.forRemoteKey/RemoteSigner-- a KMS client is inherently vendor-specific code, not a CLI flag) and lower-level LTV embedding of pre-fetched revocation data (LtvUpdater.embedValidationInformation).
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidmain(java.lang.String[] args)
-