Package org.verapdf.pdfa
Interface PDFAParser
-
- All Superinterfaces:
AutoCloseable,Closeable,Component
- All Known Implementing Classes:
GFModelParser
public interface PDFAParser extends Component
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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description FeatureExtractionResultgetFeatures(FeatureExtractorConfig config)FeatureExtractionResultgetFeatures(FeatureExtractorConfig config, List<AbstractFeaturesExtractor> extractors)PDFAFlavourgetFlavour()PDFDocumentgetPDFDocument()ObjectgetRoot()-
Methods inherited from interface org.verapdf.component.Component
getDetails
-
-
-
-
Method Detail
-
getRoot
Object getRoot() throws ModelParsingException
- 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
FeatureExtractionResult getFeatures(FeatureExtractorConfig config)
- 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
-
-