org.pdfbox.examples.pdmodel

Class ReplaceURLs


public 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.
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.

Method Details

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.