Validates PDF structure using local Arlington PDF Model grammar rules. Fully offline and open-source; no license required for the validator itself.
You need Docker installed. The first run downloads the image and may take longer than later runs.
Mount a folder into the container and run a subcommand:
docker run --rm -v "$(pwd)":/data -w /data pdfix/validate-pdf-arlington:latest <command> [options]validate: Validate a PDF and write or print a report
| Option | Required | Type / expected value | Description |
|---|---|---|---|
--input, -i |
yes | Path to an existing .pdf file |
Input PDF |
--output, -o |
no | Path for report file; omit to print to stdout | Output file |
--format |
no | One of: raw, xml, html, text, json (default: xml) |
Report format |
--maxfailuresdisplayed |
no | Integer (default -1) | Max failures shown |
--profile |
no | One of the profile ids below | Arlington grammar profile |
Profiles:
| Desktop name | --profile value |
|---|---|
| Autodetect | auto |
| Arlington 1.0 | arlington1.0 |
| Arlington 1.1 | arlington1.1 |
| Arlington 1.2 | arlington1.2 |
| Arlington 1.3 | arlington1.3 |
| Arlington 1.4 | arlington1.4 |
| Arlington 1.5 | arlington1.5 |
| Arlington 1.6 | arlington1.6 |
| Arlington 1.7 | arlington1.7 |
| Arlington 2.0 | arlington2.0 |
Notes:
- For
--format xml, if--outputis set it must end with.xml. - For
--format html, if--outputis set it must end with.html. - Omit
--profileand the flag is not passed to the Arlington jar. - PDFix Desktop always passes
--profile. Autodetect is the default, so a Desktop run sends at least--profile auto.
Validate and print XML to stdout:
docker run --rm -v "$(pwd)":/data -w /data pdfix/validate-pdf-arlington:latest validate -i /data/input.pdfValidate and write HTML:
docker run --rm -v "$(pwd)":/data -w /data pdfix/validate-pdf-arlington:latest \
validate -i /data/input.pdf -o /data/report.html --format htmlValidate against Arlington 1.7:
docker run --rm -v "$(pwd)":/data -w /data pdfix/validate-pdf-arlington:latest \
validate -i /data/input.pdf --profile arlington1.7To report an issue, contact support@pdfix.net.