org.pdfbox.examples.pdmodel
Class ReplaceURLs
java.lang.Object
org.pdfbox.examples.pdmodel.ReplaceURLs
- public class ReplaceURLs
- extends 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.
- Version:
- $Revision: 1.2 $
- Author:
- Ben Litchfield
Method Summary |
static void |
main(String[] args)
This will read in a document and replace all of the urls with
http://www.pdfbox.org.
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
main
public static void main(String[] args)
throws Exception
- This will read in a document and replace all of the urls with
http://www.pdfbox.org.
see usage() for commandline
- Parameters:
args
- Command line arguments.
- Throws:
Exception
- If there is an error during the process.