public interface VeraPDFFoundry extends Component
| Modifier and Type | Method and Description |
|---|---|
PDFAValidator |
createFailFastValidator(PDFAFlavour flavour,
int maxFailures)
Creates a new
PDFAValidator initialised with the passed profile,
requested fast failing behaviour and configured NOT to log passed checks. |
PDFAValidator |
createFailFastValidator(ValidationProfile profile,
int maxFailures)
Creates a new
PDFAValidator initialised with the passed profile,
requested fast failing behaviour and configured NOT to log passed checks. |
MetadataFixer |
createMetadataFixer()
Obtain a new
MetadataFixer instance. |
PDFAParser |
createParser(File pdfFile)
Method that returns a PDFParser instance, parsing file passed as
pdfStream parameter. |
PDFAParser |
createParser(File pdfFile,
PDFAFlavour flavour)
Method that returns a PDFParser instance, parsing file passed as
pdfFile parameter. |
PDFAParser |
createParser(InputStream pdfStream)
Method that returns a PDFParser instance, parsing the passed
pdfStream parameter. |
PDFAParser |
createParser(InputStream pdfStream,
PDFAFlavour flavour)
Method that returns a PDFParser instance, parsing the passed
pdfStream parameter. |
PDFAValidator |
createValidator(PDFAFlavour flavour,
boolean logSuccess)
Creates a new
PDFAValidator instance that uses one of the
ValidationProfiles packaged as a core library resource. |
PDFAValidator |
createValidator(ValidationProfile profile,
boolean logSuccess)
Creates a new
PDFAValidator initialised with the passed profile
and chosen passed test logging. |
PDFAValidator |
createValidator(ValidatorConfig config)
Obtain a new
PDFAValidator instance. |
PDFAValidator |
createValidator(ValidatorConfig config,
PDFAFlavour flavour)
Obtain a new
PDFAValidator instance that uses a custom
PDFAFlavour. |
PDFAValidator |
createValidator(ValidatorConfig config,
ValidationProfile profile)
Obtain a new
PDFAValidator instance that uses a custom
ValidationProfile instance. |
PDFAFlavour |
defaultFlavour() |
String |
getParserId() |
getDetailsPDFAParser createParser(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.PDFAParser instance created from the supplied
InputStream.ModelParsingException - when there's a problem parsing the PDF fileEncryptedPdfException - if the PDF to be parsed is encryptedPDFAParser createParser(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.PDFAParser instance created from the supplied
InputStream.ModelParsingException - when there's a problem parsing the PDF fileEncryptedPdfException - if the PDF to be parsed is encryptedPDFAParser createParser(File pdfFile, PDFAFlavour flavour) throws ModelParsingException, EncryptedPdfException
pdfFile parameter. The caller must explicitly state the flavour
of the PDF document stream.pdfFile - File with 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.PDFAParser instance created from the supplied
InputStream.ModelParsingException - when there's a problem parsing the PDF fileEncryptedPdfException - if the PDF to be parsed is encryptedPDFAParser createParser(File pdfFile) throws ModelParsingException, EncryptedPdfException
pdfStream parameter. The parser or parser provider will detect
the flavour of the PDF document stream and provide an appropriate parser.pdfFile - File with the PDF document to be parsed.PDFAParser instance created from the supplied
InputStream.ModelParsingException - when there's a problem parsing the PDF fileEncryptedPdfException - if the PDF to be parsed is encryptedPDFAValidator createValidator(ValidatorConfig config)
PDFAValidator instance.config - a ValidatorConfig instance used to configure the
PDFAValidatorPDFAValidator instance.PDFAValidator createValidator(ValidatorConfig config, ValidationProfile profile)
PDFAValidator instance that uses a custom
ValidationProfile instance.config - a ValidatorConfig instance used to configure the
PDFAValidatorprofile - PDFAValidator instance.PDFAValidator createValidator(ValidatorConfig config, PDFAFlavour flavour)
PDFAValidator instance that uses a custom
PDFAFlavour.config - a ValidatorConfig instance used to configure the
PDFAValidatorflavour - the particular PDFAFlavour
to validated against.PDFAValidator instance.PDFAValidator createValidator(PDFAFlavour flavour, boolean logSuccess)
PDFAValidator instance that uses one of the
ValidationProfiles packaged as a core library resource. While
these profiles are not guaranteed to be up to date, they are available
when offline. A ProfileDirectory populated with the pre-loaded
profiles can be obtained by calling
Profiles#getVeraProfileDirectory().flavour - the PDFAFlavour that's associated with the
ValidationProfile to used to initialise the
PDFAValidator.logSuccess - boolean used to configure logging of passed tests by
the PDFAValidator. Pass true to log passed
tests, false to only log tests that don't pass.PDFAValidator instance initialised from the passed
parametersPDFAValidator createValidator(ValidationProfile profile, boolean logSuccess)
PDFAValidator initialised with the passed profile
and chosen passed test logging.profile - the ValidationProfile to be enforced by the returned
PDFAValidator.logSuccess - boolean used to configure logging of passed tests by
the PDFAValidator. Pass true to log passed
tests, false to only log tests that don't pass.PDFAValidator instance initialised from the passed
parametersPDFAValidator createFailFastValidator(PDFAFlavour flavour, int maxFailures)
PDFAValidator initialised with the passed profile,
requested fast failing behaviour and configured NOT to log passed checks.flavour - the PDFAFlavour that's associated with the
ValidationProfile to used to initialise the
PDFAValidator.maxFailures - an int value that configures the PDFAValidator
to abort validation after maxFailures failed tests. If
maxFailures is less than 1 then the
PDFAValidator will complete the full validation
process.PDFAValidator instance initialised from the passed
parametersPDFAValidator createFailFastValidator(ValidationProfile profile, int maxFailures)
PDFAValidator initialised with the passed profile,
requested fast failing behaviour and configured NOT to log passed checks.profile - the ValidationProfile to be enforced by the returned
PDFAValidator.maxFailures - an int value that configures the PDFAValidator
to abort validation after maxFailures failed tests. If
maxFailures is less than 1 then the
PDFAValidator will complete the full validation
process.PDFAValidator instance initialised from the passed
parametersMetadataFixer createMetadataFixer()
MetadataFixer instance.MetadataFixer instance.PDFAFlavour defaultFlavour()
PDFAFlavour set for this VeraPDFFoundryString getParserId()
Copyright © 2015–2020 The veraPDF Consortium. All rights reserved.