## Uses of Class
org.apache.pdfbox.preflight.PreflightContext

Packages that use PreflightContext
org.apache.pdfbox.preflight
org.apache.pdfbox.preflight.action
org.apache.pdfbox.preflight.annotation
org.apache.pdfbox.preflight.content
org.apache.pdfbox.preflight.font
org.apache.pdfbox.preflight.font.descriptor
org.apache.pdfbox.preflight.font.util
org.apache.pdfbox.preflight.graphic
org.apache.pdfbox.preflight.process
org.apache.pdfbox.preflight.process.reflect
org.apache.pdfbox.preflight.utils
org.apache.pdfbox.preflight.xobject

### Uses of PreflightContext in org.apache.pdfbox.preflight

Methods in org.apache.pdfbox.preflight that return PreflightContext
`PreflightContext` PreflightDocument.`getContext()` Returns the associated preflight context.

Methods in org.apache.pdfbox.preflight with parameters of type PreflightContext
`void` PreflightDocument.`setContext(PreflightContext context)` Set the preflight context for this document.

### Uses of PreflightContext in org.apache.pdfbox.preflight.action

Fields in org.apache.pdfbox.preflight.action declared as PreflightContext
`protected PreflightContext` AbstractActionManager.`context` The validation context

Methods in org.apache.pdfbox.preflight.action with parameters of type PreflightContext
`protected AbstractActionManager` ActionManagerFactory.`createActionManager(PreflightContext ctx, org.apache.pdfbox.cos.COSDictionary action, String aaKey)` Create an instance of ActionManager according to the value of the S entry.
`List<AbstractActionManager>` ActionManagerFactory.`getActionManagers(PreflightContext ctx, org.apache.pdfbox.cos.COSDictionary dictionary)` This method extract actions from the given dictionary.
`List<AbstractActionManager>` ActionManagerFactory.`getNextActions(PreflightContext ctx, org.apache.pdfbox.cos.COSDictionary actionDictionary)` Returns all actions contained by the Next entry.

Constructors in org.apache.pdfbox.preflight.action with parameters of type PreflightContext
Constructor and Description
`GoToAction(ActionManagerFactory amFact, org.apache.pdfbox.cos.COSDictionary adict, PreflightContext ctx, String aaKey)`
`GoToRemoteAction(ActionManagerFactory amFact, org.apache.pdfbox.cos.COSDictionary adict, PreflightContext ctx, String aaKey)`
`HideAction(ActionManagerFactory amFact, org.apache.pdfbox.cos.COSDictionary adict, PreflightContext ctx, String aaKey)`
`InvalidAction(ActionManagerFactory amFact, org.apache.pdfbox.cos.COSDictionary adict, PreflightContext ctx, String aaKey, String name)`
`NamedAction(ActionManagerFactory amFact, org.apache.pdfbox.cos.COSDictionary adict, PreflightContext ctx, String aaKey)`
`SubmitAction(ActionManagerFactory amFact, org.apache.pdfbox.cos.COSDictionary adict, PreflightContext ctx, String aaKey)`
`ThreadAction(ActionManagerFactory amFact, org.apache.pdfbox.cos.COSDictionary adict, PreflightContext ctx, String aaKey)`
`UndefAction(ActionManagerFactory amFact, org.apache.pdfbox.cos.COSDictionary adict, PreflightContext ctx, String aaKey, String name)`
`UriAction(ActionManagerFactory amFact, org.apache.pdfbox.cos.COSDictionary adict, PreflightContext ctx, String aaKey)`

### Uses of PreflightContext in org.apache.pdfbox.preflight.annotation

Fields in org.apache.pdfbox.preflight.annotation declared as PreflightContext
`protected PreflightContext` AnnotationValidator.`ctx`

Methods in org.apache.pdfbox.preflight.annotation with parameters of type PreflightContext
`AnnotationValidator` AnnotationValidatorFactory.`getAnnotationValidator(PreflightContext ctx, org.apache.pdfbox.cos.COSDictionary annotDic)` Return an instance of AnnotationValidator.

