Skip to content

CLI Reference

Commands

horn validate

Validate PDF files against PDF/UA-1.

bash
horn validate <FILES...> [OPTIONS]

Arguments

ArgumentDescription
<FILES...>One or more PDF files or directories to validate

Options

OptionDefaultDescription
-f, --format <FORMAT>textOutput format: text, json, sarif, junit
-o, --output <PATH>stdoutWrite output to a file
-r, --recurseoffRecursively scan directories for PDFs
--fail-on <SEVERITY>errorMinimum severity to trigger a non-zero exit: error, warning, info

horn list-checks

Print all registered checks with their ID, checkpoint number, and description.

bash
horn list-checks

horn completions

Generate shell completion scripts.

bash
horn completions <SHELL>

Supported shells: bash, zsh, fish, powershell, elvish.

Exit codes

CodeMeaning
0All files are compliant
1One or more files have findings at or above --fail-on severity
2CLI or runtime error (invalid arguments, file not found, etc.)

Released under the MIT / Apache 2.0 License.