public class PdfBoxFoundry extends Object implements VeraPDFFoundry
| Modifier and Type | Method and Description |
|---|---|
static void |
initialise() |
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. |
public static void initialise()
public PDFParser newPdfParser(InputStream pdfStream) throws ModelParsingException, EncryptedPdfException
VeraPDFFoundrypdfStream parameter. The parser or parser provider will detect
the flavour of the PDF document stream and provide an appropriate parser.newPdfParser in interface VeraPDFFoundrypdfStream - 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 encryptedVeraPDFFoundry.newPdfParser(java.io.InputStream)public PDFParser newPdfParser(InputStream pdfStream, PDFAFlavour flavour) throws ModelParsingException, EncryptedPdfException
VeraPDFFoundrypdfStream parameter. The caller must explicitly state
the flavour of the PDF document stream.newPdfParser in interface VeraPDFFoundrypdfStream - 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 encryptedVeraPDFFoundry.newPdfParser(java.io.InputStream, org.verapdf.pdfa.flavours.PDFAFlavour)public MetadataFixer newMetadataFixer()
newMetadataFixer in interface VeraPDFFoundryorg.verapdf.pdfa.VeraPDFFoundry#newMetadataFixer(org.verapdf.metadata.fixer.utils.FixerConfig)Copyright © 2015–2016 The veraPDF Consortium. All rights reserved.