public class GFModelParser extends Object
| 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() |
org.verapdf.model.baselayer.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
ModelParsingExceptionEncryptedPdfExceptionpublic static GFModelParser createModelWithFlavour(File pdfFile, PDFAFlavour flavour) throws ModelParsingException, EncryptedPdfException
ModelParsingExceptionEncryptedPdfExceptionpublic PDDocument getPDDocument()
PDDocument object for current file.org.verapdf.pd.PDDocument object of greenfield library.IOException - when target file is not pdf or pdf file is not contain root
objectpublic org.verapdf.model.baselayer.Object getRoot()
org.verapdf.model.coslayer.CosDocumentIOException - when target file is not pdf or pdf file is not contain root
objectpublic ComponentDetails getDetails()
public PDFAFlavour getFlavour()
public PDFDocument getPDFDocument()
public FeatureExtractionResult getFeatures(FeatureExtractorConfig config)
public FeatureExtractionResult getFeatures(FeatureExtractorConfig config,
List<AbstractFeaturesExtractor> extractors)
public void close()
Copyright © 2015–2017 The veraPDF Consortium. All rights reserved.