public final class ModelParser extends Object
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
static ModelParser |
createModelWithFlavour(File pdfFile,
PDFAFlavour flavour) |
static ModelParser |
createModelWithFlavour(InputStream toLoad,
PDFAFlavour flavour) |
ComponentDetails |
getDetails() |
FeatureExtractionResult |
getFeatures(FeatureExtractorConfig config) |
FeatureExtractionResult |
getFeatures(FeatureExtractorConfig config,
List<AbstractFeaturesExtractor> extractors) |
PDFAFlavour |
getFlavour() |
PDFDocument |
getPDFDocument() |
org.verapdf.model.baselayer.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
ModelParsingExceptionEncryptedPdfExceptionpublic static ModelParser createModelWithFlavour(File pdfFile, PDFAFlavour flavour) throws ModelParsingException, EncryptedPdfException
ModelParsingExceptionEncryptedPdfExceptionpublic PDFDocument getPDFDocument()
public ComponentDetails getDetails()
public 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 PDFAFlavour getFlavour()
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.