Package org.apache.pdfbox.preflight
Class PreflightConfiguration
java.lang.Object
org.apache.pdfbox.preflight.PreflightConfiguration
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
private ActionManagerFactory
Define the ActionManagerFactory used by ValidationProcessstatic final String
static final String
private AnnotationValidatorFactory
Define the AnnotationFactory used by ValidationProcessstatic final String
static final String
private ColorSpaceHelperFactory
Define the ColorSpaceHelperFactory used by the validationProcess.static final String
private boolean
Boolean to know if an exception must be thrown if a ValidationProcess is missing.static final String
static final String
static final String
static final String
private final Map<String,
Class<? extends ValidationProcess>> private boolean
Boolean to know mark some error as a Warning, if the validation result contains only warning the validation is successfulprivate int
Define the maximum number of errors.static final String
static final String
static final String
private final Map<String,
Class<? extends ValidationProcess>> static final String
static final String
static final String
static final String
static final String
static final String
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic PreflightConfiguration
getInstanceOfProcess
(String processName) Return the validation process linked with the given nameint
Get the maximum number of errors after which to abort when possible.boolean
boolean
void
removePageProcess
(String processName) void
removeProcess
(String processName) void
replacePageProcess
(String processName, Class<? extends ValidationProcess> process) void
replaceProcess
(String processName, Class<? extends ValidationProcess> process) void
setActionFact
(ActionManagerFactory actionFact) void
setAnnotFact
(AnnotationValidatorFactory annotFact) void
setColorSpaceHelperFact
(ColorSpaceHelperFactory colorSpaceHelperFact) void
setErrorOnMissingProcess
(boolean errorOnMissingProcess) void
setLazyValidation
(boolean lazyValidation) void
setMaxErrors
(int maxErrors) Set the maximum number of errors after which to abort when possible.
-
Field Details
-
CATALOG_PROCESS
- See Also:
-
STREAM_PROCESS
- See Also:
-
TRAILER_PROCESS
- See Also:
-
XREF_PROCESS
- See Also:
-
BOOKMARK_PROCESS
- See Also:
-
ACRO_FORM_PROCESS
- See Also:
-
FILE_SPECIF_PROCESS
- See Also:
-
PAGES_TREE_PROCESS
- See Also:
-
META_DATA_PROCESS
- See Also:
-
PAGE_PROCESS
- See Also:
-
RESOURCES_PROCESS
- See Also:
-
ACTIONS_PROCESS
- See Also:
-
ANNOTATIONS_PROCESS
- See Also:
-
GRAPHIC_PROCESS
- See Also:
-
FONT_PROCESS
- See Also:
-
EXTGSTATE_PROCESS
- See Also:
-
SHADING_PATTERN_PROCESS
- See Also:
-
TILING_PATTERN_PROCESS
- See Also:
-
DESTINATION_PROCESS
- See Also:
-
errorOnMissingProcess
private boolean errorOnMissingProcessBoolean to know if an exception must be thrown if a ValidationProcess is missing. -
lazyValidation
private boolean lazyValidationBoolean to know mark some error as a Warning, if the validation result contains only warning the validation is successful -
processes
-
innerProcesses
-
annotFact
Define the AnnotationFactory used by ValidationProcess -
actionFact
Define the ActionManagerFactory used by ValidationProcess -
colorSpaceHelperFact
Define the ColorSpaceHelperFactory used by the validationProcess. -
maxErrors
private int maxErrorsDefine the maximum number of errors.
-
-
Constructor Details
-
PreflightConfiguration
public PreflightConfiguration()
-
-
Method Details
-
createPdfA1BConfiguration
-
getProcessNames
-
getInstanceOfProcess
Return the validation process linked with the given name- Parameters:
processName
-- Returns:
- an instance of validationProcess, null if it doesn't exist and if the errorOnMissingProcess is false.
- Throws:
MissingValidationProcessException
- if the Process doesn't exist (errorOnMissingProcess is true).ValidationException
- if the process instance can't be created.
-
replaceProcess
-
removeProcess
-
getPageValidationProcessNames
-
replacePageProcess
-
removePageProcess
-
isErrorOnMissingProcess
public boolean isErrorOnMissingProcess() -
setErrorOnMissingProcess
public void setErrorOnMissingProcess(boolean errorOnMissingProcess) -
isLazyValidation
public boolean isLazyValidation() -
setLazyValidation
public void setLazyValidation(boolean lazyValidation) -
getAnnotFact
-
setAnnotFact
-
getActionFact
-
setActionFact
-
getColorSpaceHelperFact
-
setColorSpaceHelperFact
-
getMaxErrors
public int getMaxErrors()Get the maximum number of errors after which to abort when possible.- Returns:
-
setMaxErrors
public void setMaxErrors(int maxErrors) Set the maximum number of errors after which to abort when possible.- Parameters:
maxErrors
-
-