Class Bookmarks

java.lang.Object
org.jpedal.constants.Bookmarks

public class Bookmarks extends Object
Represents a hierarchical bookmark (outline) structure for a document.
  • Constructor Details

    • Bookmarks

      public Bookmarks()
      Create a new structure of bookmarks (outlines).
  • Method Details

    • getChildren

      public List<Bookmark> getChildren()
      Get the list of child bookmarks.
      Returns:
      a list
    • addChild

      public Bookmark addChild(Bookmark child)
      Add a new child bookmark.
      Parameters:
      child - the bookmark to add
      Returns:
      a reference to the added child
    • addChild

      public Bookmark addChild(String title, int pageNumber)
      Add a new child bookmark.
      Parameters:
      title - the title
      pageNumber - the page number
      Returns:
      a reference to the added child