Utility functions to retrieve specific informations about PDF accessibility.
Arguments
- x
Output from
verapdf()
Note
It is important to understand the difference between rules and checks. A rule that has been failed may be "Missing alternative text on images", and each rule may have several checks that have been failed. For example, if the rule "Missing alt text on images" occurs 10 times in a given PDF, that gives us 10 failed checks for that rule.
Examples
pdf_file <- system.file("pdf", "not-compliant-1.pdf", package = "pdfcheck")
verapdf(pdf_file) |>
get_total_failed_checks()
#> [1] 195
verapdf(pdf_file) |>
get_total_failed_rules()
#> [1] 11
verapdf(pdf_file) |>
get_verapdf_version()
#> [1] "1.28.2"