Constructors in org.apache.pdfbox.preflight.annotation with parameters of type PreflightContext
Constructor and Description
`AnnotationValidator(PreflightContext context, org.apache.pdfbox.cos.COSDictionary annotDictionary)`
`CircleAnnotationValidator(PreflightContext ctx, org.apache.pdfbox.cos.COSDictionary annotDictionary)`
`FreeTextAnnotationValidator(PreflightContext ctx, org.apache.pdfbox.cos.COSDictionary annotDictionary)`
`HighlightAnnotationValidator(PreflightContext ctx, org.apache.pdfbox.cos.COSDictionary annotDictionary)`
`InkAnnotationValidator(PreflightContext ctx, org.apache.pdfbox.cos.COSDictionary annotDictionary)`
`LineAnnotationValidator(PreflightContext ctx, org.apache.pdfbox.cos.COSDictionary annotDictionary)`
`LinkAnnotationValidator(PreflightContext ctx, org.apache.pdfbox.cos.COSDictionary annotDictionary)`
`PopupAnnotationValidator(PreflightContext ctx, org.apache.pdfbox.cos.COSDictionary annotDictionary)`
`PrintMarkAnnotationValidator(PreflightContext ctx, org.apache.pdfbox.cos.COSDictionary annotDictionary)`
`RubberStampAnnotationValidator(PreflightContext ctx, org.apache.pdfbox.cos.COSDictionary annotDictionary)`
`SquareAnnotationValidator(PreflightContext ctx, org.apache.pdfbox.cos.COSDictionary annotDictionary)`
`SquareCircleAnnotationValidator(PreflightContext ctx, org.apache.pdfbox.pdmodel.interactive.annotation.PDAnnotationSquareCircle annotation)`
`SquigglyAnnotationValidator(PreflightContext ctx, org.apache.pdfbox.cos.COSDictionary annotDictionary)`
`StrikeoutAnnotationValidator(PreflightContext ctx, org.apache.pdfbox.cos.COSDictionary annotDictionary)`
`TextAnnotationValidator(PreflightContext ctx, org.apache.pdfbox.cos.COSDictionary annotDictionary)`
`TrapNetAnnotationValidator(PreflightContext ctx, org.apache.pdfbox.cos.COSDictionary annotDictionary)`
`UnderlineAnnotationValidator(PreflightContext ctx, org.apache.pdfbox.cos.COSDictionary annotDictionary)`
`WidgetAnnotationValidator(PreflightContext ctx, org.apache.pdfbox.cos.COSDictionary annotDictionary)`

### Uses of PreflightContext in org.apache.pdfbox.preflight.content

Fields in org.apache.pdfbox.preflight.content declared as PreflightContext
`protected PreflightContext` PreflightStreamEngine.`context`

Constructors in org.apache.pdfbox.preflight.content with parameters of type PreflightContext
Constructor and Description
`PreflightContentStream(PreflightContext _context, org.apache.pdfbox.pdmodel.PDPage _page)`
`PreflightStreamEngine(PreflightContext context, org.apache.pdfbox.pdmodel.PDPage page)`

### Uses of PreflightContext in org.apache.pdfbox.preflight.font

Fields in org.apache.pdfbox.preflight.font declared as PreflightContext
`protected PreflightContext` FontValidator.`context`

