|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.pdfbox.examples.pdmodel.PrintBookmarks
public class PrintBookmarks
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>
| Constructor Summary | |
|---|---|
PrintBookmarks()
|
|
| Method Summary | |
|---|---|
static void |
main(java.lang.String[] args)
This will print the documents data. |
void |
printBookmark(PDOutlineNode bookmark,
java.lang.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 |
|---|
public PrintBookmarks()
| Method Detail |
|---|
public static void main(java.lang.String[] args)
throws java.lang.Exception
args - The command line arguments.
java.lang.Exception - If there is an error parsing the document.
public void printBookmark(PDOutlineNode bookmark,
java.lang.String indentation)
throws java.io.IOException
bookmark - The bookmark to print out.indentation - A pretty printing parameter
java.io.IOException - If there is an error getting the page count.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||