Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.pdfbox.examples.pdmodel
Class PrintBookmarks

    java.lang.Object
      org.pdfbox.examples.pdmodel.PrintBookmarks

public class PrintBookmarks
extends Object

This is an example on how to access the bookmarks that are part of a pdf document. Usage: java org.pdfbox.examples.pdmodel.PrintBookmarks <input-pdf>

Version:
  $Revision: 1.1 $
Author:
  Ben Litchfield (ben@csh.rit.edu)

Constructor Summary
`PrintBookmarks()`

Method Summary
`static void` | `main(String[] args)` This will print the documents data.
`void` | `printBookmark(PDOutlineNode bookmark, String indentation)` This will print the documents bookmarks to System.out.

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### PrintBookmarks

    public PrintBookmarks()

Method Detail

### main

    public static void main(String[] args)
                     throws Exception

  This will print the documents data.

  Parameters:
    `args` - The command line arguments.
  Throws:
    `Exception` - If there is an error parsing the document.

### printBookmark

    public void printBookmark(PDOutlineNode bookmark,
                              String indentation)
                       throws IOException

  This will print the documents bookmarks to System.out.

  Parameters:
    `bookmark` - The bookmark to print out.
    `indentation` - A pretty printing parameter
  Throws:
    `IOException` - If there is an error getting the page count.

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD