public class PrintBookmarks extends Object
| Constructor and Description | 
|---|
| PrintBookmarks() | 
| Modifier and Type | Method and Description | 
|---|---|
| static void | main(String[] args)This will print the documents data. | 
| void | printBookmark(PDDocument document,
             PDOutlineNode bookmark,
             String indentation)This will print the documents bookmarks to System.out. | 
public static void main(String[] args) throws IOException
args - The command line arguments.IOException - If there is an error parsing the document.public void printBookmark(PDDocument document, PDOutlineNode bookmark, String indentation) throws IOException
document - The document.bookmark - The bookmark to print out.indentation - A pretty printing parameterIOException - If there is an error getting the page count.Copyright © 2002–2017 The Apache Software Foundation. All rights reserved.