Uses of Class
org.apache.pdfbox.preflight.exception.ValidationException
-
-
Uses of ValidationException in org.apache.pdfbox.preflight
Methods in org.apache.pdfbox.preflight that throw ValidationException Modifier and Type Method Description ValidationProcess
PreflightConfiguration. getInstanceOfProcess(java.lang.String processName)
Return the validation process linked with the given namevoid
PreflightDocument. validate()
Check that PDDocument is a valid file according to the format given during the object creation. -
Uses of ValidationException in org.apache.pdfbox.preflight.action
Methods in org.apache.pdfbox.preflight.action that throw ValidationException Modifier and Type Method Description private void
ActionManagerFactory. callCreateAction(COSBase aDict, PreflightContext ctx, java.util.List<AbstractActionManager> result, java.lang.String additionActionKey, java.util.Map<COSObjectKey,java.lang.Boolean> alreadyCreated)
Call the create action to add the ActionManager to the result list.private void
ActionManagerFactory. callCreateAction(COSBase aDict, PreflightContext ctx, java.util.List<AbstractActionManager> result, java.util.Map<COSObjectKey,java.lang.Boolean> alreadyCreated)
Call the callCreateAction(COSBase, COSDocument, List, String) method with null as isAA parameter. protected AbstractActionManager
ActionManagerFactory. createActionManager(PreflightContext ctx, COSDictionary action, java.lang.String aaKey)
Create an instance of ActionManager according to the value of the S entry.java.util.List<AbstractActionManager>
ActionManagerFactory. getActionManagers(PreflightContext ctx, COSDictionary dictionary)
This method extract actions from the given dictionary.java.util.List<AbstractActionManager>
ActionManagerFactory. getNextActions(PreflightContext ctx, COSDictionary actionDictionary)
Returns all actions contained by the Next entry.protected abstract boolean
AbstractActionManager. innerValid()
This method must be implemented by inherited classes to process specific validation.protected boolean
GoToAction. innerValid()
protected boolean
GoToRemoteAction. innerValid()
boolean
AbstractActionManager. valid()
Call theAbstractActionManager.valid(boolean)
method with the additionalActionAuth set to false.boolean
AbstractActionManager. valid(boolean additionalActionAuth)
Validate an Action dictionary.protected boolean
AbstractActionManager. validNextActions()
This method create a list of Action Managers which represent actions in the Next entry of the current action dictionary. -
Uses of ValidationException in org.apache.pdfbox.preflight.annotation
Methods in org.apache.pdfbox.preflight.annotation that throw ValidationException Modifier and Type Method Description protected boolean
AnnotationValidator. checkActions()
Extract a list of ActionManager from the Annotation dictionary and valid them.protected boolean
AnnotationValidator. checkAP()
This method checks the AP entry of the Annotation Dictionary.protected boolean
AnnotationValidator. checkColors()
Return true if the C field is present in the Annotation dictionary and if the RGB profile is used in the DestOutputProfile of the OutputIntent dictionary.protected boolean
LineAnnotationValidator. checkIColors()
Return true if the IC field is present in the Annotation dictionary and if the RGB profile is used in the DestOutputProfile of the OutputIntent dictionary.protected boolean
SquareCircleAnnotationValidator. checkIColors()
Return true if the IC field is present in the Annotation dictionary and if the RGB profile is used in the DestOutputProfile of the OutputIntent dictionary.protected boolean
AnnotationValidator. checkPopup()
This method validates the Popup entry.AnnotationValidator
AnnotationValidatorFactory. getAnnotationValidator(PreflightContext ctx, COSDictionary annotDic)
Return an instance of AnnotationValidator.protected boolean
AnnotationValidator. searchRGBProfile()
Search the RGB Profile in OutputIntents dictionariesboolean
AnnotationValidator. validate()
Execute validation of the Annotation dictionary.boolean
LineAnnotationValidator. validate()
In addition of the AnnotationValidator.validate() method, this method executes the checkIColors method.boolean
LinkAnnotationValidator. validate()
In addition of the AnnotationValidator.validate() method, this method executes the checkDest method.boolean
SquareCircleAnnotationValidator. validate()
In addition of the AnnotationValidator.validate() method, this method executes the checkIColors method.boolean
WidgetAnnotationValidator. validate()
In addition of the AnnotationValidator.validate() method, this method executes the checkAAField method. -
Uses of ValidationException in org.apache.pdfbox.preflight.content
Subclasses of ValidationException in org.apache.pdfbox.preflight.content Modifier and Type Class Description class
ContentStreamException
Methods in org.apache.pdfbox.preflight.content that throw ValidationException Modifier and Type Method Description void
PreflightContentStream. validatePageContentStream()
Process the validation of a PageContent (The page is initialized by the constructor)void
PreflightContentStream. validatePatternContentStream(PDTilingPattern pattern)
Process the validation of a Tiling Patternvoid
PreflightContentStream. validateXObjContentStream(PDFormXObject form)
Process the validation of a XObject Form -
Uses of ValidationException in org.apache.pdfbox.preflight.exception
Subclasses of ValidationException in org.apache.pdfbox.preflight.exception Modifier and Type Class Description class
MissingValidationProcessException
class
SyntaxValidationException
-
Uses of ValidationException in org.apache.pdfbox.preflight.font
Methods in org.apache.pdfbox.preflight.font that throw ValidationException Modifier and Type Method Description private void
Type3FontValidator. checkResources()
If the Resources entry is present, this method checks its content.protected void
Type0FontValidator. processDescendantFont()
Extract the single CIDFont from the descendant array.abstract void
FontValidator. validate()
void
SimpleFontValidator. validate()
Call this method to validate the font wrapped by this object.void
Type0FontValidator. validate()
void
Type3FontValidator. validate()
-
Uses of ValidationException in org.apache.pdfbox.preflight.font.util
Methods in org.apache.pdfbox.preflight.font.util that throw ValidationException Modifier and Type Method Description java.util.List<ValidationResult.ValidationError>
FontMetaDataValidation. validatePDFAIdentifer(XMPMetadata metadata, PDFontDescriptor fontDesc)
-
Uses of ValidationException in org.apache.pdfbox.preflight.graphic
Methods in org.apache.pdfbox.preflight.graphic that throw ValidationException Modifier and Type Method Description static ICCProfileWrapper
ICCProfileWrapper. getOrSearchICCProfile(PreflightContext context)
void
ColorSpaceHelper. validate()
Process the ColorSpace validation.void
StandardColorSpaceHelper. validate()
-
Uses of ValidationException in org.apache.pdfbox.preflight.metadata
Methods in org.apache.pdfbox.preflight.metadata that return ValidationException Modifier and Type Method Description protected ValidationException
SynchronizedMetaDataValidation. schemaAccessException(java.lang.String target, java.lang.Throwable cause)
Return an exception formatted on IOException when accessing on metadata schemaMethods in org.apache.pdfbox.preflight.metadata that throw ValidationException Modifier and Type Method Description protected void
SynchronizedMetaDataValidation. analyzeCreationDateProperty(PDDocumentInformation dico, XMPBasicSchema xmp, java.util.List<ValidationResult.ValidationError> ve)
Analyze if the CreationDate embedded in Document Information dictionary and in XMP properties are synchronizedprotected void
SynchronizedMetaDataValidation. analyzeModifyDateProperty(PDDocumentInformation dico, XMPBasicSchema xmp, java.util.List<ValidationResult.ValidationError> ve)
Analyze if the ModifyDate embedded in Document Information dictionary and in XMP properties are synchronizedjava.util.List<ValidationResult.ValidationError>
SynchronizedMetaDataValidation. validateMetadataSynchronization(PDDocument document, XMPMetadata metadata)
Check if document information entries and XMP information are synchronizedjava.util.List<ValidationResult.ValidationError>
PDFAIdentificationValidation. validatePDFAIdentifer(XMPMetadata metadata)
Check if PDFAIdentification is validjava.util.List<ValidationResult.ValidationError>
UniquePropertiesValidation. validatePropertiesUniqueness(PDDocument document, XMPMetadata metadata)
Checks that certain metadata properties are unique.void
RDFAboutAttributeConcordanceValidation. validateRDFAboutAttributes(XMPMetadata metadata)
-
Uses of ValidationException in org.apache.pdfbox.preflight.process
Methods in org.apache.pdfbox.preflight.process that throw ValidationException Modifier and Type Method Description protected void
StreamValidationProcess. checkStreamLength(PreflightContext context, COSObject cObj)
protected boolean
BookmarkValidationProcess. exploreOutlineLevel(PreflightContext ctx, PDOutlineItem inputItem, COSObject firstObj, COSObject lastObj)
This method explores the Outline Item Level and calls a validation method on each Outline Item.void
AcroFormValidationProcess. validate(PreflightContext ctx)
void
BookmarkValidationProcess. validate(PreflightContext ctx)
void
CatalogValidationProcess. validate(PreflightContext ctx)
void
EmptyValidationProcess. validate(PreflightContext context)
void
FileSpecificationValidationProcess. validate(PreflightContext ctx)
void
MetadataValidationProcess. validate(PreflightContext ctx)
void
PageTreeValidationProcess. validate(PreflightContext context)
void
StreamValidationProcess. validate(PreflightContext ctx)
void
TrailerValidationProcess. validate(PreflightContext ctx)
void
ValidationProcess. validate(PreflightContext ctx)
void
XRefValidationProcess. validate(PreflightContext ctx)
protected void
CatalogValidationProcess. validateActions(PreflightContext ctx)
This method validates if OpenAction entry contains forbidden action type.protected void
CatalogValidationProcess. validateICCProfile(COSBase destOutputProfile, java.util.Map<COSObjectKey,java.lang.Boolean> mapDestOutputProfile, PreflightContext ctx)
This method checks the destOutputProfile which must be a valid ICCProfile.protected boolean
BookmarkValidationProcess. validateItem(PreflightContext ctx, PDOutlineItem inputItem)
This method checks the inputItem dictionary and call the exploreOutlineLevel method on the first child if it is not null.protected void
CatalogValidationProcess. validateLang(PreflightContext ctx)
The Lang element is optional but it is recommended.protected void
CatalogValidationProcess. validateNames(PreflightContext ctx)
A Catalog shall not contain the EmbeddedFiles entry.protected void
CatalogValidationProcess. validateOCProperties(PreflightContext ctx)
A Catalog shall not contain the OCPProperties (Optional Content Properties) entry.void
CatalogValidationProcess. validateOutputIntent(PreflightContext ctx)
This method checks the content of each OutputIntent.protected void
PageTreeValidationProcess. validatePage(PreflightContext context, PDPage page)
void
StreamValidationProcess. validateStreamObject(PreflightContext context, COSObject cObj)
-
Uses of ValidationException in org.apache.pdfbox.preflight.process.reflect
Methods in org.apache.pdfbox.preflight.process.reflect that throw ValidationException Modifier and Type Method Description protected void
ShadingPatternValidationProcess. checkColorSpace(PreflightContext context, PDPage page, PDShading shadingRes)
Checks if the ColorSapce entry is consistent which rules of the PDF Reference and the ISO 190005-1:2005 Specification.private void
ExtGStateValidationProcess. checkFont(PreflightContext context, COSDictionary egs)
This method checks a Font array in the ExtGState dictionary.protected void
ShadingPatternValidationProcess. checkGraphicState(PreflightContext context, PDPage page, PDShading shadingRes)
Check the Extended Graphic State contains in the ShadingPattern dictionary if it is present.java.util.List<COSDictionary>
ExtGStateValidationProcess. extractExtGStateDictionaries(PreflightContext context, COSDictionary egsEntry)
Create a list of ExtGState dictionaries using the given Resource dictionary and the COSDocument.protected void
TilingPatternValidationProcess. parsePatternContent(PreflightContext context, PDPage page, PDTilingPattern pattern)
Validate the Pattern content like Color and Show Text Operators using an instance of ContentStreamWrapper.protected void
TilingPatternValidationProcess. parseResources(PreflightContext context, PDPage page, PDTilingPattern pattern)
void
ActionsValidationProcess. validate(PreflightContext context)
void
AnnotationValidationProcess. validate(PreflightContext context)
void
DestinationValidationProcess. validate(PreflightContext ctx)
void
ExtGStateValidationProcess. validate(PreflightContext context)
Validate the ExtGState dictionaries.void
FontValidationProcess. validate(PreflightContext context)
void
GraphicObjectPageValidationProcess. validate(PreflightContext context)
void
ResourcesValidationProcess. validate(PreflightContext ctx)
void
ShadingPatternValidationProcess. validate(PreflightContext context)
void
SinglePageValidationProcess. validate(PreflightContext context)
void
TilingPatternValidationProcess. validate(PreflightContext context)
protected void
SinglePageValidationProcess. validateActions(PreflightContext context, PDPage page)
This method checks additional actions contained in the given Page object.protected void
SinglePageValidationProcess. validateAnnotation(PreflightContext context, PDPage page)
protected void
SinglePageValidationProcess. validateContent(PreflightContext context, PDPage page)
protected void
ResourcesValidationProcess. validateExtGStates(PreflightContext context, PDResources resources)
protected void
ExtGStateValidationProcess. validateFonts(PreflightContext context, java.util.List<COSDictionary> listOfExtGState)
Validate fonts in all ExtGState dictionaries of this container.protected void
ResourcesValidationProcess. validateFonts(PreflightContext context, PDResources resources)
Check that fonts present in the Resources dictionary match with PDF/A-1 rulesprotected void
SinglePageValidationProcess. validateGraphicObjects(PreflightContext context, PDPage page)
Check that all XObject references in the PDResource of the page and in the Thumb entry are confirming to the PDF/A specification.protected void
SinglePageValidationProcess. validateGroupTransparency(PreflightContext context, PDPage page)
Check that the group dictionary doesn't have a Transparency attributeprotected void
SinglePageValidationProcess. validateResources(PreflightContext context, PDPage page)
protected void
ResourcesValidationProcess. validateShadingPattern(PreflightContext context, PDResources resources)
This method check the Shading entry of the resource dictionary if exists.protected void
ResourcesValidationProcess. validateTilingPattern(PreflightContext context, PDResources resources)
This method check the Shading entry of the resource dictionary if exists.protected void
ResourcesValidationProcess. validateXObjects(PreflightContext context, PDResources resources)
-
Uses of ValidationException in org.apache.pdfbox.preflight.utils
Methods in org.apache.pdfbox.preflight.utils that throw ValidationException Modifier and Type Method Description private static void
ContextHelper. callValidation(PreflightContext context, java.lang.Object element, java.lang.String processName)
Put the element to check on the top of the ValidationPath and call the validation method on the Process.static void
ContextHelper. validateElement(PreflightContext context, java.lang.Object element, java.lang.String processName)
Check that the element parameter isn't null before calling theContextHelper.callValidation(PreflightContext, Object, String)
method.static void
ContextHelper. validateElement(PreflightContext context, java.lang.String processName)
call directly theContextHelper.callValidation(PreflightContext, Object, String)
-
Uses of ValidationException in org.apache.pdfbox.preflight.xobject
Methods in org.apache.pdfbox.preflight.xobject that throw ValidationException Modifier and Type Method Description protected void
XObjImageValidator. checkAlternates()
protected void
XObjImageValidator. checkColorSpaceAndImageMask()
protected void
XObjImageValidator. checkIntent()
protected void
XObjImageValidator. checkInterpolate()
void
AbstractXObjValidator. validate()
void
XObjectValidator. validate()
Process the validation of the XObject.void
XObjFormValidator. validate()
void
XObjImageValidator. validate()
protected void
XObjFormValidator. validateXObjectContent()
An Form XObject is a ContentStream.protected void
XObjFormValidator. validateXObjectResources()
-