Class PreflightConfiguration
java.lang.Object
org.apache.pdfbox.preflight.PreflightConfiguration
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic PreflightConfigurationgetInstanceOfProcess(String processName) Return the validation process linked with the given nameintGet the maximum number of errors after which to abort when possible.booleanbooleanvoidremovePageProcess(String processName) voidremoveProcess(String processName) voidreplacePageProcess(String processName, Class<? extends ValidationProcess> process) voidreplaceProcess(String processName, Class<? extends ValidationProcess> process) voidsetActionFact(ActionManagerFactory actionFact) voidsetAnnotFact(AnnotationValidatorFactory annotFact) voidsetColorSpaceHelperFact(ColorSpaceHelperFactory colorSpaceHelperFact) voidsetErrorOnMissingProcess(boolean errorOnMissingProcess) voidsetLazyValidation(boolean lazyValidation) voidsetMaxErrors(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:
-
-
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-
-