org.pdfbox.examples.persistence
Class CopyDoc
java.lang.Object
org.pdfbox.examples.persistence.CopyDoc
public class CopyDoc
extends java.lang.Object
This is an example used to copy a documents contents from a source doc to destination doc
via an in-memory document representation.
void | doIt(String in, String out) - This will perform the document copy.
|
static void | main(String[] args) - This will copy a PDF document.
|
CopyDoc
public CopyDoc()
Constructor.
doIt
public void doIt(String in,
String out)
throws IOException,
COSVisitorException
This will perform the document copy.
in
- The filename used for input.out
- The filename used for output.
main
public static void main(String[] args)
This will copy a PDF document.
see usage() for commandline
args
- command line arguments