public class GFModelParser extends Object implements PDFAParser
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
static GFModelParser |
createModelWithFlavour(File pdfFile,
PDFAFlavour flavour) |
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 static GFModelParser createModelWithFlavour(File pdfFile, 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 PDFAParserPDFAFlavour for the model that has been parsedpublic PDFDocument getPDFDocument()
getPDFDocument in interface PDFAParserPDFDocument parsed.public FeatureExtractionResult getFeatures(FeatureExtractorConfig config)
getFeatures in interface PDFAParserconfig - a FeatureExtractorConfig that denotes the features to
be extracted.FeatureExtractionResultpublic FeatureExtractionResult getFeatures(FeatureExtractorConfig config, List<AbstractFeaturesExtractor> extractors)
getFeatures in interface PDFAParserconfig - a FeatureExtractorConfig that denotes the features to
be extracted.extractors - extractors for features reportingFeatureExtractionResultpublic void close()
close in interface Closeableclose in interface AutoCloseableCopyright © 2015–2018 The veraPDF Consortium. All rights reserved.