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

public final Class PrintURLs

extends Object
Class Inheritance
Imports
java.awt.geom.Rectangle2D, java.io.File, .IOException, java.lang.reflect.InvocationTargetException, .Method, java.util.List, org.apache.pdfbox.Loader, org.apache.pdfbox.pdmodel.PDDocument, .PDPage, org.apache.pdfbox.pdmodel.common.PDRectangle, org.apache.pdfbox.pdmodel.interactive.action.PDAction, .PDActionURI, org.apache.pdfbox.pdmodel.interactive.annotation.PDAnnotation, org.apache.pdfbox.text.PDFTextStripperByArea

This is an example of how to access a URL in a PDF document.
Author
Ben Litchfield

Constructor Summary

AccessConstructor and Description
private
PrintURLs()

Constructor.

Method Summary

Modifier and TypeMethod and Description
private static PDActionURI
public static void
main(String[]
Command line arguments.
args
)

This will output all URLs and the texts in the annotation rectangle of a document.

private static void
usage()

This will print out a message telling how to use this example.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

PrintURLsback to summary
private PrintURLs()

Constructor.

Method Detail

getActionURIback to summary
private static PDActionURI getActionURI(PDAnnotation annot)
mainback to summary
public static void main(String[] args) throws IOException

This will output all URLs and the texts in the annotation rectangle of a document.
see usage() for commandline

Parameters
args:String[]

Command line arguments.

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

This will print out a message telling how to use this example.