| java.lang.Object org.pdfbox.examples.pdmodel.PrintBookmarks
PrintBookmarks | public class PrintBookmarks (Code) | | 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>
author: Ben Litchfield version: $Revision: 1.2 $ |
Method Summary | |
public static void | main(String[] args) This will print the documents data. | public void | printBookmark(PDOutlineNode bookmark, String indentation) This will print the documents bookmarks to System.out. |
main | public static void main(String[] args) throws Exception(Code) | | 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(Code) | | This will print the documents bookmarks to System.out.
Parameters: bookmark - The bookmark to print out. Parameters: indentation - A pretty printing parameter throws: IOException - If there is an error getting the page count. |
|
|