Constructors in org.apache.pdfbox.preflight.font with parameters of type PreflightContext
Constructor and Description
`CIDType0FontValidator(PreflightContext context, org.apache.pdfbox.pdmodel.font.PDCIDFontType0 font)`
`CIDType2FontValidator(PreflightContext context, org.apache.pdfbox.pdmodel.font.PDCIDFontType2 font)`
`DescendantFontValidator(PreflightContext context, org.apache.pdfbox.pdmodel.font.PDCIDFont font, T fContainer)`
`FontValidator(PreflightContext context, org.apache.pdfbox.cos.COSDictionary dict, T fContainer)`
`SimpleFontValidator(PreflightContext context, org.apache.pdfbox.pdmodel.font.PDFontLike font, org.apache.pdfbox.cos.COSDictionary fontDictionary, T fContainer)`
`TrueTypeFontValidator(PreflightContext context, org.apache.pdfbox.pdmodel.font.PDTrueTypeFont font)`
`Type0FontValidator(PreflightContext context, org.apache.pdfbox.pdmodel.font.PDFont font)`
`Type1FontValidator(PreflightContext context, org.apache.pdfbox.pdmodel.font.PDSimpleFont font)`
`Type3FontValidator(PreflightContext context, org.apache.pdfbox.pdmodel.font.PDType3Font font)`

### Uses of PreflightContext in org.apache.pdfbox.preflight.font.descriptor

Fields in org.apache.pdfbox.preflight.font.descriptor declared as PreflightContext
`protected PreflightContext` FontDescriptorHelper.`context`

Constructors in org.apache.pdfbox.preflight.font.descriptor with parameters of type PreflightContext
Constructor and Description
`CIDType0DescriptorHelper(PreflightContext context, org.apache.pdfbox.pdmodel.font.PDFontLike font, CIDType0Container fontContainer)`
`CIDType2DescriptorHelper(PreflightContext context, org.apache.pdfbox.pdmodel.font.PDFontLike font, CIDType2Container fontContainer)`
`FontDescriptorHelper(PreflightContext context, org.apache.pdfbox.pdmodel.font.PDFontLike font, T fontContainer)`
`TrueTypeDescriptorHelper(PreflightContext context, org.apache.pdfbox.pdmodel.font.PDTrueTypeFont font, TrueTypeContainer fontContainer)`
`Type1DescriptorHelper(PreflightContext context, org.apache.pdfbox.pdmodel.font.PDSimpleFont font, Type1Container fontContainer)`

### Uses of PreflightContext in org.apache.pdfbox.preflight.font.util

Constructors in org.apache.pdfbox.preflight.font.util with parameters of type PreflightContext
Constructor and Description
`PreflightType3Stream(PreflightContext context, org.apache.pdfbox.pdmodel.PDPage page, org.apache.pdfbox.pdmodel.font.PDType3CharProc charProc)`

### Uses of PreflightContext in org.apache.pdfbox.preflight.graphic

Fields in org.apache.pdfbox.preflight.graphic declared as PreflightContext
`protected PreflightContext` StandardColorSpaceHelper.`context` The context which contains useful information to process the validation.

Methods in org.apache.pdfbox.preflight.graphic with parameters of type PreflightContext
`ColorSpaceHelper` ColorSpaceHelperFactory.`getColorSpaceHelper(PreflightContext context, org.apache.pdfbox.pdmodel.graphics.color.PDColorSpace cs, ColorSpaceHelperFactory.ColorSpaceRestriction csr)` Return an instance of ColorSpaceHelper according to the ColorSpaceRestriction value.
`static ICCProfileWrapper` ICCProfileWrapper.`getOrSearchICCProfile(PreflightContext context)`

Constructors in org.apache.pdfbox.preflight.graphic with parameters of type PreflightContext
Constructor and Description
`DeviceColorSpaceHelper(PreflightContext _context, org.apache.pdfbox.pdmodel.graphics.color.PDColorSpace _cs)`
`NoPatternColorSpaceHelper(PreflightContext _context, org.apache.pdfbox.pdmodel.graphics.color.PDColorSpace _cs)`
`StandardColorSpaceHelper(PreflightContext _context, org.apache.pdfbox.pdmodel.graphics.color.PDColorSpace _cs)`

### Uses of PreflightContext in org.apache.pdfbox.preflight.process

