Class CreateBookmarks

java.lang.Object
org.apache.pdfbox.examples.pdmodel.CreateBookmarks

public final class CreateBookmarks extends Object
This is an example on how to add bookmarks to a PDF document. It simply adds 1 bookmark for every page.
  • Constructor Details

    • CreateBookmarks

      private CreateBookmarks()
  • Method Details

    • main

      public static void main(String[] args) throws IOException
      This will print the documents data.
      Parameters:
      args - The command line arguments.
      Throws:
      IOException - If there is an error parsing the document.
    • usage

      private static void usage()
      This will print the usage for this document.