Class OutlineDistiller

java.lang.Object
org.sejda.impl.sambox.component.OutlineDistiller

public class OutlineDistiller extends Object
Component that can distill a cloned version of the document outline based on the relevant pages selected and can append it to a given existing PDDocumentOutline, filtering out outline item pointing to irrelevant pages.
Author:
Andrea Vacondio
  • Constructor Summary

    Constructors
    Constructor
    Description
    OutlineDistiller(org.sejda.sambox.pdmodel.PDDocument document)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    appendRelevantOutlineTo(org.sejda.sambox.pdmodel.interactive.documentnavigation.outline.PDOutlineNode to, org.sejda.commons.LookupTable<org.sejda.sambox.pdmodel.PDPage> pagesLookup)
    Appends to the given outline, all the outline items whose page destination is relevant

    Methods inherited from class java.lang.Object

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

    • OutlineDistiller

      public OutlineDistiller(org.sejda.sambox.pdmodel.PDDocument document)
  • Method Details

    • appendRelevantOutlineTo

      public void appendRelevantOutlineTo(org.sejda.sambox.pdmodel.interactive.documentnavigation.outline.PDOutlineNode to, org.sejda.commons.LookupTable<org.sejda.sambox.pdmodel.PDPage> pagesLookup)
      Appends to the given outline, all the outline items whose page destination is relevant
      Parameters:
      to -
      pagesLookup -