Class BookmarkValidationProcess

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method 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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • BookmarkValidationProcess

        public BookmarkValidationProcess()
    • Method Detail

      • exploreOutlineLevel

        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)
                                       throws ValidationException
        This method explores the Outline Item Level and calls a validation method on each Outline Item. If an invalid outline item is found, the result list is updated.
        Parameters:
        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.
        Returns:
        true if all items are valid in this level.
        Throws:
        ValidationException
      • validateItem

        protected boolean validateItem​(PreflightContext ctx,
                                       org.apache.pdfbox.pdmodel.interactive.documentnavigation.outline.PDOutlineItem inputItem)
                                throws ValidationException
        This method checks the inputItem dictionary and call the exploreOutlineLevel method on the first child if it is not null.
        Parameters:
        ctx - the preflight context.
        inputItem - outline item to validate
        Returns:
        the validation result.
        Throws:
        ValidationException