public class GFModelParser extends Object implements PDFAParser
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
static GFModelParser |
createModelWithFlavour(InputStream toLoad,
PDFAFlavour flavour) |
ComponentDetails |
getDetails() |
FeatureExtractionResult |
getFeatures(FeatureExtractorConfig config) |
FeatureExtractionResult |
getFeatures(FeatureExtractorConfig config,
List<AbstractFeaturesExtractor> extractors) |
PDFAFlavour |
getFlavour() |
PDDocument |
getPDDocument()
Get
PDDocument object for current file. |
PDFDocument |
getPDFDocument() |
Object |
getRoot()
Method return root object of model implementation from greenfield model
together with the hierarchy.
|
public static GFModelParser createModelWithFlavour(InputStream toLoad, PDFAFlavour flavour) throws ModelParsingException, EncryptedPdfException
public PDDocument getPDDocument()
PDDocument object for current file.PDDocument object of greenfield library.IOException - when target file is not pdf or pdf file is not contain root
objectpublic Object getRoot()
getRoot in interface PDFAParserCosDocumentIOException - when target file is not pdf or pdf file is not contain root
objectpublic ComponentDetails getDetails()
getDetails in interface Componentpublic PDFAFlavour getFlavour()
getFlavour in interface PDFAParserpublic PDFDocument getPDFDocument()
getPDFDocument in interface PDFAParserPDFDocument parsed.public 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.