Package org.verapdf.pdfa
Interface PDFAParser
- All Superinterfaces:
AutoCloseable,Closeable,Component
- All Known Implementing Classes:
GFModelParser
Simple interface that needs a little more work. This abstracts the parsing of
the veraPDF ValidationModel allowing the implementation and run-time
selection of different model parsers possible.
- Author:
- Carl Wilson
-
Method Summary
Modifier and TypeMethodDescriptiongetFeatures(FeatureExtractorConfig config) getFeatures(FeatureExtractorConfig config, List<AbstractFeaturesExtractor> extractors) getRoot()Methods inherited from interface org.verapdf.component.Component
getDetails
-
Method Details
-
getRoot
- Returns:
- the
CosDocumentelement that is the root object of the validation model instance. - Throws:
ModelParsingException- when there's a problem establishing the model root.
-
getFlavour
PDFAFlavour getFlavour()- Returns:
PDFAFlavourfor the model that has been parsed
-
getPDFDocument
PDFDocument getPDFDocument()- Returns:
- the
PDFDocumentparsed.
-
getFeatures
- Parameters:
config- aFeatureExtractorConfigthat denotes the features to be extracted.- Returns:
- features collection of the document as a
FeatureExtractionResult
-
getFeatures
FeatureExtractionResult getFeatures(FeatureExtractorConfig config, List<AbstractFeaturesExtractor> extractors) - Parameters:
config- aFeatureExtractorConfigthat denotes the features to be extracted.extractors- extractors for features reporting- Returns:
- features collection of the document as a
FeatureExtractionResult
-