Class PdfBookmark

java.lang.Object
com.codename1.pdf.PdfBookmark

public final class PdfBookmark extends Object
An entry of the document outline, the table of contents a reader shows in its side panel. Created by PdfDocument.addBookmark(String, PdfPage, float) or, for a nested entry, by addChild(String, PdfPage, float).
  • Method Details

    • addChild

      public PdfBookmark addChild(String title, PdfPage page, float y)
      Adds a nested entry that jumps to y points from the top of page.
    • getTitle

      public String getTitle()
      The text shown for this entry.