Sign inSign up

pdfix/validate-pdf-arlington

By pdfix

•Updated about 11 hours ago

Image
0

3.9K

pdfix/validate-pdf-arlington repository overview

⁠Validate Arlington PDF Model

Validates PDF structure using local Arlington PDF Model grammar rules. Fully offline and open-source; no license required for the validator itself.

⁠Table of Contents

⁠Getting started

You need Docker installed. The first run downloads the image and may take longer than later runs.

⁠Usage

Mount a folder into the container and run a subcommand:

docker run --rm -v "$(pwd)":/data -w /data pdfix/validate-pdf-arlington:v1.1.1 <command> [options]

⁠Commands

  • validate: Validate a PDF and write or print a report

⁠Arguments

⁠validate
OptionRequiredType / expected valueDescription
--input, -iyesPath to an existing .pdf fileInput PDF
--output, -onoPath for report file; omit to print to stdoutOutput file
--formatnoOne of: raw, xml, html, text, json (default: xml)Report format
--maxfailuresdisplayednoInteger (default -1)Max failures shown
--profilenoOne of the profile ids belowArlington grammar profile

Profiles:

Desktop name--profile value
Autodetectauto
Arlington 1.0arlington1.0
Arlington 1.1arlington1.1
Arlington 1.2arlington1.2
Arlington 1.3arlington1.3
Arlington 1.4arlington1.4
Arlington 1.5arlington1.5
Arlington 1.6arlington1.6
Arlington 1.7arlington1.7
Arlington 2.0arlington2.0

Notes:

  • For --format xml, if --output is set it must end with .xml.
  • For --format html, if --output is set it must end with .html.
  • Omit --profile and 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.

⁠Examples

Validate and print XML to stdout:

docker run --rm -v "$(pwd)":/data -w /data pdfix/validate-pdf-arlington:v1.1.1 validate -i /data/input.pdf

Validate and write HTML:

docker run --rm -v "$(pwd)":/data -w /data pdfix/validate-pdf-arlington:v1.1.1 \
  validate -i /data/input.pdf -o /data/report.html --format html

Validate against Arlington 1.7:

docker run --rm -v "$(pwd)":/data -w /data pdfix/validate-pdf-arlington:v1.1.1 \
  validate -i /data/input.pdf --profile arlington1.7

⁠Help & support

To report an issue, contact [email protected].

⁠Licenses

Tag summary

Content type

Image

Digest

sha256:2681362d5…

Size

380.7 MB

Last updated

about 11 hours ago

docker pull pdfix/validate-pdf-arlington