public final class ModelParser extends Object implements PDFAParser
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
static ModelParser |
createModelWithFlavour(InputStream toLoad,
PDFAFlavour flavour) |
ComponentDetails |
getDetails() |
FeatureExtractionResult |
getFeatures(FeatureExtractorConfig config) |
FeatureExtractionResult |
getFeatures(FeatureExtractorConfig config,
List<AbstractFeaturesExtractor> extractors) |
PDFAFlavour |
getFlavour() |
PDFDocument |
getPDFDocument() |
Object |
getRoot()
Method return root object of model implementation from pdf box model
together with the hierarchy.
|
public static ModelParser createModelWithFlavour(InputStream toLoad, PDFAFlavour flavour) throws ModelParsingException, EncryptedPdfException
public PDFDocument getPDFDocument()
getPDFDocument in interface PDFAParserPDFDocument parsed.public ComponentDetails getDetails()
getDetails in interface Componentpublic Object getRoot()
getRoot in interface PDFAParserCosDocumentIOException - when target file is not pdf or pdf file is not contain root
objectpublic PDFAFlavour getFlavour()
getFlavour in interface PDFAParserpublic FeatureExtractionResult getFeatures(FeatureExtractorConfig config)
getFeatures in interface PDFAParserpublic FeatureExtractionResult getFeatures(FeatureExtractorConfig config, List<AbstractFeaturesExtractor> extractors)
getFeatures in interface PDFAParserextractors - extractors for features reportingpublic void close()
close in interface Closeableclose in interface AutoCloseableCopyright © 2015–2016 The veraPDF Consortium. All rights reserved.