public interface VeraPDFFoundry
| Modifier and Type | Method and Description |
|---|---|
MetadataFixer |
newMetadataFixer() |
PDFParser |
newPdfParser(InputStream pdfStream)
Method that returns a PDFParser instance, parsing the passed
pdfStream parameter. |
PDFParser |
newPdfParser(InputStream pdfStream,
PDFAFlavour flavour)
Method that returns a PDFParser instance, parsing the passed
pdfStream parameter. |
PDFParser newPdfParser(InputStream pdfStream) throws ModelParsingException, EncryptedPdfException
pdfStream parameter. The parser or parser provider will detect
the flavour of the PDF document stream and provide an appropriate parser.pdfStream - InputStream for the PDF document to be parsed.PDFParser instance created from the supplied
InputStream.ModelParsingException - when there's a problem parsing the PDF fileEncryptedPdfException - if the PDF to be parsed is encryptedPDFParser newPdfParser(InputStream pdfStream, PDFAFlavour flavour) throws ModelParsingException, EncryptedPdfException
pdfStream parameter. The caller must explicitly state
the flavour of the PDF document stream.pdfStream - InputStream for the PDF document to be parsed.flavour - a PDFAFlavour instance indicating parser configuration
(PDF/A part and conformance level) to be assumed when parsing
the document.PDFParser instance created from the supplied
InputStream.ModelParsingException - when there's a problem parsing the PDF fileEncryptedPdfException - if the PDF to be parsed is encryptedMetadataFixer newMetadataFixer()
Copyright © 2015–2016 The veraPDF Consortium. All rights reserved.