Module: Pdfrb::Conformance::PdfA
- Defined in:
- lib/pdfrb/conformance/pdf_a.rb
Overview
PDF/A-1/2/3 validation (ISO 19005). Checks a document against
the subset constraints. Returns a Result with per-rule verdicts.
Defined Under Namespace
Class Method Summary collapse
Class Method Details
.validate(document, level: :a2b) ⇒ Object
13 14 15 16 17 18 19 20 21 22 23 |
# File 'lib/pdfrb/conformance/pdf_a.rb', line 13 def validate(document, level: :a2b) violations = [] check_no_encryption(document, violations) (document, violations) (document, violations) Result.new( level: level, passed: violations.empty?, violations: violations ) end |