public final class ModelParser extends Object implements PDFParser
| 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() |
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
public PDDocument getPDDocument()
PDDocument object for current file.PDDocument object of pdfbox
library.IOException - when target file is not pdf or pdf file is not contain root
objectpublic PDFDocument getPDFDocument()
getPDFDocument in interface PDFParserPDFDocument parsed.public Object getRoot()
getRoot in interface PDFParserCosDocumentIOException - when target file is not pdf or pdf file is not contain root
objectpublic PDFAFlavour getFlavour()
getFlavour in interface PDFParserpublic FeaturesCollection getFeatures(FeaturesConfig config)
getFeatures in interface PDFParserpublic FeaturesCollection getFeatures(FeaturesConfig config, List<FeaturesExtractor> extractors)
getFeatures in interface PDFParserextractors - extractors for features reportingpublic void close()
close in interface Closeableclose in interface AutoCloseableCopyright © 2015–2016 The veraPDF Consortium. All rights reserved.