Methods in org.apache.pdfbox.preflight.process with parameters of type PreflightContext
`protected void` AbstractProcess.`addFontError(org.apache.pdfbox.cos.COSDictionary dictionary, PreflightContext context, IOException e)` PDFont loads embedded fonts in its constructor so we have to handle IOExceptions from PDFont and translate them into validation errors.
`protected void` AbstractProcess.`addValidationError(PreflightContext ctx, ValidationResult.ValidationError error)`
`protected void` AbstractProcess.`addValidationErrors(PreflightContext ctx, List<ValidationResult.ValidationError> errors)`
`protected void` StreamValidationProcess.`checkDictionaryEntries(PreflightContext context, org.apache.pdfbox.cos.COSStream streamObj)` Check dictionary entries.
`protected void` StreamValidationProcess.`checkFilters(org.apache.pdfbox.cos.COSStream stream, PreflightContext context)` This method checks if one of declared Filter is LZWdecode.
`protected void` TrailerValidationProcess.`checkLinearizedDictionary(PreflightContext ctx, org.apache.pdfbox.cos.COSDictionary linearizedDict)` Check if mandatory keys of linearized dictionary are present.
`protected void` TrailerValidationProcess.`checkMainTrailer(PreflightContext ctx, org.apache.pdfbox.cos.COSDictionary trailer)` check if all keys are authorized in a trailer dictionary and if the type is valid.
`protected void` AcroFormValidationProcess.`checkNeedAppearences(PreflightContext ctx, org.apache.pdfbox.pdmodel.interactive.form.PDAcroForm acroForm)` This method checks if the NeedAppearances entry is present.
`protected void` TrailerValidationProcess.`checkTrailersForLinearizedPDF14(PreflightContext ctx)` Extracts and compares first and last trailers for PDF version between 1.1 and 1.4.
`protected void` TrailerValidationProcess.`checkTrailersForLinearizedPDF15(PreflightContext ctx)` Accesses and compares First and Last trailers for a PDF version higher than 1.4.
`protected boolean` AcroFormValidationProcess.`exploreFields(PreflightContext ctx, List<org.apache.pdfbox.pdmodel.interactive.form.PDField> fields)` This function explores all fields and their children to validate them.
`protected boolean` BookmarkValidationProcess.`exploreOutlineLevel(PreflightContext ctx, org.apache.pdfbox.pdmodel.interactive.documentnavigation.outline.PDOutlineItem inputItem, org.apache.pdfbox.cos.COSObject firstObj, org.apache.pdfbox.cos.COSObject lastObj)` This method explores the Outline Item Level and calls a validation method on each Outline Item.
`protected boolean` AcroFormValidationProcess.`exploreWidgets(PreflightContext ctx, List<org.apache.pdfbox.pdmodel.interactive.annotation.PDAnnotationWidget> widgets)` This function explores all fields and their children to validate them.
`void` XRefValidationProcess.`validate(PreflightContext ctx)`
`void` EmptyValidationProcess.`validate(PreflightContext context)`
`void` ValidationProcess.`validate(PreflightContext ctx)`
`void` FileSpecificationValidationProcess.`validate(PreflightContext ctx)`
`void` PageTreeValidationProcess.`validate(PreflightContext context)`
`void` CatalogValidationProcess.`validate(PreflightContext ctx)`
`void` BookmarkValidationProcess.`validate(PreflightContext ctx)`
`void` AcroFormValidationProcess.`validate(PreflightContext ctx)`
`void` StreamValidationProcess.`validate(PreflightContext ctx)`
`void` TrailerValidationProcess.`validate(PreflightContext ctx)`
`void` MetadataValidationProcess.`validate(PreflightContext ctx)`
`protected boolean` AcroFormValidationProcess.`validateField(PreflightContext ctx, org.apache.pdfbox.pdmodel.interactive.form.PDField field)` A and AA field are forbidden, this method checks if they are present and checks all children of this field.
`void` FileSpecificationValidationProcess.`validateFileSpecification(PreflightContext ctx, org.apache.pdfbox.cos.COSDictionary fileSpec)` Validate a FileSpec dictionary, a FileSpec dictionary mustn't have the EF (EmbeddedFile) entry.
`protected boolean` BookmarkValidationProcess.`validateItem(PreflightContext ctx, org.apache.pdfbox.pdmodel.interactive.documentnavigation.outline.PDOutlineItem inputItem)` This method checks the inputItem dictionary and call the exploreOutlineLevel method on the first child if it is not null.
`void` StreamValidationProcess.`validateStreamObject(PreflightContext context, org.apache.pdfbox.cos.COSBase cObj)`

