|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.pdfbox.examples.persistence.CopyDoc
public class CopyDoc
This is an example used to copy a documents contents from a source doc to destination doc via an in-memory document representation.
| Constructor Summary | |
|---|---|
CopyDoc()
Constructor. |
|
| Method Summary | |
|---|---|
void |
doIt(java.lang.String in,
java.lang.String out)
This will perform the document copy. |
static void |
main(java.lang.String[] args)
This will copy a PDF document. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CopyDoc()
| Method Detail |
|---|
public void doIt(java.lang.String in,
java.lang.String out)
throws java.io.IOException,
COSVisitorException
in - The filename used for input.out - The filename used for output.
java.io.IOException - If there is an error parsing the document.
COSVisitorException - If there is an error while copying the document.public static void main(java.lang.String[] args)
args - command line arguments
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||