Uses of Class
org.apache.pdfbox.preflight.PreflightContext
-
-
Uses of PreflightContext in org.apache.pdfbox.preflight
Fields in org.apache.pdfbox.preflight declared as PreflightContext Modifier and Type Field Description private PreflightContext
PreflightDocument. context
Methods in org.apache.pdfbox.preflight that return PreflightContext Modifier and Type Method Description PreflightContext
PreflightDocument. getContext()
Methods in org.apache.pdfbox.preflight with parameters of type PreflightContext Modifier and Type Method Description void
PreflightDocument. setContext(PreflightContext context)
-
Uses of PreflightContext in org.apache.pdfbox.preflight.action
Fields in org.apache.pdfbox.preflight.action declared as PreflightContext Modifier and Type Field Description protected PreflightContext
AbstractActionManager. context
The validation contextMethods in org.apache.pdfbox.preflight.action with parameters of type PreflightContext 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. -
Uses of PreflightContext in org.apache.pdfbox.preflight.annotation
Fields in org.apache.pdfbox.preflight.annotation declared as PreflightContext Modifier and Type Field Description protected PreflightContext
AnnotationValidator. ctx
Methods in org.apache.pdfbox.preflight.annotation with parameters of type PreflightContext Modifier and Type Method Description AnnotationValidator
AnnotationValidatorFactory. getAnnotationValidator(PreflightContext ctx, COSDictionary annotDic)
Return an instance of AnnotationValidator. -
Uses of PreflightContext in org.apache.pdfbox.preflight.content
Fields in org.apache.pdfbox.preflight.content declared as PreflightContext Modifier and Type Field Description protected PreflightContext
PreflightStreamEngine. context
Constructors in org.apache.pdfbox.preflight.content with parameters of type PreflightContext Constructor Description PreflightContentStream(PreflightContext _context, PDPage _page)
PreflightStreamEngine(PreflightContext context, PDPage page)
-
Uses of PreflightContext in org.apache.pdfbox.preflight.font
Fields in org.apache.pdfbox.preflight.font declared as PreflightContext Modifier and Type Field Description protected PreflightContext
FontValidator. context
Constructors in org.apache.pdfbox.preflight.font with parameters of type PreflightContext Constructor Description CIDType0FontValidator(PreflightContext context, PDCIDFontType0 font)
CIDType2FontValidator(PreflightContext context, PDCIDFontType2 font)
DescendantFontValidator(PreflightContext context, PDCIDFont font, T fContainer)
FontValidator(PreflightContext context, COSDictionary dict, T fContainer)
SimpleFontValidator(PreflightContext context, PDFontLike font, COSDictionary fontDictionary, T fContainer)
TrueTypeFontValidator(PreflightContext context, PDTrueTypeFont font)
Type0FontValidator(PreflightContext context, PDFont font)
Type1FontValidator(PreflightContext context, PDSimpleFont font)
Type3FontValidator(PreflightContext context, PDType3Font font)
-
Uses of PreflightContext in org.apache.pdfbox.preflight.font.descriptor
Fields in org.apache.pdfbox.preflight.font.descriptor declared as PreflightContext Modifier and Type Field Description protected PreflightContext
FontDescriptorHelper. context
Constructors in org.apache.pdfbox.preflight.font.descriptor with parameters of type PreflightContext Constructor Description CIDType0DescriptorHelper(PreflightContext context, PDFontLike font, CIDType0Container fontContainer)
CIDType2DescriptorHelper(PreflightContext context, PDFontLike font, CIDType2Container fontContainer)
FontDescriptorHelper(PreflightContext context, PDFontLike font, T fontContainer)
TrueTypeDescriptorHelper(PreflightContext context, PDTrueTypeFont font, TrueTypeContainer fontContainer)
Type1DescriptorHelper(PreflightContext context, 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 Description PreflightType3Stream(PreflightContext context, PDPage page, PDType3CharProc charProc)
-
Uses of PreflightContext in org.apache.pdfbox.preflight.graphic
Fields in org.apache.pdfbox.preflight.graphic declared as PreflightContext Modifier and Type Field Description 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 Modifier and Type Method Description ColorSpaceHelper
ColorSpaceHelperFactory. getColorSpaceHelper(PreflightContext context, PDColorSpace cs, ColorSpaceHelperFactory.ColorSpaceRestriction csr)
Return an instance of ColorSpaceHelper according to the ColorSpaceRestriction value.static ICCProfileWrapper
ICCProfileWrapper. getOrSearchICCProfile(PreflightContext context)
private static ICCProfileWrapper
ICCProfileWrapper. searchFirstICCProfile(PreflightContext context)
This method read all outputIntent dictionary until on of them have a destOutputProfile stream.Constructors in org.apache.pdfbox.preflight.graphic with parameters of type PreflightContext Constructor Description DeviceColorSpaceHelper(PreflightContext _context, PDColorSpace _cs)
NoPatternColorSpaceHelper(PreflightContext _context, PDColorSpace _cs)
StandardColorSpaceHelper(PreflightContext _context, PDColorSpace _cs)
-
Uses of PreflightContext in org.apache.pdfbox.preflight.parser
Fields in org.apache.pdfbox.preflight.parser declared as PreflightContext Modifier and Type Field Description protected PreflightContext
PreflightParser. ctx
-
Uses of PreflightContext in org.apache.pdfbox.preflight.process
Methods in org.apache.pdfbox.preflight.process with parameters of type PreflightContext Modifier and Type Method Description protected void
AbstractProcess. addFontError(COSDictionary dictionary, PreflightContext context, java.io.IOException e)
PDFont loads embedded fonts in its constructor so we have to handle IOExceptions from PDFont and translate them into validation errors.private void
StreamValidationProcess. addStreamLengthValidationError(PreflightContext context, COSObject cObj, int length, java.lang.String endStream)
protected void
AbstractProcess. addValidationError(PreflightContext ctx, ValidationResult.ValidationError error)
protected void
AbstractProcess. addValidationErrors(PreflightContext ctx, java.util.List<ValidationResult.ValidationError> errors)
protected void
StreamValidationProcess. checkDictionaryEntries(PreflightContext context, COSStream streamObj)
Check dictionary entries.protected void
StreamValidationProcess. checkFilters(COSStream stream, PreflightContext context)
This method checks if one of declared Filter is LZWdecode.private boolean
BookmarkValidationProcess. checkIndirectObject(PreflightContext ctx, COSDictionary dictionary, COSName name)
private boolean
BookmarkValidationProcess. checkIndirectObjects(PreflightContext ctx, COSDictionary dictionary)
protected void
TrailerValidationProcess. checkLinearizedDictionnary(PreflightContext ctx, COSDictionary linearizedDict)
Check if mandatory keys of linearized dictionary are present.protected void
TrailerValidationProcess. checkMainTrailer(PreflightContext ctx, COSDictionary trailer)
check if all keys are authorized in a trailer dictionary and if the type is valid.protected void
AcroFormValidationProcess. checkNeedAppearences(PreflightContext ctx, PDAcroForm acroForm)
This method checks if the NeedAppearances entry is present.protected void
StreamValidationProcess. checkStreamLength(PreflightContext context, COSObject cObj)
private void
MetadataValidationProcess. checkThumbnail(ThumbnailType tb, PreflightContext ctx)
private void
MetadataValidationProcess. checkThumbnails(PreflightContext ctx, XMPMetadata metadata)
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, java.util.List<PDField> lFields)
This function explores all fields and their children to validate them.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.protected boolean
AcroFormValidationProcess. exploreWidgets(PreflightContext ctx, java.util.List<PDAnnotationWidget> widgets)
This function explores all fields and their children to validate them.private boolean
BookmarkValidationProcess. isCountEntryPositive(PreflightContext ctx, COSDictionary outline)
return true if Count entry > 0void
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 boolean
AcroFormValidationProcess. validateField(PreflightContext ctx, PDField field)
A and AA field are forbidden, this method checks if they are present and checks all children of this field.java.util.List<ValidationResult.ValidationError>
FileSpecificationValidationProcess. validateFileSpecification(PreflightContext ctx, COSDictionary fileSpec)
Validate a FileSpec dictionary, a FileSpec dictionary mustn't have the EF (EmbeddedFile) entry.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 PreflightContext in org.apache.pdfbox.preflight.process.reflect
Methods in org.apache.pdfbox.preflight.process.reflect with parameters of type PreflightContext Modifier and Type Method Description private void
ExtGStateValidationProcess. checkBlendMode(PreflightContext context, COSDictionary egs)
This method checks the BM value of the ExtGState dictionary.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.private void
ExtGStateValidationProcess. checkLowerCA(PreflightContext context, COSDictionary egs)
This method checks the "ca" value of the ExtGState dictionary.protected void
TilingPatternValidationProcess. checkMandatoryFields(PreflightContext context, PDPage page, PDTilingPattern pattern)
This method checks if required fields are present.private void
ExtGStateValidationProcess. checkSoftMask(PreflightContext context, COSDictionary egs)
This method checks the SMask value of the ExtGState dictionary.protected void
ExtGStateValidationProcess. checkTR2Key(PreflightContext context, COSDictionary egs)
Check the TR2 entry.protected void
ExtGStateValidationProcess. checkTRKey(PreflightContext context, COSDictionary egs)
Check the TR entry.private void
ExtGStateValidationProcess. checkUpperCA(PreflightContext context, COSDictionary egs)
This method checks the "CA" value of the ExtGState dictionary.java.util.List<COSDictionary>
ExtGStateValidationProcess. extractExtGStateDictionaries(PreflightContext context, COSDictionary egsEntry)
Create a list of ExtGState dictionaries using the given Resource dictionary and the COSDocument.private java.util.Map<java.lang.String,PDFont>
ResourcesValidationProcess. getFonts(COSDictionary resources, PreflightContext context)
This will get the map of fonts.protected FontValidator<? extends FontContainer<? extends PDFont>>
FontValidationProcess. getFontValidator(PreflightContext context, PDFont font)
Create the right "Validator" object for the given font typeprotected 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. validateColorSpaces(PreflightContext context, 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, PDPage page)
(package private) void
DestinationValidationProcess. validateExplicitDestination(PreflightContext ctx, COSArray ar)
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
ExtGStateValidationProcess. validateTransparencyRules(PreflightContext context, java.util.List<COSDictionary> listOfExtGState)
Validate transparency rules in all ExtGState dictionaries of this container.protected void
ResourcesValidationProcess. validateXObjects(PreflightContext context, PDResources resources)
-
Uses of PreflightContext in org.apache.pdfbox.preflight.utils
Methods in org.apache.pdfbox.preflight.utils with parameters of type PreflightContext 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.private static boolean
ContextHelper. hasRecursion(PreflightContext context, java.lang.Object element, PreflightPath validationPath)
static void
FilterHelper. isAuthorizedFilter(PreflightContext context, java.lang.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, java.lang.String filter)
This method checks if the filter is authorized for a PDF/A file.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 PreflightContext in org.apache.pdfbox.preflight.xobject
Fields in org.apache.pdfbox.preflight.xobject declared as PreflightContext Modifier and Type Field Description 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 Description AbstractXObjValidator(PreflightContext context, COSStream xobj)
XObjFormValidator(PreflightContext context, PDFormXObject xobj)
XObjImageValidator(PreflightContext context, PDImageXObject xobj)
XObjPostscriptValidator(PreflightContext context, PDPostScriptXObject xobj)
-