Modifier and Type | Method and Description |
---|---|
PreflightContext |
PreflightDocument.getContext() |
Modifier and Type | Method and Description |
---|---|
void |
PreflightDocument.setContext(PreflightContext context) |
Modifier and Type | Field and Description |
---|---|
protected PreflightContext |
AbstractActionManager.context
The validation context
|
Modifier and Type | Method and Description |
---|---|
protected AbstractActionManager |
ActionManagerFactory.createActionManager(PreflightContext ctx,
COSDictionary action,
String aaKey)
Create an instance of ActionManager according to the value of the S entry.
|
List<AbstractActionManager> |
ActionManagerFactory.getActionManagers(PreflightContext ctx,
COSDictionary dictionary)
This method extract actions from the given dictionary.
|
List<AbstractActionManager> |
ActionManagerFactory.getNextActions(PreflightContext ctx,
COSDictionary actionDictionary)
Returns all actions contained by the Next entry.
|
Modifier and Type | Field and Description |
---|---|
protected PreflightContext |
AnnotationValidator.ctx |
Modifier and Type | Method and Description |
---|---|
AnnotationValidator |
AnnotationValidatorFactory.getAnnotationValidator(PreflightContext ctx,
COSDictionary annotDic)
Return an instance of AnnotationValidator.
|
Modifier and Type | Field and Description |
---|---|
protected PreflightContext |
PreflightStreamEngine.context |
Constructor and Description |
---|
PreflightContentStream(PreflightContext _context,
PDPage _page) |
PreflightStreamEngine(PreflightContext context,
PDPage page) |
Modifier and Type | Field and Description |
---|---|
protected PreflightContext |
FontValidator.context |
Constructor and 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) |
Modifier and Type | Field and Description |
---|---|
protected PreflightContext |
FontDescriptorHelper.context |
Constructor and 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) |
Constructor and Description |
---|
PreflightType3Stream(PreflightContext context,
PDPage page,
PDType3CharProc charProc) |
Modifier and Type | Field and Description |
---|---|
protected PreflightContext |
StandardColorSpaceHelper.context
The context which contains useful information to process the validation.
|
Modifier and Type | Method and Description |
---|---|
ColorSpaceHelper |
ColorSpaceHelperFactory.getColorSpaceHelper(PreflightContext context,
PDColorSpace cs,
ColorSpaceHelperFactory.ColorSpaceRestriction csr)
Return an instance of ColorSpaceHelper according to the ColorSpaceRestiction value.
|
static ICCProfileWrapper |
ICCProfileWrapper.getOrSearchICCProfile(PreflightContext context) |
Constructor and Description |
---|
DeviceColorSpaceHelper(PreflightContext _context,
PDColorSpace _cs) |
NoPatternColorSpaceHelper(PreflightContext _context,
PDColorSpace _cs) |
StandardColorSpaceHelper(PreflightContext _context,
PDColorSpace _cs) |
Modifier and Type | Field and Description |
---|---|
protected PreflightContext |
PreflightParser.ctx |
Modifier and Type | Method and Description |
---|---|
protected void |
AbstractProcess.addFontError(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,
COSStream streamObj)
Check dictionary entries.
|
protected void |
StreamValidationProcess.checkFilters(COSStream stream,
PreflightContext context)
This method checks if one of declared Filter is LZWdecode.
|
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) |
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<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,
List<PDAnnotationWidget> widgets)
This function explores all fields and their children to validate them.
|
void |
XRefValidationProcess.validate(PreflightContext ctx) |
void |
ValidationProcess.validate(PreflightContext ctx) |
void |
TrailerValidationProcess.validate(PreflightContext ctx) |
void |
StreamValidationProcess.validate(PreflightContext ctx) |
void |
PageTreeValidationProcess.validate(PreflightContext context) |
void |
MetadataValidationProcess.validate(PreflightContext ctx) |
void |
FileSpecificationValidationProcess.validate(PreflightContext ctx) |
void |
EmptyValidationProcess.validate(PreflightContext context) |
void |
CatalogValidationProcess.validate(PreflightContext ctx) |
void |
BookmarkValidationProcess.validate(PreflightContext ctx) |
void |
AcroFormValidationProcess.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.
|
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,
Map<COSObjectKey,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) |
Modifier and Type | Method and 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.
|
protected void |
ShadingPatternValidationProcess.checkGraphicState(PreflightContext context,
PDPage page,
PDShading shadingRes)
Check the Extended Graphic State contains in the ShadingPattern dictionary if it is present.
|
protected void |
TilingPatternValidationProcess.checkMandatoryFields(PreflightContext context,
PDPage page,
PDTilingPattern pattern)
This method checks if required fields are present.
|
protected void |
ExtGStateValidationProcess.checkTR2Key(PreflightContext context,
COSDictionary egs)
Check the TR2 entry.
|
protected void |
ExtGStateValidationProcess.checkTRKey(PreflightContext context,
COSDictionary egs)
Check the TR entry.
|
List<COSDictionary> |
ExtGStateValidationProcess.extractExtGStateDictionaries(PreflightContext context,
COSDictionary egsEntry)
Create a list of ExtGState dictionaries using the given Resource dictionary and the COSDocument.
|
protected FontValidator<? extends FontContainer<? extends PDFont>> |
FontValidationProcess.getFontValidator(PreflightContext context,
PDFont font)
Create the right "Validator" object for the given font type
|
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 |
TilingPatternValidationProcess.validate(PreflightContext context) |
void |
SinglePageValidationProcess.validate(PreflightContext context) |
void |
ShadingPatternValidationProcess.validate(PreflightContext context) |
void |
ResourcesValidationProcess.validate(PreflightContext ctx) |
void |
GraphicObjectPageValidationProcess.validate(PreflightContext context) |
void |
FontValidationProcess.validate(PreflightContext context) |
void |
ExtGStateValidationProcess.validate(PreflightContext context)
Validate the ExtGState dictionaries.
|
void |
DestinationValidationProcess.validate(PreflightContext ctx) |
void |
AnnotationValidationProcess.validate(PreflightContext context) |
void |
ActionsValidationProcess.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) |
protected void |
ResourcesValidationProcess.validateExtGStates(PreflightContext context,
PDResources resources) |
protected void |
ExtGStateValidationProcess.validateFonts(PreflightContext context,
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 rules
|
protected 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 attribute
|
protected 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,
List<COSDictionary> listOfExtGState)
Validate transparency rules in all ExtGState dictionaries of this container.
|
protected void |
ResourcesValidationProcess.validateXObjects(PreflightContext context,
PDResources resources) |
Modifier and Type | Method and Description |
---|---|
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) |
Modifier and Type | Field and Description |
---|---|
protected PreflightContext |
AbstractXObjValidator.context
The validation context which contains useful information to process validation.
|
Constructor and Description |
---|
AbstractXObjValidator(PreflightContext context,
COSStream xobj) |
XObjFormValidator(PreflightContext context,
PDFormXObject xobj) |
XObjImageValidator(PreflightContext context,
PDImageXObject xobj) |
XObjPostscriptValidator(PreflightContext context,
PDPostScriptXObject xobj) |
Copyright © 2002–2017 The Apache Software Foundation. All rights reserved.