Class PrintURLs

java.lang.Object
org.apache.pdfbox.examples.pdmodel.PrintURLs

public final class PrintURLs extends Object
This is an example of how to access a URL in a PDF document.
  • Constructor Details

    • PrintURLs

      private PrintURLs()
      Constructor.
  • Method Details

    • main

      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 - Command line arguments.
      Throws:
      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.