### Uses of PreflightContext in org.apache.pdfbox.preflight.process.reflect

Methods in org.apache.pdfbox.preflight.process.reflect with parameters of type PreflightContext
`protected void` ShadingPatternValidationProcess.`checkColorSpace(PreflightContext context, org.apache.pdfbox.pdmodel.PDPage page, org.apache.pdfbox.pdmodel.graphics.shading.PDShading shadingRes)` Checks if the ColorSapce entry is consistent which rules of the PDF Reference and the ISO 190005-1:2005 Specification.
`protected void` ShadingPatternValidationProcess.`checkGraphicState(PreflightContext context, org.apache.pdfbox.pdmodel.PDPage page, org.apache.pdfbox.pdmodel.graphics.shading.PDShading shadingRes)` Check the Extended Graphic State contains in the ShadingPattern dictionary if it is present.
`protected void` TilingPatternValidationProcess.`checkMandatoryFields(PreflightContext context, org.apache.pdfbox.pdmodel.PDPage page, org.apache.pdfbox.pdmodel.graphics.pattern.PDTilingPattern pattern)` This method checks if required fields are present.
`protected void` ExtGStateValidationProcess.`checkTR2Key(PreflightContext context, org.apache.pdfbox.cos.COSDictionary egs)` Check the TR2 entry.
`protected void` ExtGStateValidationProcess.`checkTRKey(PreflightContext context, org.apache.pdfbox.cos.COSDictionary egs)` Check the TR entry.
`protected FontValidator<? extends FontContainer<? extends org.apache.pdfbox.pdmodel.font.PDFont>>` FontValidationProcess.`getFontValidator(PreflightContext context, org.apache.pdfbox.pdmodel.font.PDFont font)` Create the right "Validator" object for the given font type
`protected void` TilingPatternValidationProcess.`parsePatternContent(PreflightContext context, org.apache.pdfbox.pdmodel.PDPage page, org.apache.pdfbox.pdmodel.graphics.pattern.PDTilingPattern pattern)` Validate the Pattern content like Color and Show Text Operators using an instance of ContentStreamWrapper.
`protected void` TilingPatternValidationProcess.`parseResources(PreflightContext context, org.apache.pdfbox.pdmodel.PDPage page, org.apache.pdfbox.pdmodel.graphics.pattern.PDTilingPattern pattern)`
`void` AnnotationValidationProcess.`validate(PreflightContext context)`
`void` FontValidationProcess.`validate(PreflightContext context)`
`void` ExtGStateValidationProcess.`validate(PreflightContext context)` Validate the ExtGState dictionaries.
`void` TilingPatternValidationProcess.`validate(PreflightContext context)`
`void` DestinationValidationProcess.`validate(PreflightContext ctx)`
`void` GraphicObjectPageValidationProcess.`validate(PreflightContext context)`
`void` ResourcesValidationProcess.`validate(PreflightContext ctx)`
`void` ActionsValidationProcess.`validate(PreflightContext context)`
`void` ShadingPatternValidationProcess.`validate(PreflightContext context)`
`void` SinglePageValidationProcess.`validate(PreflightContext context)`
`protected void` SinglePageValidationProcess.`validateActions(PreflightContext context, org.apache.pdfbox.pdmodel.PDPage page)` This method checks additional actions contained in the given Page object.
`protected void` SinglePageValidationProcess.`validateAnnotation(PreflightContext context, org.apache.pdfbox.pdmodel.PDPage page)`
`protected void` SinglePageValidationProcess.`validateColorSpaces(PreflightContext context, org.apache.pdfbox.pdmodel.PDPage page)` Check that all ColorSpace present in the Resource dictionary are conforming to the ISO 19005:2005-1 specification.
`protected void` SinglePageValidationProcess.`validateContent(PreflightContext context, org.apache.pdfbox.pdmodel.PDPage page)`
`protected void` ResourcesValidationProcess.`validateExtGStates(PreflightContext context, org.apache.pdfbox.pdmodel.PDResources resources)`
`protected void` ExtGStateValidationProcess.`validateFonts(PreflightContext context, List<org.apache.pdfbox.cos.COSDictionary> listOfExtGState)` Validate fonts in all ExtGState dictionaries of this container.
`protected void` ResourcesValidationProcess.`validateFonts(PreflightContext context, org.apache.pdfbox.pdmodel.PDResources resources)` Check that fonts present in the Resources dictionary match with PDF/A-1 rules
`protected void` SinglePageValidationProcess.`validateGraphicObjects(PreflightContext context, org.apache.pdfbox.pdmodel.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, org.apache.pdfbox.pdmodel.PDPage page)` Check that the group dictionary doesn't have a Transparency attribute
`protected void` SinglePageValidationProcess.`validateResources(PreflightContext context, org.apache.pdfbox.pdmodel.PDPage page)`
`protected void` ResourcesValidationProcess.`validateShadingPattern(PreflightContext context, org.apache.pdfbox.pdmodel.PDResources resources)` This method check the Shading entry of the resource dictionary if exists.
`protected void` ResourcesValidationProcess.`validateTilingPattern(PreflightContext context, org.apache.pdfbox.pdmodel.PDResources resources)` This method check the Shading entry of the resource dictionary if exists.
`protected void` ExtGStateValidationProcess.`validateTransparencyRules(PreflightContext context, List<org.apache.pdfbox.cos.COSDictionary> listOfExtGState)` Validate transparency rules in all ExtGState dictionaries of this container.
`protected void` ResourcesValidationProcess.`validateXObjects(PreflightContext context, org.apache.pdfbox.pdmodel.PDResources resources)`

