Class ReplaceURLs


  • public final class ReplaceURLs
    extends java.lang.Object
    This is an example of how to replace a URL in a PDF document. This will only replace the URL that the text refers to and not the text itself.
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private ReplaceURLs()
      Constructor.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void main​(java.lang.String[] args)
      This will read in a document and replace all of the urls with http://pdfbox.apache.org.
      private static void usage()
      This will print out a message telling how to use this example.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ReplaceURLs

        private ReplaceURLs()
        Constructor.
    • Method Detail

      • main

        public static void main​(java.lang.String[] args)
                         throws java.io.IOException
        This will read in a document and replace all of the urls with http://pdfbox.apache.org.
        see usage() for commandline
        Parameters:
        args - Command line arguments.
        Throws:
        java.io.IOException - If there is an error during the process.
      • usage

        private static void usage()
        This will print out a message telling how to use this example.