public final class ModelParser extends Object
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
static ModelParser |
createModelWithFlavour(InputStream toLoad,
PDFAFlavour flavour) |
FeaturesCollection |
getFeatures(FeaturesConfig config) |
FeaturesCollection |
getFeatures(FeaturesConfig config,
List<FeaturesExtractor> 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 pdf box model
together with the hierarchy.
|
public static ModelParser createModelWithFlavour(InputStream toLoad, PDFAFlavour flavour) throws ModelParsingException, EncryptedPdfException
ModelParsingExceptionEncryptedPdfExceptionpublic PDDocument getPDDocument()
PDDocument object for current file.org.apache.pdfbox.pdmodel.PDDocument object of pdfbox
library.IOException - when target file is not pdf or pdf file is not contain root
objectpublic PDFDocument getPDFDocument()
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 FeaturesCollection getFeatures(FeaturesConfig config)
public FeaturesCollection getFeatures(FeaturesConfig config,
List<FeaturesExtractor> extractors)
public void close()
Copyright © 2015–2016 The veraPDF Consortium. All rights reserved.