### Uses of PreflightContext in org.apache.pdfbox.preflight.utils

Methods in org.apache.pdfbox.preflight.utils with parameters of type PreflightContext
`static void` FilterHelper.`isAuthorizedFilter(PreflightContext context, String filter)` This method checks if the filter is authorized for the PDF file according to the preflight document specification attribute.
`static void` FilterHelper.`isAuthorizedFilterInPDFA(PreflightContext context, String filter)` This method checks if the filter is authorized for a PDF/A file.
`static void` ContextHelper.`validateElement(PreflightContext context, Object element, String processName)` Check that the element parameter isn't null before calling the `ContextHelper.callValidation(PreflightContext, Object, String)` method.
`static void` ContextHelper.`validateElement(PreflightContext context, String processName)` call directly the `ContextHelper.callValidation(PreflightContext, Object, String)`

### Uses of PreflightContext in org.apache.pdfbox.preflight.xobject

Fields in org.apache.pdfbox.preflight.xobject declared as PreflightContext
`protected PreflightContext` AbstractXObjValidator.`context` The validation context which contains useful information to process validation.

Constructors in org.apache.pdfbox.preflight.xobject with parameters of type PreflightContext
Constructor and Description
`AbstractXObjValidator(PreflightContext context, org.apache.pdfbox.cos.COSStream xobj)`
`XObjFormValidator(PreflightContext context, org.apache.pdfbox.pdmodel.graphics.form.PDFormXObject xobj)`
`XObjImageValidator(PreflightContext context, org.apache.pdfbox.pdmodel.graphics.image.PDImageXObject xobj)`
`XObjPostscriptValidator(PreflightContext context, org.apache.pdfbox.pdmodel.graphics.PDPostScriptXObject xobj)`