Validate

This command checks inFile for compliance with the specification PDF 32000-1:2008 (PDF 1.7). Any PDF file you would like to process needs to pass validation. Have a look at some examples.

Usage

  1. pdfcpu validate [-v(erbose)|vv] [-mode strict|relaxed] [-upw userpw] [-opw ownerpw] inFile

Flags

namedescriptionrequiredvaluesdefault
verboseturn on loggingno
vvverbose loggingno
modevalidation modenostrict, relaxedrelaxed
upwuser passwordno
opwowner passwordno

Arguments

namedescriptionrequired
inFilePDF input fileyes

Mode

Strict

This mode validates against the specification PDF 32000-1:2008 covering all PDF versions up to 1.7.

Relaxed

This is the default mode for validation.It behaves like strict but does not complain about common seen violations of the specification by PDF writers.

Examples

An example using strict validation:

  1. pdfcpu validate -mode strict test.pdf
  2. validating(mode=strict) test.pdf ...
  3. validation ok

An example using default validation:

  1. pdfcpu validate test.pdf
  2. validating(mode=relaxed) test.pdf ...
  3. validation ok