public class BookmarkValidationProcess extends AbstractProcess
Constructor and Description |
---|
BookmarkValidationProcess() |
Modifier and Type | Method and Description |
---|---|
protected boolean |
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 |
validate(PreflightContext ctx) |
protected boolean |
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.
|
addFontError, addValidationError, addValidationErrors
public void validate(PreflightContext ctx) throws ValidationException
ValidationException
protected boolean exploreOutlineLevel(PreflightContext ctx, PDOutlineItem inputItem, COSObject firstObj, COSObject lastObj) throws ValidationException
ctx
- the preflight context.inputItem
- The first outline item of the level.firstObj
- The first PDF object of the level.lastObj
- The last PDF object of the level.ValidationException
protected boolean validateItem(PreflightContext ctx, PDOutlineItem inputItem) throws ValidationException
ctx
- the preflight context.inputItem
- outline item to validateValidationException
Copyright © 2002–2018 The Apache Software Foundation. All rights reserved.