Top Description Constructors Methods
org.apache.pdfbox.examples.pdmodel

public final Class CreateBookmarks

extends Object
Class Inheritance
Imports
java.io.File, .IOException, org.apache.pdfbox.Loader, org.apache.pdfbox.pdmodel.PDDocument, .PDPage, .PageMode, org.apache.pdfbox.pdmodel.interactive.documentnavigation.destination.PDPageDestination, .PDPageFitWidthDestination, org.apache.pdfbox.pdmodel.interactive.documentnavigation.outline.PDDocumentOutline, .PDOutlineItem

This is an example on how to add bookmarks to a PDF document. It simply adds 1 bookmark for every page.
Author
Ben Litchfield

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static void
main(String[]
The command line arguments.
args
)

This will print the documents data.

private static void
usage()

This will print the usage for this document.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

CreateBookmarksback to summary
private CreateBookmarks()

Method Detail

mainback to summary
public static void main(String[] args) throws IOException

This will print the documents data.

Parameters
args:String[]

The command line arguments.

Exceptions
IOException:
If there is an error parsing the document.
usageback to summary
private static void usage()

This will print the usage for this document.