Expand description
Public contracts for the pdfv validation engine.
The crate currently exposes the stable data model, error model, and JSON report writing spine used by later parser and validator phases.
use pdfv_core::{InputKind, InputSummary, ValidationOptions};
let options = ValidationOptions::default();
let source = InputSummary::new(InputKind::Memory, None, None);
assert!(options.report_parse_warnings);
assert_eq!(source.kind, InputKind::Memory);Structs§
- Annotation
Model - Annotation dictionary model wrapper.
- Assertion
- Rule assertion detail.
- Batch
Report - Batch validation report.
- Batch
Summary - Batch summary counters.
- Bounded
Text - Bounded UTF-8 text for externally supplied strings.
- Builtin
Profile Repository - Built-in profile repository.
- Catalog
Model - Catalog model wrapper.
- Content
Stream Model - Page content stream model wrapper.
- Decode
Params - Structured parameters for one stream filter.
- Decoder
Registry - Registry mapping PDF filter names to bounded decoders.
- Detected
Flavours - Auto flavour detection result.
- Dictionary
- PDF dictionary.
- Error
Argument - Error template argument.
- Error
Template - Error template for failed assertions.
- Feature
Object - One extracted validation-model object.
- Feature
Report - Machine-readable read-only feature extraction report.
- Flavour
Claim - Recognized flavour claim extracted from XMP metadata.
- Flavour
Detector - Profile selector backed by XMP identification claims.
- Font
Model - Font dictionary model wrapper.
- Html
Report Writer - Static HTML report writer.
- Identifier
- Identifier text with a tight byte cap and ASCII policy.
- Indirect
Object - Parsed indirect object.
- Input
Name - Bounded input name used by reader validation.
- Input
Summary - Input summary included in reports.
- Json
Report Writer - JSON report writer.
- Link
Name - Validation model link name.
- MaxDisplayed
Failures - Maximum displayed assertion failures per rule.
- Metadata
Model - Metadata stream model wrapper.
- Metadata
Repair Options - Options for safe metadata repair.
- Metadata
Repairer - Safe metadata repair facade.
- Model
Graph - Document model wrapper.
- Namespace
Binding - Namespace declaration retained from an XMP packet.
- Object
Identity - Stable object identity used by traversal.
- Object
Key - Indirect PDF object key.
- Object
Location - Object location for diagnostics.
- Object
Store - Indirect object storage keyed by object number and generation.
- Object
Type Name - Validation model object type name.
- Output
Intent Model - Output intent dictionary model wrapper.
- Page
Model - Page dictionary model wrapper.
- Parse
Options - Parser options for password-capable parsing.
- Parsed
Document - Parsed PDF document produced by
Parser. - Parser
- M0 PDF parser.
- Password
Secret - Redacted PDF password secret.
- PdfName
- PDF name bytes after hash escape decoding.
- PdfString
- PDF string bytes.
- PdfVersion
- PDF version.
- Policy
Report - Policy evaluation report.
- Policy
Rule - One bounded policy rule.
- Policy
Rule Result - One policy rule result.
- Policy
Set - Bounded policy rules evaluated over a
FeatureReport. - Profile
Catalog Entry - Profile metadata suitable for listing catalogs.
- Profile
Identity - Profile identity.
- Profile
Import Summary - Summary produced by XML profile import.
- Profile
Report - Per-profile report.
- Property
Name - Validation model property name.
- Property
Path - Dot-separated property path.
- RawXml
Report Writer - Raw processor-style XML report writer.
- Repair
Batch Report - Batch metadata repair report.
- Repair
Batch Summary - Batch metadata repair summary counters.
- Repair
Report - Metadata repair report for one input.
- Resource
Limits - Parser and validation resource limits.
- Rule
- Validation rule.
- RuleId
- Rule id.
- Spec
Reference - Specification citation associated with a validation rule.
- Stream
Object - Parsed stream object with raw byte range metadata.
- Task
Duration - Task duration entry.
- Text
Report Writer - Human-readable text report writer.
- Trailer
- Parsed trailer dictionary.
- Unsupported
Rule - Unsupported rule detail.
- Validation
Flavour - Validation flavour identifier.
- Validation
Options - PDF validation options shared by parser, engine, and reports.
- Validation
Profile - Immutable validation profile.
- Validation
Report - Complete validation report for one input.
- Validator
- Validation facade for parser, profile selection, traversal, and reports.
- XmlReport
Writer - Machine-readable XML report writer.
- XmpPacket
- Parsed XMP packet summary.
- XmpParser
- Bounded XMP parser.
Enums§
- Assertion
Status - Assertion status.
- Binary
Op - Binary expression operator.
- Builtin
Function - Bounded built-in function.
- Config
Error - Configuration-specific error.
- CosObject
- PDF COS object.
- Exit
Category - CLI-oriented exit category represented in batch summaries.
- Feature
Selection - Feature extraction selection.
- Feature
Value - Feature property value.
- Flavour
Selection - Flavour/profile selection policy.
- Input
Kind - Input kind.
- Model
Object Ref - Validation model object reference.
- Model
Value - Model value used by rule evaluation.
- Parse
Error - Parser-specific error.
- Parse
Fact - Parser fact emitted by tolerant parsing.
- Pdfv
Error - Top-level library error.
- Policy
Error - Feature policy error.
- Policy
Operator - Bounded policy comparison operator.
- Policy
Value - Policy comparison value.
- Profile
Error - Profile-specific error.
- Repair
Action - Metadata repair action.
- Repair
Error - Metadata repair error.
- Repair
Refusal - Explicit reason metadata repair was refused.
- Repair
Status - Metadata repair status.
- Report
Error - Reporting-specific error.
- Report
Format - Report output format.
- Rule
Expr - Bounded rule expression.
- Rule
Outcome - Rule evaluation outcome.
- Source
Storage - Parser-owned storage for source bytes.
- Stream
Fact - Stream parser fact.
- UnaryOp
- Unary expression operator.
- Validation
Error - Validation-specific error.
- Validation
Status - Overall validation status.
- Validation
Warning - Validation warning.
- XmpFact
- XMP metadata parser fact.
- XmpIdentification
Kind - Recognized XMP identification schema kind.
- Xref
Fact - Cross-reference parser fact.
Constants§
- ENGINE_
VERSION - Current library version embedded in generated reports.
Traits§
- Model
Object - Validation model object.
- PdfSource
- Seekable PDF source accepted by
Parser. - Profile
Repository - Repository that resolves validation profiles for a caller selection.
- Report
Writer - Report writer interface.
- Rule
Evaluator - Rule evaluator interface.
- Stream
Decoder - Stream decoder extension point used by
DecoderRegistry.
Functions§
- display_
flavour - Returns the stable CLI/catalog spelling for a validation flavour.
- import_
verapdf_ profile_ xml - Imports a veraPDF validation profile XML document into bounded profile data.
Type Aliases§
- Result
- Result alias for pdfv library operations.