Class PrintURLs
- java.lang.Object
-
- org.apache.pdfbox.examples.pdmodel.PrintURLs
-
public final class PrintURLs extends java.lang.ObjectThis is an example of how to access a URL in a PDF document.
-
-
Constructor Summary
Constructors Modifier Constructor Description privatePrintURLs()Constructor.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description private static PDActionURIgetActionURI(PDAnnotation annot)static voidmain(java.lang.String[] args)This will output all URLs and the texts in the annotation rectangle of a document.private static voidusage()This will print out a message telling how to use this example.
-
-
-
Method Detail
-
main
public static void main(java.lang.String[] args) throws java.io.IOExceptionThis will output all URLs and the texts in the annotation rectangle of a document.
see usage() for commandline- Parameters:
args- Command line arguments.- Throws:
java.io.IOException- If there is an error extracting the URLs.
-
getActionURI
private static PDActionURI getActionURI(PDAnnotation annot)
-
usage
private static void usage()
This will print out a message telling how to use this example.
-
-