public class BookmarkValidationProcess extends AbstractProcess
| Constructor and Description |
|---|
BookmarkValidationProcess() |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
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.
|
void |
validate(PreflightContext ctx) |
protected boolean |
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.
|
addFontError, addValidationError, addValidationErrorspublic void validate(PreflightContext ctx) throws ValidationException
ValidationExceptionprotected boolean exploreOutlineLevel(PreflightContext ctx, org.apache.pdfbox.pdmodel.interactive.documentnavigation.outline.PDOutlineItem inputItem, org.apache.pdfbox.cos.COSObject firstObj, org.apache.pdfbox.cos.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.ValidationExceptionprotected boolean validateItem(PreflightContext ctx, org.apache.pdfbox.pdmodel.interactive.documentnavigation.outline.PDOutlineItem inputItem) throws ValidationException
ctx - the preflight context.inputItem - outline item to validateValidationExceptionCopyright © 2002–2025 The Apache Software Foundation. All rights reserved.