...

Package verapdf

Overview ▾

Index ▾

Package files

report.go

type Report

Report is the parsed reduced veraPDF report.

type Report struct {
    // ViolatedRules are the rules that were violated during error verification.
    ViolatedRules []string
    // Compliant is veraPDF's own pass/fail verdict.
    Compliant bool
}

func ParseReducedJSON

func ParseReducedJSON(r io.Reader) (*Report, error)

ParseReducedJSON parses a reduced veraPDF JSON report (the format produced by the pdfua/pdfa scripts/*.py generators). It populates ViolatedRules (the deduplicated set of "clause-testNumber" rule identifiers veraPDF reported as failed) and Compliant (veraPDF's own pass/fail verdict).